]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/disk/diskfilter.c: Validate volumes to avoid division by zero.
[grub2.git] / ChangeLog
1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/diskfilter.c: Validate volumes to avoid division
4 by zero.
5
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * include/grub/term.h: Avoid returining 0-sized terminal
9 as it may lead to division by zero.
10
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/fs/zfs.c: Avoid divisions by zero.
14
15 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16
17 * grub-core/fs/btrfs.c: Avoid divisions by zero.
18
19 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
22
23 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
26 blocksize validity.
27
28 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
31
32 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
33
34 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
35 validity.
36
37 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
40 divide by zero.
41
42 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
45 sanity checks.
46
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/fs/minix.c: Additional filesystem
50 sanity checks.
51
52 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
55 checks for superblock validity.
56
57 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/fs/ufs.c (grub_ufs_mount): Check
60 that sblock.ino_per_group is not 0.
61
62 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
63
64 Reject NILFS2 superblocks with over 1GiB blocks.
65
66 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
67 block size is <= 1GiB.
68
69 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
72 is sane when using CHS addressing.
73
74 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
77
78 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
81 division by zero.
82
83 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
86 potentially returning 0.
87
88 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
89
90 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
91 the end of file.
92
93 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
96 past the end of file.
97
98 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
99
100 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
101 synchronously with line.
102
103 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
104
105 Replace explicit sizeof divisions by ARRAY_SIZE.
106
107 2015-01-19 Kris Moore <kris@pcbsd.org>
108
109 * grub-core/disk/geli.c: Support GELI v6 and v7.
110
111 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
112
113 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
114 option processing.
115
116 2014-12-07 David Kozub <zub.272@gmail.com>
117
118 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
119 in __aeabi_uidivmod
120 Fixes Savannah bug #43632.
121
122 2014-12-07 Peter Nelson <peterdn>
123
124 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
125 chunks.
126
127 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
128
129 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
130 non-portable '-n' echo option.
131 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
132 non-portable 'echo -n.
133 * util/grub.d/10_linux.in: Likewise (closes 43668).
134 * util/grub.d/20_linux_xen.in: Likewise.
135 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
136 non-portable 'echo -n'.
137
138 2014-12-07 Curtis Larsen <larsen@dixie.edu>
139
140 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
141 free when multiple empty segments were received (closes 42765).
142
143 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
144
145 * tests/util/grub-shell.in: Support --files also for netboot.
146 * tests/file_filter_test.in: New file with file filters tests.
147 * Makefile.util.def: Add file_filter_test.
148 * conf/Makefile.extra-dist: ... and here.
149 * tests/file_filter/file.gz: Test file for file_filter_test.
150 * tests/file_filter/file.gz.sig: Likewise.
151 * tests/file_filter/file.lzop: Likewise.
152 * tests/file_filter/file.lzop.sig: Likewise.
153 * tests/file_filter/file.xz: Likewise.
154 * tests/file_filter/file.xz.sig: Likewise.
155 * tests/file_filter/keys: Likewise.
156 * tests/file_filter/keys.pub: Likewise.
157 * tests/file_filter/test.cfg: Likewise.
158 * grub-core/commands/verify.c: Fix memory corruption doing
159 signature check for network files (closes 43601).
160
161 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
162
163 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
164 memory leak (CID 73645, 73782).
165 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
166 (CID 73635).
167
168 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
169
170 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
171 inline array (CID 73610).
172
173 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
174
175 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
176 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
177 (Coverity CID 73813, 73710)
178 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
179 and use after free (Coverity CID 73813, 73710, 73730)
180 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
181 CID 73854)
182 * util/grub-install-common.c (grub_install_get_target): Check return
183 value of grub_util_fd_read (Coverity CID 73819).
184 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
185 to hd.magic (Coverity CID 73587, 73888, bug 43690).
186
187 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
188
189 * tests/util/grub-fs-tester.in: Consistently print output
190 of grub ls if test fails.
191
192 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
193
194 * grub-core/kern/efi/init.c: check value of *path before
195 dereferencing.
196
197 2014-11-03 Michael Chang <mchang@suse.com>
198
199 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
200 of neighbor solicitation packet in grub_netbuff_pull.
201
202 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
203
204 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
205 avoid fatal warnings with older gcc (probably before 4.7).
206 * grub-core/loader/arm64/linux.c: Likewise.
207 * grub-core/loader/i386/linux.c: Likewise.
208 * grub-core/loader/i386/pc/linux.c: Likewise.
209 * grub-core/loader/ia64/efi/linux.c: Likewise.
210 * grub-core/loader/mips/linux.c: Likewise.
211 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
212 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
213
214 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
215
216 Fix in-tree --platform=none
217
218 * configure.ac: Only remove include/grub/cpu and
219 include/grub/machine in the --platform=none case, not all of
220 include/grub.
221
222 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
223
224 Add a new "none" platform that only builds utilities
225
226 * configure.ac: Add "none" platform. Default to it for unsupported
227 CPUs rather than stopping with a fatal error. Don't downgrade
228 x86_64-none to i386. Define COND_real_platform Automake conditional
229 if the platform is anything other than "none". Don't do any include
230 directory linking for "none".
231 * Makefile.am: Skip building grub-core and all bootcheck targets if
232 !COND_real_platform.
233 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
234 is defined.
235
236 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
237
238 Use grub_cpu_to_XXX_compile_time for constants.
239
240 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
241
242 The AML parser implements only a small subset of possible AML
243 opcodes. On the Fujitsu Lifebook E744 this and another bug in
244 the parser (incorrect handling of TermArg data types) would lead
245 to the laptop not turning off (_S5 not found).
246
247 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
248 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
249 aren't always simply strings!); Add function to skip TermArgs
250 * include/grub/acpi.h: Add new opcodes
251
252 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * grub-core/normal/main.c: Don't drop to rescue console in
255 case of password-protected prompt and no menu entries.
256
257 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/commands/keylayouts.c: Ignore unknown keys.
260
261 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
262
263 * grub-core/gmodule.pl.in: Accept newer binutils which output
264 empty column rather than 0x0.
265
266 2014-09-21 Michael Chang <mchang@suse.com>
267
268 * grub-core/osdep/unix/config.c: Remove extraneous comma.
269
270 2014-09-21 Peter Jones <pjones@redhat.com>
271
272 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
273 we don't free a random pointer from the stack.
274 * grub-core/loader/arm64/linux.c: Likewise.
275 * grub-core/loader/i386/linux.c: Likewise.
276 * grub-core/loader/i386/pc/linux.c: Likewise.
277 * grub-core/loader/ia64/efi/linux.c: Likewise.
278 * grub-core/loader/mips/linux.c: Likewise.
279 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
280 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
281
282 2014-09-15 Khem Raj <raj.khem@gmail.com>
283
284 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
285 _BSD_SOURCE to avoid warnings under glibc 2.20+.
286
287 2014-09-08 Michael Chang <mchang@suse.com>
288
289 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
290 check; comparing &data->extent against addresses in the region it
291 points to is unpredictable.
292
293 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
294
295 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
296
297 * configure.ac: Remove -m64 from checks for -mcmodel=large and
298 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
299 already in TARGET_CFLAGS at this point, and they produce incorrect
300 results when building for x32.
301 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
302 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
303 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
304 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
305
306 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
307
308 * configure.ac: Remove several unnecessary semicolons.
309
310 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
311
312 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
313 Initialise pend to pacify GCC.
314
315 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
316
317 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
318 gettext_printf).
319
320 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/term/at_keyboard.c: Retry probing keyboard if
323 scancode setup failed.
324
325 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
328
329 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
332 safety to avoid triggerring VirtualBox bug.
333
334 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
337
338 Fixes hang on virtualbox.
339
340 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
341
342 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
343 kernels whose paths contain regex metacharacters.
344 * util/grub.d/10_kfreebsd.in: Likewise.
345 * util/grub.d/10_linux.in: Likewise.
346 * util/grub.d/20_linux_xen.in: Likewise.
347
348 Reported by: Heimo Stranner.
349
350 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
351
352 * docs/grub-dev.texi (Finding your way around): The build system no
353 longer uses AutoGen directly.
354
355 2014-06-21 Роман Пехов <roman_pekhov>
356
357 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
358
359 2014-06-21 Glenn Washburn <development@efficientek.com>
360
361 * util/grub-install.c: Fix handling of --disk-module.
362
363 2014-06-21 Stephane Rochoy <sheda>
364
365 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
366 EFI system table.
367
368 2014-06-21 Stephane Rochoy <sheda>
369
370 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
371 EFI system table physical address.
372
373 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
374
375 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
376
377 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
378
379 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
380
381 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
384 check.
385
386 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
389
390 Reported by: Yves Blusseau <blusseau@zetam.org>.
391
392 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
393
394 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
395 GDT in conventional memory.
396
397 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
398
399 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
400 UUID. Other parts of grub-mkconfig tolerate these, they were
401 previously allowed here up to commit
402 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
403 practice when the system has active LVM snapshots.
404 Fixes Ubuntu bug #1287436.
405
406 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
407
408 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
409 "logical_volumes" block a little more accurately.
410
411 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
414
415 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
418 pulled from libgcc.
419
420 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
421
422 Replace few instances of memcmp/memcpy in the code that should be
423 grub_memcmp/grub_memcpy.
424
425 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
428 device names.
429
430 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
431
432 btrfs: fix get_root key comparison failures due to endianness
433
434 * grub-core/fs/btrfs.c (get_root): Convert
435 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
436
437 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
438
439 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
440
441 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
442 no longer to be forgiving of trailing spaces on grub-probe output
443 lines, which among other things means that util/grub.d/10_linux.in
444 no longer detects LVM. To fix this, make grub-probe's output
445 delimiting more consistent. As a bonus, this improves the coverage
446 of the -0 option.
447
448 Fixes Debian bug #735935.
449
450 * grub-core/disk/cryptodisk.c
451 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
452 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
453 Likewise.
454 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
455 Update prototype.
456 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
457 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
458 probe_mods): Adjust for extra user-data arguments.
459 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
460 probe_abstraction): Use configured delimiter. Update callers.
461
462 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
463
464 * util/grub-probe,c (options): Make -0 work again (broken by
465 conversion to argp).
466 (main): Simplify logic.
467
468 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
469
470 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
471
472 2014-03-26 Fu Wei <fu.wei@linaro.org>
473
474 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
475
476 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
479 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
480
481 Suggested by: Markus Müller.
482
483 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
486 if E820 failed to return any regions.
487
488 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
491 tables for low memory calculations.
492
493 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
496 location to 640K.
497
498 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
501 region.
502
503 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
506 exclusively.
507
508 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
509
510 Add bootpath parser for open firmware.
511
512 It enables net boot even when there is no bootp/dhcp server.
513
514 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
515 and call it at grub_ieee1275_net_config_real.
516 * grub-core/kern/ieee1275/init.c: Add bootpath to
517 grub_ieee1275_net_config.
518 * include/grub/ieee1275/ieee1275.h: Likewise.
519
520
521 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
522
523 Add grub_env_set_net_property function.
524
525 * grub-core/net/bootp.c: Remove set_env_limn_ro.
526 * grub-core/net/net.c: Add grub_env_set_net_property.
527 * include/grub/net.h: Likewise.
528
529 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
530
531 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
532
533 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
536
537 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
540 7 seconds to recover if last poweroff was bad.
541
542 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
543
544 * grub-core/disk/ahci.c: Properly handle transactions with no
545 transferred data.
546
547 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
548
549 * grub-core/disk/ahci.c: Add safety cleanups.
550
551 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
552
553 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
554 slots to avoid pointing to uninited area.
555
556 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
559 enabling busmaster for the end.
560
561 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * util/grub-mkfont.c: Downgrade warnings about unhandled features
564 to debug.
565
566 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
569
570 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
571
572 * .gitignore: add missing files and .exe variants.
573
574 2014-01-26 Mike Gilbert <floppym@gentoo.org>
575
576 grub-install: support for partitioned partx loop devices.
577
578 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
579 /dev/loopX as being the parent of /dev/loopXpY.
580
581 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
584 Ensure that pointers are inited to NULL and that pointers are not
585 accessed after free.
586
587 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
588
589 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
590 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
591 * include/grub/emu/misc.h: ... and here.
592 * include/grub/err.h: ... and here.
593 * util/import_gcry.py: ... and here (in files g10lib.h).
594
595 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
596
597 * util/grub-mkimage.c: Make prefix argument mandatory.
598
599 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
600
601 Fix several translatable strings.
602
603 Suggested by: D. Prévot.
604
605 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * util/grub-install.c: List available targets.
608
609 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
610
611 * util/grub-install.c (write_to_disk): Add an info message.
612
613 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
614
615 * Makefile.am: Allow adding extra files to generated Windows ZIP
616 archive by setting GRUB_WINDOWS_EXTRA_DIST.
617
618 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
619
620 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
621 Show detected font path in summary.
622
623 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
624
625 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
626 interval gradually.
627 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
628 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
629 * grub-core/net/tftp.c (tftp_open): Likewise.
630 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
631
632 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
633
634 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
635 infinite loops.
636
637 In net/net.c there is a while (1) that only exits if there is a stop
638 condition and more then 10 packages or if there is no package received.
639
640 If GRUB is idle and enter in this loop, the only condition to leave is
641 if it doesn't have incoming packages. In a network with heavy traffic
642 this never happens.
643
644 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
645
646 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
647 EPERM when modifying kern.geom.debugflags. It is only a problem for
648 such things as installing GRUB to the MBR, in which case there'll be
649 an error later anyway, not for opening files during tests.
650
651 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
652
653 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
654 instead of MOD_FILES.
655 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
656 both with and without .exe.
657 * grub-core/genemuinitheader.sh: Same.
658
659 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
660
661 * util/grub-install.c: Fix a typo.
662
663 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
664
665 * grub-core/normal/main.c (read_config_file): Buffer config file.
666 Reduces boot time.
667
668 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
669
670 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
671 symbolic link to directory. It fails in Msys shell on Windows 2003.
672
673 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
674
675 * Makefile.am (default_payload.elf): Add modules
676 multiboot cbmemc linux16 gzio echo help.
677
678 2014-01-18 Mike Gilbert <floppym@gentoo.org>
679
680 * Makefile.util.def: Link grub-ofpathname with zfs libs.
681
682 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
685 conflicts.
686
687 Reported by: Andrey Borzenkov.
688
689 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
690
691 * include/grub/misc.h: Move macros for compiler features to ...
692 * include/grub/compiler.h: ... new file.
693 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
694 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
695 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
696 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
697 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
698 * grub-core/video/capture.c: Include <grub/misc.h>.
699 * include/grub/command.h: Include <grub/misc.h>.
700 * include/grub/dl.h: Include <grub/misc.h>.
701 * include/grub/procfs.h: Include <grub/misc.h>.
702
703 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
704
705 * configure.ac: Add support for BUILD_EXEEXT and use it ...
706 * Makefile.am: ... here.
707 * Makefile.util.def: ... and here.
708 * grub-core/Makefile.am: ... and here.
709
710 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
711
712 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
713 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
714
715 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * grub-core/term/terminfo.c: Recognize keys F1-F12.
718
719 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
720
721 * configure.ac: Add support for BUILD_LDFLAGS.
722 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
723 * grub-core/Makefile.am: ... and here.
724 * INSTALL: Mention BUILD_LDFLAGS.
725
726 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
729
730 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
733 and has no //.
734
735 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
736
737 * NEWS: Add few missing entries.
738
739 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
740
741 * util/grub.d/00_header.in (make_timeout): Use && rather than test
742 -a.
743 * util/grub.d/10_windows.in: Likewise.
744 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
745 than test -o.
746 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
747 rather than test -o.
748
749 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
750
751 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
752 redundant preprocessor conditional.
753
754 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
755
756 * Makefile.util.def (grub-macbless): Change mansection to 8.
757
758 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
759
760 * grub-core/loader/arm64/linux.c: correctly set device path end length.
761
762 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
763
764 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
765 arm64 to comply with EFI specification. Also use grubaa64.efi for
766 consistency.
767 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
768
769 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
770
771 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
772 on MinGW-64 when compiling for 32 bits.
773
774 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
775
776 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
777
778 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * NEWS: Add few missing entries. Correct existing ones.
781
782 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Don't abort() on unavailable coreboot tables if not running on coreboot.
785
786 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
787
788 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
789 on mingw.
790
791 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
792
793 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
794 mention of it from 2.02.
795
796 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
799
800 As these functions are used on pre-ARMv6 CPUs as well we don't want
801 to make assembler assume that architecture is higher than default one.
802
803 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
804
805 * NEWS: First draft of 2.02 entry.
806
807 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
808
809 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
810 * docs/grub.texi (Getting the source code): Likewise.
811
812 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
813
814 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
815 detection.
816
817 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * configure.ac: Set version to 2.02~beta2.
820
821 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
824
825 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
826
827 * util/grub-probe.c: Improve help message and simplify list handling.
828
829 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
830
831 Fix buffer overflow in grub_efi_print_device_path.
832
833 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
834
835 Show SATA device path.
836
837 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
838
839 Revert grub-file usage in grub-mkconfig.
840
841 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
842
843 Make newly-created files other than grub.cfg world-readable.
844
845 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
846
847 * util/grub.d/00_header.in: Improve compatibility with old config.
848
849 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
850
851 Make rijndael.c respect aliasing rules.
852
853 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
854
855 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
856
857 Make grub_util_device_is_mapped_stat available in grub-emu core.
858
859 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
860
861 Add -Qn to TARGET_CFLAGS if it's supported.
862 Fixes compilation on cygwin.
863
864 Reported by: Andrey Borzenkov.
865 Suggested by: Andrey Borzenkov.
866
867 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
868
869 Save TARGET_CC version in modinfo.sh.
870
871 Suggested by: Andrey Borzenkov.
872
873 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
874
875 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
876 follow the same algorithm to avoid method mismatch. Don't assume
877 DMRAID- UUID to mean full disk but instead check that mapping is linear.
878
879 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
880
881 Declare GRUB_EFI_VENDOR_APPLE_GUID.
882
883 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
884
885 Dump type and vendor specific data when printing device path.
886
887 2013-12-23 Colin Watson <cjwatson@debian.org>
888
889 Update some documentation to refer to Git rather than Bazaar.
890
891 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
892 than Bazaar.
893 * po/README: Likewise. Fix spelling mistake.
894
895 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
896
897 Don't distribute config.h.
898
899 * Makefile.am (platform_HEADERS): Move to ...
900 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
901 failure when building from a distributed tarball.
902
903 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
904
905 * configure.ac: Fix spelling.
906 * grub-core/commands/parttool.c: Fix grammar.
907 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
908 Embedding Partition".
909
910 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
911
912 ARM64 support for grub-mkrescue.
913
914 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
915
916 Install modinfo.sh to keep build information around.
917
918 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * grub-core/modinfo.sh.in: Add build config information.
921
922 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
923
924 ARM64 grub-file and grub-mkconfig support.
925
926 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
927
928 Remove leftover options defines.
929
930 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
933
934 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/loader/arm64/linux.c: Add missing bracket.
937
938 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
939
940 Add arm64-efi recognition to grub-file.
941
942 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
943
944 Fix ia64-efi recognition in grub-file.
945
946 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
947
948 Recognize raspberry pi kernel in grub-file.
949
950 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
951
952 Enable cache on ARM U-Boot port.
953
954 Without it the port is reidiculously slow.
955
956 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
957
958 Fix ARM cache maintainance.
959
960 More code was converted from ASM to C for easier handling.
961
962 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
963
964 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
965 algorithm on v5.
966
967 Suggested by: Leif Lindholm.
968
969 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
970
971 * util/grub-mkconfig.in: Fix Xen platform conditions.
972
973 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
974
975 * util/grub-mkrescue.c: Split single help message string in several
976 strings used in previous shell version.
977
978 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
979
980 Add arm64 Linux loader.
981
982 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
983
984 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
985
986 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
987
988 Add module loading and parsing boot time checkpoints.
989
990 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
993 platforms.
994
995 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
996
997 * util/grub-mkconfig.in: Skip non-executable files.
998
999 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 Workaround buggy timer in raspberry pie by using our own timer
1002 implementation.
1003
1004 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1007 Increase to 16 MiB to allow loading the whole memdisk.
1008
1009 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 Fix ARM Linux Loader on non-FDT platforms.
1012
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * configure.ac: Choose link format based on host_os on emu.
1016
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1020
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/kern/emu/main.c: Build fix for emu.
1024
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 Build fixes for argp.h with older gcc.
1028
1029 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1032 in strings.
1033
1034 Suggested by: David Prévot.
1035
1036 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1039
1040 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1041
1042 Enable -Wformat=2 if it's supported.
1043
1044 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1045
1046 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1047 -Wmissing-declarations if supported.
1048
1049 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1052 u32 as both HFS and HFS+ have 32-bit inodes.
1053
1054 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * include/grub/misc.h (grub_strtol): Fix overflow.
1057
1058 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1061 as return type in both conditionals.
1062
1063 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1066 to use uint8_t for color.
1067
1068 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1069
1070 * util/misc.c (grub_util_get_image_size): Check for overflow.
1071
1072 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1073
1074 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1075 for size.
1076
1077 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1080 for pointer difference.
1081
1082 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1083
1084 * util/import_gcry.py: Skip sample keys.
1085
1086 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1089
1090 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * configure.ac: Remove duplicate warning arguments.
1093
1094 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1095
1096 Add missing static qualifiers.
1097
1098 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 Add missing includes.
1101
1102 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 Inline printf templates when possible to enable format checking.
1105
1106 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * include/grub/crypto.h: Don't discard const attribute.
1109
1110 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1113 was intended.
1114
1115 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/lib/crypto.c: Don't discard const attribute.
1118
1119 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 * grub-core/lib/disk.c: Fix potential overflow.
1122
1123 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1124
1125 * grub-core/lib/arg.c: Don't discard const attribute.
1126
1127 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1128
1129 * grub-core/kern/dl.c: Don't discard const attribute.
1130
1131 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 * grub-core/kern/disk.c: Fix potential overflow.
1134
1135 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 * conf/Makefile.common: Don't include non-existing directory
1138 grub-core/lib/libgcrypt-grub/include.
1139
1140 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 Clarify several translatable messages.
1143
1144 2013-12-21 David Prévot <david@tilapin.org>
1145
1146 Correct some translatable strings.
1147
1148 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1149
1150 * util/grub-mkrescue.c: Rephrase mkrescue description.
1151
1152 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1153 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1154
1155 Clarify several translatable messages.
1156
1157 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1158
1159 Be more verbose about some configure failures.
1160
1161 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1162
1163 Fix various build problems on GNU/Hurd.
1164
1165 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1166 !defined (__GNU__).
1167 (xgetcwd): Likewise.
1168 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1169 [__GNU__]: Add prototype.
1170 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1171 long int using %ld rather than %d.
1172
1173 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 * util/grub-install.c: Inform user about install platform.
1176
1177 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * configure.ac: Set version to 2.02~beta1.
1180
1181 2013-12-18 Allen Pais <allen.pais@oracle.com>
1182 2013-12-18 Bob Picco <bob.picco@oracle.com>
1183
1184 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1185
1186 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 Make grub_zlib_decompress handle incomplete chunks.
1189
1190 Fixes squash4.
1191
1192 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1193
1194 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1195 on i386-multiboot.
1196
1197 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1198
1199 * grub-core/disk/usbms.c: Retry on unknown errors.
1200 Reuse the same tag on retries.
1201
1202 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1203
1204 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1205
1206 Avoid confusing them with already completed transfers.
1207
1208 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1209
1210 Remove xen VFB.
1211
1212 Due to XEN bug it prevents Linux boot. Remove it at least, until
1213 workaround is found.
1214
1215 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1216
1217 * po/exclude.pot: Add 2 missing excludes.
1218
1219 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 Add missing license section in macbless.mod and macho.mod.
1222
1223 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 Allow compilation without thumb-interwork as long as no thumb is
1226 involved or only thumb2 is used.
1227
1228 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1229
1230 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1231
1232 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 Add __attribute__ ((sysv_abi)) only if it's really needed.
1235
1236 Some compilers don't support it.
1237
1238 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1241
1242 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Remove -Wold-style-definition.
1245
1246 Not very useful and interaction of it with regexp depends on GCC
1247 version.
1248
1249 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1250
1251 Make grub_util_get_windows_path_real static.
1252
1253 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1254
1255 * grub-core/commands/fileXX.c: Silence cast-align.
1256 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1257
1258 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1261 rather than LL suffix.
1262
1263 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1266
1267 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * grub-core/loader/arm/linux.c: Use common initrd functions.
1270
1271 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 Decrease number of strings to translate.
1274
1275 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1276
1277 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1278
1279 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1280
1281 Mark strings for translation and add remaining ones to exclude list.
1282
1283 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * util/grub-file.c (main): Fix sizeof usage.
1286
1287 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 Silence spurious warning.
1290
1291 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 Remove check_nt_hiberfil as it's been superseeded by file command.
1294
1295 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1296
1297 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1298
1299 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Implement syslinux parser.
1302
1303 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1306
1307 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 Support cpuid --pae.
1310
1311 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 Use AT keyboard on Yeeloong 3A.
1314
1315 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 Add Yeeloong 3A reboot and halt.
1318
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 Add Radeon Yeeloong 3A support.
1322
1323 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 Add bonito 3A support.
1326
1327 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1330
1331 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1334
1335 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 * grub-core/loader/macho.c: Fix compilation on non-i386.
1338
1339 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 Add missing format_arg attribute to check that printf with translated
1342 messages has proper arguments.
1343
1344 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Use grub_xasprintf to format translated error messages containing
1347 64-bit quantity.
1348
1349 2013-12-17 Jon McCune <jonmccune@google.com>
1350
1351 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1352
1353 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1354
1355 Unify message for unsupported relocation.
1356
1357 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 Mark miscompile error for translation.
1360
1361 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 Use %I64 and not %ll when using OS printf if compiling for windows.
1364
1365 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 Update Mac code to match new register_efi prototype.
1368
1369 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 Implement better integration with Mac firmware.
1372
1373 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1376 load_addr.
1377
1378 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 Include serial module in default_payload.elf.
1381
1382 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1383
1384 Add explicit thumb interwork bx in asm files.
1385
1386 Shouldn't matter for armv >= 5 but let's be safe.
1387
1388 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 Implement Truecrypt ISO loader.
1391
1392 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1395
1396 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 Implement grub_file tool and use it to implement generating of config
1399 in separate root.
1400
1401 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 Change to v1 xen grants.
1404
1405 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1408
1409 GRUB relied on %ebx being preserved across hypercall which isn't true.
1410
1411 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1412
1413 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1414
1415 GRUB relied on %rdi being preserved across hypercall which isn't true.
1416
1417 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 Implement XEN VFB support.
1420
1421 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 Remove grub_bios_interrupt on coreboot.
1424
1425 It's not used currently and cannot be used safely currently.
1426
1427 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1428
1429 Update exclude.pot and mark few strings for translation.
1430
1431 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1432
1433 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1434
1435 Reported by: Jon McCune
1436
1437 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1438
1439 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1440 Add verbose information which firmware directories were tried.
1441
1442 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1443
1444 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1445 function to optionally redirect all three standard descriptors.
1446 Redefine grub_util_exec, grub_util_exec_redirect and
1447 grub_util_exec_redirect_null to use it.
1448 * include/grub/emu/exec.h: Define it.
1449 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1450 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1451 Use grub_util_exec_redirect_all to redirect error to NULL.
1452
1453 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/tests/sleep_test.c: Silence spurious warning.
1456
1457 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1460 linker trying to "fixup" the code.
1461
1462 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1465
1466 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 Add support for converting PE+ to Elf64.
1469
1470 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1473
1474 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 Remove practice of assigning random const pointers to device id.
1477
1478 This is not required as cache code already checks driver id as well.
1479
1480 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1483 with mingw.
1484
1485 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1486
1487 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1488 mingw or cygwin as API already matches.
1489
1490 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1493
1494 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1497 not on long.
1498
1499 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 Handle X86_64_PC64 relocation.
1502
1503 Those are generated by some cygwin compilers.
1504
1505 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1506
1507 Determine the need for mingw-related stubs at compile time rather than
1508 using not very significant $target_os.
1509
1510 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1511
1512 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1513 may not work with ELF.
1514
1515 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1516
1517 Use unix functions for temporary files and special files on cygwin.
1518
1519 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 Define functions explicitly rather than using --defsym in tests
1522 whenever possible. Respect locality in remaining cases.
1523
1524 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1527
1528 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1529
1530 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1531 unlikely errors when getting EFI variables and make exhaustive search
1532 for all BootNNNN variables to find matching one.
1533
1534 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1535
1536 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1537
1538 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 New functional test for sleep function.
1541
1542 This test allows to check sleep without qemu. Keep qemu version as
1543 well as functional test won't notice if all clocks are going too fast
1544 or too slow.
1545
1546 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 Add explicit sysv_abi on amd64 asm routines.
1549
1550 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1553 num_table_entries.
1554
1555 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1556
1557 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1558 functions.
1559
1560 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1563 appropriate.
1564
1565 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1568
1569 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1572 appropriate.
1573
1574 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1577
1578 In case of quick removal of loopback and adding another one it may
1579 get same ID, confusing the cache system.
1580
1581 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1584 appropriate.
1585
1586 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1589 than converting to long.
1590
1591 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1594
1595 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1598 than almost useless pointer.
1599
1600 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 Add gcc_struct to all packed structures when compiling with mingw.
1603
1604 Just "packed" doesn't always pack the way we expect.
1605
1606 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1609
1610 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1611
1612 * util/grub-pe2elf.c: Fix handling of .bss.
1613
1614 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 Implement windows flavour of EFI install routines.
1617
1618 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1621
1622 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 Change grub_install_register_efi interface to pass GRUB device.
1625
1626 This allows grub_install_register_efi to request partition info
1627 directly.
1628
1629 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1632
1633 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 Do not use TCHAR string functions as they are not available on cygwin.
1636
1637 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 Workaround windows bug when querying EFI system partition parameters.
1640
1641 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1642
1643 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1644 by using bitfields.
1645
1646 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1649
1650 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 Make i386-* other than i386-pc compileable under cygwin.
1653
1654 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Fix definition of grub_efi_hard_drive_device_path. Take care that
1657 existing code would work even if by some reason bogus definition is
1658 used by EFI implementations.
1659
1660 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1663
1664 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1667 invocation.
1668
1669 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 * util/config.c: Remove trailing newline from distributor in simple
1672 parsing.
1673
1674 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * include/grub/efi/api.h: Rename protocol and interface to avoid
1677 conflict.
1678
1679 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * .gitignore: add .exe variants. add missing files. remove few outdated
1682 entries.
1683
1684 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/osdep/exec.c: Use unix version on cygwin.
1687
1688 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 Implement multiboot2 EFI BS specification.
1691
1692 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1695 Crash happened only in some cases like a string starting at the
1696 half of the screen of same length.
1697
1698 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1701 with EFI counterpart.
1702
1703 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 Propagate the EFI commits to x86-efi specific parts.
1706
1707 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1708
1709 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1710
1711 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 Introduce grub_efi_packed_guid and use it where alignment is not
1714 guaranteed.
1715
1716 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1717
1718 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1719 unaligned u16 rather than u8[2].
1720
1721 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1724 for relocation range.
1725
1726 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1729 non-function pcrel21b relocation. It happens with .text.unlikely
1730 section.
1731
1732 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1733
1734 * make MAX_USABLE_ADDRESS platform-specific
1735 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1736
1737 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1738
1739 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1740
1741 2013-12-09 Jon McCune <jonmccune@google.com>
1742
1743 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1744 in grub-install and grub-bios-setup for x86 BIOS targets.
1745
1746 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1747
1748 Add missing compile and link options for sparc64-emu.
1749
1750 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 Implement sparc64 trampolines (needed for sparc64-emu).
1753
1754 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1757 range of R_SPARC_HI22.
1758 Implement R_SPARC_LM22.
1759
1760 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1763 Do not explicitly check for symbol table as it's already checked in
1764 platform-independent layer.
1765
1766 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1769 on ia64 as __clear_cache is a dummy on ia64.
1770
1771 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1772
1773 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1774 Do not explicitly check for symbol table as it's already checked in
1775 platform-independent layer.
1776
1777 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1778
1779 * util/grub-mkconfig.in: Add missing newline to output.
1780
1781 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1784 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1785
1786 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1787
1788 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1789 compilation with GCC <= 4.2.
1790 * grub-core/kern/emu/argp_common.c: Likewise.
1791
1792 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1793
1794 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1795 right platform rather than leaking to sparc64-emu.
1796
1797 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1800 But ensure that the variables in question are indeed unsigned.
1801
1802 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1805
1806 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1807
1808 Remove grub_memalign on emu.
1809
1810 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1813 truncate incomplete lines but instead flushes them.
1814
1815 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1818 and implement windows variant.
1819
1820 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 Fix mips-emu compilation.
1823
1824 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 * configure.ac: Check for freetype library usability.
1827
1828 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1829
1830 Make arm-emu work.
1831
1832 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1835
1836 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1837
1838 * docs/grub.texi (Environment): Update color_normal and color_highlight
1839 defaults (light-gray instead of white).
1840
1841 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1842
1843 * grub-core/normal/main.c (INIT): Set default color to light-gray
1844 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1845 and apparently BIOS defaults.
1846
1847 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 Transform -C option to grub-mkstandalone to --core-compress available
1850 in all grub-install flavours.
1851
1852 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 Merge GRUBFS and GRUB_FS variables.
1855
1856 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1857
1858 Revert commit 69ca97c820, it caused failures when using OS device name
1859 in grub-install. Instead just strip off parenthesis in grub-install
1860 if (hdX) was passed.
1861
1862 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1863
1864 * util/grub-install.c (push_partmap_module): Add helper to convert
1865 partmap names to module names and use it in probe_mods(). Fixes
1866 failure to find partmap modules in diskfilter case.
1867
1868 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1869
1870 * configure.ac: Make unifont mandatory on coreboot.
1871
1872 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1873
1874 * configure.ac: Skip unifont 6.3 pcf and bdf.
1875
1876 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 * Makefile.am: Remove partial font files if generation failed.
1879
1880 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1881
1882 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1883 strings.
1884 * include/grub/util/misc.h: Define it ...
1885 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1886
1887 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1888
1889 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1890 ${grub_probe}.
1891
1892 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 Don't add -mlong-calls when compiling with clang.
1895
1896 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * configure.ac: Fix a typo.
1899
1900 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 Revamp relocation handling.
1903
1904 Move more code to common dl.c. Add missing veneers for arm and arm64.
1905 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1906
1907 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1910
1911 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1912
1913 * INSTALL: Raise minimum python version to 2.6.
1914 * gentpl.py: Use python3-style print function.
1915
1916 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * util/grub-install.c: Mention Boot* variable.
1919
1920 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1921
1922 * grub-core/osdep/linux/hostdisk.c
1923 (grub_util_find_partition_start_os): Initialise start to avoid
1924 spurious compiler warning.
1925
1926 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1927
1928 On Linux, read partition start offsets from sysfs if possible, to
1929 cope with block device drivers that don't implement HDIO_GETGEO.
1930 Fixes Ubuntu bug #1237519.
1931
1932 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1933 function.
1934 (sysfs_partition_start): Likewise.
1935 (grub_util_find_partition_start_os): Try sysfs_partition_start
1936 before HDIO_GETGEO.
1937
1938 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1939
1940 * grub-core/kern/fdt.c: Update struct size when adding node.
1941
1942 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 Handle unaligned .bss on sparc64.
1945
1946 Current code improperly assumes that both __bss_start and _end are
1947 aligned to 8-bytes. Eliminating this assumption and explicitly align
1948 modules.
1949
1950 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1953 so it doesn't land in the middle of loaded image.
1954
1955 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1956
1957 * configure.ac: Move all warning options that may be absent in
1958 gcc >= 3.1 to optional.
1959
1960 Note: while this allows to compile with older GCC, official requirements
1961 remain the same and no support for older GCC.
1962
1963 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1964
1965 Copying the themes directory in grub-shell isn't
1966 parallel-test-friendly and breaks on the second test when the source
1967 directory is read-only (as in "make distcheck"). Instead, add a
1968 hidden --themes-directory option to grub-mkrescue et al, and use it
1969 in grub-shell.
1970
1971 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1974 as it's no longer necessarry.
1975
1976 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * configure.ac: Allow compilation with older GCC for ARM.
1979
1980 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1983 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1984 ppc.
1985
1986 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1989
1990 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 Pass font config to config.h and not by TARGET_CFLAGS as adding
1993 arguments doesn't work if TARGET_CFLAGS is specified on command
1994 line.
1995
1996 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1997
1998 * configure.ac: Add -Wvla if compiler supports it.
1999
2000 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2003 Remove variable length arrays.
2004 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2005
2006 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2009
2010 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * include/grub/types.h: Declare all byteswaps as inline functions
2013 except compile-time ones.
2014
2015 Solves variable shadowing in constructions like
2016 cpu_to_le (le_to_cpu(x) + 1).
2017
2018 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 * grub-core/kern/efi/efi.c: Remove variable length arrays.
2021
2022 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2025 minutes.
2026
2027 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
2028
2029 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2030 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2031
2032 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2033
2034 * grub-core/Makefile.core.def (setjmp): Distribute
2035 lib/arm64/setjmp.S.
2036
2037 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2038
2039 Add a new timeout_style environment variable and a corresponding
2040 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2041 controls hidden-timeout handling more simply than the previous
2042 arrangements, and pressing any hotkeys associated with menu entries
2043 during the hidden timeout will now boot the corresponding menu entry
2044 immediately.
2045
2046 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2047 generates a warning, and if it shows the menu it will do so as if
2048 the second timeout were not present. Other combinations are
2049 translated into reasonable equivalents.
2050
2051 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2052
2053 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2054
2055 * util/config.c: Add missing pointer adjustment.
2056 Reported by: qwertial
2057
2058 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2059
2060 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2061 directly, not via `cpu' link, to fix libgrub.pp generation.
2062
2063 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2064
2065 New port arm64-efi.
2066
2067 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2068
2069 * docs/grub.texi (sleep): Document exit codes.
2070
2071 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2072
2073 Ensure that -mno-unaligned-access or some equivalent option is used.
2074
2075 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2078 -march=armv3.
2079
2080 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2083
2084 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2085
2086 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2087 builds, since we don't have an EPS version of font_char_metrics.png.
2088 Add leading dot to image extension per the Texinfo documentation.
2089
2090 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2091
2092 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2093 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2094 * util/grub-gen-widthspec.c: Likewise.
2095 * util/grub-mkfont.c: Likewise.
2096
2097 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2098
2099 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2100 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2101 failed to install on (hdX).
2102 * util/grub-setup.c (get_device_name): Remove, not needed after
2103 above change.
2104
2105 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2108
2109 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 * util/grub-fstest.c: Remove variable length arrays.
2112
2113 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2116
2117 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2120 computing crc32 rather than handling with md fundtions directly.
2121
2122 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2125 checking fwstart.img rather than md fundtions directly.
2126
2127 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 * util/grub-mkrescue.c (main): Check that fread succeeded.
2130
2131 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 * conf/Makefile.common: Remove -mexplicit-relocs and
2134 -DUSE_ASCII_FALLBACK on yeeloong.
2135
2136 -DUSE_ASCII_FALLBACK is already added by font snippets.
2137 -mexplicit-relocs isn't needed is compiler/assemblera are
2138 configured properly.
2139 If they're not we shouldn't attempt to fix it by ourselves.
2140 Binary compare between before and after shows no difference.
2141
2142 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2145 sources in dependencies directly.
2146
2147 This was the only instance of "library" in core config. A bug was
2148 reported that -fno-stack-protector wasn't passed to it. Instead of
2149 figuring out why it failed just remove this construction used
2150 needlessly.
2151
2152 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2153
2154 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2155 fgets succeeded.
2156
2157 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2158
2159 * docs/grub.texi (ls): Fix command description in case of a device name
2160 passed as argument.
2161
2162 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 Eliminate variable length arrays in grub_vsnprintf_real.
2165
2166 A bit tricky because this function has to continue to work without
2167 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2168 but make all stack references use 32-bit offset rather than 8-bit one.
2169 So split va_args preparsing to separate function and put the prealloc
2170 into the caller.
2171
2172 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2175 Fixes build for windows.
2176
2177 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * gentpl.py: Don't generate platform-dependent conditionals for
2180 platform-independent targets.
2181
2182 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2183
2184 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2185 references to mdadm from otherwise generic code.
2186 (grub_util_exec_pipe): Likewise.
2187 (grub_util_exec_pipe_stderr): Likewise.
2188 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2189 This function calls vgs, not mdadm; adjust variable names
2190 accordingly.
2191
2192 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2193
2194 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2195 of Autogen. The Autogen definitions files remain intact as they
2196 offer a useful abstraction.
2197
2198 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2199
2200 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2201 into no-ops, and use it in programs that copy files but do not need
2202 to take special care to sync writes (grub-mknetdir, grub-rescue,
2203 grub-mkstandalone).
2204
2205 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2206
2207 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2208 than hardcoding /usr/local/bin/xorriso.
2209
2210 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 Add PCI command activation to all PCI drivers as required for coreboot
2213 and maybe some other firmwares.
2214
2215 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2216
2217 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2218 and non-Apple variants of efiemu compile.
2219
2220 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2221
2222 * configure.ac: Add explicit check for linking format of
2223 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2224 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2225 hardcoding linking format.
2226
2227 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2230 and not pkgdatadir.
2231
2232 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2233 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 Add a --locale-directory option to grub-install and related tools.
2236
2237 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2238 --locale-directory option.
2239 (enum grub_install_options): Add
2240 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2241 * util/grub-install-common.c (grub_install_help_filter): Handle
2242 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2243 (grub_install_parse): Likewise.
2244 (get_localedir): New function to check for a user-provided option
2245 before trying grub_util_get_localedir.
2246 (copy_locales): Use get_localedir rather than
2247 grub_util_get_localedir. Handle differing locale directory layouts.
2248 (grub_install_copy_files): Likewise.
2249
2250 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2253 Don't rely on PATH_MAX.
2254
2255 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * grub-core/genmoddep.awk: Use more portable && rather than and.
2258
2259 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2262 an object after data. While it doesn't seem right solution, it
2263 works well enough and OSX isn't main compilation platform.
2264
2265 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2268 While it doesn't seem right solution, it works well enough and
2269 OSX isn't main compilation platform.
2270
2271 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * configure.ac: Add -static to LDFLAGS when using apple linker to
2274 prevent it from pulling in dynamic linker.
2275
2276 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 Apple assembly doesn't handle symbol arithmetic well. So define an
2279 offset symbol in boot.S and use it.
2280
2281 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 Apple assembly doesn't handle symbol arithmetic well. So instead
2284 of getting addres of kernel_sector + 4 define kernel_sector_high.
2285 It also makes code more readable.
2286
2287 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 With Apple assembly in .macro environvemnt you have to use $$ instead
2290 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2291 to $$x on Apple and to $x on everything else.
2292
2293 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2296 OBJCONV.
2297
2298 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2301 and non-Apple. This instruction is shorter and faster,
2302 so no reason not to use it on both.
2303
2304 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2307 .text when compiling for Apple.
2308
2309 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2312
2313 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2316 %dx restore the probe worked on non-existant drive. Reorganize the
2317 code a little bit to free 2 bytes necessary for push/pop.
2318
2319 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2322 Add missing cast to silence warning.
2323
2324 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2325
2326 * util/grub-install.c (update_nvram): Support --no-nvram flag
2327 for EFI targets.
2328
2329 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2332
2333 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 * util/garbage-gen.c: Add missing include of sys/time.h.
2336
2337 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 Don't add -mflush-func if it's not supported by compiler.
2340
2341 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 Move common BIOS/coreboot memory map declarations to
2344 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2345
2346 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2347
2348 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2349
2350 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 * INSTALL: Document why older clang versions aren't appropriate.
2353
2354 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2355
2356 * INSTALL: Document about clang for mips.
2357
2358 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2359
2360 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2361 clang.
2362
2363 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 Add *-xen to the list of grub-install-common platforms.
2366
2367 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2370 3 last commits.
2371
2372 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2375
2376 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2377
2378 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2379 with -mcmodel=large.
2380
2381 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2384 range-checking for 32-bit quantities.
2385
2386 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2387
2388 * configure.ac: Compile with -fPIC when compiling with clang on
2389 mips.
2390
2391 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2394 when compiling with clang.
2395
2396 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 clang emits calls to abort () under some unknown conditions.
2399 Export abort () when compiling with clang.
2400
2401 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * docs/grub-dev.texi: Document stack and heap sizes.
2404
2405 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2406
2407 * include/grub/i386/pc/memory.h: Decrease
2408 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2409 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2410 The binary doesn't change (checked). It's more to better reflect actual
2411 usage.
2412
2413 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2414
2415 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2416 at compile time that enough of scratch size is available.
2417
2418 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2421 Previously we misaligned stack by 8 in startup.S and compensated
2422 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2423 right behaviour is to align stack in startup.S and keep it aligned
2424 in callwrap.S. startup.S part was committed few commits before. This
2425 takes care of callwrap.S.
2426 Reported by: Gary Lin.
2427
2428 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2431 .data and .bss. May happen if compiler and assembly use different
2432 alignment.
2433
2434 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2437 way.
2438
2439 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 Add support for a new magic symbol _gp_disp on mips to handle PIC
2442 binaries.
2443
2444 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2447
2448 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2451 when rest of GRUB is compiled for hisher stepping. Instead use
2452 .set mips3/.set mips1 around cache and sync opcodes.
2453
2454 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2457 do essentially the same thing, do it in similar way.
2458
2459 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2460
2461 * util/grub-mkrescue.c (main): If a source directory is not
2462 specified, read platform-specific files from subdirectories of
2463 pkglibdir, not pkgdatadir.
2464
2465 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2466
2467 * grub-core/normal/progress.c: Remove unused file.
2468
2469 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2472 array.
2473
2474 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2477 than grub.cfg.
2478
2479 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2480
2481 * coreboot.cfg: Add missing file.
2482
2483 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2484
2485 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2486
2487 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2488
2489 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2490 selectively skipping systems.
2491
2492 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2493
2494 * Makefile.util.def (grub-mkimage): Add
2495 grub-core/osdep/aros/config.c to extra_dist.
2496 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2497 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2498 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2499 grub-core/gnulib-no-gets.diff.
2500
2501 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 Add automated filesystem checking based on scripts I've used now for
2504 quite some time locally. Most of the test require root so they are
2505 skipped when run without necessarry privelegies.
2506
2507 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2508
2509 * util/grub-install.c (main): Adjust info messages to match
2510 installed paths of grub-bios-setup and grub-sparc64-setup.
2511
2512 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2513
2514 * util/grub-install-common.c (copy_locales): Consistently use
2515 grub_util_get_localedir () rather than LOCALEDIR.
2516 (grub_install_copy_files): Likewise.
2517
2518 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2519
2520 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2521 16-byte boundary, as required by the x86-64 ABI, before calling
2522 grub_main. In some cases, GCC emits code that assumes this
2523 alignment, which crashes if not aligned. The EFI firmware is also
2524 entitled to assume that stack alignment without checking.
2525
2526 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2527
2528 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2529 4k page boundaries as expected by firmware rather than 1k
2530 boundaries.
2531 (grub_mmap_malign_and_register): Likewise.
2532
2533 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2534
2535 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2536 fragmentation 512M is enough.
2537
2538 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2539
2540 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2541 pointer to 32K. This is the size of cache element which is the most
2542 common allocation >1K. This way the pointer is always around blocks
2543 of 32K and so we keep performance while decreasing fragmentation.
2544
2545 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2548 current memory when allocating large chunks. This significantly
2549 decreases memory fragmentation.
2550
2551 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2552
2553 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2554 but for symmetry).
2555 * tests/lzocompress_test.in: Skip if lzop is not installed.
2556 * tests/xzcompress_test.in: Skip if xz is not installed.
2557
2558 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2559
2560 * util/grub-mkrescue.c (main): Fix typo.
2561
2562 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2565 clock frequency to 200 MHz,
2566
2567 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2570
2571 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2574 Load config file from (cbfsdisk)/etc/grub.cfg.
2575
2576 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * util/grub-install-common.c (grub_install_copy_files): Fix module
2579 destination directory.
2580
2581 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2582
2583 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2584 files have not been built.
2585
2586 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2587
2588 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2589 Handle errors from mkstemp.
2590 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2591
2592 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2595 on primary master on pseries.
2596
2597 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2600 already loaded. This saves memory needed for tests,
2601
2602 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2605 work again.
2606
2607 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2610 work again.
2611
2612 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2615 master since with some combinations of qemu and firmware only primary
2616 IDE channel is available.
2617
2618 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2621 low-memory platforms where we don't have enough memory for them.
2622 * grub-core/tests/videotest_checksum.c: Likewise.
2623
2624 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2627 already loaded. This saves memory needed for tests,
2628
2629 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 Fix handling of install lists.
2632
2633 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2636
2637 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2638
2639 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2640 the devices before accessing them.
2641
2642 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2645 as file argument.
2646
2647 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2650
2651 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2654 (grub_file_close): Free file->name.
2655
2656 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2659 (grub_load_public_key): Likewise.
2660 (grub_verify_signature_real): Likewise.
2661 (grub_cmd_verify_signature): Likewise.
2662
2663 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2666 memory leak.
2667
2668 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2671 (grub_longjmp): Restore r31.
2672 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2673
2674 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2677 modules to be in line with make_image_abs.
2678
2679 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2682
2683 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2684
2685 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2686
2687 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2688
2689 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2692 to leave some memory to firmware.
2693
2694 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2697 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2698 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2699 Load gfxmenu.
2700
2701 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2702
2703 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2704 now needs full arguments.
2705
2706 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * util/grub-mkrescue.c (main): Add trailing \n in
2709 .disk_label.contentDetails to be in line with previous shell script.
2710
2711 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2714
2715 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * util/grub-install-common.c (grub_install_parse): Recognize
2718 --compress=none like shell script did.
2719
2720 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * include/grub/misc.h: Replace check for __sparc64__ with one for
2723 __sparc__ as __sparc64__ isn't actually defined.
2724
2725 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2728 counterpart of fixing the naming of escc ports.
2729
2730 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * util/grub-install-common.c (platforms): Fix the order of entries and
2733 remove useless field val.
2734
2735 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * util/grub-install.c: Add new option --no-bootsector to skip
2738 installing of bootsector. Accept --grub-setup=/bin/true as
2739 backwards-compatible synonym.
2740
2741 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2742
2743 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2744 order of qsort arguments (number of elements vs. element size).
2745
2746 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2749 the function of these files exceeds what can be sanely handled in shell
2750 in posix-comaptible way. Also writing it in C extends the functionality
2751 to non-UNIX-like OS and minimal environments.
2752
2753 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2754
2755 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2756 compiling to thumb2.
2757 * grub-core/kern/arm/cache_armv7.S: Likewise.
2758 * grub-core/lib/arm/setjmp.S: Likewise.
2759
2760 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2761
2762 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2763 in grub_uboot_syscall
2764
2765 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 Decrease stack usage in lexer.
2768
2769 We have only 92K of stack and using over 4K per frame is wasteful
2770
2771 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2772 as macros so that compiler would remove useless structure on stack.
2773 Better solution would be to fix flex not to put this structure on
2774 the stack but flex is external program.
2775
2776 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 Decrease stack usage in signature verification.
2779
2780 We have only 92K of stack and using over 4K per frame is wasteful
2781
2782 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2783 rather than stack.
2784 (grub_verify_signature_real): Likewise.
2785
2786 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 Decrease stack usage in mdraid 0.9x.
2789
2790 We have only 92K of stack and using over 4K per frame is wasteful
2791
2792 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2793 rather than stack.
2794
2795 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 Decrease stack usage in BtrFS.
2798
2799 We have only 92K of stack and using over 4K per frame is wasteful
2800
2801 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2802 rather than stack.
2803
2804 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2805
2806 Decrease stack usage in JFS.
2807
2808 We have only 92K of stack and using over 4K per frame is wasteful
2809
2810 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2811 stack. Note: this function is recursive.
2812 (grub_jfs_read_inode): Read only part we care about.
2813
2814 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2815
2816 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2817 handling
2818
2819 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2820
2821 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2822
2823 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2824
2825 * docs/grub.texi (Environment): Document cmdpath.
2826
2827 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2828
2829 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2830 Remove "unused" attribute from arguments, they are used.
2831
2832 2013-11-15 Colin Watson <cjwatson@debian.org>
2833
2834 * .gitignore: Only ignore grub-mk* at the top level.
2835
2836 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2837
2838 * util/grub-reboot.in (usage): Fix a typo.
2839
2840 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 Replace libgcc version of ctz with our own.
2843
2844 On upcoming arm64 port libgcc ctz* are not usable in standalone
2845 environment. Since we need ctz* for this case and implementation is
2846 in C we may as well use it on all concerned platforms.
2847
2848 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * configure.ac: Probe for linking format rather than guessing it based
2851 on target_os.
2852
2853 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2856 "1" prior to handoff.
2857
2858 Reported by: M A Young.
2859
2860 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2863 \0 to all files.
2864
2865 Reported by: M A Young.
2866
2867 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2870 compilation on NetBSD.
2871
2872 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * acinclude.m4: Don't add -P on initial nm test.
2875
2876 Note: even though this patch postdates Andrey's it bears 14 Nov as
2877 date due to timezone difference.
2878
2879 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2880
2881 * grub-core/Makefile.core.def (signature_test): Add missing
2882 tests/signatures.h.
2883
2884 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2885
2886 * util/grub-install_header: Set localedir here, since this file is
2887 where it's used.
2888 * util/grub-install.in: Remove setting of localedir.
2889 * util/grub-mkrescue.in: Likewise.
2890
2891 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2894
2895 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2896
2897 * configure.ac: Move nm checks to the end.
2898 Call grub_PROG_NM_WORKS.
2899 * acinclude.m4: New check grub_PROG_NM_WORKS.
2900 Use $TARGET_CFLAGS -c when compiling test binary.
2901
2902 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2903
2904 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2905 unused variables.
2906
2907 2013-11-14 Matthew Garrett <mjg@redhat.com>
2908
2909 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2910 cmdpath to firmware directory.
2911
2912 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2915 at the start of second iteration.
2916
2917 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2920
2921 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * Makefile.am (default_payload.elf): New target for easier coreboot
2924 build.
2925
2926 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2929 clang (not necessarry with -no-integrated-as).
2930 * include/grub/symbol.h [__arm__]: Likewise.
2931
2932 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * configure.ac: Use -no-integrated-as on arm with clang.
2935 * INSTALL: Mention ARM compilation with clang.
2936
2937 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2940 -mthumb-interwork.
2941
2942 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2943
2944 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2945 code for indirect block handling.
2946
2947 Saves 185 bytes on compressed image.
2948
2949 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2950
2951 Fix make clean.
2952
2953 * Makefile.am: Remove build-grub-* in make clean.
2954
2955 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2956
2957 New files to gitignore.
2958
2959 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2960 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2961
2962 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2963
2964 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2965
2966 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2967
2968 * .gitignore: fix rules for .dep* and add *.a post git migration
2969
2970 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2971
2972 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2973 to match INSTALL.
2974
2975 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2976
2977 * grub-core/kern/misc.c: Don't redirect divisions in the
2978 GRUB_UTIL case.
2979 * include/grub/misc.h: Likewise.
2980
2981 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2982
2983 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2984 systems that require checking the return value of write.
2985
2986 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2987
2988 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2989 efibootmgr quiet when --debug is not used, rather than when it is.
2990
2991 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2992
2993 * gentpl.py (define_macro_for_platform_dependencies): Remove
2994 first (and thus unused) of two definitions for this function.
2995 (platform_dependencies): Likewise.
2996
2997 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2998
2999 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3000 functions, we only need to check this for the target, not the host.
3001 * configure.ac (grub_apple_cc): Likewise.
3002
3003 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3004
3005 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3006 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3007 asm to stay in arm even if surrounding is thumb.
3008
3009 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3012 helper functions are needed for thumb.
3013
3014 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3015
3016 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3017 level / 3 division explicitly unsigned. Saves few bytes.
3018
3019 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3020
3021 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3022
3023 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3026 division.
3027
3028 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3029
3030 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3031 grub_uboot_boot_data to asm part.
3032
3033 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3036 literal load.
3037 (grub_uboot_syscall): Save/restore r9 and align stack.
3038
3039 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3042
3043 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3046 occurencies with END.
3047
3048 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3049
3050 * util/grub-editenv.c (help_filter, argp): Document how to delete
3051 the whole environment block.
3052 Reported by Dan Jacobson. Fixes Debian bug #726265.
3053
3054 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3055
3056 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3057 sectioning.
3058
3059 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3060
3061 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3062 increment/decrement.
3063
3064 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3065
3066 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3067 compiling with clang.
3068
3069 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3072 ".".
3073
3074 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 Redirect all divisions to grub_divmod64.
3077
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3081
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 Add missing includes of loader.h.
3085
3086 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * configure.ac: Allow disabling themes.
3089
3090 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3091
3092 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3093
3094 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3097 until it becomes operational.
3098
3099 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/Makefile.core.def (legacy_password_test): Disable
3102 on platforms where no legacycfg is compiled.
3103 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3104 load legacy_password_test.
3105
3106 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3107
3108 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3109
3110 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3113
3114 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3117 strict-aliasing warning.
3118 (fsync): Silence cast warning.
3119
3120 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/commands/verify.c: Remove variable length arrays.
3123 Load gcry_dsa/gcry_rsa automatically.
3124
3125 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/tests/signature_test.c: New test.
3128
3129 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3132 API.
3133
3134 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3135
3136 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3137 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3138
3139 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3140
3141 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3142
3143 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 * grub-core/fs/proc.c: Allow \0 in proc files.
3146
3147 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3150
3151 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3154
3155 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/fs/ext2.c: Remove variable length arrays.
3158
3159 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3162 length arrays.
3163
3164 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3167 * grub-core/disk/cryptodisk.c: Likewise.
3168 * grub-core/disk/geli.c: Likewise.
3169 * grub-core/disk/luks.c: Likewise.
3170
3171 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * grub-core/tests/legacy_password_test.c: New test.
3174 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3175
3176 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3179
3180 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3181
3182 * grub-core/tests/pbkdf2_test.c: New test.
3183
3184 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3187
3188 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/io/lzopio.c: Remove variable length arrays.
3191
3192 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 * include/grub/crypto.h: Add maximums on hash size and cipher block
3195 size.
3196
3197 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3200
3201 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/tests/xnu_uuid_test.c: New test.
3204
3205 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3206
3207 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3208 covers it).
3209
3210 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/commands/hashsum.c: Remove variable length arrays.
3213
3214 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3217 condition.
3218 * tests/grub_func_test.in: Increase memory allocation.
3219
3220 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3223 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3224 sys/mount.h.
3225
3226 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3227
3228 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3229 (grub_util_get_fd_size_os): ...this.
3230 (grub_hostdisk_flush_initial_buffer): New empty function.
3231
3232 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3233
3234 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3235 without --defined-only.
3236
3237 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3240 rip-relative addressing in prologue.
3241
3242 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3245 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3246
3247 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3250 Add missing semicolon.
3251
3252 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3255
3256 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * configure.ac: Check for lzma.h for enabling liblzma and allow
3259 manual disabling.
3260
3261 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 Add missing includes of loader.h.
3264
3265 2013-11-11 Fam Zheng <famcool@gmail.com>
3266
3267 * util/grub.d/30_os-prober.in: Add minix entry.
3268
3269 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3272 right buffer for temporary load.
3273
3274 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3275
3276 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3277
3278 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3281 payload.
3282
3283 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3286 not Types.h.
3287 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3288 environment.
3289 (LzmaDec_InitDicAndState): Make static.
3290
3291 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3294
3295 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3298
3299 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3300
3301 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * docs/grub-dev.texi: Replace bzr references with git ones.
3304
3305 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3306
3307 * docs/grub.texi (Simple configuration): Remove reference to
3308 grub-reboot from saved default entry description - grub-default
3309 does not use it anymore.
3310
3311 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3312
3313 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3314 compiled with.
3315
3316 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3317
3318 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3319
3320 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3321
3322 Fix grub_machine_fini bitrot.
3323
3324 Reported by: Glenn Washburn.
3325
3326 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3327
3328 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3329
3330 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3333 -DELF.
3334 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3335 instead of ELF*.
3336
3337 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3340 Add -march=core2 when testing compile of efiemu64.
3341
3342 Thanks Andrey Borzenkov for spotting this.
3343
3344 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3347 XEN PV environment and load kernels.
3348
3349 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3352 * grub-core/loader/multiboot_mbi2.c: Likewise.
3353
3354 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3357 handling.
3358
3359 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3362
3363 Tested by: Denis 'GNUtoo' Carikli.
3364
3365 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3368
3369 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3372 Use to get rounded angle rather than truncated.
3373
3374 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/term/serial.c: Add option for enabling/disabling
3377 RTS/CTS flow control.
3378
3379 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3382 divisions.
3383
3384 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3387 Use grub_fatal rather than divide by zero.
3388 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3389
3390 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3393 truncate.
3394 (grub_fixed_fsf_divide): Likewise.
3395
3396 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3399 division by-zero and senseless negative divisions.
3400
3401 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3404 division by-zero and senseless negative divisions.
3405 (circprog_set_property): Don't accept negative num_ticks.
3406
3407 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3410 division by-zero and senseless negative divisions.
3411
3412 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * configure.ac: Use elf_*_fbsd on kfreebsd.
3415
3416 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * grub-core/tests/div_test.c: New test.
3419
3420 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3421
3422 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3423 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3424 * grub-core/gfxmenu/view.c: Likewise.
3425 * grub-core/video/fb/video_fb.c: Introduce new functions:
3426 grub_video_set_area_status, grub_video_get_area_status,
3427 grub_video_set_region, grub_video_get_region.
3428 * grub-core/video/bochs.c: Likewise.
3429 * grub-core/video/capture.c: Likewise.
3430 * grub-core/video/video.c: Likewise.
3431 * grub-core/video/cirrus.c: Likewise.
3432 * grub-core/video/efi_gop.c: Likewise.
3433 * grub-core/video/efi_uga.c: Likewise.
3434 * grub-core/video/emu/sdl.c: Likewise.
3435 * grub-core/video/radeon_fuloong2e.c: Likewise.
3436 * grub-core/video/sis315pro.c: Likewise.
3437 * grub-core/video/sm712.c: Likewise.
3438 * grub-core/video/i386/pc/vbe.c: Likewise.
3439 * grub-core/video/i386/pc/vga.c: Likewise.
3440 * grub-core/video/ieee1275.c: Likewise.
3441 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3442 * include/grub/video.h: Likewise.
3443 * include/grub/video_fb.h: Likewise.
3444 * include/grub/fbfill.h: Updated render_target structure.
3445 grub_video_rect_t viewport, region, area
3446 int area_offset_x, area_offset_y, area_enabled
3447 * include/grub/gui.h: New helper function
3448 grub_video_bounds_inside_region.
3449 * docs/grub-dev.texi: Added information about new functions.
3450
3451 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3454 for alignment.
3455
3456 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3459 missing attribute.
3460 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3461
3462 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3465 simple division on arm and ia64.
3466
3467 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3470 link with libgcc.
3471
3472 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3475
3476 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3479 prefix symbol, not @.
3480
3481 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * INSTALL: Add note about older gcc and clang.
3484
3485 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3488
3489 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3492 NULL pointer dereference.
3493
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3497 clang.
3498
3499 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3500
3501 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3502 warnings.
3503
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3507 function.
3508 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3509 * grub-core/disk/geli.c (ascii2hex): Likewise.
3510
3511 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3512
3513 * configure.ac: Run linker tests without -Werror.
3514 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3515 Change all occurences of -static-libgcc resp -lgcc to
3516 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3517
3518 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3521
3522 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 Allow compiling with clang (not really supported though).
3525
3526 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3527 unconditionally.
3528 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3529 Add -mrtd -mregparm=3 on i386 when not using clang.
3530 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3531
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3535 bindings.
3536 * grub-core/lib/reed_solomon.c: Likewise.
3537 * include/grub/i386/gdb.h: Likewise.
3538 * include/grub/i386/pc/int.h: Likewise.
3539 * include/grub/i386/pc/pxe.h: Likewise.
3540 * include/grub/ieee1275/ieee1275.h: Likewise.
3541
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 Import libgcrypt 1.5.3.
3545
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * configure.ac: Don't add -Wcast-align on x86.
3549
3550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * configure.ac: Add -freg-struct-return on all platforms that
3553 support it.
3554
3555 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * acinclude.m4: Use -Werror on parameter tests.
3558 * configure.ac: Likewise.
3559
3560 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3561
3562 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3563
3564 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3565
3566 * configure.ac: Check that -malign-loops works rather than assuming that
3567 either -falign-loops or -malign-loops work.
3568
3569 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3570
3571 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3572
3573 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3574
3575 * configure.ac: Prevent cflags leaking to subsequent tests by always
3576 resetting cflags to target_cflags in target tests.
3577
3578 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3581 function.
3582
3583 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3586
3587 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3590
3591 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3592
3593 * grub-core/normal/cmdline.c (grub_cmdline_get):
3594 Remove nested functions.
3595
3596 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * tests/test_sha512sum.in: Make it work on emu.
3599
3600 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3601
3602 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3603 functions.
3604 (grub_bidi_line_logical_to_visual): Likewise.
3605
3606 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 Remove vestiges of -Wunsafe-loop-optimisations.
3609
3610 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3611 -Wno-unsafe-loop-optimisations.
3612 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3613 pragma.
3614 * grub-core/io/gzio.c: Likewise.
3615 * grub-core/script/parser.y: Likewise.
3616 * grub-core/script/yylex.l: Likewise.
3617 * util/grub-mkfont.c: Likewise.
3618
3619 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 * util/grub-mkfont.c (process_cursive): Remove nested function.
3622
3623 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3626 (grub_boot_time): Likewise.
3627
3628 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * include/grub/symbol.h (FUNCTION): Use @function rather than
3631 "function".
3632 (VARIABLE): Likewise.
3633
3634 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3635
3636 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3637
3638 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3641 (parse_dhcp_vendor): Likewise.
3642
3643 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3646
3647 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3650 Define after defining type and not before.
3651
3652 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3655 type.
3656 (grub_gcm_decrypt): Likewise.
3657 (algo_decrypt): Likewise.
3658 (grub_zfs_decrypt_real): Transform error type.
3659
3660 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3663
3664 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3667 (grub_usbms_cbi_reset): Likewise.
3668 (grub_usbms_bo_reset): Likewise.
3669 (grub_usbms_reset): Likewise.
3670 (grub_usbms_attach): Likewise.
3671 (grub_usbms_transfer_cbi): Likewise.
3672
3673 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3676 "checksum = checksum;".
3677
3678 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3681 entry_type.
3682
3683 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3686 BIOS disk check.
3687
3688 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3691 type.
3692 (grub_ehci_fini_hw): Likewise.
3693 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3694
3695 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3698 return grub_usb_err_t for cosistency. All users updated.
3699
3700 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3703 assigning to itself.
3704
3705 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3706 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3707
3708 Issue separate DNS queries for ipv4 and ipv6
3709
3710 Adding multiple questions on a single DNS query is not supportted by
3711 most DNS servers. This patch issues two separate DNS queries
3712 sequentially for ipv4 and then for ipv6.
3713
3714 Fixes: https://savannah.gnu.org/bugs/?39710
3715
3716 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3717 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3718 * (grub_net_dns_lookup): Now using separated dns packages.
3719 * (grub_cmd_nslookup): Add error condition.
3720 * (grub_cmd_list_dns): Print DNS option.
3721 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3722 --prefer-ipv4, and --prefer-ipv6.
3723 * include/grub/net.h (grub_dns_option_t): New enum.
3724 * (grub_net_network_level_address): option added.
3725
3726 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3727
3728 * grub-core/video/fb/video_fb.c: Merge two blit functions
3729 into one.
3730
3731 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 * grub-core/term/terminfo.c: Add sequences for home and end.
3734
3735 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3738 graphics console.
3739
3740 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3743 add mode 0x12.
3744
3745 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3748 e-mail by Per Öberg.
3749
3750 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3753 name.
3754
3755 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3756
3757 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3758 emu platforms.
3759 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3760
3761 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * docs/grub.texi: Document usage of menuentry id.
3764
3765 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3768
3769 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3770
3771 * grub-core/commands/i386/nthibr.c: New command.
3772
3773 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3776
3777 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3780 coordinate.
3781
3782 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 Support GRUB_DISABLE_SUBMENU config.
3785
3786 Inspired by patch from Prarit Bhargava.
3787
3788 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3789
3790 * docs/grub.texi: Mention RSA support.
3791
3792 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * grub-core/commands/verify.c: Add RSA support.
3795
3796 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3799 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3800 device is known to be ATAPI.
3801
3802 2013-11-03 Mike Frysinger <vapier>
3803
3804 * configure.ac: Don't add target-prefix.
3805
3806 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3809 variables.
3810
3811 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3814 if language is English.
3815
3816 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3819
3820 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * configure.ac: Don't add -m32/-m64 on emu.
3823
3824 2013-11-02 neil
3825
3826 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3827 broken linux headers.
3828
3829 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3832
3833 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3836 Reed-Solomon recovery if more than half of redundancy info is 0.
3837
3838 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 * util/grub-mount.c: Handle symlinks to directories.
3841
3842 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3845 find_file recursively for symlink.
3846
3847 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * tests/util/grub-shell.in: Copy themes.
3850
3851 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3854
3855 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * configure.ac: Use 0x8000 for address instead of 8000.
3858
3859 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3862 signature.
3863
3864 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3867 variable.
3868
3869 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3872
3873 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3876 file_progress_read_hook.
3877 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3878
3879 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3882 and double.
3883
3884 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3887
3888 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 Rewrite blocklist functions in order to get progress when
3891 reading large extents and decrease amount of blocklist hook calls.
3892
3893 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3896 of SI suffixes.
3897
3898 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 Support --base-clock for serial command to handle weird cards with
3901 non-standard base clock.
3902
3903 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3906 strncpy.
3907 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3908 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3909 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3910 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3911 + strcpy rather than strncpy.
3912
3913 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3914
3915 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3916 (check_pool_label): Likewise. Fixes overflow.
3917 (nvlist_find_value): Fix comparison.
3918
3919 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3922 more appropriate functions.
3923
3924 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3927 realloc.
3928
3929 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3932
3933 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3936 on core size.
3937
3938 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3941
3942 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3943
3944 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3945 (initialize_tables): reset tl and td to NULL after freeing.
3946
3947 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3948
3949 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3950
3951 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3954 of supported tags.
3955
3956 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3959
3960 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3963 quirks.
3964
3965 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3968 a page in protected space.
3969
3970 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3973 allocate space for zero-sized modules.
3974
3975 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3978
3979 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3980
3981 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3982
3983 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3986 safeguards. Fixes a crash with i386/pc/console.c.
3987
3988 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3989
3990 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3991 and grub_hostfs_init.
3992
3993 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3996 windows method on other platforms without good stat as well.
3997
3998 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4001
4002 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 Make / in btrfs refer to real root, not the default volume.
4005 Modify mkrelpath to work even if device is mounted with subvolid option.
4006
4007 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
4008
4009 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4010 extra_dist.
4011 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4012 extra_dist.
4013
4014 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4017 fails.
4018
4019 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
4020
4021 * docs/autoiso.cfg: New file.
4022
4023 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4026 COND_GRUB_PE2ELF conditions.
4027
4028 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4031 "vnd", "rd" and "fd" disks.
4032
4033 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4034
4035 Move grub_disk_write out of kernel into disk.mod.
4036
4037 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4038
4039 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4040 handling.
4041
4042 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/kern/misc.c (grub_abort): Make static
4045
4046 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4049 transform invalid unicode codepoints.
4050
4051 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4052
4053 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4054 \0 checking.
4055
4056 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4059
4060 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 Consolidate cpuid code.
4063
4064 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 Move cpuid code to cpuid.h and TSC code to tsc.c.
4067
4068 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4069
4070 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4071
4072 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4073
4074 * util/grub-mkconfig.in: Replace $0 with $self.
4075 * util/grub-reboot.in: Likewise.
4076 * util/grub-set-default.in: Likewise.
4077
4078 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4079
4080 * docs/osdetect.cfg: New file.
4081
4082 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4083
4084 * tests/util/grub-shell.in: Add new --debug option.
4085
4086 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4087
4088 * tests/test_unset.in: New test.
4089
4090 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4091
4092 * tests/test_sha512sum.in: New test.
4093
4094 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4097 * include/grub/misc.h: Remove strncat.
4098 * grub-core/lib/posix_wrap/string.h: Likewise.
4099
4100 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4101
4102 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4103 Try to handle more than 0xFFFF packets.
4104 Reported by: Bernhard Übelacker <bernhardu>.
4105 He also spotted few overflows in first version of this patch.
4106
4107 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * tests/date_unit_test.c: New test.
4110
4111 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4112
4113 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4114 of first three years after start of validity of unixtime.
4115
4116 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4117
4118 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4119 division as the one making more sense.
4120 (update_screen): Likewise.
4121 (complete): Likewise.
4122
4123 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4126
4127 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 Make char and string width grub_size_t rather than grub_ssize_t.
4130
4131 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4134 unsigned.
4135 (grub_history_replace): Likewise.
4136
4137 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4140 appropriate.
4141
4142 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4143
4144 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4145 appropriate.
4146
4147 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4148
4149 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4150 Use unsigned divisions rather than signed variants.
4151
4152 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4155 unsigned arithmetics.
4156 Add missing break.
4157
4158 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4161
4162 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4165 rather than signed one.
4166 (recovery): Likewise.
4167
4168 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4171
4172 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4175 than signed.
4176
4177 2013-10-25 Jon McCune <jonmccune@google.com>
4178
4179 * docs/grub.texi: Cleanup security documentation around signatures.
4180
4181 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4182
4183 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4184
4185 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4188 than int.
4189
4190 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4191
4192 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4193 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4194 functions when compiling for kernel.
4195
4196 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4199 unsigned long long when using %llu.
4200
4201 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4204 terminal after updating progress.
4205
4206 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4209 argument. We don't disable Gate A20 in this code.
4210
4211 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4212
4213 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4214 Conceptually based on change in branch "vbe-on-coreboot".
4215
4216 2013-10-24 Robert Millan <rmh@gnu.org>
4217
4218 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4219 numeric constants with their symbolic equivalent.
4220 Taken from branch "vbe-on-coreboot".
4221
4222 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4223
4224 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4225
4226 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4229 divmod64 for offset division.
4230
4231 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4232
4233 Rename .bzrignore to .gitignore. Add "*.o" rule.
4234
4235 * .bzrignore: Renamed to...
4236 * .gitignore: ...this.
4237
4238 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4239
4240 Add new progress module that displays the load progress of files.
4241
4242 * grub-core/lib/progress.c: New file.
4243 * grub-core/Makefile.core.def (progress): New module.
4244 * grub-core/kern/file.c (grub_file_open): File name added.
4245 * (grub_file_read): Progress hook added.
4246 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4247 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4248 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4249 * include/grub/file.h (struct grub_file): Add progress module members.
4250 * include/grub/term.h (struct grub_term_output): Likewise.
4251 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4252 Terminal velocity added.
4253 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4254 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4255 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4256 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4257 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4258 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4259 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4260 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4261 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4262 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4263 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4264 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4265
4266 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 Verify signatures of signatures unless --skip-sig is specified.
4269
4270 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4273 \0 checking.
4274
4275 Saves 70 bytes on compressed image.
4276
4277 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4278
4279 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4280 check.
4281
4282 Saves 10 bytes on compressed image.
4283
4284 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4285
4286 * grub-core/kern/misc.c (grub_isprint): Move to ...
4287 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4288
4289 Saves 20 bytes on compressed image due to remving exporting.
4290
4291 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4294
4295 Saves 5 bytes on compressed image.
4296
4297 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4298
4299 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4300 function get_utf8.
4301
4302 Saves 379 bytes on compressed image.
4303
4304 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4307
4308 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4311
4312 Saves 40 bytes on compressed image.
4313
4314 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4317 mask rather than 64-bit type.
4318
4319 Saves 20 bytes on compressed image.
4320
4321 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4324 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4325
4326 Saves 273 bytes on compressed image.
4327
4328 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4331 variable length arrays.
4332
4333 Saves 50 bytes on compressed image.
4334
4335 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4336
4337 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4338
4339 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4340
4341 * grub-core/fs/ufs.c: Remove variable length arrays.
4342
4343 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4346
4347 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * grub-core/fs/zfs.c: Remove variable length arrays.
4350 Reduces zfs.mod by 160 bytes (208 compressed).
4351
4352 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4353
4354 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4355
4356 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4357
4358 * grub-core/net/arp.c: Remove variable length arrays.
4359 * grub-core/net/bootp.c: Likewise.
4360 * grub-core/net/dns.c: Likewise.
4361 * grub-core/net/icmp6.c: Likewise.
4362 * grub-core/net/net.c: Likewise.
4363
4364 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/fs/ntfs.c: Remove variable length arrays.
4367 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4368 compressed).
4369
4370 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 * grub-core/fs/hfs.c: Remove variable length arrays.
4373 Reduces hfs.mod by 8 bytes (52 compressed).
4374
4375 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/fs/udf.c: Remove variable length arrays.
4378 Increases udf.mod by 128 bytes (but decreases by 13 when
4379 compressed).
4380
4381 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * grub-core/fs/iso9660.c: Remove variable length arrays.
4384 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4385 compressed).
4386
4387 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4390 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4391 compressed).
4392
4393 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 * grub-core/fs/xfs.c: Remove variable length arrays.
4396 Reduces xfs.mod by 40 bytes (43 compressed).
4397
4398 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4399
4400 * grub-core/fs/fshelp.c: Remove variable length arrays.
4401 Reduces fshelp.mod by 116 bytes (23 compressed).
4402
4403 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/normal/completion.c: Remove variable length arrays.
4406 * grub-core/normal/menu_entry.c: Likewise.
4407
4408 Reduces normal.mod by 496 bytes.
4409
4410 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4413 by 356 bytes (158 compressed).
4414
4415 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4418 by 364 bytes (169 compressed).
4419
4420 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4423 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4424 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4425
4426 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4429 bitmasks to small structures of size chosen to fit in registers.
4430
4431 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * conf/Makefile.common: Use -freg-struct-return on i386. This
4434 decreases code size and improves performance.
4435
4436 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4439
4440 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4441
4442 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4443 "(null)" string.
4444 Simplify expressions to save around 256 bytes in kernel.img.
4445 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4446
4447 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4450 Use GRUB_UTIL_FD_O_* rather than O_*.
4451
4452 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4453
4454 Add haiku-specific functions.
4455
4456 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4459
4460 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4461
4462 Move stat () and device mode checking into OS-dependent files as
4463 long as performance doesn't suffer.
4464
4465 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 Split make_system_path_relative_to_its_root into separate file
4468 relpath.c from getroot.c as it's common between unix and haiku
4469 but otherwise haiku doesn't use any functions from unix getroot.c.
4470
4471 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4474 New function.
4475 (grub_util_is_special_file): Likewise.
4476
4477 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4480 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4481
4482 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4485 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4486
4487 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4490 (load_image): Likewise.
4491
4492 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * util/grub-render-label.c: Move backend part to ...
4495 * util/render-label.c: ... here.
4496
4497 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4500 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4501
4502 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4505
4506 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4509 CD-ROM in case when it's declared as having subpartitions.
4510
4511 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 Don't add -lm on haiku.
4514
4515 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4516 and empty on haiku.
4517 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4518 -lm.
4519
4520 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 * configure.ac: Use -melf_*_haiku as target on haiku.
4523
4524 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * Makefile.util.def: Add util/setup.c to extra_dist.
4527
4528 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4531 unknown types through.
4532
4533 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4536 (grub_util_check_char_device): Likewise.
4537 * include/grub/emu/getroot.h: Likewise.
4538
4539 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4542 memset rather than inline static function.
4543
4544 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4545
4546 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4547 not doing embedded decompressor.
4548
4549 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4552 shadowing.
4553 * grub-core/kern/disk.c: Likewise.
4554 * grub-core/kern/misc.c: Likewise.
4555 * include/grub/parser.h: Likewise.
4556 * include/grub/script_sh.h: Likewise.
4557 * include/grub/zfs/zfs.h: Likewise.
4558
4559 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4562
4563 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4566 defined before trying to use it.
4567
4568 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4569
4570 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4571 warning.
4572
4573 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4576 Use __unused__ rather than __used__ on gcc < 3.2.
4577
4578 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4581 gcc < 4.0.
4582 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4583
4584 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4587
4588 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4591 * include/grub/emu/misc.h: Likewise.
4592
4593 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4596 cur_color.
4597
4598 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4599
4600 * grub-core/tests/checksums.h: Regenerated due to progress bar
4601 get_minimal_size changes.
4602
4603 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4604
4605 Added `tr' command support.
4606
4607 * grub-core/commands/tr.c: New file.
4608 * grub-core/Makefile.core.def: Build rules for new module.
4609
4610 * tests/grub_cmd_tr.in: New test.
4611 * Makefile.util.def: Build rules for new test.
4612
4613 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4614
4615 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4616
4617 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4618
4619 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4620 * docs/gurb.texi: Likewise.
4621
4622 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4623
4624 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4625 Pixmap highlighted section with east and west slices was displayed
4626 incorrectly due to negative width of the central slice.
4627
4628 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4629
4630 * docs/grub.texi: Graphical options information update.
4631 Removed outdated. Updated current. Inserted missed.
4632
4633 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * docs/grub.texi: Mention few new platform-specific commands.
4636
4637 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4638
4639 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4640 currently used so this doesn't really have any effect.
4641 Reported by: Douglas Ray <dougray>
4642
4643 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4644
4645 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4646 compilation but prevents gcc from displaying messages in non-Latin
4647 alphabets.
4648 * conf/Makefile.common: Likewise.
4649
4650 2013-10-16 Hiroyuki YAMAMORI
4651
4652 Handle Japanese special keys.
4653 Reported by: Hiroyuki YAMAMORI.
4654 Codes supplied by: Hiroyuki YAMAMORI.
4655
4656 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4657
4658 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4659
4660 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4661
4662 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4663 * docs/grub.texi: Likewise.
4664
4665 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4666
4667 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4668 value in case of incomplete read.
4669 (grub_util_fd_write): Likewise.
4670
4671 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4674
4675 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * util/grub-editenv.c (create_envblk_file): More from here ...
4678 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4679
4680 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4683 canonicalize file name before doing the rest.
4684
4685 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4688 mingw32.
4689
4690 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 Define grub_util_is_directory/regular/special_file and
4693 use OS-dependent versions rather than to rely on stat().
4694
4695 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 * util/grub-mkimage.c: Move backend part to ...
4698 * util/mkimage.c: ... here.
4699
4700 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 Allow compilation with mingw64 albeit with warnings due to lack of
4703 %llx/%llu.
4704
4705 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4706 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4707 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4708 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4709 on mingw64.
4710 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4711
4712 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 Remove leftover references to some of the system headers.
4715
4716 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4717
4718 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4719 read.
4720
4721 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4724 of strerror.
4725
4726 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 Split out blocklist retrieving from setup.c to
4729 grub-core/osdep/blocklist.c and add windows implementation since
4730 generic version doesn't work on NTFS on Windows due to aggressive
4731 unflushable cache.
4732
4733 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4734
4735 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4736 files.
4737
4738 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4739
4740 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4741 Cut tailing newline. Remove arbitrary limitation. Always use
4742 grub_util_tchar_to_utf8.
4743
4744 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4747 * tests/printf_unit_test.c (printf_test): Add %% tests.
4748 Reported by: Paulo Flabiano Smorigo.
4749
4750 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4753 implement fsync.
4754
4755 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4756
4757 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4758 use nvlist_lookup_string and don't use nvlist_print.
4759
4760 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4763 closedir to handle filename charset translation.
4764
4765 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * include/grub/emu/hostdisk.h: Move file operations to
4768 * include/grub/emu/hostfile.h: ... here.
4769
4770 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4773 unicode path.
4774
4775 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4778
4779 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4782 and remove export.h.
4783
4784 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4785
4786 * grub-core/kern/emu/error.c: Removed.
4787 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4788 explicitly as it's already in libgnu.a.
4789
4790 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4793 config-util.h include.
4794
4795 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4796
4797 Split emunet into platform-dependent and GRUB-binding parts. Keep
4798 platform-dependent part in kernel for easy access to OS functions.
4799
4800 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4803 open/read/write.
4804
4805 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 * grub-core/osdep/windows/emuconsole.c: New file.
4808
4809 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4810
4811 * conf/Makefile.extra-dist: Add osdep/*/init.c
4812
4813 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4816
4817 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * util/grub-probe.c (probe): Separate different drives in hint-str
4820 by spaces and not newlines.
4821 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4822
4823 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4824
4825 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4826 Handle CD-ROMs.
4827
4828 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 Pass-through unknown E820 types. It required reorganisation of mmap
4831 module.
4832
4833 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4834
4835 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4836
4837 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4840 fseeko.
4841
4842 2013-10-14 qwertial <qwertial>
4843
4844 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4845
4846 2013-10-14 Jon McCune <jonmccune@google.com>
4847
4848 * docs/grub.texi: Document new signatures possibility.
4849
4850 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4851
4852 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4853
4854 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4857 missing prototype.
4858 (grub_util_tchar_to_utf8): Likewise.
4859
4860 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4863 * grub-core/kern/emu/main.c: Add missing include.
4864 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4865 Don't call grub_util_init_nls.
4866 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4867 Likewise.
4868
4869 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4870
4871 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4872 stat.
4873
4874 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4877
4878 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4879
4880 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4881
4882 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4883
4884 Add a wrapper for fopen. On unix-like systems just pass-through. On
4885 windows use unicode version.
4886
4887 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 Move set_program_name and init_nls to host_init. On windows
4890 fix in this fuction console and argument charset as well.
4891
4892 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4893
4894 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4895 GRUB_ENABLE_CRYPTODISK.
4896
4897 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4898 GRUB_ENABLE_CRYPTODISK.
4899 * util/grub-mkconfig_lib.in: Likewise.
4900
4901 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4902
4903 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4904
4905 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4906
4907 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4908 error when enabling debug.
4909
4910 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4911
4912 * configure.ac: Use -melf_*_obsd on openbsd.
4913
4914 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4917
4918 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * include/grub/misc.h: Use gnu_printf rather than printf as format
4921 template since our functions are independent of libc.
4922
4923 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * util/grub-setup.c (setup): Move copying of partition table as
4926 futher up as possible to avoid possible overwrite by floppy routines.
4927
4928 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4931
4932 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4933
4934 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4935 * docs/grub.texi: Likewise.
4936
4937 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4940 it's mostly unused. Move vestiges to the callers.
4941
4942 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4943
4944 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4945 version of salt and hash. Use grub_snprintf rather than snprintf.
4946
4947 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * docs/grub.texi: Fix problem with braces.
4950
4951 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * conf/Makefile.extra-dist: Fix extra-dist list.
4954 * grub-core/Makefile.core.def: Likewise.
4955
4956 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * docs/grub.texi: Document disk names used on Windows and AROS.
4959
4960 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4963 with AROS devs.
4964 * grub-core/osdep/aros/hostdisk.c: Likewise.
4965
4966 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 Avoid including hostfile.h when not necessarry as it pulls
4969 in OS-specific headers which may redefine generic names
4970 like "far".
4971
4972 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4973
4974 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4975 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4976 scrollbar_bottom_pad
4977 * docs/grub.texi: Likewise.
4978
4979 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4980
4981 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4982
4983 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4984
4985 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4986
4987 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4990 Removed.
4991 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4992 Made static.
4993
4994 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4995
4996 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4997 leftover.
4998
4999 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5000
5001 Move OS-specific driver configuration to grub_util_fd_open. This
5002 moves OS-dependent parts from kern/emu/hostdisk.c to
5003 grub-core/osdep/*/hostdisk.c.
5004
5005 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 * util/grub-mkimage.c (generate_image): Use size_t instead of
5008 grub_size_t.
5009 * util/grub-mkimagexx.c (locate_sections): Likewise.
5010 (load_image): Likewise.
5011
5012 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
5013
5014 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5015 size_t.
5016 (grub_util_write_image): Likewise.
5017
5018 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5021 get random when no RNG is available.
5022 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5023
5024 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 * include/grub/util/lvm.h: Removed.
5027
5028 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5029
5030 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5031 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5032
5033 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5036
5037 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5038
5039 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5040
5041 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5042
5043 * grub-core/net/drivers/emu/emunet.c: Move to ..
5044 * grub-core/osdep/linux/emunet.c: ..here.
5045
5046 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * util/ieee1275/ofpath.c: Move to ...
5049 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5050 * grub-core/osdep/basic/ofpath.c: ..here.
5051
5052 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 Move password-querying (util-version) routines to grub-core/osdep.
5055
5056 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 Move sleep routines to grub-core/osdep.
5059
5060 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5061
5062 Move OS-dependent files to grub-core/osdep and document it.
5063
5064 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5067 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5068
5069 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5072
5073 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * util/misc.c: Remove leftover inclusion of malloc.h.
5076
5077 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * include/grub/setjmp.h: Remove leftover GRUBOF.
5080
5081 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * util/raid.c: Fold into ...
5084 * util/getroot_linux.c: ... here. Make all functions static.
5085
5086 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5087
5088 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5089 macros to GRUB ones.
5090
5091 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5092
5093 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5094 occasional bug. If there are too many boot entries or too low
5095 scrollbar height then we need to use another formula to calculate
5096 the position and size of the scrollbar thumb.
5097
5098 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5101
5102 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5103
5104 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5105 * docs/grub.texi: Likewise.
5106
5107 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5108
5109 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5110 viewport.
5111
5112 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5113
5114 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5115 minimal width calculations.
5116
5117 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5118
5119 * docs/grub.texi: Update note on colors on emu console.
5120
5121 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5122
5123 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5124 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5125 it's FS and not GRUB limitation.
5126
5127 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5130
5131 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5132
5133 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5134
5135 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5136
5137 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5138 kernels by version order.
5139
5140 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5141
5142 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5143
5144 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5145
5146 Add AROS hostdisk and getroot routines.
5147
5148 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 Make cryptodisk and diskfilter probe data retrievable programmatically
5151 and not just printable.
5152
5153 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 Split random retrieving code into separate files.
5156
5157 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5160 R_ARM_V4BX.
5161
5162 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5165 condition.
5166 * grub-core/tests/fake_input.c: Likewise.
5167 * grub-core/tests/cmdline_cat_test.c: Likewise.
5168
5169 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * grub-core/video/capture.c: Do not do finalization when .fini
5172 is called as there is explicit capture_end.
5173
5174 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5177 changing windows to avoid crash.
5178
5179 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5180
5181 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5182
5183 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5184
5185 * po/exclude.pot: Add several strings to exclude.
5186
5187 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5190
5191 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5194 ./util/grub-gen-asciih.c to exclude list.
5195
5196 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5199 and don't mark error strings for translation.
5200
5201 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5204 properly in case of missing block size.
5205
5206 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * grub-core/lib/arm/setjmp.S: Add missing license section.
5209
5210 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5211
5212 * po/swiss.sed: Add replacement for key names and for term computer.
5213
5214 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5215
5216 * grub-core/gfxmenu/theme_loader.c: New global options for the
5217 theme background image handling. desktop-image-scale-method,
5218 desktop-image-h-align, desktop-image-v-align.
5219 * grub-core/gfxmenu/view.c: Likewise.
5220 * include/gfxmenu_view.h: Likewise.
5221 * include/bitmap_scale.h: Proportional scale functions introduced.
5222 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5223 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5224 cases of unexpected input variables for scale functions.
5225 * docs/grub.texi: Updated documentation for new options.
5226
5227 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5230
5231 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5232
5233 * grub-core/tests/checksums.h: Corrected due to changes in
5234 bilinear interpolation function.
5235
5236 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5237
5238 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5239 to eliminate artefacts in bilinear interpolation.
5240
5241 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5242
5243 * grub-core/video/readers/tga.c: Support paletted tga.
5244
5245 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5246
5247 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5248 incorrect cbcr setting when in color mode.
5249
5250 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 * grub-core/video/readers/png.c: Support paletted images and clean up
5253 greyscale support.
5254
5255 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5256
5257 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5258 usage of wrong table which resulted in mishandling of 4-byte
5259 sequences.
5260
5261 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * grub-core/term/terminfo.c: Add Home and End key sequences.
5264
5265 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5268 Fix formula for computing total number of bytes.
5269
5270 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5271
5272 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5273 image processing, fix big-endian and support grayscale.
5274
5275 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5278 Correctly will with maximum transparency when using index color.
5279
5280 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5281
5282 * grub-core/video/readers/png.c: Support grayscale
5283
5284 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * grub-core/video/readers/jpeg.c: Support grayscale.
5287
5288 2013-09-26 Jon McCune <jonmccune@google.com>
5289
5290 * grub-core/commands/loadenv.c: Support skipping signature check
5291 and variable names filtering.
5292
5293 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5296 * grub-core/kern/emu/hostfs.c: Likewise.
5297 * util/getroot_unix.c: Likewise.
5298
5299 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5302 Migrate all explicit defines to this new one.
5303
5304 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5305
5306 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5307 grub_util_fd_strerror when using grub_util_fd_*.
5308 (grub_util_fd_open_device): Likewise.
5309 (grub_util_biosdisk_read): Likewise.
5310 (grub_util_biosdisk_write): Likewise.
5311 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5312 (grub_util_fd_strerror): Likewise.
5313 (grub_util_fd_sync): Likewise.
5314 (grub_util_fd_close): Likewise.
5315 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5316 (grub_util_fd_close): Likewise.
5317 (grub_util_fd_strerror): Likewise.
5318 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5319 function proto rather than macro.
5320 (grub_util_fd_sync): Likewise.
5321 (grub_util_fd_open): Likewise.
5322 (grub_util_fd_strerror): New proto.
5323
5324 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5327 platforms on which it doesn't work.
5328
5329 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5330
5331 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5332 stat immediately to where it's used.
5333
5334 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 * util/getroot.c (grub_util_check_block_device): Move to ...
5337 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5338 * util/getroot.c (grub_util_check_char_device): Move to ...
5339 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5340
5341 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5342
5343 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5344 disk closing logic.
5345
5346 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5347
5348 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5349
5350 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5351
5352 * docs/grub.texi (File name syntax): Document ZFS filenames
5353 (/volume@snapshot/...).
5354
5355 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5356
5357 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5358 Always return full path. Fixes a problem with mkrelpath.
5359
5360 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5361
5362 * util/grub-install.in: Add GPT PReP support.
5363 * util/grub-probe.c (probe): Support GPT partition type.
5364 (main): Support -t gpt_parttype.
5365
5366 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5367
5368 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5369
5370 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5371
5372 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5373
5374 2013-09-23 Tim Hardeck <thardeck>
5375
5376 * util/grub.d/10_hurd.in: Filter out character for the class.
5377 * util/grub.d/10_kfreebsd.in: Likewise.
5378 * util/grub.d/10_linux.in: Likewise.
5379 * util/grub.d/20_linux_xen.in: Likewise.
5380
5381 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5382
5383 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5384 "changed".
5385
5386 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5387
5388 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5389 boot partition.
5390
5391 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5394 doesn't use posix_wrap. Keep literal -fno-builtin however.
5395
5396 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5399
5400 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5401 2013-09-23 neil
5402
5403 * configure.ac: Do not enable -Wmissing-noreturn as its
5404 usefulness is limited and creates problems on some OS notably with
5405 code generated by bison.
5406
5407 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5408 2013-09-23 neil
5409
5410 * configure.ac: Do not explicitly enable -Waddress as it's not
5411 supported by all gcc and when it is, it's already enabled by -Wall.
5412
5413 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5414
5415 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5416 desactivated use of EDID at all.
5417
5418 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5419 2013-09-23 neil
5420
5421 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5422 video if no text is available.
5423
5424 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5425 2013-09-23 neil
5426
5427 * configure.ac: Substitute TARGET_RANLIB.
5428
5429 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5430 2013-09-23 neil
5431
5432 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5433
5434 Based on patches from AROS.
5435
5436 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5437 2013-09-23 neil
5438
5439 * grub-core/Makefile.am: Override STRIP and RANLIB.
5440 * configure.ac: compute TARGET_RANLIB.
5441 * INSTALL: Document TARGET_RANLIB
5442
5443 Based on patches from AROS.
5444
5445 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5446
5447 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5448 that floppies are unpartitioned.
5449
5450 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5453 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5454
5455 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5458 less nice but more portable.
5459 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5460
5461 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5464 for cheat_fd.
5465 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5466 functions.
5467 (grub_cryptodisk_cheat_insert): Likewise.
5468 (grub_cryptodisk_close): Likewise.
5469
5470 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5471
5472 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5473 Use windows path for DEFAULT_DIRECTORY.
5474
5475 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5476
5477 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5478 difference was likely just gcc version, not anything mingw-related.
5479
5480 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5481
5482 Use Winapi on both cygwin and mingw32 to share more code between both.
5483
5484 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5485
5486 * util/grub-install.in: Add --grub-editenv option.
5487 * util/grub-install_header (grub_compress_file): Explicitly check for
5488 plain file to avoid cp error.
5489
5490 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5491
5492 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5493 names; fix LVM driver name (lvm, not lv).
5494 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5495 names.
5496
5497 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5498
5499 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5500 files rather than one file with loads of #if's.
5501 * util/getroot.c: Likewise.
5502
5503 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5506
5507 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5508
5509 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5510 GNU/Hurd to the list of checked PRNG.
5511
5512 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5513
5514 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5515
5516 2013-09-21 Ales Nesrsta <starous@volny.cz>
5517
5518 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5519
5520 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5523 * grub-core/disk/lvm.c: Add LVM UUIDs.
5524 * util/getroot.c: Use LVM UUIDs whenever possible.
5525
5526 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5527
5528 * docs/grub.texi (Networking commands): Add documentation for
5529 network related commands.
5530
5531 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5534 to determine if device is handled by devmapper.
5535 (convert_system_partition_to_system_disk): Likewise.
5536 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5537 already done in grub_util_open_dm.
5538
5539 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5540
5541 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5542 Clean up stack manipulation (sync_caches_armv*)
5543
5544 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * util/lvm.c: Remove since unused. Remove remaining references.
5547
5548 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 Handle the case of partitioned LVM properly.
5551
5552 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5553 Stop on meeting LVM, mpath or DMRAID.
5554 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5555 (read_device_map): Likewise.
5556 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5557 device is full disk rather than erroring out on LVM and similar cases.
5558
5559 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5562
5563 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5564
5565 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5566 4K before the end.
5567 Reported by: Leif Lindholm
5568
5569 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5570 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5571
5572 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5573 codes.
5574
5575 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5576
5577 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5578 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5579
5580 2013-09-18 Douglas Ray <dougray@cpan.org>
5581
5582 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5583 as secure.
5584
5585 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5586
5587 * docs/grub.texi: Fix broken link.
5588
5589 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5590
5591 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5592 to break endless loop.
5593
5594 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5595
5596 * util/grub-fstest.c: Fix several printf formats.
5597 * util/grub-mkimage.c: Likewise.
5598 * util/grub-mkimagexx.c: Likewise.
5599 * util/grub-script-check.c: Likewise.
5600
5601 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5604 error.
5605
5606 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5607
5608 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5609
5610 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5613 removed in current versions cygwin_conv_*.
5614
5615 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * configure.ac: Disable efiemu runtime on cygwin.
5618
5619 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5622 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5623
5624 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5627 error message.
5628
5629 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5630
5631 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5632 windows variant.
5633 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5634 data.
5635
5636 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5639 when on x86 and not cygwin.
5640 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5641 -Wl,-melf_x86_64.
5642
5643 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * configure.ac: Set CPP to build one when checkoing for freetype for
5646 build.
5647
5648 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5649
5650 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5651 [!GRUB_BUILD]: Remove has_argument.
5652
5653 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5656 Replace with a dummy.
5657
5658 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * configure.ac: Don't change host_os from mingw to cygwin.
5661
5662 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * configure.ac: Change target_os from windows to cygwin.
5665
5666 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5669
5670 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5671 (build-grub-gen-asciih): Likewise.
5672 (build-grub-gen-widthspec): Likewise.
5673 * Makefile.util.def (grub-pe2elf): Remove.
5674 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5675 * configure.ac: Separate tests for build.
5676 Move ./build-grub-pe2elf to grub-core.
5677 Fix typo.
5678 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5679 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5680 defined.
5681 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5682 constants.
5683 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5684 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5685 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5686
5687 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5690 mingw32 as well based on grub_util_get_disk_size.
5691 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5692 grub_util_get_fd_size.
5693 (sync): Removed.
5694 (fsync): Moved to ...
5695 * grub-core/kern/emu/misc.c (fsync): ... here.
5696
5697 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * include/grub/mm.h (grub_extend_alloc): Remove.
5700 * grub-core/loader/i386/pc/plan9.c: Use own version of
5701 grub_extend_alloc with appropriate types.
5702
5703 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5706
5707 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5708
5709 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5710
5711 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 Fix dependencies on cygwin.
5714
5715 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5716 dependencies when used and defined.
5717 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5718
5719 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5722 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5723
5724 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5727 implementation available to cause compile-time rather than runtime
5728 error.
5729
5730 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * util/grub-fstest.c: Don't check for symlinks on windows.
5733
5734 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * INSTALL: Mention unavailability of man pages when cross-compiling.
5737
5738 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5741 and gcry_log_bug.
5742 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5743
5744 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * INSTALL: Document cross-compilation.
5747 * acinclude.m4: Determine whether nm support -P and --defined-only.
5748 * configure.ac: Add TARGET_ to all variables pertaining to target
5749 that don't have it yet.
5750 * gentpl.py: Likewise.
5751 * grub-core/Makefile.am: Likewise.
5752 * grub-core/genmod.sh.in: Likewise.
5753 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5754 as well.
5755
5756 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5757
5758 * configure.ac: Remove -Wempty-body. It's not essential and needs
5759 recent gcc.
5760
5761 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5762
5763 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5764 * util/getroot.c: Likewise.
5765
5766 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * grub-core/disk/ahci.c: Add needed explicit cast.
5769 * grub-core/lib/backtrace.c: Likewise.
5770 * grub-core/net/ip.c: Likewise.
5771 * grub-core/net/tcp.c: Likewise.
5772 * grub-core/net/udp.c: Likewise.
5773
5774 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5775
5776 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5777
5778 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5779
5780 * util/import_gcry.py: Add final newline in visibility.h.
5781
5782 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5783
5784 * conf/Makefile.common: Fix typo.
5785
5786 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5789
5790 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5791
5792 * Makefile.am (widthspec.h): Fix typo.
5793 * util/grub-gen-widthspec.c: Likewise.
5794
5795 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 Move ascii.h and widthspec.h generation to a separate build-time-only
5798 tool.
5799
5800 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5801
5802 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5803 Always fill bootdisk info and improve check for NetBSD disklabel.
5804
5805 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * conf/Makefile.extra-dist: Add util/bin2h.c.
5808 Reported by: floppym.
5809
5810 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5813
5814 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5815
5816 * configure.ac: Disable unifont and starfield if no freetype was found.
5817
5818 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5819
5820 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5821 on NetBSD and OpenBSD.
5822
5823 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5824
5825 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5826
5827 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5828
5829 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5830 reduced. Inheritant options are processed during the theme loading.
5831
5832 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5833
5834 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5835
5836 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5837
5838 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5839
5840 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5841
5842 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5843 using qemu.
5844
5845 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5846
5847 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5848 remove-potcdate.sed.
5849
5850 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5851
5852 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5853 unused attribute from pull argument.
5854
5855 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5856
5857 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5858 memory leak.
5859
5860 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5861
5862 * util/getroot.c (pull_lvm_by_command): add --separator option
5863 to vgs call to disable padding of output to 10 characters.
5864
5865 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5866
5867 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5868 here ...
5869 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5870 here.
5871
5872 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5875 length.
5876
5877 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5880 full Canadian cross. Tested with build=x86_64, host=arm,
5881 target=ppc-ieee1275.
5882
5883 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5884
5885 * configure.ac: Error if no $BUILD_CC could be found.
5886 Reported by: DevHC.
5887
5888 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5891 i386-multiboot.
5892
5893 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5896 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5897
5898 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5899
5900 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5901 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5902 falling back to the partition device, otherwise a later call to this
5903 function may fail spuriously.
5904 Reported by Axel Beckert. Fixes Debian bug #708614.
5905
5906 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5907
5908 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5909
5910 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5911
5912 Prevent shadowing of stdlib's devname(3) on BSD.
5913
5914 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5915 and devlast to diskname and disklast, respectively.
5916
5917 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5918
5919 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5920
5921 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5922
5923 * docs/grub.texi: Introduce terminal window position options:
5924 terminal-left: terminal window's left position
5925 terminal-top: terminal window's top position
5926 terminal-width: terminal window's width
5927 terminal-height: terminal window's height
5928 terminal-border: terminal window's border width
5929 * grub-core/gfxmenu/theme-loader.c: Likewise.
5930 * include/grub/gfxmenu_view.h: Likewise.
5931 * po/exlude.pot: Likewise.
5932 * grub-core/gfxmenu/view.c: Likewise.
5933 Also updated minimal window size.
5934 Also terminal_sanity_check function has been introduced.
5935 * grub-core/tests/checksums.h: Update (terminal window height
5936 is adjusted now for low resolution screen)
5937
5938 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5939
5940 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5941 position).
5942
5943 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5944
5945 * po/exclude.pot: Add few recent exceptions.
5946
5947 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5948
5949 * tests/grub_func_test.in: Add unicode.pf2.
5950
5951 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5952
5953 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5954 standard rather than noral color, in line with other terminals.
5955
5956 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5959 analysis.
5960
5961 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5964
5965 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5966
5967 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5968 inappropriate printf.
5969
5970 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5971
5972 * .bzrignore: Remove grub-core/lib/dtc-grub,
5973 grub-core/Makefile.libfdt.def
5974 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5975
5976 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5977
5978 * include/grub/video.h (grub_video_register): Keep double-linked as
5979 well as single-linked invariants.
5980 Reported by: qwertial.
5981
5982 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/commands/nativedisk.c (get_uuid): Handle
5985 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5986
5987 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5988
5989 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5990 maximum of NW, N, NE heights instead of N's height and maximum of
5991 NW, W, SW widths instead of W's width. (So the box will be always
5992 correctly drawn)
5993
5994 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5995
5996 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5997 Fix misuse of variable count.
5998
5999 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
6000 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
6001 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 New ports to arm-uboot and arm-efi.
6004 Mostly by Leif Lindholm with some additions from
6005 Francesco Lavra and cleanup by Vladimir Serbinenko.
6006
6007 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6010 and not before.
6011 Reported by: Leon Drugi.
6012
6013 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
6014
6015 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6016 Reported by: Paulo Flabiano Smorigo.
6017
6018 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6019
6020 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6021
6022 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
6023
6024 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6025
6026 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6029
6030 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6031
6032 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6033
6034 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6035
6036 * grub-core/net/bootp.c: Export net_* variables.
6037 * grub-core/net/net.c: Likewise.
6038
6039 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6042
6043 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6046
6047 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6048
6049 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6050
6051 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6052
6053 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6054
6055 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6056
6057 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6058 <= 0.
6059
6060 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6061
6062 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6063 functions.
6064
6065 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6066
6067 * grub-core/fs/zfs/zfs_lz4.c: New file.
6068 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6069
6070 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6071
6072 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6073
6074 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6075
6076 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6077 (check_pool_label): Likewise.
6078 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6079
6080 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6081
6082 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6083
6084 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6085
6086 * docs/grub.texi (Commands): Document postition parameters
6087 for menuentry command.
6088
6089 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6090
6091 * util/grub-mknetdir.in: Remove stray line from help output.
6092
6093 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6094
6095 Remove early sm712 init as there is no reason for it (the "watchdog"
6096 effect was due to wrong GPIO map).
6097
6098 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/commands/pcidump.c: Remove static variables.
6101
6102 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6105
6106 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 * configure.ac: Move delimiter after the infos.
6109
6110 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6111
6112 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6113
6114 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6117 not filling whole 8x16 space.
6118
6119 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6120
6121 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6122
6123 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * configure.ac: Indicate which liblzma is used if any.
6126
6127 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6128 2013-06-21 Craig Sanders <savannah@taz.net.au>
6129
6130 * util/grub-reboot.in: Document submenu usage.
6131
6132 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6133
6134 * .bzrignore: Update with a number of new test-related files.
6135
6136 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6137
6138 * util/grub-script-check.c: Fail on scripts containing no
6139 commands, to guard against corrupted grub-mkconfig setups that
6140 produce no useful output.
6141 * tests/grub_script_no_commands.in: New test.
6142 * Makefile.util.def (grub_script_no_commands): Add.
6143 Reported by Hans Putter. Fixes Debian bug #713886.
6144
6145 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6146
6147 * grub-core/disk/diskfilter.c: Forgot to remove comment
6148 from previous commit.
6149
6150 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6151
6152 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6153 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6154
6155 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6156
6157 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6158
6159 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6160
6161 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6162 rescan diskfilter devices until nothing new is found.
6163
6164 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6167
6168 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 Don't try to detect cbfs on *-emu.
6171
6172 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6173
6174 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6175
6176 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 Add support for processed coreboot payload chainloading.
6179
6180 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6181
6182 Enable coreboot information commands even when not loaded as
6183 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6184
6185 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6186
6187 Support for cbfs. Also factor out the part which is common
6188 for all archives to a separate module. This splits tar from cpio
6189 as they are very different but keeps cpio, cpio_be, odc and newc
6190 together since they're very similar.
6191
6192 2013-06-15 David Michael <fedora.dm0@gmail.com>
6193
6194 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6195 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6196
6197 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * tests/grub_script_eval.in: Really add the eval test.
6200
6201 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6202
6203 Move flavour-specific parts out of common cpio.c file and
6204 rename remaining to cpio_common.c
6205
6206 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6207
6208 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6209 off new function grub_script_execute_new_scope. Change callers to use
6210 either of them as appropriate.
6211 * grub-core/commands/eval.c: New command eval.
6212 * docs/grub.texi (Commands): Document it.
6213
6214 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6215
6216 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6217 to fetch values when listing.
6218
6219 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6220
6221 Fix make dist on non-pc.
6222
6223 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6224
6225 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6226 without a device name.
6227
6228 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 Remove enable_executable_check as it's not needed anymore.
6231 Reported by: dougray.
6232
6233 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6234
6235 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6236 ambigouos RAID before discovering RAIDs on top of it.
6237 Reported by: bodom.
6238
6239 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 Fix typo (failback vs fallback).
6242
6243 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6244
6245 * util/grub.d/30_os-prober.in: Add support for probing EFI
6246 System Partition (as of os-prober 1.58).
6247
6248 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * configure.ac: Add yet another path to unifont. For parabola.
6251
6252 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6253
6254 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6255 handling to copy the killed characters to the kill buffer as
6256 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6257 stored as char. Eliminates UCS4 truncation and corruption
6258 observed when killing characters with Ctrl-u and yanking them
6259 back with Ctrl-y.
6260
6261 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 Detach optional parts of gfxterm and integrate in with coreboot init.
6264
6265 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 Move blit and fill dispatcher to appropriate files to decrease export
6268 and relocation overhead.
6269
6270 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6273 functions.
6274
6275 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * grub-core/Makefile.am: Fix compilation problem with some
6278 automake versions.
6279
6280 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6283
6284 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6287 automake versions.
6288
6289 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6290
6291 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6292 SSDT.
6293
6294 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6295
6296 * grub-core/partmap/dfly.c: New partition map.
6297
6298 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6301 checking.
6302 Reported by: Francesco Lavra.
6303
6304 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6305
6306 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6307 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6308 false conditions.
6309 * conf/Makefile.common: define dist_grubconf_DATA
6310
6311 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 Progressively skip menu elements on small terminals rather
6314 than crashing.
6315
6316 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6319 to avoid losing last column.
6320
6321 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * po/exclude.pot: Add missing string "%C".
6324
6325 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6328 after the test.
6329
6330 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 * util/grub-install.in: Gettextize "Not found" message.
6333
6334 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 Fix distfiles list.
6337 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6338
6339 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6340
6341 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6342 present.
6343 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6344
6345 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6348
6349 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6352 attribute since structure is not necessarily aligned.
6353
6354 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6355
6356 * docs/grub.texi (Device syntax): Clarify description of network
6357 drives.
6358
6359 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6362 for vasprintf presence.
6363
6364 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * util/grub-install.in: Handle efibootmgr presence check.
6367 Reported by: Leif Lindholm.
6368
6369 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6372 new strings to translate.
6373
6374 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6377 yet another string (pun intended) to translate.
6378
6379 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * po/POTFILES-shell.in: Autogenerate it.
6382
6383 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6386
6387 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6390 misnomer.
6391
6392 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6393
6394 * docs/grub.texi (Network): Add description of net_default_interface,
6395 net_default_ip and net_default_mac. Rewrite variables description
6396 to emphasize that they are per-interface.
6397
6398 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6399
6400 New test: cmdline and cat.
6401
6402 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/commands/cat.c: Show UTF-8 characters.
6405
6406 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6407
6408 * conf/Makefile.common: Poison float and double on non-emu.
6409
6410 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * configure.ac: Don't disable extended registers on emu.
6413
6414 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * configure.ac: Don't use extended registers on x86_64.
6417 Reported by: Peter Jones.
6418
6419 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * grub-core/term/efi/console.c: Fix compile error.
6422
6423 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 Compressed HFS+ support.
6426
6427 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6430 pixel".
6431
6432 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6433
6434 Menu color test.
6435
6436 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6437
6438 * grub-core/tests/setjmp_test.c: New test.
6439
6440 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 New variables 'net_default_*' to determine MAC/IP of default interface.
6443
6444 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * tests/gettext_strings_test.in: A test to check for strings not
6447 marked for translation.
6448
6449 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * autogen.sh: Exclude unused libgcrypt files from translation.
6452
6453 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 Simplify few strings.
6456
6457 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 Mark few forgotten strings for translation.
6460
6461 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6464 rather than printf.
6465
6466 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6469 rather than printf.
6470 * grub-core/video/readers/tga.c: Likewise.
6471
6472 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * tests/priority_queue_unit_test.cc: New test.
6475
6476 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6479 than printf.
6480
6481 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6482
6483 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6484 variable for one time boot menu entry.
6485
6486 2013-05-05 Bean <bean123ch@gmail.com>
6487
6488 * grub-core/commands/testspeed.c: New command testspeed.
6489
6490 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6491
6492 Factor-out human-size printing.
6493
6494 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 Agglomerate more mallocs to speed-up gfxterm.
6497
6498 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 Speed-up gfxterm by slightly agglomerating mallocs.
6501
6502 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 More video checks.
6505
6506 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 Speed-up gfxterm by saving intermediate results in index+alpha
6509 format.
6510
6511 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6514 test.
6515
6516 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6519 line of timeout as it may contain the rest of long line.
6520
6521 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * grub-core/normal/main.c: Fix freed memory dereference.
6524
6525 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 Fix several memory leaks.
6528
6529 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6530
6531 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6532
6533 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6534
6535 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6536
6537 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6538
6539 Fix test -a and -o precedence.
6540 Reported by: adrian15.
6541
6542 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6545
6546 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6547
6548 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6549 and add it as source to functional_test module.
6550
6551 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6554
6555 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6556
6557 New series of tests for gfxterm and gfxmenu.
6558
6559 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6562 the theme path relative to $prefix/themes.
6563
6564 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6567 Fix order bug.
6568 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6569
6570 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6573 descriptor.
6574
6575 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6578 grub_gfxmenu_timeout_notifications.
6579 (grub_gfxmenu_view_destroy): Likewise.
6580
6581 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6582
6583 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6584
6585 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 Several fixes to ieee1275 and big-endian video.
6588
6589 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6590
6591 Add missing exports on mips.
6592
6593 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6596 if no unifont is found.
6597 Restore original keyboard.
6598
6599 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6602 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6603
6604 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 First automated video test (running videotest and comparing results)
6607
6608 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6609
6610 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6611 instead of 2 to have full RGB/CMY test pattern.
6612
6613 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 Add few more tests.
6616
6617 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6620 ARCS. All users updated.
6621
6622 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6625
6626 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6629
6630 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6631
6632 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6633 Reported by: qwertial.
6634
6635 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6636
6637 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6638 with syntax "XXX deg"/"XXX °".
6639
6640 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 Make PCI init in i386-qemu port more robust.
6643
6644 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6645
6646 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6647 cached view is reused.
6648 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6649 open boot menus.
6650
6651 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 Unify more code in grub-install_header.
6654
6655 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Add few new tests.
6658
6659 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6660
6661 Enforce disabling of firmware disk drivers when native drivers kick in.
6662
6663 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6664
6665 * grub-core/commands/nativedisk.c: Customize the list of modules on
6666 platform. Don't try to search for disks already using native drivers.
6667
6668 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6671 platforms.
6672
6673 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6676 handling of variables containing backslash.
6677
6678 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6679
6680 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6681 dereference.
6682 Reported by: qwertial.
6683
6684 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6687
6688 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6691 dereference.
6692 Reported by: qwertial.
6693
6694 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6697
6698 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6701
6702 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 New command `nativedisk'.
6705
6706 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6709 * grub-core/loader/i386/bsd.c: Likewise.
6710
6711 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6712
6713 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6714
6715 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6718 grub_get_unaligned16 rather than shifts.
6719
6720 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/kern/file.c: Use const char * rather than casting to
6723 non-const.
6724
6725 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/commands/probe.c: Add missing grub_device_close.
6728
6729 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * INSTALL: Document linguas.sh.
6732
6733 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 Remove POTFILES.in and regenerate it in autogen.sh.
6736
6737 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 Move --directory/--override-directorry to grub-install_header and unify.
6740
6741 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * grub-core/term/morse.c: Macroify dih and dah.
6744
6745 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6746
6747 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6748
6749 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 * grub-core/term/ns8250.c: Systematically probe ports by writing
6752 to SR before using them.
6753
6754 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6755
6756 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6757 disks.
6758 (check_sas): Get sas_adress info.
6759
6760 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6763 ports.
6764
6765 2013-04-27 Leon Drugi <eyak>
6766
6767 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6768 BSS clearing.
6769
6770 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6771
6772 Core compression test.
6773
6774 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 Implement grub_machine_get_bootlocation for ARC.
6777
6778 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 Improve AHCI detection and command issuing.
6781
6782 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 Fix pseries test.
6785
6786 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 Make 'make check' work on emu.
6789
6790 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 Replace libcurses with our own vt100 handling for the ease of testing
6793 and decreasing prerequisites.
6794
6795 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6798
6799 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6802 compile when not needed.
6803
6804 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * tests/pseries_test.in: New test.
6807
6808 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 Add test to check that different boot mediums work.
6811
6812 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6815 ofw limited ISO support.
6816
6817 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * configure.ac: Fix loongson conditional.
6820
6821 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 Enable mipsel-arc.
6824
6825 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 Add serial on ARC platform.
6828
6829 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6832 commit.
6833
6834 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * tests/partmap_test.in: Add missing double semicolon.
6837
6838 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6839
6840 * util/grub-mkrescue.in: Fix loongson filename.
6841
6842 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * util/grub-mkrescue.in: Move all files that don't have a location
6845 set in stone under /boot/grub. Use ISO hard links rather than copies
6846 to save some space.
6847
6848 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6849
6850 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6851 bogus SLOF values.
6852
6853 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6854
6855 Make check work on mips-arc.
6856
6857 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * util/grub-mkrescue.in: Alias sashARCS as sash.
6860
6861 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6864 it's serial.
6865
6866 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * util/grub-install.in: Fix target fo qemu_mips.
6869 Fix extension on EFI.
6870
6871 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6874 in front of chosen entry to mark it even if highlighting is lost.
6875
6876 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6877
6878 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6879 gfxpayload=keep if cbfb is active.
6880
6881 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6884
6885 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 Add missing video ids to coreboot and ieee1275 video.
6888
6889 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6890
6891 * util/grub-mkrescue.in: Add mips-arc support.
6892
6893 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6896
6897 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 Move mips-arc link address. Previous link address was chosen
6900 in belief that RAM on SGI platforms grows down while in fact it
6901 grows up from an unusual base.
6902
6903 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6904
6905 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6906 Fix a type which prevented CD-ROM and floppy boot.
6907
6908 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6909
6910 Support coreboot framebuffer.
6911
6912 * grub-core/video/i386/coreboot/cbfb.c: New file.
6913
6914 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6915
6916 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6917 detecting too small regions.
6918
6919 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6922
6923 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6926 Remove dprintf.
6927 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6928
6929 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6930
6931 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6932 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6933 * grub-core/loader/powerpc/ieee1275/linux.c
6934 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6935
6936 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6937
6938 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6939 Look for /boot-rom as well as /rom/boot-rom.
6940
6941 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6944 handling when creating text_layer failed.
6945 * grub-core/video/video.c (grub_video_create_render_target):
6946 Set result to 0 on error.
6947 (grub_video_delete_render_target): Do not dereference NULL.
6948
6949 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6952 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6953 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6954 (grub_linux_load64): Mask out 2 high bits.
6955
6956 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6957
6958 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6959 more place.
6960
6961 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6962
6963 Add support for pseries and other bootinfo machines to grub-mkrescue.
6964
6965 Tested by: Paulo Flabiano Smorigo.
6966
6967 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * util/grub-mkrescue.in: Add GPT for EFI boot.
6970
6971 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6972
6973 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6974 It improves performance in qemu.
6975
6976 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 * build-aux/snippet: Add missing gnulib files.
6979
6980 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6981
6982 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6983
6984 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6985
6986 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6987
6988 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6989 2013-04-15 Peter Jones <pjones@redhat.com>
6990
6991 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6992 sectors.
6993 Based on patch by Peter Jones.
6994
6995 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 Fix DMRAID partition handling.
6998
6999 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7000
7001 * tests/grub_cmd_date.in: Skip on sparc64.
7002
7003 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7004
7005 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7006 firmware error messages.
7007
7008 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7011 source and destination differ.
7012
7013 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
7014
7015 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7016 detection.
7017
7018 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7019
7020 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7021 match config-util.h to avoid warnings and increase compatibility.
7022
7023 2013-04-14 Szymon Janc <szymon@janc.net.pl>
7024 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7025
7026 Add option to compress files on install/image creation.
7027
7028 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * docs/grub-dev.texi: Rearrange menu to match the section order.
7031 Reported by: Bryan Hundven.
7032
7033 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7034
7035 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7036
7037 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7038
7039 Move GRUB out of system area when using xorriso 1.2.9 or later.
7040
7041 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 * tests/grub_cmd_date.in: Add missing exit 1.
7044
7045 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7046
7047 * tests/partmap_test.in: Skip on sparc64.
7048
7049 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7050
7051 Support grub-shell on sparc64.
7052
7053 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 Support mkrescue on sparc64.
7056
7057 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7058
7059 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7060 Needed on OpenBIOS due to incomplete device tree.
7061
7062 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7063
7064 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7065 would be otherwise excluded.
7066
7067 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7068
7069 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7070 Inline name defines used only once.
7071
7072 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Fix memory leaks in ofnet.
7075 Reported by: Francesco Lavra.
7076
7077 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 * docs/man/grub-glue-efi.h2m: Add missing file.
7080
7081 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7082
7083 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7084
7085 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7086
7087 Better support Apple Intel Macs on CD.
7088
7089 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7090
7091 Replace stpcpy with grub_stpcpy in tools.
7092
7093 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 Handle Japanese special keys.
7096 Reported by: Hiroyuki YAMAMORI.
7097 Codes supplied by: Hiroyuki YAMAMORI.
7098
7099 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7100
7101 * util/grub-mkimage.c: Document memdisk implying --prefix.
7102
7103 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7104
7105 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7106 much we can do about it anyway.
7107
7108 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7109
7110 Fix handling of split transfers.
7111
7112 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * grub-core/net/http.c: Fix bad free.
7115
7116 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7119 than buffer size.
7120
7121 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7122
7123 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7124
7125 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * tests/util/grub-shell.in: Fix it on powerpc.
7128
7129 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 Turn off QEMU ACPI-way since new releases don't have shutdown port
7132 anymore.
7133
7134 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * docs/grub.texi: Update coreboot status info.
7137
7138 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * tests/grub_cmd_date.in: New test for datetime.
7141
7142 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 * tests/partmap_test.in: Fix missing qemudisk setting.
7145
7146 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 Support i386-ieee1275 grub-mkrescue and make check on it.
7149
7150 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7151
7152 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7153 feature for it.
7154
7155 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7158 GRUB_CMDLINE_XEN_DEFAULT.
7159 Reported by: Marc Warne (GigaTux) <gigatux>
7160
7161 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 Import new gnulib.
7164
7165 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 Use ACPI shutdown intests as traditional port was removed.
7168
7169 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7170
7171 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7172 distinction.
7173
7174 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7177 Fix few warining messages and leaks while on it.
7178
7179 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7180
7181 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7182 links under grub-core/lib/libgcrypt-grub/mpi.
7183
7184 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7185
7186 Fix ia64-efi image generation on big-endian machines. Deduplicate
7187 some code while on it.
7188 Reported by: Leif Lindholm.
7189
7190 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7191
7192 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7193 as extra_dist.
7194
7195 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7196
7197 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7198
7199 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7200
7201 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7202 texinfo-5.1.
7203
7204 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * grub-core/normal/term.c: Few more fixes for menu entry editor
7207 rendering.
7208 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7209
7210 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 * grub-core/normal/term.c: Few more fixes for menu entry editor
7213 rendering.
7214 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7215
7216 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7217
7218 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7219 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7220
7221 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7222
7223 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7224 instead of hardcoding grub.mo.
7225
7226 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7227
7228 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7229
7230 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7233 grub-core/disk/geli.c.
7234
7235 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * util/grub-mkfont.c: Prefer enum to #define.
7238
7239 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7240
7241 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7242
7243 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7246
7247 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7250
7251 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7252
7253 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7254
7255 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 * include/grub/bsdlabel.h: Use enums.
7258
7259 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 Move GRUB_CHAR_BIT to types.h.
7262
7263 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7264
7265 * docs/grub.texi: Document more user commands.
7266
7267 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7268
7269 * docs/grub.texi: Document menuentry --id option.
7270
7271 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7272
7273 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7274
7275 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 Unify file copying setup across different install scripts. Add
7278 options for performing partial install.
7279
7280 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7281 2013-04-04 Peter Jones <pjones@redhat.com>
7282
7283 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7284
7285 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 Use TSC as a possible time source on i386-ieee1275.
7288
7289 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7292 Init err.
7293
7294 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 * util/grub-setup.c (setup): Handle some corner cases.
7297
7298 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7299
7300 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7301
7302 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/commands/verify.c: Save verified file to avoid it being
7305 tampered with after verification was done.
7306
7307 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7310 reported width by one to compensate for curesor algorithm problem.
7311
7312 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 Fix screen corruption in menu entry editor and simplify the code
7315 flow while on it.
7316
7317 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7318
7319 * util/grub-mount.c (fuse_init): Return error if fuse_main
7320 failed.
7321
7322 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7323
7324 * include/grub/elf.h: Add missing ARM relocation codes and fix
7325 existing ones.
7326
7327 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7328
7329 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7330
7331 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7332 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7335 into account when calculating radius.
7336
7337 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7338
7339 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7340
7341 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7342
7343 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7344
7345 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7346
7347 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7348 missing closing bracket.
7349
7350 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7351
7352 * INSTALL: Mention xorriso requirement.
7353
7354 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7355
7356 * grub-core/commands/verify.c: Fix hash algorithms values for
7357 the first three hashes - they start with 1, not with 0.
7358
7359 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7362 Try terminating EFI services several times due to quirks in some
7363 implementations.
7364
7365 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7366
7367 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7368 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7369 BankField extended opcodes.
7370 (get_sleep_type): Add minimal scope handling (just enough to
7371 handle setting the scope to the root path).
7372 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7373 * include/grub/acpi.h: Add enumeration values for Event, Device,
7374 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7375
7376 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7377
7378 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7379 memory leak.
7380
7381 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 * grub-core/disk/ahci.c: Give more time for AHCI request.
7384
7385 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7388 command.
7389
7390 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7391
7392 Replace the region at 0 from coreboot tables to available in BSD
7393 memory map.
7394
7395 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7398 non-BIOS platforms.
7399
7400 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7403 platforms.
7404
7405 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7408 handling of multi-device filesystems.
7409
7410 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7413 platforms.
7414
7415 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7416
7417 Add new 'proc' filesystem framework and put luks_script into it.
7418
7419 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7422 and qemu.
7423
7424 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7427
7428 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 Add ability to generate newc additions on runtime.
7431
7432 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7435 description.
7436
7437 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * po/POTFILES.in: Regenerate.
7440
7441 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * grub-core/commands/verify.c (hashes): Add several hashes
7444 from the spec.
7445
7446 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7447
7448 Slight improve in USB-related boot-time checkpoints.
7449
7450 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 * grub-core/commands/boottime.c: Fix copyright header.
7453
7454 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7457 coreboot tables content. Support for cbmemc.
7458
7459 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 Fix a conflict between ports structures with 2 controllers of
7462 same kind.
7463
7464 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 * include/grub/boottime.h: Add missing file.
7467
7468 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7469
7470 Initialize USB ports in parallel to speed-up boot.
7471
7472 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 Fix USB devices not being detected when requested
7475 due to delayed attach.
7476
7477 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 Implement boot time analysis framework.
7480
7481 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7482
7483 Remove get_endpoint_descriptor and change all functions needing
7484 descriptor to just receive it as argument rather than endpoint
7485 address.
7486
7487 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7488
7489 Better estimate the maximum USB transfer size.
7490
7491 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 Resend a packet if we got the wrong buffer in status.
7494
7495 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7498 multiplication rather than division.
7499
7500 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7503 than divisions.
7504
7505 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7508 operations to have intended shifts and not divisions.
7509
7510 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7513 intended shifts rather than division.
7514
7515 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7518 computation for some years before epoch. Avode confusing division
7519 while on it.
7520
7521 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7522
7523 * grub-core/video/i386/pc/vbe.c
7524 (grub_video_vbe_print_adapter_specific_info): Replace division by
7525 shifts.
7526
7527 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 Adjust types in gdb module to have intended unsigned shifts rather than
7530 signed divisions.
7531
7532 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7533
7534 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7535 maximum size is 4G - 1 on hfs
7536
7537 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7540
7541 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7544 function.
7545
7546 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7547
7548 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7549 causing gcc error with gcc 4.7.1.
7550
7551 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7552
7553 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7554 dereference null pointer. While the code is technically correct, gcc
7555 may eliminate a null check if pointer is already dereferenced.
7556
7557 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7558
7559 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7560 OOM check.
7561 * grub-core/normal/term.c (read_terminal_list): Likewise.
7562
7563 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 Lift up core size limits on some platforms. Fix potential memory
7566 corruption with big core on small memory systems. Document remaining
7567 limits.
7568
7569 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7570
7571 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7572 gotoxy to 0,0.
7573
7574 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 Remove all trampoline support. Add -Wtrampolines when
7577 present. Remove symbols used for trampolines to make
7578 link fail if trampolines are present.
7579
7580 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7583 append out of its parent.
7584
7585 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7588 parent.
7589
7590 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7591
7592 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7593 all vars to a macro. All users updated.
7594
7595 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7598 i386-ieee1275.
7599
7600 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7603
7604 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7607
7608 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 Move to more hookless approach in IEEE1275 devices handling.
7611
7612 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7613
7614 * grub-core/kern/term.c (grub_term_normal_color),
7615 (grub_term_highlight_color): Add back lost defaults.
7616
7617 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 Make elfload not use hooks. Opt for flags and iterators instead.
7620
7621 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7622
7623 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7624 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7625
7626 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7629
7630 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7633 hook pass-through parameter. All users updated and unnested.
7634
7635 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7638 out of its parent.
7639
7640 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 * grub-core/fs/hfs.c: Remove nested functions.
7643
7644 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7647 the context through.
7648 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7649
7650 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * util/grub-editenv.c (list_variables): Move print_var out of its
7653 parent.
7654
7655 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7656
7657 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7658 function.
7659
7660 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * grub-core/gentrigtables.c: Make tables const.
7663
7664 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 Remove nested functions from videoinfo iterators.
7667
7668 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7671 for 64-bit platforms.
7672
7673 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7674
7675 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7676 a FOR_CHILDREN macro.
7677
7678 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7681 platform from firmware path.
7682
7683 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 Enable linux16 on non-BIOS systems for i.a. memtest.
7686
7687 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7688 correctly.
7689 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7690
7691 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7692
7693 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7694 Fix end of table condition.
7695
7696 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7697
7698 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7699 out of its parent.
7700
7701 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7702
7703 * grub-core/fs/jfs.c: Remove nested functions.
7704
7705 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * grub-core/fs/minix.c: Remove nested functions.
7708
7709 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/fs/iso9660.c: Remove nested functions.
7712
7713 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7716 of parent function.
7717
7718 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * util/grub-fstest.c: Remove nested functions.
7721
7722 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 * grub-core/loader/machoXX.c: Remove nested functions.
7725
7726 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7727
7728 Remove nested functions from disk and file read hooks.
7729
7730 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7731 (struct grub_disk): Add read_hook_data member.
7732 * include/grub/file.h (struct grub_file): Likewise.
7733 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7734 argument.
7735
7736 Update all callers.
7737
7738 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7739
7740 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7741 Fix off by one error in enumerating extended partitions.
7742
7743 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7744
7745 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7746 memory leak if device name is not found.
7747
7748 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7749
7750 * grub-core/normal/menu_entry.c (update_screen): remove
7751 unused variable `off' which caused scroll down arrow to be always shown.
7752
7753 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7754
7755 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7756 access to unallocated memory.
7757
7758 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7759
7760 * Makefile.util.def: Add partmap/msdos.c to common library.
7761 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7762 * grub-core/disk/ldm.c: Check for existence of
7763 GRUB_PC_PARTITION_TYPE_LDM.
7764
7765 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7768 sizes and display sector size.
7769
7770 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7771
7772 Implement new command cmosdump.
7773
7774 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7775
7776 Support Openfirmware disks with non-512B sectors.
7777
7778 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7779 size of the disk.
7780 * (grub_ofdisk_get_block_size): New function.
7781 * (grub_ofdisk_prepare): Use the correct block size.
7782 * (grub_ofdisk_read): Likewise.
7783 * (grub_ofdisk_write): Likewise.
7784 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7785 New proto.
7786
7787 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7788
7789 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7790
7791 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7794 on first error.
7795
7796 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7799 freeing it.
7800
7801 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 Implement USBDebug (full USB stack variant).
7804
7805 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7806
7807 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7808 unless they have unexpected values.
7809
7810 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7813 grub_print_error.
7814
7815 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7816
7817 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7818 zero-out of port structure.
7819
7820 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7823 of extended attributes.
7824
7825 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7826
7827 * util/grub-install.in: change misleading comment about
7828 device.map creation
7829
7830 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7831
7832 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7833 when menu highlight color isn't set.
7834
7835 2013-01-27 C. Masloch <pushbx@38.de>
7836
7837 Improve FreeDOS direct loading support compatibility.
7838
7839 * include/grub/i386/relocator.h (grub_relocator16_state):
7840 New member ebp.
7841 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7842 variable.
7843 (grub_relocator16_boot): Handle %ebp.
7844 * grub-core/lib/i386/relocator16.S: Likewise.
7845 * grub-core/loader/i386/pc/freedos.c:
7846 Load BPB to pass kernel which partition to load from.
7847 Check that kernel file is not too large.
7848 Set register dl to BIOS unit number as well.
7849
7850 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7851
7852 * util/grub-reboot.in (usage): Document the need for
7853 GRUB_DEFAULT=saved.
7854 * util/grub-set-default.in (usage): Likewise.
7855 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7856
7857 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7860 than defining WORDS_BIGENDIAN manually.
7861
7862 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7865 invariants.
7866
7867 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7868
7869 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7870 nested.
7871 (blit_comb: add_device_width): Likewise.
7872
7873 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7874
7875 Remove nested functions from USB iterators.
7876
7877 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7878 (grub_usb_controller_iterate_hook_t): Likewise.
7879 (grub_usb_iterate): Add hook_data argument.
7880 (grub_usb_controller_iterate): Likewise.
7881 (struct grub_usb_controller_dev.iterate): Likewise.
7882
7883 Update all implementations and callers.
7884
7885 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7886
7887 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7888 margin when not needed.
7889
7890 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7891
7892 Make color variables global instead of it being per-terminal.
7893
7894 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7897 asterisk.
7898
7899 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7900
7901 Fix powerpc and sparc64 build failures caused by un-nesting memory
7902 map iterators.
7903
7904 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7905
7906 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7907 parameter declarations.
7908
7909 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7912
7913 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 Improve spkmomdem reliability by adding a separator between bytes.
7916
7917 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7918
7919 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7920 an Acer registration utility with several sightings in the wild.
7921 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7922
7923 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7924
7925 Remove nested functions from filesystem directory iterators.
7926
7927 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7928 (struct grub_fs.dir): Add hook_data argument.
7929
7930 Update all implementations and callers.
7931
7932 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7933
7934 * docs/grub.texi (Multi-boot manual config): Fix typo for
7935 "recommended".
7936
7937 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7938
7939 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7940 until after its use in generate_image.
7941
7942 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7943
7944 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7945 initrd size to addr_min, since the initrd will be allocated after
7946 this address.
7947
7948 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7949
7950 * conf/Makefile.common: Fix autogen rules to pass definition
7951 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7952
7953 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7954
7955 * include/grub/elf.h: Update ARM definitions based on binutils.
7956
7957 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7958
7959 Split long USB transfers into short ones.
7960
7961 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7962
7963 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7964 is interrupted by ESC.
7965
7966 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7967
7968 * util/grub-script-check.c (main): Uniform the error message.
7969
7970 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7971
7972 Remove nested functions from ELF iterators.
7973
7974 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7975
7976 Remove nested functions from device iterators.
7977
7978 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7979 (grub_arc_iterate_devs): Add hook_data argument.
7980 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7981 (struct grub_ata_dev.iterate): Add hook_data argument.
7982 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7983 (grub_device_iterate): Add hook_data argument.
7984 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7985 (struct grub_disk_dev.iterate): Add hook_data argument.
7986 (grub_disk_dev_iterate): Likewise.
7987 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7988 Likewise.
7989 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7990 Likewise.
7991 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7992 type.
7993 (struct grub_partition_map.iterate): Add hook_data argument.
7994 (grub_partition_iterate): Likewise.
7995 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7996 (struct grub_scsi_dev.iterate): Add hook_data argument.
7997
7998 Update all callers.
7999
8000 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
8001
8002 Fix typos for "developer" and "development".
8003
8004 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 Add license header to spkmodem-recv.c.
8007
8008 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
8009
8010 Rewrite spkmodem to use PIT for timing. Double the speed.
8011
8012 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8013
8014 Add new command pcidump.
8015
8016 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8017
8018 New terminal outputs using serial: morse and spkmodem.
8019
8020 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 Improve bidi handling in entry editor.
8023
8024 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8027 argument to prevent name collision.
8028
8029 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8030
8031 Remove nested functions from script reading and parsing.
8032
8033 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8034 getline_data argument, passed to getline.
8035 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8036 getline_data argument, passed to grub_parser_split_cmdline.
8037 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8038 lexerstate->getline_data to lexerstate->getline.
8039 (grub_script_lexer_init): Add getline_data argument, saved in
8040 lexerstate->getline_data.
8041 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8042 argument, passed to grub_script_parse.
8043 * grub-core/script/script.c (grub_script_parse): Add getline_data
8044 argument, passed to grub_script_lexer_init.
8045 * include/grub/parser.h (grub_parser_split_cmdline): Update
8046 prototype. Update all callers to pass appropriate getline data.
8047 (struct grub_parser.parse_line): Likewise.
8048 (grub_rescue_parse_line): Likewise.
8049 * include/grub/reader.h (grub_reader_getline_t): Add void *
8050 argument.
8051 * include/grub/script_sh.h (struct grub_lexer_param): Add
8052 getline_data member.
8053 (grub_script_parse): Update prototype. Update all callers to pass
8054 appropriate getline data.
8055 (grub_script_lexer_init): Likewise.
8056 (grub_normal_parse_line): Likewise.
8057
8058 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8059 data argument.
8060 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8061 static instead of nested. Rename to ...
8062 (grub_parser_execute_getline): ... this.
8063 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8064 data argument.
8065 * grub-core/normal/main.c (read_config_file: getline): Make static
8066 instead of nested. Rename to ...
8067 (read_config_file_getline): ... this.
8068 (grub_normal_read_line): Add unused data argument.
8069 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8070 getline): Make static instead of nested. Rename to ...
8071 (grub_script_execute_sourcecode_getline): ... this.
8072 * util/grub-script-check.c (main: get_config_line): Make static
8073 instead of nested.
8074
8075 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8076
8077 Remove nested functions from memory map iterators.
8078
8079 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8080 argument, passed to hook.
8081 * grub-core/kern/i386/coreboot/mmap.c
8082 (grub_linuxbios_table_iterate): Likewise.
8083 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8084 instead of nested.
8085 (grub_machine_mmap_iterate): Add hook_data argument.
8086 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8087 Add hook_data argument, passed to hook.
8088 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8089 Likewise.
8090 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8091 Likewise.
8092 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8093 Likewise.
8094 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8095 Likewise.
8096 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8097 Likewise.
8098 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8099 Likewise.
8100 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8101 (grub_machine_mmap_iterate): Likewise.
8102 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8103 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8104 prototype.
8105 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8106 Remove NESTED_FUNC_ATTR from here and from all users.
8107 (grub_mmap_iterate): Update prototype.
8108 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8109 pass appropriate hook data.
8110 (grub_machine_mmap_iterate): Likewise.
8111
8112 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8113 static instead of nested.
8114 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8115 Rename to ...
8116 (lsmmap_hook): ... this.
8117 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8118 Likewise.
8119 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8120 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8121 heap_init): Likewise.
8122 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8123 Rename to ...
8124 (mmap_iterate_hook): ... this.
8125 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8126 Likewise.
8127 * grub-core/lib/ieee1275/relocator.c
8128 (grub_relocator_firmware_get_max_events: count): Likewise.
8129 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8130 to ...
8131 (grub_relocator_firmware_fill_events_iter): ... this.
8132 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8133 hook): Likewise. Rename to ...
8134 (grub_relocator_alloc_chunk_align_iter): ... this.
8135 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8136 Rename to ...
8137 (generate_e820_mmap_iter): ... this.
8138 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8139 Rename to ...
8140 (count_hook): ... this.
8141 (grub_linux_boot: hook): Likewise. Rename to ...
8142 (grub_linux_boot_mmap_find): ... this.
8143 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8144 (grub_linux_boot_mmap_fill): ... this.
8145 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8146 hook): Likewise. Rename to ...
8147 (grub_fill_multiboot_mmap_iter): ... this.
8148 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8149 hook): Likewise. Rename to ...
8150 (count_hook): ... this.
8151 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8152 hook): Likewise. Rename to ...
8153 (grub_fill_multiboot_mmap_iter): ... this.
8154 * grub-core/loader/powerpc/ieee1275/linux.c
8155 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8156 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8157 Likewise. Rename to ...
8158 (alloc_phys_choose): ... this.
8159 (determine_phys_base: get_physbase): Likewise.
8160 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8161 find_hook): Likewise.
8162 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8163 (malloc_hook: count_hook): Likewise.
8164 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8165 Likewise. Rename to ...
8166 (lower_hook): ... this.
8167 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8168 (upper_hook): ... this.
8169 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8170 (post64_hook): ... this.
8171 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8172 Likewise. Rename to ...
8173 (lower_hook): ... this.
8174 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8175 (upper_hook): ... this.
8176 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8177 (grub_mmap_iterate: fill_hook): Likewise.
8178 (fill_mask): Pass addr and mask within a single struct.
8179 (grub_cmd_badram: hook): Make static instead of nested. Rename
8180 to ...
8181 (badram_iter): ... this.
8182 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8183 (cutmem_iter): ... this.
8184
8185 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8188 delimit path in strings using quotes.
8189 * util/getroot.c (grub_guess_root_devices): Likewise.
8190 (grub_make_system_path_relative_to_its_root): Likewise.
8191 * util/grub-probe.c (probe): Likewise.
8192 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8193 (xrealpath): Likewise.
8194
8195 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 Fix compilation with older compilers.
8198
8199 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8200 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8201 declarations.
8202 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8203 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8204 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8205 identifier with b.
8206 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8207 * include/grub/crypto.h: Add type defines.
8208 * util/import_gcrypth.sed: Remove duplicate type defines.
8209
8210 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8211
8212 New command list_trusted.
8213
8214 * grub-core/commands/verify.c (grub_cmd_list): New function.
8215
8216 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8217
8218 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8219 info message.
8220
8221 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8222
8223 Remove nested functions from PCI iterators.
8224
8225 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8226 passed to hook. Update all callers to pass appropriate hook data.
8227 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8228 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8229 Remove NESTED_FUNC_ATTR from here and from all users.
8230 (grub_pci_iterate): Update prototype.
8231 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8232 instead of nested. Rename to ...
8233 (grub_cs5536_find_iter): ... this.
8234 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8235 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8236 Likewise.
8237 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8238 Likewise.
8239 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8240 Likewise.
8241 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8242 Likewise.
8243 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8244 * grub-core/video/radeon_fuloong2e.c
8245 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8246 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8247 find_card): Likewise.
8248 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8249 Likewise.
8250
8251 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * grub-core/commands/verify.c: Mark messages for translating.
8254
8255 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8258 fatal.
8259
8260 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8263 fatal.
8264
8265 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * autogen.sh: Do not try to delete nonexistant files.
8268 * util/import_gcrypth.sed: Add some missing header removals.
8269
8270 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8271
8272 Clean up dangling references to grub-setup.
8273 Fixes Ubuntu bug #1082045.
8274
8275 * docs/grub.texi (Images): Refer generally to grub-install rather
8276 than directly to grub-setup.
8277 (Installing GRUB using grub-install): Remove direct reference to
8278 grub-setup.
8279 (Device map) Likewise.
8280 (Invoking grub-install): Likewise.
8281 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8282 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8283 * util/grub-install.in (usage): Likewise.
8284
8285 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8286 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8287 grub-setup.
8288 * configure.ac: Remove grub_setup output variable.
8289
8290 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8291 to grub-bios-setup.
8292 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8293 grub-setup to grub-sparc64-setup.
8294
8295 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 Import gcrypt public-key cryptography and implement signature checking.
8298
8299 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8300
8301 * grub-core/fs/ntfs.c: Ue more appropriate types.
8302 * grub-core/fs/ntfscomp.c: Likewise.
8303 * include/grub/ntfs.h: Likewise.
8304
8305 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8306
8307 Support Apple FAT binaries on non-Apple platforms.
8308
8309 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8310 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8311 Likewise.
8312 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8313 Apple FAT binaries.
8314
8315 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8318 sector devices.
8319
8320 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8321
8322 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8323 explicitly zeroing elements.
8324 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8325 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8326 of elements in a structure already allocated using grub_zalloc.
8327 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8328
8329 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8330
8331 * docs/grub.texi (grub_cpu): New subsection.
8332 (grub_platform): Likewise.
8333
8334 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8337
8338 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8339
8340 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8341 divisions.
8342
8343 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8346 * grub-core/fs/ntfscomp.c: Likewise.
8347 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8348 (grub_ntfs_comp): Likewise.
8349
8350 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8353 Rename to ...
8354 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8355 of groups_per_block. All users updated.
8356
8357 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8358
8359 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8360 grub_error properly.
8361 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8362 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8363
8364 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8367 always in /boot/zfs.
8368 Reported by: Yuta Satoh.
8369
8370 2013-01-03 Yuta Satoh <nigoro>
8371
8372 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8373 ${grub_probe}
8374
8375 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * configure.ac: Extend -Wno-trampolines to host.
8378
8379 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8382 entry->len = 0.
8383
8384 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8385
8386 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8387 (Invoking grub-script-check): Likewise.
8388
8389 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8390
8391 * docs/grub.texi (Invoking grub-mount): New section.
8392 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8393
8394 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8395
8396 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8397 test failures, so that a failing unit test correctly causes 'make
8398 check' to fail.
8399
8400 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8401
8402 Fix failing printf test.
8403
8404 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8405 '$' in the correct order when collecting type information.
8406
8407 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8408
8409 * docs/grub.texi (configfile): Explain environment variable
8410 handling.
8411 (source): New section.
8412 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8413
8414 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8415
8416 Remove several trivially-unnecessary uses of nested functions.
8417
8418 * grub-core/commands/i386/pc/sendkey.c
8419 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8420 instead of nested.
8421 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8422 Rename to ...
8423 (legacy_file_getline): ... this.
8424 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8425 Likewise.
8426 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8427 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8428 to ...
8429 (probe_dummy_iter): ... this.
8430 * grub-core/kern/i386/coreboot/mmap.c
8431 (grub_linuxbios_table_iterate: check_signature): Likewise.
8432 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8433 check_varstate): Likewise. Mark inline.
8434 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8435 an additional parameter.
8436 (find_long: fnd_long): Likewise. Pass two additional parameters.
8437 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8438 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8439 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8440 Likewise. Rename to ...
8441 (grub_cmos_find_port_iter): ... this.
8442 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8443 Rename to ...
8444 (find_rtc_iter): ... this.
8445
8446 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8447 function directly into the function body, since it is only called
8448 once.
8449
8450 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8451
8452 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8453 __attribute__ ((unused)).
8454 * grub-core/video/bochs.c (find_card): Likewise.
8455 * grub-core/video/cirrus.c (find_card): Likewise.
8456 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8457 * grub-core/video/sis315pro.c (find_card): Likewise.
8458 * grub-core/video/sm712.c (find_card): Likewise.
8459
8460 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8461
8462 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8463 Fixes Savannah bug #37821.
8464
8465 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8466
8467 Apply program name transformations at build-time rather than at
8468 run-time. Fixes Debian bug #696465.
8469
8470 * acinclude.m4 (grub_TRANSFORM): New macro.
8471 * configure.ac: Create output variables with transformed names for
8472 most programs.
8473 * util/bash-completion.d/grub-completion.bash.in: Use
8474 pre-transformed variables for program names.
8475 * util/grub-install.in: Likewise.
8476 * util/grub-kbdcomp.in: Likewise.
8477 * util/grub-mkconfig.in: Likewise.
8478 * util/grub-mkconfig_lib.in: Likewise.
8479 * util/grub-mknetdir.in: Likewise.
8480 * util/grub-mkrescue.in: Likewise.
8481 * util/grub-mkstandalone.in: Likewise.
8482 * util/grub-reboot.in: Likewise.
8483 * util/grub-set-default.in: Likewise.
8484 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8485 * tests/util/grub-shell-tester.in: Remove unused assignment.
8486 * tests/util/grub-shell.in: Likewise.
8487 * util/grub.d/00_header.in: Likewise.
8488
8489 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8490
8491 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8492
8493 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8494 HAVE_RAW_DECL_GETS.
8495 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8496
8497 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8500 Reported by: Eriks Latosheks <foresterlv>.
8501
8502 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8503
8504 * docs/grub.texi (Network): Update instructions on generating netboot
8505 image.
8506
8507 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8510 around device name if necessarry.
8511
8512 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8513
8514 * util/grub-install.in: Follow the symbolic link parameter added
8515 to the file command.
8516
8517 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8518
8519 * util/grub-install.in: Remove stale TODO.
8520
8521 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8522
8523 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8524 dynamic allocation for the bootpath buffer.
8525
8526 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8527
8528 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8529 window too small.
8530
8531 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8534 argument rather than font name. All users updated.
8535 (grub_gfxterm_set_window): Likewise.
8536
8537 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8538
8539 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8540 from working.
8541
8542 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8543
8544 * util/getroot.c (convert_system_partition_to_system_disk): Support
8545 nbd disks.
8546
8547 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8548
8549 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8550 infinite loop on corrupted FS.
8551
8552 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 Fix big-endian mtime.
8555
8556 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8557 together sec and usec.
8558 (grub_ufs_dir): Use correct byteswapping for UFS time.
8559
8560 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8561
8562 Support big-endian UFS1.
8563
8564 * Makefile.util.def (libgrubmods): Add ufs_be.c
8565 * grub-core/Makefile.core.def (ufs1_be): New module.
8566 * grub-core/fs/ufs_be.c: New file.
8567 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8568 the file.
8569
8570 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8571
8572 * include/grub/types.h: Fix functionality unaffecting typo in
8573 GRUB_TARGET_WORDSIZE conditional macro.
8574
8575 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8576
8577 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8578
8579 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8580
8581 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8582 that /netbsd appears first (when it exists).
8583
8584 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8585
8586 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8587 Fixes Savannah bug #37558.
8588
8589 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8590
8591 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8592 description of extract_entries_configfile.
8593
8594 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8595
8596 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8597 preferred_address.
8598 (grub_cmd_linux): Likewise.
8599 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8600 preferred_lifetime. Update all users.
8601
8602 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8603
8604 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8605 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8606
8607 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8608
8609 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8610 errors from grub-probe to /dev/null, not stdout.
8611
8612 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8615 sector 1.
8616
8617 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8618
8619 * util/grub-install.in: Make the error message if $source_dir
8620 doesn't exist more useful.
8621
8622 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8623
8624 Fix grub-emu build on FreeBSD.
8625
8626 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8627 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8628 headers on Linux.
8629 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8630 implementation is currently Linux-specific.
8631 * util/getroot.c (exec_pipe): Define only on Linux or when either
8632 libzfs or libnvpair is unavailable.
8633 (find_root_devices_from_poolname): Remove unused path variable.
8634
8635 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8636
8637 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8638 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8639 should fit before end == 63.
8640
8641 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8642
8643 * util/grub-setup.c (write_rootdev): Remove unused core_img
8644 parameter. Update all callers.
8645 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8646 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8647 GRUB_SETUP_BIOS.
8648
8649 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8650
8651 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8652 (grub_add_tab): New function.
8653 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8654 * util/grub.d/10_illumos.in: Likewise.
8655 * util/grub.d/10_kfreebsd.in: Likewise.
8656 * util/grub.d/10_linux.in: Likewise.
8657 * util/grub.d/10_netbsd.in: Likewise.
8658 * util/grub.d/10_windows.in: Likewise.
8659 * util/grub.d/10_xnu.in: Likewise.
8660 * util/grub.d/20_linux_xen.in: Likewise.
8661 * util/grub.d/30_os-prober.in: Likewise.
8662
8663 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8666 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8667 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8668 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8669 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8670 ieee1275-nocursor.
8671 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8672 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8673
8674 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8677 le-conversion.
8678 Reported by: BURETTE, Bernard.
8679
8680 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8681
8682 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8683 from comment.
8684
8685 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8686
8687 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8688 IEEE1275 machines. Fixes powerpc-emu compilation.
8689 * include/grub/terminfo.h: Likewise.
8690
8691 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8692
8693 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8694 a const pointer.
8695 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8696 const pointer.
8697 (efiemu_set_variable): Make vendor_guid a const pointer.
8698
8699 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8700
8701 Don't require grub-mkconfig_lib to generate manpages for programs.
8702
8703 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8704 dependencies, don't add grub-mkconfig_lib.
8705 (program): Pass empty adddeps.
8706 (script): Pass grub-mkconfig_lib as adddeps.
8707
8708 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8711 * util/getroot.c (grub_find_device): Likewise.
8712 (get_mdadm_uuid): Likewise.
8713 (grub_util_is_imsm): Likewise.
8714 (grub_util_pull_device): Likewise.
8715 * util/grub-probe.c (probe): Likewise.
8716
8717 2012-09-10 Benoit Gschwind <gschwind>
8718
8719 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8720 (devs): Add devpath_8.
8721
8722 2012-09-08 Peter Jones <pjones@redhat.com>
8723
8724 * grub-core/Makefile.core.def (efifwsetup): New module.
8725 * grub-core/commands/efi/efifwsetup.c: New file.
8726 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8727 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8728 New define.
8729 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8730
8731 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8732
8733 * configure.ac: Add SuSe path.
8734
8735 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8736
8737 * NEWS: Fix typo.
8738
8739 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8740
8741 * util/import_gcry.py: Sort cipher_files, to make build system
8742 generation more deterministic.
8743
8744 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8747 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8748 (grub_set_datetime): Likewise.
8749
8750 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8753 warnings.
8754
8755 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8758
8759 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8762
8763 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8764
8765 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8766 required for checkouts from bzr, but it may be useful for users or
8767 distributors wishing to update translations against a tarball
8768 distribution, and it can be helpful for the tarball to be a superset
8769 of what's in bzr.
8770
8771 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8772
8773 * Makefile.am (EXTRA_DIST): Add
8774 grub-core/tests/boot/linux.init-mips.S,
8775 grub-core/tests/boot/linux.init-ppc.S, and
8776 grub-core/tests/boot/linux-ppc.cfg.
8777
8778 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8779
8780 * grub-core/mmap/mips/loongson: Remove empty directory.
8781
8782 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8783
8784 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8785 gone.
8786
8787 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8788
8789 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8790 grub-sparc64-setup.
8791
8792 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8793
8794 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8795
8796 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8797
8798 * po/POTFILES.in: Regenerated.
8799
8800 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8801
8802 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8803 (NetBSD): New subsection.
8804
8805 2012-07-22 Ales Nesrsta <starous@volny.cz>
8806
8807 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8808 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8809
8810 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8813 * util/grub.d/10_hurd.in: Add missing quoting.
8814 * util/grub.d/10_illumos.in: Likewise.
8815 * util/grub.d/10_kfreebsd.in: Likewise.
8816 * util/grub.d/10_linux.in: Likewise.
8817 * util/grub.d/20_linux_xen.in: Likewise.
8818
8819 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 New command `lsefi'.
8822
8823 * grub-core/Makefile.core.def (lsefi): New module.
8824 * grub-core/commands/efi/lsefi.c: New file.
8825 * include/grub/efi/api.h: Add more GUIDs.
8826
8827 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8830 (grub_bsd_elf32_hook): Likewise.
8831 (grub_bsd_elf64_size_hook): Likewise.
8832 (grub_bsd_elf64_hook): Likewise.
8833 (grub_bsd_load_elf): Likewise.
8834
8835 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8838 if hash function is unavailable.
8839 (dec_stream_header): Likewise.
8840
8841 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8844 filter state.
8845
8846 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 Fix coreboot compilation.
8849
8850 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8851 (grub_vga_text_init_real): ... this.
8852 (grub_vga_text_fini): Rename to ...
8853 (grub_vga_text_fini_real): ... this.
8854
8855 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8858
8859 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * grub-core/lib/legacy_parse.c: Support clear and testload.
8862
8863 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8866
8867 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8870
8871 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * grub-core/net/tftp.c (ack): Fix endianness problem.
8874 (tftp_receive): Likewise.
8875 Reported by: Michael Davidsaver.
8876
8877 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8880
8881 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8884 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8885 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8886
8887 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8888
8889 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8890 efi_mmap_size.
8891 Reported by: Stuart Hayes.
8892
8893 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8896
8897 * grub-core/Makefile.core.def (mda_text): New module.
8898 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8899 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8900 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8901 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8902 here.
8903 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8904 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8905 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8906 here.
8907 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8908 to ..
8909 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8910 ... here
8911 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8912 here.
8913 * grub-core/term/i386/vga_common.c: Removed.
8914 * include/grub/i386/vga_common.h: Likewise.
8915 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8916 (grub_vga_cr_bw_read): Likewise.
8917 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8918 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8919 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8920 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8921 grub_vga_cr_read/grub_vga_cr_write.
8922 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8923
8924 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * configure.ac: Bump version to 2.00.
8927 * grub-core/normal/main.c (features): Add feature_200_final.
8928
8929 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8930 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8931
8932 * NEWS: Fix unclarity and language mistakes.
8933
8934 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8937 additional size to 3 pages.
8938 Reported by: Stuart Hayes.
8939
8940 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * NEWS: Add 2.00 entry.
8943
8944 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8947 put explicit "/" for empty path.
8948 (wildcard_expand): Improve dprintf.
8949
8950 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8951
8952 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8953 it's equal to currnode. This can happen with "" symlink.
8954
8955 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8956
8957 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8958 echo shell command by printf command.
8959
8960 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8963 the value returned by firmware is the maximal position, not diumension.
8964 (grub_terminfo_output_state): Use a more sane fallback.
8965
8966 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8969
8970 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8973 frequency to 150 MHz.
8974
8975 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 Apple fixes.
8978
8979 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8980 __APPLE_
8981 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8982 definition.
8983 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8984
8985 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8986
8987 Handle slash in HFS label.
8988
8989 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8990 (grub_hfs_dir): Tanslate slash.
8991 (grub_hfs_label): Don't translate slash.
8992
8993 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8996 network protocol listing since it introduces problematic dependency on
8997 net module.
8998
8999 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9000
9001 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9002
9003 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9004
9005 Init video early on yeeloong to avoid being rebooted by watchdog.
9006
9007 * grub-core/Makefile.am (gensm712): New target.
9008 (sm712_start.S): Likewise.
9009 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9010 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9011 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9012 description.
9013 * include/grub/vga.h: Move registry definitions to...
9014 * include/grub/vgaregs.h: ... here.
9015
9016 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
9017
9018 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9019 signedness.
9020
9021 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9022
9023 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9024 platforms with firmware disk drivers in the core.
9025
9026 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9027
9028 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9029 informative verbose message.
9030 (read_lv): Handle 64-bit segment size.
9031
9032 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9035
9036 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9039 character but still remove trainling spaces.
9040 (grub_fat_label): Ignore archive flag.
9041
9042 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9045 cast between linux_kernel_header and linux_kernel_params.
9046
9047 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9050 type for size.
9051 (grub_raid6_recover_func_t): Likewise.
9052 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9053 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9054
9055 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9058
9059 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9060
9061 Fix overflow.
9062
9063 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9064 [__NetBSD__]: Add explicit cast before bitshift.
9065
9066 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * configure.ac: Bump to 2.00~rc1.
9069
9070 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9071
9072 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9073 half of $a0.
9074
9075 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9076 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9077
9078 * docs/grub.texi: Fix search syntax.
9079 (Multi-boot manual config): Put msdos rather than GPT example.
9080 Grammar corrections.
9081
9082 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9083
9084 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9085
9086 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9087
9088 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9089
9090 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9091
9092 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9093 message on double free. Put the value of magic in case of mismatch.
9094
9095 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9096
9097 Speed-up video on yeeloong.
9098
9099 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9100 add cached_ptr.
9101 (grub_video_sm712_video_fini): Unmap cached_ptr.
9102 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9103 (grub_video_sm712_set_active_render_target): Removed.
9104 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9105 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9106 sync caches.
9107
9108 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 Avoid flushing the same line multiple times on loongson.
9111
9112 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9113 Step in 32 bytes and not 1 byte.
9114 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9115 Likewise.
9116
9117 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9118
9119 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9120 subvolumes.
9121
9122 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9123
9124 Implement flow control for http.
9125
9126 * grub-core/net/http.c (parse_line): Handle response 206.
9127 (http_receive): Stall if too many packets are in the queue.
9128 (http_establish): Fix range header.
9129 (http_seek): Fix double free.
9130 (http_close): Likewise.
9131 (http_packets_pulled): New function.
9132 (grub_http_protocol): Set http_seek
9133 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9134 (ack_real): Set window depending on i_stall.
9135 (grub_net_send_tcp_packet): Likewise.
9136 (grub_net_tcp_stall): New function.
9137 (grub_net_tcp_unstall): Likewise.
9138 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9139 (grub_net_tcp_unstall): Likewise.
9140
9141 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9144
9145 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9148
9149 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * tests/util/grub-shell.in: Fix a typo.
9152
9153 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 Implement flow control for tftp.
9156
9157 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9158 packets but stop only if stop condition is satisfied.
9159 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9160 `stall' instead of `eof' as stop condition.
9161 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9162 (http_err): Likewise.
9163 * grub-core/net/tftp.c (ack): Replace the first argument with data
9164 instead of socket.
9165 (tftp_receive): Stall if too many packets are in wait queue.
9166 (tftp_packets_pulled): New function.
9167 (grub_tftp_protocol): Set packets_pulled.
9168 * include/grub/net.h (grub_net_packets): New field count.
9169 (grub_net_put_packet): Increment count.
9170 (grub_net_remove_packet): Likewise.
9171 (grub_net_app_protocol): New field `packets_pulled'.
9172 (grub_net): New field `stall'.
9173
9174 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9177 sync part to handle them.
9178
9179 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9182 * grub-core/net/drivers/ieee1275/ofnet.c
9183 (grub_ieee1275_net_config_real): Likewise.
9184
9185 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9188 the direct route for server/gateway.
9189
9190 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9193 IP address to server name since we may not hame the DNS.
9194
9195 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9196
9197 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9198 freeing random buffer on failure.
9199 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9200
9201 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9204
9205 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9206
9207 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9208 reserved bytes.
9209 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9210 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9211 Handle malloc error correctly.
9212
9213 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9214
9215 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9216 blocks.
9217
9218 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9219
9220 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9221 increment.
9222
9223 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9224
9225 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9226 none is explicitly specified.
9227
9228 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9229
9230 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9231 while reallocating.
9232
9233 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9234
9235 Respect netmask from bootp/dhcp.
9236
9237 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9238 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9239 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9240 into ...
9241 (grub_net_add_ipv4_local): ... this.
9242 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9243 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9244 (grub_net_add_ipv4_local): New proto.
9245
9246 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9249 determining EFI memory map size.
9250
9251 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9252
9253 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9254
9255 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9258 when looking for partition separator.
9259
9260 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9261
9262 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9263 Escape commas.
9264
9265 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9266
9267 Restructure FAT driver to avoid hook in label reading as it hits a
9268 GCC bug.
9269
9270 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9271 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9272 (grub_fat_iterate_dir): Split into ...
9273 (grub_fat_iterate_init): ... this, ...
9274 (grub_fat_iterate_fini): ... this, ...
9275 (grub_fat_iterate_dir_next): ... and this. All users updated.
9276
9277 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9280 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9281 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9282 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9283 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9284 New fields last_key and last_key_time.
9285 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9286 extended key-esc into extended key-extended key.
9287
9288 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 Avoid unnecessary memcpy of whole video buffer.
9291
9292 * grub-core/video/fb/video_fb.c (dirty): New struct.
9293 (framebuffer): Add members current_dirty and previous_dirty.
9294 (dirty): New function.
9295 (grub_video_fb_fill_rect): Update dirty.
9296 (common_blitter): Likewise.
9297 (grub_video_fb_scroll): Likewise.
9298 (doublebuf_blit_update_screen): Copy only dirty part.
9299 (doublebuf_pageflipping_update_screen): Likewise.
9300 (grub_video_fb_doublebuf_blit_init): Init dirty.
9301 (doublebuf_pageflipping_init): Likewise.
9302 (grub_video_fb_setup): Likewise.
9303
9304 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9307 poll rate.
9308
9309 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 Fix wildcard regexp dot and other special characters handling.
9312 Reported by: Robert Mabee.
9313
9314 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9315 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9316 (split_path): Trigger expansion on '?'.
9317 (unescape): New function.
9318 (wildcard_expand): Unescape parts copied without globbing.
9319 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9320 (grub_script_arglist_to_argv): Don't unescape expansions.
9321
9322 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9323
9324 * include/grub/net.h (grub_net_card): New member txbufsize.
9325 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9326 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9327 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9328 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9329 txbufsize.
9330 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9331 compatible property to check for macs. Set
9332 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9333 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9334 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9335 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9336 (send_card_buffer): Use txbuf.
9337 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9338 nested function out of the parent while on it.
9339
9340 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9341
9342 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9343 presence check.
9344 (grub_ieee1275_net_config_real): Fix config pointer.
9345
9346 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9347
9348 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9349 filename parsing to non-block devices.
9350
9351 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9352
9353 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9354
9355 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9356
9357 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9358 All users updated.
9359
9360 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9361
9362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9363 UUID search command even if hints probing failed.
9364
9365 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9366
9367 * po/POTFILES.in: Regenerated.
9368
9369 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Speed-up video on fuloong.
9372
9373 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9374 New function.
9375 (grub_pci_device_unmap_range): Handle non-cached address.
9376 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9377 add direct_ptr.
9378 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9379 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9380 (grub_video_sis315pro_set_active_render_target): Removed.
9381 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9382 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9383 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9384 sync caches.
9385 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9386 New proto.
9387
9388 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9389
9390 * docs/grub.texi (Multi-boot manual config): New section.
9391
9392 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Avoid slow read-back from VRAM.
9395
9396 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9397 Move from here ...
9398 * grub-core/video/fb/video_fb.c
9399 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9400 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9401 (front_target): Remove front_target. Add pages.
9402 (grub_video_fb_init): Skip setting front_pages.
9403 (grub_video_fb_fini): Likewise.
9404 (doublebuf_blit_update_screen): Use pages.
9405 (grub_video_fb_doublebuf_blit_init): Likewise.
9406 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9407 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9408 (grub_video_fb_setup): Prefer doublebuffing.
9409
9410 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9413 gzio.
9414
9415 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 Add loongson tests.
9418
9419 * tests/util/grub-shell.in: Handle loongson.
9420 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9421 drivers.
9422 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9423 Reboot instead of shutdown if REBOOT is defined.
9424
9425 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9426
9427 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9428 sized ports since unlike on real hardware qemu supports only 32-bit
9429 regs.
9430
9431 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9434 * util/grub-mkrescue.in: Handle loongson.
9435
9436 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9439 Set is_part appropriately.
9440 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9441 names. Canonicalize partition without full disk.
9442
9443 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Revert usb-quiesce since it's wrong.
9446
9447 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9448 (grub_ofdisk_init): Don't do quiesce.
9449
9450 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9453 PowerMac workaround to Xserves as well.
9454 Information supplied by: Benjamin Herrenschmidt.
9455
9456 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 Don't assume that beginning address is also the entry point on ppc.
9459
9460 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9461 (grub_linux_boot): Use linux_entry.
9462 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9463 (grub_linux_load64): Likewise.
9464
9465 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9466
9467 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9468
9469 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9472 needlessly lose the console.
9473
9474 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9477 space.
9478
9479 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9482 than current grub_get_rtc() not implemented when booted with
9483 coreboot without TSC.
9484
9485 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9486 Add machine/time.h to kernel headers on loongson.
9487 * grub-core/Makefile.core.def (kernel): Remove
9488 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9489 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9490 (grub_get_rtc): Likewise.
9491 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9492 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9493 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9494 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9495 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9496 rather than installing known non-working time source.
9497 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9498 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9499 * include/grub/time.h: Don't include machine/time.h.
9500 * include/grub/efi/time.h: Removed.
9501 * include/grub/i386/efi/time.h: Likewise.
9502 * include/grub/i386/ieee1275/time.h: Likewise.
9503 * include/grub/powerpc/ieee1275/time.h: Likewise.
9504 * include/grub/sparc64/ieee1275/time.h: Likewise.
9505 * include/grub/x86_64/efi/time.h: Likewise.
9506
9507 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9508
9509 Remove dot on i and j when combining with above diacritics.
9510
9511 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9512 value.
9513 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9514 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9515 with dotless variants when any combining above is present.
9516
9517 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9520 text and not binary.
9521
9522 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 Stop polling as soon as we have the packet we were waiting for.
9525
9526 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9527 All users updated.
9528 * grub-core/net/arp.c (have_pending): New var.
9529 (pending_req): Likewise.
9530 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9531 stop indicator.
9532 (grub_net_arp_receive): Set have_pending.
9533 * grub-core/net/dns.c (recv_data): New field stop.
9534 (recv_hook): Set stop.
9535 (grub_net_dns_lookup): Init stop and use as stop condition.
9536 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9537 condition.
9538 * grub-core/net/net.c (grub_net_poll_cards): New argument
9539 stop_condition. Stop when it goes true.
9540 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9541 indicator.
9542 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9543
9544 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 Keep TX and RX buffers on EFI rather than always allocate new ones.
9547
9548 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9549 card. All users updated.
9550 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9551 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9552 (get_card_packet): Likewise.
9553 (grub_efinet_findcards): Init new fields.
9554
9555 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9558 compilation error on sparc64.
9559
9560 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9561
9562 Use ITC on IA64 rather than broken routine based on daytime.
9563
9564 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9565 ia64.
9566 (grub_get_rtc) [__ia64__]: Likewise.
9567 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9568 (get_itc): New function.
9569 (grub_rtc_get_time_ms): Likewise.
9570 (grub_machine_init): Calibrate ITC.
9571 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9572 Keep only on non-ia64. Don't export since it's broken and used only
9573 if TSC is unavailable.
9574
9575 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9576
9577 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9578 even if it's used.
9579 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9580 Skip if parent is unused.
9581
9582 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9585
9586 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 Fix wildcard escaping.
9589
9590 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9591 * grub-core/script/execute.c (wildcard_escape): .. to here.
9592 Don't escape dot.
9593 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9594 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9595 Don't escape dot.
9596 * grub-core/script/execute.c (gettext_append): Always escape.
9597 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9598 * grub-core/script/yylex.l: Don't cut away the escaping.
9599 * tests/grub_script_echo1.in: Add tests with wildcard.
9600
9601 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9602
9603 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9604 (ftdi_hw_configure): Likewise.
9605 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9606 define.
9607 (real_config): Handle 1.5 stop bits.
9608 (pl2303_hw_configure): Likewise.
9609
9610 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 * Makefile.am: Add ppc linux bootcheck.
9613 * grub-core/tests/boot/linux-ppc.cfg: New file.
9614 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9615
9616 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9617
9618 * tests/grub_script_expansion.in: Skip network protocols.
9619
9620 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9623
9624 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9627 --rom-directory.
9628 Add -graft-points.
9629
9630 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 ESCC serial driver for conducting sautomated tests in qemu.
9633 Not tested on real hardware.
9634
9635 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9636 * grub-core/term/ieee1275/escc.c: New file.
9637 * grub-core/Makefile.core.def (escc): New module.
9638
9639 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9642 invalid on error.
9643 (serial_hw_fetch): Don't read invalid handle.
9644 (serial_hw_put): Don't write into invalid handle.
9645
9646 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 Add a 1.5 stop bits value.
9649
9650 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9651 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9652 GRUB_SERIAL_STOP_BITS_1_5.
9653
9654 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9657 value rather than let it uninited.
9658
9659 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * grub-core/commands/wildcard.c (+check_file): New function.
9662 (wildcard_expand): Don't expand to non-existing files, expand with
9663 suffix and not attempt to expand if not needed.
9664
9665 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9668 out of partitions containing other partitions.
9669
9670 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9673 on some qemu versions with GRUB.
9674
9675 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9676 define.
9677 (grub_openbsd_bootarg_pcibios): New struct.
9678 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9679 Add PCIINFO.
9680
9681 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * tests/util/grub-shell.in: Trim firmware output on EFI.
9684
9685 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9686
9687 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9688 and coreboot since it's already in kernel.
9689
9690 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9693 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9694 to here. New return value start. All users updated.
9695 Recursively scan linear mappings.
9696 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9697 proto.
9698 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9699 Use grub_util_get_dm_node_linear_info.
9700 * util/getroot.c (convert_system_partition_to_system_disk): Use
9701 grub_util_info rather than grub_dprintf.
9702 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9703
9704 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9705
9706 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9707
9708 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9709 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9710
9711 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * include/grub/types.h (grub_set_unaligned64): New function.
9714 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9715 (setup): Likewise.
9716
9717 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9720 (grub_ofdisk_fini): Quiesce USB devices.
9721
9722 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9723
9724 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9725 caches.
9726
9727 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9730
9731 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9732
9733 * grub-core/disk/pata.c (grub_pata_pio_read)
9734 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9735 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9736
9737 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 Extend automated tests to qemu-mips.
9740
9741 * Makefile.am: reorganise tests and enable qemu-mips.
9742 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9743 * grub-core/tests/boot/linux.init-mips.S: New file.
9744 * tests/partmap_test.in: Handle ata0 disks.
9745 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9746 non-pc i386.
9747
9748 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9749
9750 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9751 ia64.
9752 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9753 quotes while on it.
9754
9755 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9756
9757 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9758 (grub_halt): Likewise.
9759 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9760
9761 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 * grub-core/term/serial.c (grub_serial_register)
9764 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9765 the behaviour in line with x86 platforms.
9766
9767 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9768
9769 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9770 (grub_ata_strncpy): Likewise.
9771 (grub_ata_identify): Add missing byteswaps.
9772
9773 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9776 byte-swap.
9777 (screen_read_char): Likewise.
9778 (grub_vga_text_cls): Likewise.
9779
9780 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9783 filenames.
9784 (make_file_path): Likewise.
9785
9786 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9787
9788 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9789 machines.
9790 Tested by: Paulo Flabiano Smorigo.
9791 Crucial information about API supplied by: Coleen <Last name unknown>.
9792 Reviewed by: Coleen <Last name unknown>.
9793
9794 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * util/grub-mkimage.c: Disable -Wcast-align.
9797
9798 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9801 as they are fatal.
9802
9803 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9806
9807 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9808
9809 * util/grub-probe.c (escape_of_path): Fix double free.
9810
9811 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/commands/videoinfo.c (hook): Show pitch.
9814
9815 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9818
9819 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9822 (probe): Add ieee1275 to OFW devices.
9823
9824 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9827
9828 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9829
9830 Handle IBM OFW path.
9831
9832 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9833 available.
9834 (of_path_of_scsi): Handle vdevice.
9835
9836 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9837
9838 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9839 Allocate in multiples of 16 to avoid adding a few bytes free region the
9840 windows bugs upon.
9841
9842 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9843
9844 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9845 Allocate in multiples of 16 to avoid adding a few bytes free region the
9846 windows bugs upon.
9847 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9848
9849 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9852 resolutions.
9853 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9854 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9855
9856 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9857
9858 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9859
9860 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9863 resulted in \\ at the end of the line.
9864
9865 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9868 (grub_parser_cmdline_state): Likewise.
9869 (grub_parser_split_cmdline): Likewise.
9870
9871 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9872
9873 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9874 /dev/root and /dev/dm-*.
9875
9876 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9877
9878 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9879 fix partially stale display.
9880
9881 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9882
9883 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9884 substraction.
9885
9886 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9889 Fix MBR remapping workaround.
9890 (grub_util_biosdisk_read) [__linux__]: Likewise.
9891
9892 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9893
9894 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9895
9896 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * configure.ac: Bump to beta6.
9899
9900 2012-05-31 Christer Weinigel <christer@weinigel.se>
9901
9902 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9903
9904 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9905
9906 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9907 (grub_cmd_linux): Likewise.
9908
9909 2012-05-31 Christer Weinigel <christer@weinigel.se>
9910
9911 Fix EHCI low-speed.
9912
9913 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9914 (GRUB_EHCI_MULT_TWO): Likewise.
9915 (GRUB_EHCI_MULT_THREE): Likewise.
9916 (GRUB_EHCI_CMASK_MASK): New enum value.
9917 (GRUB_EHCI_SMASK_MASK): Likewise.
9918 (GRUB_EHCI_CMASK_OFF): Likewise.
9919 (GRUB_EHCI_SMASK_OFF): Likewise.
9920 (grub_ehci_pci_iter): Enable periodic schedule.
9921 (grub_ehci_parse_notrun): Likewise.
9922 (grub_ehci_restore_hw): Likewise.
9923 (grub_ehci_setup_qh): Set flags for low speed transfers.
9924 (grub_ehci_find_qh): Use periodic list for low speed.
9925 (grub_ehci_setup_transfer): Check periodic queue as well.
9926 (grub_ehci_check_transfer): Likewise.
9927 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9928
9929 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9930
9931 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9932 parameter is used.
9933
9934 2012-05-31 Peter Jones <pjones@redhat.com>
9935
9936 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9937 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9938 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9939
9940 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9943 uninited variable. Allocate at least setup_sects.
9944
9945 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 Fix handling of EFI with big memory maps.
9948
9949 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9950 (real_mode_mem): Likewise.
9951 (real_mode_target): Likewise.
9952 (real_mode_pages): Likewise.
9953 (prot_mode_pages): Likewise.
9954 (linux_params): New var.
9955 (linux_cmdline): Likewise.
9956 (free_pages): Don't set real mode variables.
9957 (allocate_pages): Don't allocate real mode memory.
9958 (grub_e820_add_region): Remove the limit.
9959 (grub_linux_boot): Allocate and copy real mode memory.
9960 (grub_linux_unload): Free linux_cmdline.
9961 (grub_cmd_linux): Use temporary storage for parameters.
9962 (grub_cmd_initrd): Likewise.
9963 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9964 (linux_kernel_params): Make it 1K big.
9965
9966 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9967
9968 * Makefile.util.def: Remove -Wno-format.
9969 * grub-core/Makefile.core.def: Likewise.
9970
9971 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * tests/cmp_unit_test.c: Add missing failure message.
9974 * tests/example_unit_test.c: Likewise.
9975 * tests/printf_unit_test.c: Likewise.
9976
9977 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9978
9979 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9980 relaxation of protective MBR requirements.
9981
9982 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * configure.ac: Add condition for COND_HOST_XNU.
9985 * Makefile.util.def (10_xnu): New script.
9986 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9987
9988 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9991 objconv bug.
9992
9993 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9996 Binary on other platforms stays identical.
9997
9998 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9999
10000 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10001 Apple.
10002
10003 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10006
10007 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10010 rather than defining size_t ourselves to avoid conflict.
10011
10012 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10015 initialisation to avoid __bzero reference.
10016
10017 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10020 version.
10021 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10022 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10023 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10024 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10025 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10026
10027 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10030 * grub-core/kern/misc.c: Likewise.
10031 * grub-core/loader/i386/xnu.c: Likewise.
10032 * include/grub/i386/tsc.h: Likewise.
10033 * include/grub/symbol.h: Likewise.
10034
10035 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10038 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10039 on older compiler.
10040
10041 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10044 Implement Apple flavour.
10045 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10046
10047 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10050 (memmove) [__APPLE__]: Likewise.
10051 (memcpy) [__APPLE__]: Likewise.
10052 (memset) [__APPLE__]: Likewise.
10053 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10054 (memmove) [__APPLE__]: Likewise.
10055 (memcpy) [__APPLE__]: Likewise.
10056 (memset) [__APPLE__]: Likewise.
10057
10058 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10061 dependency discard.
10062
10063 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/normal/main.c (read_config_file): Provide config_file and
10066 config_directory.
10067 * util/grub.d/41_custom.in: Use config_directoy when available.
10068
10069 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10072 (grub_bfs_dir): Likewise.
10073
10074 2012-05-27 Peter Jones <pjones@redhat.com>
10075
10076 The old code gives arguments to a printf function which can't work
10077 correctly, and the compiler complains.
10078
10079 * grub-core/tests/example_functional_test.c (example_test): Add
10080 missing text.
10081 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10082 * include/grub/test.h (grub_test_assert_helper): New declaration.
10083 (grub_test_assert): Use grub_test_assert_helper.
10084
10085 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10088 (exfctest): ... this to avoid overlong filenames.
10089 All users updated.
10090
10091 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 Handle "." and ".." on squashfs.
10094
10095 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10096 Make inode numbers into stack.
10097 (grub_squash_read_symlink): Use stack.
10098 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10099 (make_root_node): Fill stack.
10100 (grub_squash_open): Use stack.
10101
10102 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10105 freeing.
10106
10107 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10110 stderr on test calls.
10111
10112 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10115
10116 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10117
10118 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10119
10120 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10123 "..".
10124
10125 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10126
10127 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10128 (grub_hfsplus_iterate_dir): Add "." and "..".
10129
10130 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10133 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10134
10135 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10138 (find_path): Handle "." and "..".
10139
10140 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10143 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10144 (grub_affs_iterate_dir): Handle hardlinks.
10145
10146 2012-05-26 Matthew Garrett <mjg@redhat.com>
10147
10148 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10149 (grub_efi_console_fini): Likewise.
10150 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10151 (grub_video_gop_fill_mode_info): Rename to ...
10152 (grub_video_gop_fill_real_mode_info): ... this.
10153 (grub_video_gop_fill_mode_info): New function.
10154 (grub_video_gop_setup): Setup double framebuffer.
10155 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10156 Free offscreen.
10157 (grub_video_gop_swap_buffers): Copy framebuffer.
10158 (grub_video_gop_fini): Free offscreen buffer.
10159 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10160 New enum.
10161 (grub_efi_gop_blt_pixel): New struct.
10162
10163 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * gentpl.py: Remove error disabling for objconv.
10166
10167 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10168
10169 * configure.ac: Remove -Wunitialized as it's not available on older
10170 compilers.
10171
10172 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10173
10174 Fix extent overflow comparator.
10175
10176 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10177 (grub_hfsplus_read_block): Set type.
10178 (grub_hfsplus_cmp_extkey): Compare type.
10179
10180 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10181
10182 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10183
10184 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10187 than 0.
10188
10189 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10192 (dejavu_bold_14.pf2): New target.
10193
10194 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * configure.ac: Fix djvu font detection.
10197
10198 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10201 ext* instead of ext2.
10202
10203 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10206 name with \0.
10207
10208 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10209
10210 * docs/grub-dev.texi: Remove dot from .png.
10211
10212 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10213
10214 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10215 protective entry in any slot.
10216 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10217 if protective entry is found in any slot.
10218
10219 Protective entry in non-first slot make no sense but is a widespread
10220 brain damage.
10221
10222 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10225
10226 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10227
10228 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10229 with old reiserfs.
10230 (grub_reiserfs_open): Don't free root.
10231
10232 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10233
10234 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10235 after freeing for safety.
10236
10237 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10240 Reported by: Jordan Uggla.
10241
10242 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10243
10244 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10245 actual implementation. Specifically, clarify that the grub menu will
10246 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10247 passed.
10248
10249 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10250
10251 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10252 of r0.
10253
10254 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 Remove unjustified hard dependency of normal.mod on gfxterm.
10257
10258 * include/grub/term.h (grub_term_output): New member fullscreen.
10259 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10260 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10261 (grub_gfxterm): Set .fullscreen.
10262 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10263 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10264
10265 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10266
10267 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10268 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10269 Mention case-insensitive AFFS, SFS and JFS.
10270
10271 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10272
10273 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10274
10275 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10276
10277 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10278 a bad FS.
10279
10280 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10283 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10284
10285 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10286
10287 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10288 (grub_jfs_mount): Fill caseins.
10289 (grub_jfs_find_file): Respect caseins.
10290
10291 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10294 through UTF-16.
10295
10296 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10297
10298 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10299 New argument origpath. All users updated.
10300
10301 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10304 (read_attr): Ensure that we read start of possibly compressed block.
10305
10306 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10309 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10310 All users updated.
10311
10312 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10315 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10316 (dejavu.pf2): Replace with ...
10317 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10318 this.
10319
10320 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * util/grub.d/20_linux_xen.in: Add missing line.
10323
10324 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10327 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10328 (grub_utf16_to_utf8): Likewise.
10329
10330 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10331
10332 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10333 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10334 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10335 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10336 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10337 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10338
10339 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10342 a bad FS.
10343
10344 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10345
10346 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10347 (grub_udf_read_symlink): Handle read_string failure.
10348
10349 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10350
10351 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10352 comment.
10353
10354 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 Fix handling of UDF symlinks.
10357
10358 * grub-core/fs/udf.c (read_string): New argument outbuf.
10359 All users updated.
10360 (grub_ufs_read_symlink): Rename to ...
10361 (grub_udf_read_symlink): ... this. All users updated.
10362 Handle symlinks with more than one component.
10363
10364 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10367 symlinks. Replace leading colon with a slash.
10368
10369 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10370
10371 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10372 filename.
10373
10374 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10375
10376 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10377 match in inner node.
10378
10379 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10382 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10383 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10384 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10385 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10386 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10387 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10388 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10389 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10390
10391 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10392
10393 Use grub-probe and not cmp to check that disk is empty.
10394
10395 * util/grub-install.in: Use grub-probe for zero-check.
10396 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10397 (probe): Handle PRINT_ZERO_CHECK.
10398 (argp_parser): Handle -t zero_check.
10399
10400 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 Flush block cache on adding disk to device map.
10403
10404 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10405 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10406 adding.
10407 (read_device_map): Likewise.
10408 (open_device): Flush on opening.
10409
10410 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10413 (handle_symlink): Fix off-by-one error.
10414 Canonicalize the target.
10415 (grub_cpio_dir): Canonicalize the name.
10416 Fix memory leak.
10417 Set directory.
10418 (grub_cpio_open): Canonicalize the name.
10419
10420 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10423 handling.
10424
10425 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10428 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10429
10430 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10433 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10434 All users updated.
10435
10436 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10437
10438 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10439 counterpart.
10440
10441 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10442
10443 Fix UFS1 big file support.
10444
10445 * grub-core/fs/ufs.c (INODE): Removed.
10446 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10447 64-bit.
10448 (INODE_MODE): Simplify.
10449 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10450 (grub_ufs_lookup_symlink): Don't use INODE.
10451
10452 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10455
10456 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10457 (grub_minix_data): Replace log_block_size with block_size.
10458 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10459 (grub_minix_mount): Fill block_size.
10460
10461 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10462
10463 * configure.ac: Bump to beta5.
10464
10465 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 Fix wrapped HFS+ handling.
10468
10469 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10470 blocks_start. All users updated.
10471 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10472 wrapping offset.
10473 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10474
10475 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10476
10477 Fix long symlinks on reiserfs.
10478
10479 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10480 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10481 (grub_reiserfs_iterate_dir): Save size for non-directories.
10482 (grub_reiserfs_open): Don't reread stat block as we already know the
10483 size.
10484 (grub_reiserfs_read): Split into...
10485 (grub_reiserfs_read_real): ... and ...
10486 (grub_reiserfs_read): ...this.
10487
10488 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 Fix non-indexed JFS.
10491
10492 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10493 (grub_jfs_data): New field namecomponentlen.
10494 (grub_jfs_mount): Fill namecomponentlen.
10495 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10496
10497 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10498
10499 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10500 * tests/grub_script_echo1.in: Add tests.
10501
10502 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10503
10504 * util/grub-install.in: Ignore empty devicetree directory.
10505
10506 2012-05-08 Bean <bean123ch@gmail.com>
10507
10508 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10509 All users updated.
10510 (free_rsm): Free header as well.
10511 (free_old_fragments): Fix memory leak.
10512 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10513 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10514 (destroy_pq): Likewise.
10515 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10516
10517 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10520 resulting hash as a precaution.
10521
10522 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10525 '_' in variable names.
10526 * grub-core/net/net.c (grub_net_network_level_interface_register):
10527 Likewise.
10528
10529 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 Fix AFFS with non-512B blocks.
10532
10533 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10534 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10535 (grub_affs_data): Replace blocksize with log_blocksize.
10536 (grub_affs_read_block): Fix non-512B blocks.
10537 (grub_affs_read_symlink): Likewise.
10538 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10539 (grub_affs_read): Fix non-512B blocks.
10540 (grub_affs_label): Likewise.
10541 (grub_affs_mtime): Likewise.
10542 (grub_affs_mount): Fix block detection routine.
10543
10544 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 Add filesystem mtime to AFFS.
10547
10548 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10549 (aftime2ctime): New function.
10550 (grub_affs_dir): Use aftime2ctime.
10551 (grub_affs_label): Fix return value.
10552 (grub_affs_mtime): New function.
10553 (grub_affs_fs): Add mtime.
10554
10555 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10558 UTF-8.
10559
10560 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10561
10562 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10563 UTF-8.
10564
10565 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10566
10567 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10568
10569 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10572 flags.
10573 (FLAGS_CASE_SENSITIVE): New enum value.
10574 (cache_entry): New struct.
10575 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10576 cache_size and cache.
10577 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10578 Add log_blocksize and fshelp_flags.
10579 (grub_sfs_read_extent): Handle non-512 blocks.
10580 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10581 (grub_sfs_read_file): Handle non-512 blocks.
10582 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10583 fshelp_flags.
10584 (grub_sfs_read_symlink): Handle non-512 blocks.
10585 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10586 (grub_sfs_dir): Free cache.
10587 (grub_sfs_close): Likewise.
10588
10589 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10592 filesystems.
10593
10594 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10595
10596 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10597
10598 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10599
10600 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10601
10602 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10603
10604 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10605 (grub_sfs_read_extent): Likewise.
10606 (grub_sfs_read_block): Likewise.
10607 (grub_sfs_mount): Likewise.
10608 (grub_sfs_iterate_dir): Likewise.
10609 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10610 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10611
10612 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10613
10614 Fix errors on compressed NTFS with 512B clusters.
10615
10616 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10617 types.
10618 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10619 not 0.
10620 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10621 Relax check for inline extents.
10622 (ntfscomp): Return correct -1 on error and not 0.
10623
10624 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10625
10626 * util/grub-install.in: Fix handling of prefix containing spaces.
10627
10628 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10631 (grub_squash_read_data): Fix offset byte-swapping.
10632
10633 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10634
10635 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10636 per common usage and preffered in several parts of code.
10637 (grub_memcmp): Likewise.
10638 (grub_strncmp): Likewise.
10639 * include/grub/misc.h (grub_strcasecmp): Likewise.
10640 (grub_strncasecmp): Likewise.
10641 * Makefile.util.def (cmp_test): New test.
10642 (grub_script_strcmp): Likewise.
10643 * tests/cmp_unit_test.c: New file.
10644 * tests/grub_script_strcmp.in: Likewise.
10645 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10646
10647 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10648
10649 * include/grub/pci.h: Move enums into no-asm part.
10650
10651 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10654
10655 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10656
10657 * util/getroot.c (find_hurd_root_device): Try to make error message
10658 and comments to translators clearer.
10659
10660 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10663
10664 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10665
10666 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10667 btrfs.
10668
10669 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 * docs/grub.cfg: Update.
10672
10673 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * docs/grub.texi (PXE): Remove not present variables.
10676
10677 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10678
10679 * grub-core/net/net.c (defserver_set_env): New function.
10680 (defserver_get_env): Likewise.
10681 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10682
10683 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10686 entries.
10687
10688 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10691 * grub-core/kern/emu/hostdisk.c: Likewise.
10692
10693 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10694
10695 Handle hurd userspace partitions.
10696
10697 * util/getroot.c (find_hurd_root_device): New function.
10698 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10699
10700 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10703 names.
10704 Reported by: Bastian Blank.
10705
10706 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10707
10708 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10709 crossing page boundary.
10710
10711 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10712
10713 Fix B-tree search in BFS, especially in presence of non-ASCII
10714 characters.
10715
10716 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10717 (find_in_b_tree): Use standard bsearch + btree algorithm.
10718
10719 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10720
10721 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10722 and so on.
10723
10724 2012-05-03 Matthew Garrett <mjg@redhat.com>
10725 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10726
10727 Suspend broadcom cards in order to stop their DMA.
10728
10729 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10730 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10731 (pci): Don't build on x86 EFI.
10732 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10733 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10734 New function.
10735 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10736 stop_broadcom if running on EFI.
10737 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10738 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10739 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10740 (grub_pci_find_capability): New proto.
10741
10742 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * docs/grub.texi: Remove dot from the extension as it apparently
10745 doesn't work with some makeinfo versions.
10746
10747 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10750 with GRUB expectance.
10751
10752 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10755
10756 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10759 zero after directory block since last entry may be not 0-terminated if
10760 it ends on block boundary. Use continue instead of if spanning whole
10761 loop.
10762
10763 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 Support 4K sectors UDF inline files.
10766
10767 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10768 (grub_udf_extended_file_entry): Likewise.
10769 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10770 All users updated.
10771 (get_fshelp_size): New function.
10772 (grub_udf_read_icb): Read whole block.
10773 (grub_udf_iterate_dir): Likewise.
10774 (grub_udf_dir): Likewise.
10775 (grub_udf_open): Likewise.
10776
10777 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10778
10779 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10780
10781 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10782
10783 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10784 inline symlinks in addition to workaround.
10785
10786 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10787
10788 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10789
10790 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10793
10794 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10797
10798 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10799
10800 Fix reiserfs big seek times.
10801
10802 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10803 exact. All users updated.
10804 (grub_reiserfs_read): Use nearest btree search for seeking.
10805 Fix return value on error.
10806
10807 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10810 entries.
10811 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10812 * docs/grub.texi: Update menuentry description.
10813
10814 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10817 crash when embedding onto filesystem.
10818
10819 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10822 name.
10823
10824 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10827
10828 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10831 commit.
10832
10833 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10834 2012-05-01 Bean <bean123ch@gmail.com>
10835
10836 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10837
10838 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10839
10840 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10841 Special behaviour for len = 0 to read whole file isn't used anywhere and
10842 can cause buffer ovewrflows in several places.
10843
10844 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10845
10846 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10847
10848 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 Handle RAIDZ on non-512B sectors.
10851
10852 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10853 max_children_ashift.
10854 (fill_vdev_info_real): Fill max_children_ashift.
10855 (read_device): Use max_children_ashift.
10856
10857 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10858
10859 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10860
10861 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10864 disk names.
10865 * docs/grub.texi: Update device.map parts.
10866
10867 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10868
10869 Don't scan into non-diskfilter devices having diskfilter names.
10870
10871 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10872 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10873 handling.
10874 (scan_disk_hook): New function.
10875
10876 2012-04-29 Bean <bean123ch@gmail.com>
10877
10878 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10879 allocation.
10880
10881 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10882
10883 * configure.ac: Detect starfield theme font path
10884 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10885
10886 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10889 geometry on serial consoles.
10890
10891 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10892
10893 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10894 because of network consoles.
10895
10896 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10899 handling.
10900
10901 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10904 falls on Q syndrom.
10905
10906 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10909 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10910
10911 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10912
10913 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10914 Allocate at lest 8192 for temporary buffer as required for lzo.
10915
10916 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10919 to cluster_bits, since it's already added in.
10920 (grub_fat_read_data): Likewise.
10921
10922 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10925 as long as cluster size is multiple of 512 bytes.
10926
10927 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * util/grub-mkrescue.in: Fix locale directory.
10930
10931 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * grub-core/kern/emu/hostdisk.c (map): Make static.
10934
10935 2012-04-23 Bean <bean123ch@gmail.com>
10936
10937 * util/grub-fstest.c (fstest): Add missing break.
10938
10939 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10940
10941 Fix hurd build.
10942
10943 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10944 not define nr variable.
10945 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10946 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10947 grub_find_device): Do not define.
10948
10949 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10950
10951 Fix kfreebsd compile and behaviour.
10952
10953 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10954 format-security.
10955 * util/getroot.c: Fix wait.h include.
10956 (grub_guess_root_devices): Error if grub_find_device fails.
10957 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10958 (grub_util_get_dev_abstraction): Likewise.
10959 (grub_util_pull_device): Likewise.
10960 (grub_util_get_grub_dev): Likewise.
10961 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10962
10963 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10964
10965 Fix and unify wholedisk detection.
10966
10967 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10968 is_part. All users updated.
10969 (device_is_wholedisk): Removed.
10970 (grub_util_biosdisk_get_grub_dev): Use is_part.
10971
10972 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10973
10974 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10975 mode.
10976
10977 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * configure.ac: Bump to beta4.
10980
10981 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10984 --fs-uuid --set UUID syntax.
10985
10986 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10989 disunification.
10990
10991 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10992
10993 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10994
10995 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10996
10997 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10998
10999 2012-04-18 Mike Gilbert <floppym@gentoo.org>
11000
11001 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11002
11003 2012-04-18 Bean <bean123ch@gmail.com>
11004
11005 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11006 place.
11007
11008 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11011 users updated.
11012 (grub_util_biosdisk_read): Handle Linux partitions not exactly
11013 corresponding to GRUB partitions.
11014 (grub_util_biosdisk_write): Likewise.
11015
11016 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 Scan mdraid before LVM.
11019
11020 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11021 (grub_diskfilter_register_front): ... this.
11022 (grub_diskfilter_register_back): New function.
11023 All users of grub_diskfilter_register updated.
11024
11025 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 * util/grub-install.in: Fix an automatic target detection bug.
11028
11029 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11030
11031 * util/grub-install.in: New option --efi-directory.
11032
11033 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11034
11035 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11036 boot services if we have no other choice.
11037
11038 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11039
11040 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11041 document it.
11042 * tests/util/grub-shell.in: Update to --directory.
11043
11044 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11047
11048 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11049
11050 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11051 (grub_minix_read_file): Likewise.
11052 (grub_minix_read_inode): Likewise.
11053 (grub_minix_find_file): Likewise.
11054 (grub_minix_dir): Likewise.
11055
11056 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11057
11058 * util/grub-setup.c (setup): Fix partition handling and blocklist
11059 check.
11060
11061 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11064 redundant buggy overlap check.
11065
11066 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11069 and grub-mknetdir.
11070
11071 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11072
11073 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11074 kh.loadflags on pre-2.00 kernels.
11075
11076 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 Terminate UNDI and PXE before launching the payload to avoid problems
11079 with DMA.
11080
11081 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11082 (grub_loader_flags): ... this. All users updated.
11083 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11084 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11085 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11086 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11087 function.
11088 (grub_pxe_restore): Likewise.
11089 (fini_hnd): New var.
11090 (GRUB_MOD_INIT): Register shutdown hook.
11091 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11092 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11093 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11094 (grub_loader_set): Rename second argument to flags.
11095
11096 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11097
11098 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11099 written bytes.
11100 (grub_get_num_of_utf8_bytes): New function.
11101 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11102 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11103 executing it.
11104 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11105 (grub_ucs4_to_utf8): Change return type.
11106
11107 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11108
11109 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11110 warning.
11111 * grub-core/fs/bfs.c (hop_level): Likewise.
11112 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11113
11114 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 * grub-core/lib/adler32.c: Recode due to license unclearness.
11117
11118 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11119
11120 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11121 (test_header): Likewise.
11122
11123 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11124
11125 Fix --help formatting.
11126
11127 * util/grub-mkconfig_lib.in (print_option_help): New function.
11128 (grub_fmt): Likewise.
11129 * util/grub-install.in: Use print_option_help and grub_fmt.
11130 * util/grub-kbdcomp.in: Likewise.
11131 * util/grub-mkconfig.in: Likewise.
11132 * util/grub-mknetdir.in: Likewise.
11133 * util/grub-mkrescue.in: Likewise.
11134 * util/grub-mkstandalone.in: Likewise.
11135 * util/grub-reboot.in: Likewise.
11136 * util/grub-set-default.in: Likewise.
11137 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11138
11139 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11140
11141 * linguas.sh: Remove autogenerated *.po.
11142
11143 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * po/README: Move language fetcing to ...
11146 * linguas.sh: ... here.
11147 * po/README: Point to linguas.sh.
11148
11149 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * po/README: Exclude ko.po due to disclaimer problems.
11152
11153 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11156 len = 0.
11157 (grub_gettext_translate_real): Handle 0th string.
11158 (grub_gettext_translate): Ensure that "" isn't translated.
11159
11160 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11163 TRANSLATORS comment.
11164 (grub_diskfilter_print_partmap): Propagate changing of error into
11165 warning.
11166
11167 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11168
11169 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11170 to uint64_t to prevent overflow.
11171 (grub_diskfilter_lv): Increase start_extent and extent_count
11172 to uint64_t to prevent overflow.
11173
11174 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * configure.ac: Increase version.
11177
11178 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11179
11180 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11181
11182 * po/Rules-translit: New file.
11183 * po/arabic.sed: Likewise.
11184 * po/cyrillic.sed: Likewise.
11185 * po/greek.sed: Likewise.
11186 * po/hebrew.sed: Likewise.
11187 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11188 * po/Makefile.in.in: Add extra_dist4.
11189
11190 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11193
11194 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11195 modify names. Introduce MODE_BIGENDIAN.
11196 * grub-core/fs/minix_be.c: New file.
11197 * grub-core/fs/minix2_be.c: Likewise
11198 * grub-core/fs/minix3_be.c: Likewise.
11199 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11200 minix3_be.
11201 * grub-core/Makefile.core.def (minix_be): New module.
11202 (minix2_be): Likewise.
11203 (minix3_be): Likewise.
11204
11205 2012-04-01 Felix <email@hamburg.de>
11206
11207 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11208 (devs): Add MBP 2011.
11209
11210 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11213
11214 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * grub-core/normal/cmdline.c (print_completion): New field
11217 prompt_len.
11218 (grub_cmdline_get): Handle width properly.
11219
11220 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11221
11222 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11223
11224 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11225
11226 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11227 after 29th of February.
11228
11229 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11230
11231 Fix exfat endianness handling.
11232
11233 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11234 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11235 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11236 Byte-swap utf16 when necessary.
11237 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11238
11239 2012-03-31 Anton Blanchard <anton@samba.org>
11240 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11241
11242 Fix btrfs endianness handling.
11243
11244 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11245 (lower_bound): Make root uint64_t. Use root in le.
11246 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11247 (find_path): Fix template key init.
11248 (grub_btrfs_dir): Fix mtime byteswap.
11249 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11250
11251 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11254 recursion_depth. Break infinite resursions. All users updated.
11255
11256 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11259 after free.
11260 Reported by: Peter Jones.
11261
11262 2012-03-31 Anton Blanchard <anton@samba.org>
11263
11264 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11265 8 bit values.
11266
11267 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * util/grub-install.in: Fix nvram call for PreP.
11270
11271 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11274 the error when some elements are missing into a warning.
11275
11276 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11277
11278 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11279
11280 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11281
11282 * docs/grub.texi (Invoking grub-probe): New section.
11283 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11284
11285 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 Fix tab and wide character handling in editor and menu.
11288
11289 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11290 agglomerate control characters with combining marks.
11291 (bidi_line_wrap): Allow break on tab.
11292 (grub_unicode_get_comb_start): New function.
11293 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11294 and tab correctly.
11295 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11296 with a space.
11297 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11298 fixed_tab_size. All users updated.
11299 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11300 (grub_term_getcharwidth): Handle \t.
11301 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11302 and copy.
11303
11304 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 Handle big-endian mdraid.
11307
11308 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11309 * grub-core/Makefile.core.def (mdraid09_be): New module.
11310 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11311 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11312 * grub-core/disk/mdraid_linux_be.c: New file.
11313
11314 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11315
11316 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11317
11318 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11319
11320 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11321 missing quotes which caused confusion among translators.
11322
11323 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11324
11325 * util/grub-mkconfig_lib.in: Fix typo.
11326
11327 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11328
11329 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11330 spaces.
11331 * tests/grub_script_leading_whitespace.in: New file.
11332 * Makefile.util.def (grub_script_leading_whitespace): New test.
11333
11334 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11337 to work.
11338
11339 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11340
11341 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11342 starts with control character.
11343
11344 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11345
11346 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11347 overflow.
11348 (grub_gdb_outbuf): Likewise.
11349
11350 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11353 zero terminator. Fixes a crash.
11354
11355 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11358 beyond 4 GiB.
11359 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11360 images independently of preffered adderss field.
11361
11362 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11363
11364 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11365 * grub-core/commands/regexp.c: Likewise.
11366 * grub-core/loader/i386/linux.c: Likewise.
11367 * grub-core/partmap/msdos.c: Likewise.
11368 * grub-core/script/execute.c: Likewise.
11369 * grub-core/term/gfxterm.c: Likewise.
11370
11371 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11372
11373 Add variable parsing in $"..." and fix several mismatches with bash.
11374
11375 * Makefile.util.def (grub_script_gettext): New test.
11376 * grub-core/script/execute.c (parse_string): New function.
11377 (gettext_append): Likewise.
11378 (grub_script_arglist_to_argv): Use gettext_append.
11379 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11380 * tests/grub_script_gettext.in: New file.
11381
11382 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11383
11384 Fix handling of leading spaces in scripts.
11385
11386 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11387 spaces.
11388 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11389 other than skipping \r. All users updated.
11390 * tests/grub_script_echo1.in: Add space-related tests.
11391 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11392
11393 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11396
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * configure.ac: Bump up the version to beta2.
11400
11401 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 Fix gettext reload bugs (e.g. inability to disable gettext
11404 once enabled).
11405
11406 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11407 main_context and secondary_context. All functions updated.
11408 (grub_gettext_translate): Rename to ...
11409 (grub_gettext_translate_real): ... this. Return NULL on failed
11410 translate.
11411 (grub_gettext_translate): Handle secondary context.
11412 (grub_gettext_delete_list): Close file and zero-out the context.
11413 (grub_mofile_open): Don't call grub_gettext_delete_list.
11414 Don't close file.
11415 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11416 if locale="" to avoid pointless error message.
11417 (grub_gettext_env_write_lang): Update lang even if load fails.
11418 Handle secondary context.
11419 (grub_gettext_reread_prefix): New function.
11420 (read_main): Likewise.
11421 (read_secondary): Likewise.
11422 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11423 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11424 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11425 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11426
11427 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11428
11429 * configure.ac: Decrease warning level to avoid spurious warnings and
11430 to be able to compile with GCC 4.2.
11431 * Makefile.util.def: Remove -Wno-error=logical-op.
11432
11433 2012-03-10 William Bittner <william.bittner@gmail.com>
11434
11435 * util/import_unicode.py: Add missing brackets around string for
11436 python 3 support.
11437
11438 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11439
11440 Fix efi chainloader on network root.
11441
11442 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11443 network devices.
11444 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11445 New function.
11446
11447 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11448
11449 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11450 unused show_text member.
11451 * docs/grub.texi: Document "text" property.
11452
11453 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11456 in dprintf.
11457
11458 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 Fix IMSM handling on Fedora.
11461
11462 * util/getroot.c (grub_util_is_imsm): New function.
11463 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11464
11465 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11466
11467 * Makefile.am: Strip gold section.
11468 * conf/Makefile.common: Likewise.
11469 * gentpl.py: Likewise.
11470 * grub-core/Makefile.core.def: Likewise.
11471 * grub-core/genmod.sh.in: Likewise.
11472
11473 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11474
11475 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11476 * util/grub.d/20_linux_xen.in: Likewise.
11477 Based on Debian patch.
11478
11479 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * util/grub.d/10_linux.in: Fix syntax error resulting in
11482 Richard Laager's patch.
11483 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11484
11485 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11488 dependencies.
11489
11490 2012-03-10 Richard Laager <rlaager@wiktel.com>
11491
11492 * util/grub.d/10_linux.in: Fix ZFS root passing.
11493
11494 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11497 * grub-core/commands/xnu_uuid.c: Likewise.
11498 * grub-core/loader/efi/appleloader.c: Likewise.
11499 * grub-core/script/execute.c: Likewise.
11500 * grub-core/script/main.c: Likewise.
11501 * util/grub-mkfont.c: Likewise.
11502
11503 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * util/grub-mkfont.c (options): Use more appropriate "select" that
11506 "set" for face index.
11507
11508 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11509
11510 * util/grub-editenv.c (options): Gettextize command summaries.
11511
11512 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11513
11514 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11515 "out of memory" error messagge.
11516
11517 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11518
11519 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11520 of diskfilter for diskfilter on diskfilter support.
11521
11522 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11523
11524 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11525
11526 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11529 themes/starfield.
11530
11531 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11532
11533 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11534
11535 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11538
11539 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11540
11541 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11542 of error message.
11543
11544 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11547
11548 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11549
11550 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11551 message.
11552 * util/grub-install.in: Fix and gettextize error message.
11553
11554 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11557 Gettextize.
11558 * util/grub-mount.c (options): Likewise.
11559
11560 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11563 gettextize.
11564 * grub-core/commands/search_wrap.c (options): Likewise.
11565
11566 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11567
11568 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11569
11570 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11573 size calculation.
11574 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11575 none is known.
11576
11577 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11578
11579 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11580 "temporary" since it's used in identifier and is limited in space.
11581
11582 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11583
11584 * po/POTFILES.in: Regenerate. Include *.h since they contain
11585 translatable strings as well.
11586
11587 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11588
11589 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11590 byte-swap on big-endian.
11591 Reported by: Lennart Sorensen
11592
11593 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11596 (allocate_pages): Improve dprintf.
11597 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11598 code32_start. Fill code32_start and kernel_alignment in params.
11599 (grub_cmd_initrd): Use prot_init_space.
11600
11601 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11602
11603 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11604
11605 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * util/grub-install.in: Add missing dot at the end of sentence.
11608
11609 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11612 * grub-core/commands/videotest.c: Likewise.
11613 * grub-core/loader/i386/linux.c: Likewise.
11614
11615 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11616
11617 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11618 sentence.
11619 Reported by: Milo Casagrande.
11620
11621 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11622
11623 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11624 * grub-core/commands/gptsync.c: Likewise.
11625 * grub-core/commands/hashsum.c: Likewise.
11626 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11627 * grub-core/commands/legacycfg.c: Likewise.
11628 * grub-core/io/gzio.c: Likewise.
11629 * grub-core/net/net.c: Likewise.
11630 * grub-core/term/gfxterm.c: Likewise.
11631 * grub-core/term/terminfo.c: Likewise.
11632 * grub-core/tests/test_blockarg.c: Likewise.
11633 * grub-core/video/video.c: Likewise.
11634 * util/grub-install.in: Likewise.
11635 * util/grub-mkfont.c: Likewise.
11636
11637 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11638
11639 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11640
11641 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11642
11643 * grub-core/commands/search_wrap.c (options): Fix a typo.
11644 Reported by: David Prévot.
11645
11646 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11649 description.
11650
11651 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11652
11653 * util/grub-script-check.c (main): Fix a syntax error message which was
11654 unclear.
11655
11656 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11659
11660 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11661
11662 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11663 messages.
11664
11665 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11666
11667 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11668 without argument.
11669 * util/grub-mount.c (options): Likewise.
11670
11671 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11672
11673 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11674
11675 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11676
11677 * grub-core/net/http.c: Add TRANSLATORS comments.
11678 * grub-core/normal/cmdline.c: Likewise.
11679 * grub-core/normal/misc.c: Likewise.
11680 * grub-core/partmap/msdos.c: Likewise.
11681 * grub-core/parttool/msdospart.c: Likewise.
11682 * grub-core/script/execute.c: Likewise.
11683 * grub-core/script/main.c: Likewise.
11684 * grub-core/term/terminfo.c: Likewise.
11685 * grub-core/video/bitmap.c: Likewise.
11686 * util/grub-install.in: Likewise.
11687 * util/grub-mkimage.c: Likewise.
11688 * util/grub-mklayout.c: Likewise.
11689 * util/grub-setup.c: Likewise.
11690
11691 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11694 with similar messages in grub-fstest.
11695
11696 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * util/grub-install.in: Unify "option requires an argument" message
11699 with similar messages in other files.
11700 * util/grub-mkconfig.in: Likewise.
11701
11702 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11703
11704 * util/grub-set-default.in: Replace printf with gettext_printf (the
11705 string in in question is already translated from grub-reboot)
11706
11707 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * configure.ac: Bump up the version to beta1.
11710
11711 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11714 case when min_align = 0.
11715
11716 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11719 and fix a case when line_start overflows.
11720
11721 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11722
11723 * util/grub-reboot.in (usage): Mention id posibility.
11724 * util/grub-set-default.in (usage): Likewise.
11725
11726 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11727
11728 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11729 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11730 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11731 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11732 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11733 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11734 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11735
11736 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11737
11738 * grub-core/commands/menuentry.c (options): Remove
11739 GRUB_ARG_OPTION_REPEATABLE.
11740 Reported by: Andreas Vogel
11741
11742 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11743
11744 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11745
11746 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11747
11748 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11749 error.
11750
11751 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 Use sort -V by the idea of Georgi Georgiev.
11754
11755 * util/grub-mkconfig_lib.in (version_sort): New function.
11756 (version_test_numeric): Use version_sort.
11757
11758 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11759
11760 Use submenus in grub-mkconfig.
11761
11762 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11763 * util/grub-mkconfig_lib.in (grub_quote): New function.
11764 (gettext_printf): Use gettext and not gettext_quoted to fix several
11765 messages.
11766 * util/grub.d/10_hurd.in: Use submenus.
11767 * util/grub.d/10_kfreebsd.in: Likewise.
11768 * util/grub.d/10_linux.in: Likewise.
11769 * util/grub.d/10_netbsd.in: Likewise.
11770 * util/grub.d/20_linux_xen.in: Likewise.
11771 * util/grub.d/30_os-prober.in: Likewise.
11772 * util/grub.d/10_illumos.in: Add missing quoting.
11773 * util/grub.d/10_windows.in: Likewise.
11774
11775 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 Fix menu title instability bug.
11778
11779 * grub-core/commands/menuentry.c (options): New option --id.
11780 (grub_normal_add_menu_entry): New argument id. All users updated.
11781 (grub_cmd_menuentry): Handle --id.
11782 (grub_menu_init): Accept unknown arguments.
11783 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11784 feature_menuentry_options.
11785 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11786 saved_entry.
11787 (get_entry_number): Match with id as well.
11788 * include/grub/menu.h (grub_menu_entry): New member id.
11789 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11790 * util/grub.d/00_header.in: Define menuentry_id_option.
11791 * util/grub.d/10_hurd.in: Define id.
11792 * util/grub.d/10_illumos.in: Likewise.
11793 * util/grub.d/10_kfreebsd.in: Likewise.
11794 * util/grub.d/10_linux.in: Likewise.
11795 * util/grub.d/10_netbsd.in: Likewise.
11796 * util/grub.d/10_windows.in: Likewise.
11797 * util/grub.d/20_linux_xen.in: Likewise.
11798 * util/grub.d/30_os-prober.in: Likewise.
11799
11800 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11801
11802 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11803 "scope" with "body".
11804
11805 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11806
11807 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11808 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11809 prot_size and prot_file_size.
11810
11811 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11814 All users updated. If easily=1 require raid-5/-6 to be full.
11815 (is_node_readable): Likewise.
11816 (scan_devices): Scan incomplete but readable LVs at the end.
11817 (grub_diskfilter_memberlist): Pull missing devices.
11818 (insert_array): Skip scanning until device is complete or scan is
11819 done otherwise.
11820 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11821 check.
11822 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11823 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11824
11825 2012-03-03 Matthew Garrett <mjg@redhat.com>
11826 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11827
11828 Avoid EFI boot services when loading Linux.
11829
11830 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11831 avoid_efi_bootservices. All users updated.
11832 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11833 argument avoid_efi_bootservices. All users updated.
11834 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11835 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11836 align, min_align, relocatable, prefered_address. All users updated.
11837 Allocate avoiding boot services if kernel is relocatable.
11838 (grub_cmd_linux): Check if kernel is relocatable.
11839 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11840 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11841 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11842 avoid_efi_boot_services.
11843 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11844 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11845 (linux_kernel_params): Likewise.
11846
11847 2012-03-03 Matthew Garrett <mjg@redhat.com>
11848 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11849
11850 Use EDID on EFI.
11851
11852 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11853 datasize_out.
11854 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11855 modes. Set gop_handle.
11856 (grub_video_gop_get_edid): New function.
11857 (grub_gop_get_preferred_mode): Likewise.
11858 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11859 (grub_video_efi_gop_adapter): Set .get_edid.
11860 * include/grub/efi/edid.h: New file.
11861 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11862
11863 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * util/grub-install.in: Load efivars unconditionally.
11866
11867 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11868
11869 * po/Rules-piglatin: Change suffix from .po-update-en to
11870 .po-update-en-piglatin.
11871
11872 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11873
11874 Add a pig farm.
11875
11876 * po/piglatin.sed: New file.
11877 * po/en@piglatin.header: Likewise.
11878 * po/Rules-piglatin: Likewise.
11879 * po/README: Add en@piglatin to autogenerated languages.
11880
11881 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11882
11883 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11884 "Command for ...".
11885 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11886 "Check" since we don't check anything.
11887 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11888 is 64-bit one.
11889 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11890 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11891 (grub_md_sha512_real): Likewise.
11892
11893 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11894
11895 * grub-core/commands/gptsync.c: Fix typographic quoting.
11896 * grub-core/commands/ieee1275/suspend.c: Likewise.
11897 * grub-core/commands/parttool.c: Likewise.
11898 * grub-core/commands/search_wrap.c: Likewise.
11899 * grub-core/commands/videoinfo.c: Likewise.
11900 * grub-core/gfxmenu/gui_label.c: Likewise.
11901 * grub-core/hello/hello.c: Likewise.
11902 * grub-core/kern/emu/main.c: Likewise.
11903 * grub-core/net/net.c: Likewise.
11904 * grub-core/normal/menu.c: Likewise.
11905 * grub-core/normal/menu_text.c: Likewise.
11906 * grub-core/normal/misc.c: Likewise.
11907 * util/grub-editenv.c: Likewise.
11908 * util/grub-install.in: Likewise.
11909 * util/grub-kbdcomp.in: Likewise.
11910 * util/grub-mkconfig.in: Likewise.
11911 * util/grub-mknetdir.in: Likewise.
11912 * util/grub-mkrescue.in: Likewise.
11913 * util/grub-mkstandalone.in: Likewise.
11914 * util/grub-reboot.in: Likewise.
11915 * util/grub-set-default.in: Likewise.
11916 * util/grub-setup.c: Likewise.
11917 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11918
11919 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11920
11921 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11922 * grub-core/commands/keystatus.c: Likewise.
11923 * grub-core/commands/loadenv.c: Likewise.
11924 * grub-core/commands/probe.c: Likewise.
11925 * grub-core/commands/regexp.c: Likewise.
11926 * grub-core/commands/true.c: Likewise.
11927 * grub-core/commands/videoinfo.c: Likewise.
11928 * grub-core/disk/cryptodisk.c: Likewise.
11929 * grub-core/disk/ldm.c: Likewise.
11930 * grub-core/disk/loopback.c: Likewise.
11931 * grub-core/disk/luks.c: Likewise.
11932 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11933 * grub-core/kern/disk.c: Likewise.
11934 * grub-core/kern/emu/hostdisk.c: Likewise.
11935
11936 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11937
11938 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11939 * util/grub-install.in: Add missing quote in the comment.
11940
11941 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11942
11943 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11944 * grub-core/commands/lsmmap.c: Likewise.
11945 * grub-core/commands/minicmd.c: Likewise.
11946 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11947 * grub-core/commands/regexp.c: Likewise.
11948 * grub-core/gdb/gdb.c: Likewise.
11949 * grub-core/term/gfxterm.c: Likewise.
11950 * util/grub-mkconfig.in: Likewise.
11951 * util/grub-mkfont.c: Likewise.
11952 * util/grub-mklayout.c: Likewise.
11953 * util/grub-mknetdir.in: Likewise.
11954 * util/grub-mkrescue.in: Likewise.
11955 * util/grub.d/30_os-prober.in: Likewise.
11956
11957 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11960 with "Direct color" and "Packed" with "Packed pixel".
11961 (grub_cmd_videoinfo): Simplify legend.
11962
11963 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11966 absolutely unclear error message.
11967
11968 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11969
11970 * util/grub-mkstandalone.in: Remove confusing leftover print.
11971
11972 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11973
11974 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11975 comments.
11976 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11977 (GRUB_MOD_INIT): Likewise.
11978 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11979 VGA mode.
11980 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11981 comments.
11982 * util/grub-install.in (usage): Likewise.
11983 Spell ID in whole letters.
11984 Add missing ending dot.
11985 Quote variables.
11986 * util/grub-reboot.in: Fix capitalisation.
11987 * util/grub-set-default.in: Likewise.
11988
11989 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11990
11991 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11992 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11993 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11994 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11995 Disable -Werror for -Wdeprecated-declarations.
11996 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11997 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11998 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11999 (grub_util_get_grub_dev): Make luks handling dependent on
12000 HAVE_DEVICE_MAPPER and not __linux__.
12001 (get_win32_path): Fix format security.
12002 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12003 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12004 Don't try grub_find_zpool_from_dir.
12005 (grub_make_system_path_relative_to_its_root) [!__linux__]:
12006 #ifdef-out paresdir.
12007
12008 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12009
12010 * util/grub-pe2elf.c (usage): Add missing noreturn.
12011 (write_section_data): Rename name to shname to avoid shadowing.
12012 (write_symbol_table): Rename name to symname to avoid shadowing.
12013 Fix write_reloc_section call.
12014
12015 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12018 to ensure that it's after the last byte of .text.
12019
12020 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * util/ieee1275/ofpath.c (my_isdigit): New function.
12023 (trailing_digits): Use my_isdigit.
12024 (strip_trailing_digits): Likewise.
12025
12026 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12029 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12030
12031 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * grub-core/kern/i386/pc/startup.S: Define __start.
12034
12035 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12038 strip already transforms he format.
12039
12040 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12041
12042 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12043
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12045
12046 * util/grub-install.in: Add missing gettext init.
12047 * util/grub-kbdcomp.in: Likewise.
12048 * util/grub-mkconfig.in: Likewise.
12049 * util/grub-mknetdir.in: Likewise.
12050 * util/grub-mkrescue.in: Likewise.
12051 * util/grub-mkstandalone.in: Likewise.
12052 * util/grub-reboot.in: Likewise.
12053 * util/grub-set-default.in: Likewise.
12054 * util/grub.d/00_header.in: Likewise.
12055 * util/grub.d/10_hurd.in: Likewise.
12056 * util/grub.d/10_windows.in: Likewise.
12057 * util/grub.d/30_os-prober.in: Likewise.
12058 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12059
12060 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12061
12062 * po/Rules-swiss: Fix header comment.
12063
12064 2012-02-29 Andreas Vogel <anvoit>
12065
12066 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12067 resulted in leak of arguments.
12068
12069 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12072 reed_solomon_size const definition instead of computing it since
12073 Apple assembler doesn't support the later.
12074
12075 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076
12077 * gentpl.py (kernel): Rewrite Apple part.
12078
12079 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12082
12083 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12084
12085 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12086 ELF section gap.
12087 (load_image): Likewise.
12088
12089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * configure.ac: Fix a typo in previous commit.
12092
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 Don't add -Wl,-N on Apple platform.
12096
12097 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12098 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12099
12100 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12101
12102 * grub-core/Makefile.core.def (lzma_decompress): Use
12103 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12104
12105 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12106
12107 * grub-core/genmod.sh.in: Rewrite the Apple part.
12108
12109 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12112 comparison.
12113
12114 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * acinclude.m4 (grub_CHECK_PIC): New test.
12117 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12118
12119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12122 to avoid the warning.
12123
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12127 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12128 after. All users updated.
12129
12130 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131
12132 Use the common size routine in hostfs so we can read disks as well.
12133
12134 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12135 (grub_util_get_fd_size): ... this. Return size in bytes.
12136 All users updated.
12137 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12138 grub_util_get_fd_size.
12139
12140 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12143 Add blocksize retrieval.
12144
12145 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 * configure.ac: Restore CFLAGS after efiemu check.
12148
12149 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12152 Apple bug.
12153
12154 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12155
12156 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12157
12158 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12161 (grub_cmd_halt): Likewise.
12162
12163 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12164
12165 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12166 for local arithmetics.
12167 Break %sp init into 2 instructions.
12168 Add 0 byte at the end.
12169
12170 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12171
12172 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12173 before loops.
12174
12175 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12176
12177 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12178 for context.
12179
12180 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12181
12182 * grub-core/disk/ldm.c (make_vg): Init part.name.
12183 (grub_ldm_detect): Silence spurious warning.
12184 (grub_util_is_ldm): Likewise.
12185
12186 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12189 sane value to avoid a spurious warning.
12190
12191 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12194 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12195
12196 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12197
12198 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12199 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12200
12201 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12202
12203 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12204 hardcoding the relevant info.
12205
12206 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12207
12208 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12209 missing const qualifiers.
12210 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12211
12212 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 * util/getroot.c [__APPLE__]: Add missing includes.
12215 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12216
12217 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12220
12221 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12224 avoid conflicts.
12225
12226 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12229
12230 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12231
12232 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12233 and grub_file_close call.
12234
12235 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 Add LZSS Mach-O support (needed for new xnu kernelcache).
12238
12239 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12240 * grub-core/loader/lzss.c: New file.
12241 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12242 on Mach-O open failure.
12243 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12244 Don't free cmdsXX in uncompressedXX is set.
12245 (grub_macho_file): Init new fields.
12246 New argument is_64bit. All users updated.
12247 Handle compressed. Error out if no suitable architecture is found.
12248 Don't close file.
12249 (grub_macho_open): New argument is_64bit. All users updated.
12250 * grub-core/loader/macho32.c: Add defines for new fields.
12251 * grub-core/loader/macho64.c: Likewise.
12252 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12253 (grub_macho_parse): Handle compressed.
12254 Defer actual processing if compressed.
12255 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12256 "filename". All users updated.
12257 (grub_macho_size): New argument "filename". All users updated.
12258 (grub_macho_get_entry_point): Likewise.
12259 (grub_macho_load): Handle compressed.
12260 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12261 (GRUB_MACHO_LZSS_OFFSET): New define.
12262 (grub_decompress_lzss): New proto.
12263 * include/grub/machoload.h (grub_macho_file): New fields to handle
12264 compressed.
12265 (grub_macho_contains_macho64): Remove proto.
12266 (grub_macho_contains_macho32): Likewise.
12267 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12268
12269 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12270
12271 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12272
12273 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 Fix make dist.
12276
12277 * Makefile.am (starfield_theme_files): New var.
12278 (starfield_DATA): Use starfield_theme_files.
12279 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12280 Add bootcheck-related files.
12281 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12282 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12283 and font_char_metrics.txt.
12284 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12285 (setjmp): Add lib/ia64/longjmp.S.
12286 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12287 * po/POTFILES.in: Regenerate.
12288 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12289 DISTFILES.common.extra1.
12290 * util/devicemap.c: Removed.
12291 * grub-core/lib/i386/relocator_backward.S: Likewise.
12292 * util/import_gcry.py: Remove unused files. Add extra_dist for
12293 ChangeLog.
12294
12295 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12296
12297 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12298 grub_gettext_delete_list before changing grub_gettext_max to avoid
12299 running out of array bounds.
12300
12301 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12302
12303 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12304 grub_vga_text_init/grub_vga_text_fini.
12305
12306 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12307
12308 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12309
12310 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311
12312 * configure.ac: Bump to 2.00~beta0.
12313
12314 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12315
12316 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12317 missing initialisation.
12318
12319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12320
12321 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12322
12323 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12324
12325 Support v2 xnu boot arguments.
12326
12327 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12328 New argument fsbfreq_out.
12329 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12330 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12331 be used.
12332 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12333 darwin_version.
12334 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12335 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12336 (grub_xnu_boot_params): Rename to ...
12337 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12338 (grub_xnu_boot_params_v2): New struct.
12339
12340 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12341
12342 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12343 zeroing of CRC field before computing CRC.
12344
12345 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12348 Change order of allocations to decrease fragmentation.
12349
12350 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12351
12352 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12353
12354 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12355
12356 Use write-combining MTRR to speed up video with buggy BIOSes.
12357
12358 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12359 (cpuid): New define.
12360 (rdmsr): Likewise.
12361 (wrmsr): Likewise.
12362 (mtrr_base): Likewise.
12363 (mtrr_mask): Likewise.
12364 (grub_vbe_enable_mtrr_entry): New function.
12365 (grub_vbe_enable_mtrr): Likewise.
12366 (grub_vbe_disable_mtrr): Likewise.
12367 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12368 control off to BIOS.
12369 (grub_video_vbe_init): Fill mtrr.
12370 (grub_video_vbe_fini): Disable mtrr.
12371 (grub_video_vbe_get_info_and_fini): Likewise.
12372 (grub_video_vbe_setup): Enable mtrr.
12373
12374 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12375
12376 * include/grub/partition.h (grub_partition_map): Change prototype of
12377 embed to take a maximum value for nsectors.
12378 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12379 * include/grub/fs.h (grub_fs): Likewise.
12380 * grub-core/partmap/msdos.c (embed_signatures): New array.
12381 (pc_partition_map_embed): Check for and avoid sectors matching any
12382 of the signatures in embed_signatures, up to max_nsectors.
12383 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12384 returned sector map to max_nsectors.
12385 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12386 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12387 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12388 * util/grub-setup.c (setup): Allow for the embedding area being
12389 split into multiple blocklists. Tell dest_partmap->embed the
12390 maximum number of sectors we care about.
12391
12392 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12393
12394 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12395 Specify blocklist_install and reserver_first_sector for all fs.
12396 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12397 blocklists.
12398
12399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12400
12401 * util/grub-install.in: Clarify strings.
12402 Fix source dir check.
12403
12404 2012-02-27 Richard Laager <rlaager@wiktel.com>
12405
12406 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12407 "zfs" and "fuse.zfs" as synonyms.
12408
12409 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12410
12411 * configure.ac: Put platform and target_cpu substitutions back since
12412 they are used for directories.
12413
12414 2012-02-27 Richard Laager <rlaager@wiktel.com>
12415 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12418 * util/grub.d/20_linux_xen.in: Likewise.
12419
12420 2012-02-27 Richard Laager <rlaager@wiktel.com>
12421
12422 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12423 with full paths.
12424
12425 2012-02-27 Richard Laager <rlaager@wiktel.com>
12426
12427 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12428 unescape.
12429
12430 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 Don't use insecure popen in getroot.
12433
12434 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12435 (exec_pipe): ... here.
12436 (find_root_devices_from_poolname): Use exec_pipe.
12437
12438 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 Remove platform and target_cpu replacement.
12441
12442 * configure.ac: Remove platform and target_cpu substitutions.
12443 * tests/util/grub-shell.in: Use modinfo.
12444 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12445 explicitly.
12446
12447 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 Autodetect platform in grub-install but allow override.
12450
12451 * util/grub-install.in: Autodetect platform. Support --target and
12452 --directory. Read platform from modinfo.sh.
12453
12454 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 Support btrfs multi-volume probe.
12457
12458 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12459 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12460 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12461 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12462 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12463 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12464 grub_find_root_devices_from_btrfs if on btrfs.
12465
12466 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12467
12468 Remove any awareness of *.c util files about target.
12469
12470 * Makefile.util.def (grub-setup): Split to ...
12471 (grub-bios-setup): ... and this.
12472 (grub-sparc64-setup): ... and this.
12473 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12474 * docs/man/grub-setup.h2m: Split into ...
12475 * docs/man/grub-sparc64-setup.h2m: ... this.
12476 * docs/man/grub-bios-setup.h2m: ... and this.
12477 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12478 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12479 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12480 (grub_target_addr_t): Remove.
12481 (grub_target_size_t): Remove.
12482 (grub_target_ssize_t): Remove.
12483 * util/grub-install.in: Use new grub-*-setup.
12484 * util/grub-mkimagexx.c (Elf_Word): New define.
12485 (Elf_Half): Likewise.
12486 (Elf_Section): Likewise.
12487 (ELF_ST_TYPE): Likewise.
12488 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12489 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12490
12491 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12492
12493 Replace grub_target_addr with more appropriate types.
12494
12495 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12496 grub_target_addr with grub_addr.
12497 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12498 grub_target_addr with grub_port.
12499 (grub_cmd_write): Likewise.
12500 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12501 grub_target_addr with grub_addr.
12502 (grub_cmd_write): Likewise.
12503 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12504
12505 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12508 const qualifier for vendor_guid.
12509
12510 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12513 const qualifier.
12514 (efiemu_memequal): Likewise.
12515 (find_variable): Likewise.
12516
12517 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12518
12519 Fix missing console prototype on qemu-mips.
12520
12521 * include/grub/mips/qemu_mips/console.h: New file.
12522
12523 2012-02-27 Matthew Garrett <mjg@redhat.com>
12524 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12525
12526 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12527 * include/grub/efi/efi.h: Likewise.
12528 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12529 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12530 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12531 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12532 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12533 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12534
12535 2012-02-27 Matthew Garrett <mjg@redhat.com>
12536
12537 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12538
12539 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12540
12541 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12542 error.
12543
12544 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12545
12546 * configure.ac: Remove inappropriate use of program_transform_name
12547 on grubdir and bootdir but allow explicit specification of those
12548 variables.
12549
12550 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12551
12552 * util/grub-mknetdir.in (grub_prefix): Removed.
12553 (subdir): Use @bootdirname@ and @grubdirname@.
12554
12555 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12556
12557 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12558
12559 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12560
12561 * po/POTFILES.in: Regenerated.
12562
12563 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12564
12565 Remove improper use of program_transform_name on pkglibrootdir.
12566
12567 * configure.ac (pkglibrootdir): Removed.
12568 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12569 * util/grub-mkimage.c: Likewise.
12570
12571 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12572
12573 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12574 warning.
12575
12576 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * util/grub-install.in: Use file identifier if no UUID is available
12579 or user explicitly prompted for it.
12580
12581 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12582
12583 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12584 (freebsd_get_zfs): New function.
12585 (grub_freebsd_boot): Pass zfs UUID.
12586 (grub_cmd_freebsd): Set zfs UUID.
12587
12588 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12589
12590 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12591 pkglibrootdir.
12592
12593 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12594
12595 Add configure flag to control libzfs integration.
12596
12597 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12598
12599 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12602 device.
12603 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12604 small devices.
12605
12606 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12607
12608 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12609 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12610 be used on non-modules.
12611
12612 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12613 Rename to grub_boot_init.
12614 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12615 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12616 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12617 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12618 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12619 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12620 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12621 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12622 includes.
12623 (grub_machine_init): Remove empty inits.
12624 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12625 includes.
12626 (grub_machine_init): Remove empty inits.
12627 * grub-core/term/arc/console.c: Remove explicit proto.
12628 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12629 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12630 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12631 grub_at_keyboard_fini.
12632 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12633 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12634 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12635 grub_gfxterm_fini.
12636 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12637 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12638 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12639 grub_vgatext_fini.
12640 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12641 * grub-core/term/serial.c (GRUB_MOD_INIT)
12642 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12643 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12644 grub_serial_fini.
12645 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12646 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12647 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12648 grub_terminfo_fini.
12649 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12650 (GRUB_MOD_FINI): Likewise.
12651 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12652 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12653 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12654 grub_video_radeon_fuloong2e_fini.
12655 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12656 [LOONGSON]: Rename to grub_video_sis315pro_init.
12657 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12658 grub_video_sis315pro_fini.
12659 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12660 [LOONGSON]: Rename to grub_video_sm712_init.
12661 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12662 grub_video_sm712_fini.
12663 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12664 (grub_at_keyboard_fini): Likewise.
12665 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12666 Don't declare grub_{modname}_init.
12667 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12668 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12669 New proto.
12670 (grub_keylayouts_fini) [!EMU]: Likewise.
12671 * include/grub/serial.h (grub_serial_init) [!EMU]:
12672 New proto.
12673 (grub_serial_fini) [!EMU]: Likewise.
12674 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12675 New proto.
12676 (grub_terminfo_fini) [!EMU]: Likewise.
12677 * include/grub/video.h (grub_font_init) [!EMU]:
12678 New proto.
12679 (grub_font_fini) [!EMU]: Likewise.
12680 (grub_gfxterm_init) [!EMU]: Likewise.
12681 (grub_gfxterm_fini) [!EMU]: Likewise.
12682 (grub_video_sm712_init) [!EMU]: Likewise.
12683 (grub_video_sm712_fini) [!EMU]: Likewise.
12684 (grub_video_sis315pro_init) [!EMU]: Likewise.
12685 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12686 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12687 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12688
12689 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12690
12691 Make nand a prefix for nand devices.
12692
12693 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12694
12695 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12698 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12699
12700 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12701
12702 * include/grub/env.h (grub_env_find): Remove prototype.
12703 * grub-core/kern/env.c (grub_env_find): Make static.
12704 (grub_env_set): Remove useless set.
12705
12706 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12707
12708 * grub-core/kern/i386/realmode.S: Remove useless align.
12709
12710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * include/grub/dl.h (grub_dl_load_file): Don't export.
12713
12714 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12715
12716 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12717 grub_dprintf.
12718
12719 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12720
12721 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12722 grub_errors.
12723 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12724 not reloading whole superblock but only the part which is really needed.
12725 Remove useless grub_errors.
12726 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12727 grub_errors.
12728
12729 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12730
12731 Don't export grub_get_rtc.
12732
12733 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12734 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12735
12736 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12737
12738 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12739
12740 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12743 argument since it can be deduced from diskfilter. All users updated.
12744
12745 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 Remove prio_list.
12748
12749 * include/grub/list.h (grub_prio_list): Removed.
12750 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12751 GRUB_COMMAND_PRIO_MASK.
12752 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12753 GRUB_COMMAND_FLAG_ACTIVE.
12754 (grub_prio_list_insert): Removed.
12755 (grub_prio_list_remove): Likewise.
12756 (GRUB_AS_PRIO_LIST): Likewise.
12757 (GRUB_AS_PRIO_LIST_P): Likewise.
12758 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12759 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12760 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12761 * grub-core/kern/command.c (grub_register_command_prio): Inline
12762 the prio_list code.
12763 (grub_unregister_command): Likewise.
12764
12765 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12766
12767 Fix interrupt mixup from previous commit.
12768
12769 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12770 (grub_realidt): New var.
12771 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12772 Load idt.
12773 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12774 New declaration.
12775 (grub_relocator16_boot): Set grub_relocator16_idt.
12776 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12777 (LOCAL(realidt)): ... this.
12778 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12779 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12780 (grub_realidt): New variable.
12781
12782 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12783
12784 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12785 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12786 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12787 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12788 Gettextize.
12789 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12790 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12791 * po/POTFILES.in: Regenerate.
12792
12793 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12794
12795 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12796 errors.
12797
12798 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12799
12800 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12801 \0.
12802 (add_length): Likewise.
12803
12804 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12805 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12806
12807 GDB serial and backtrace support.
12808
12809 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12810 (prot_to_real): Likewise.
12811 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12812 * grub-core/Makefile.core.def (backtrace): New module.
12813 (gdb): Likewise.
12814 * grub-core/gdb/cstub.c: New file.
12815 * grub-core/gdb/gdb.c: Likewise.
12816 * grub-core/gdb/i386/idt.c: Likewise.
12817 * grub-core/gdb/i386/machdep.S: Likewise.
12818 * grub-core/gdb/i386/signal.c: Likewise.
12819 * grub-core/lib/i386/backtrace.c: Likewise.
12820 * grub-core/lib/backtrace.c: Likewise.
12821 * include/grub/backtrace.h: Likewise.
12822 * include/grub/gdb.h: Likewise.
12823 * include/grub/i386/gdb.h: Likewise.
12824
12825 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12826
12827 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12828 New function.
12829 (add_length): Likewise.
12830 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12831 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12832 proto.
12833 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12834 __argp_get_display_len.
12835
12836 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 $"..." support in scripts.
12839
12840 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12841 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12842 * grub-core/script/yylex.l: Likewise.
12843 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12844 value.
12845
12846 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12847
12848 * gentpl.py: Remove obsolete pkglib_DATA handling.
12849
12850 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12851
12852 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12853 mailing list.
12854
12855 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12856 * util/grub-kbdcomp.in: Likewise.
12857 * util/grub-mkconfig.in: Likewise.
12858 * util/grub-mkconfig_lib.in: Likewise.
12859 * util/grub-mknetdir.in: Likewise.
12860 * util/grub-mkrescue.in: Likewise.
12861 * util/grub-mkstandalone.in: Likewise.
12862 * util/grub-reboot.in: Likewise.
12863 * util/grub-set-default.in: Likewise.
12864 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12865
12866 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12867
12868 Remove GRUB_PREFIX.
12869
12870 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12871 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12872 used for backward compatibility.
12873
12874 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12875
12876 Add new all_video module.
12877
12878 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12879 * grub-core/Makefile.core.def (all_video): New module.
12880 * grub-core/genmoddep.awk: Generate dependency of all_video from
12881 video.lst.
12882 * grub-core/lib/fake_module.c: New file.
12883 * grub-core/normal/main.c (features): Add feature_all_video_module.
12884 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12885 don't do explicit search again.
12886 insmod all_video in load_video if available.
12887
12888 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 Another round of string clarification and adding TRANSLATORS comments.
12891
12892 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12893
12894 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12895
12896 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12897
12898 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12899 to grub_ssize_t.
12900 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12901 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12902
12903 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12906 trailing newline implicitly. All users updated.
12907
12908 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12909
12910 Implement serial on IEEE1275 and EFI.
12911
12912 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12913 on emu. Mention arc and emu as the only platforms without serial
12914 support.
12915 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12916 ieee1275 platforms.
12917 * grub-core/term/efi/serial.c: New file.
12918 * grub-core/term/ieee1275/serial.c: Likewise.
12919 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12920 specification if no ns8250 driver is available.
12921 (grub_cmd_serial): Likewise.
12922 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12923 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12924 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12925 (grub_efi_parity_type_t): New type.
12926 (grub_efi_stop_bits_t): Likewise.
12927 (grub_efi_serial_io_interface): New struct.
12928 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12929 available for all interfaces.
12930 Add EFI and IEEE1275 fields.
12931 (grub_ofserial_init): New proto.
12932 (grub_efiserial_init): Likeiwse.
12933 * util/grub.d/00_header.in: Don't check for the presence of serial
12934 module.
12935
12936 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12939 name as if it was an alias.
12940
12941 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12942
12943 * grub-core/commands/lsacpi.c (options): Fix typo.
12944
12945 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12946
12947 Convert grub-emu to argp.
12948
12949 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12950 emu.
12951 * util/argp_common.c: Rename to ...
12952 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12953 Add missing includes.
12954 * grub-core/kern/emu/main.c: Convert to argp.
12955 * po/POTFILES.in: Regenerate.
12956 * util/grub-install.in (usage): Make first letter lowcase in messages
12957 for uniformity.
12958 * util/grub-setup.c (options): Likewise.
12959
12960 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12963 Put back accidently commented-out code.
12964
12965 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12968 loop check using Brent algorithm.
12969 (grub_hfsplus_btree_search): Likewise.
12970
12971 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * util/grub-install.in: Fix usage of wrong device for PreP install.
12974
12975 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * conf/Makefile.common (CFLAGS_GNULIB): Add
12978 -Wno-unsafe-loop-optimizations.
12979 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12980 on tools.
12981 * grub-core/commands/legacycfg.c: Add pragma to skip
12982 -Wunsafe-loop-optimizations.
12983 (check_password_md5_real): Fix loop counter type.
12984 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12985 reading.
12986 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12987 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12988 loop condition.
12989 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12990 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12991 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12992 condition.
12993 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12994 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12995 avoid possible infinite loops.
12996 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12997 and -Wunsafe-loop-optimizations.
12998 * grub-core/script/yylex.l: Likewise.
12999 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13000 (print_glyphs): Avoid infinite loops.
13001 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13002
13003 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
13004
13005 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13006 to avoid infinite loop.
13007 (disp_acpi_rsdt_table): Likewise.
13008
13009 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13010
13011 * grub-core/font/font.c (grub_font_load): Add support for default
13012 path for fonts ($prefix/fonts).
13013 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13014 for checking if string is a path.
13015 * grub-core/normal/main.c (features): Add feature_default_font_path.
13016 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13017 * util/grub.d/00_header.in: Use default directory if possible.
13018 * util/grub-install.in: Install unicode.pf2.
13019
13020 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
13021
13022 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13023 * po/Rules-swiss: New file.
13024 * po/swiss.sed: Likewise.
13025
13026 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13027
13028 * grub-core/fs/btrfs.c (find_device): Fix typos.
13029 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13030 * util/grub-mkrelpath.c (argp_parser): Likewise.
13031 Reported by: Yuri Chornoivan.
13032
13033 2012-02-23 Dalet Omega <daletomega@gmail.com>
13034
13035 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13036 for usual informative messages.
13037
13038 2012-02-23 Dalet Omega <daletomega@gmail.com>
13039
13040 Starfield theme.
13041
13042 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13043 * conf/Makefile.common: Define starfielddir.
13044 * configure.ac: Configure starfield.
13045 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13046 * themes/starfield/README: Likewise.
13047 * themes/starfield/blob_w.png: Likewise.
13048 * themes/starfield/boot_menu_c.png: Likewise.
13049 * themes/starfield/boot_menu_e.png: Likewise.
13050 * themes/starfield/boot_menu_n.png: Likewise.
13051 * themes/starfield/boot_menu_ne.png: Likewise.
13052 * themes/starfield/boot_menu_nw.png: Likewise.
13053 * themes/starfield/boot_menu_s.png: Likewise.
13054 * themes/starfield/boot_menu_se.png: Likewise.
13055 * themes/starfield/boot_menu_sw.png: Likewise.
13056 * themes/starfield/boot_menu_w.png: Likewise.
13057 * themes/starfield/slider_c.png: Likewise.
13058 * themes/starfield/slider_n.png: Likewise.
13059 * themes/starfield/slider_s.png: Likewise.
13060 * themes/starfield/src/blob_nw.xcf: Likewise.
13061 * themes/starfield/src/bootmenu/: Likewise.
13062 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13063 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13064 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13065 * themes/starfield/src/slider_c.xcf: Likewise.
13066 * themes/starfield/src/slider_n.xcf: Likewise.
13067 * themes/starfield/src/slider_s.xcf: Likewise.
13068 * themes/starfield/src/terminalbox/: Likewise.
13069 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13070 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13071 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13072 * themes/starfield/starfield.png: Likewise.
13073 * themes/starfield/terminal_box_c.png: Likewise.
13074 * themes/starfield/terminal_box_e.png: Likewise.
13075 * themes/starfield/terminal_box_n.png: Likewise.
13076 * themes/starfield/terminal_box_ne.png: Likewise.
13077 * themes/starfield/terminal_box_nw.png: Likewise.
13078 * themes/starfield/terminal_box_s.png: Likewise.
13079 * themes/starfield/terminal_box_se.png: Likewise.
13080 * themes/starfield/terminal_box_sw.png: Likewise.
13081 * themes/starfield/terminal_box_w.png: Likewise.
13082 * themes/starfield/theme.txt: Likewise.
13083
13084 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13085
13086 * util/grub.d/00_header.in: Add missing export theme.
13087
13088 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13089
13090 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13091 already included.
13092 Reported by: Eren D.
13093
13094 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13095
13096 * conf/Makefile.common (grubdatadir): Removed.
13097 (Makefile.am): Move eveything grubdata to pkgdata.
13098
13099 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 * grub-core/commands/acpihalt.c (get_sleep_type):
13102 Remove unused variable.
13103
13104 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13105
13106 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13107 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13108 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13109 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13110 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13111 i18n with gettext no-op.
13112 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13113 GRUB_ACPI_OPCODE_STRING_CONST.
13114 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13115 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13116
13117 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * po/POTFILES.in: Regenerate.
13120
13121 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13122
13123 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13124 -Wno-error=missing-noreturn.
13125
13126 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13127
13128 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13129 condition to avoid possibly infinite loops.
13130 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13131 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13132
13133 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13136 condition to avoid possibly infinite loops.
13137
13138 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13141 on show_error.
13142
13143 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13144
13145 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13146
13147 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13150
13151 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13152
13153 * util/bin2h.c (usage): Add missing attribute noreturn.
13154
13155 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13158 if the size isn't divisible by 512.
13159
13160 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 Make list_push and list_remove functions rather than inline functions
13163 to decrease size and avoid aliasing violations.
13164
13165 * include/grub/list.h (grub_list_push): Move to ...
13166 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13167 * include/grub/list.h (grub_list_remove): Move to ...
13168 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13169
13170 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13173 and -Wunused-result.
13174
13175 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13178 Reported by: Seth Goldberg
13179
13180 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13183
13184 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13185
13186 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13187 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13188 command line.
13189 * docs/grub.texi (Simple configuration): Document
13190 GRUB_CMDLINE_GNUMACH.
13191
13192 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * conf/Makefile.common (platform_SCRIPTS): New variable.
13195 (platform_PROGRAMS): Likewise.
13196 * gentpl.py: Mark *,module and *.image for install.
13197 * grub-core/gdb_grub.in: Add a notice of expected environment.
13198 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13199 (gmodule.pl): Likewise.
13200
13201 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 Replace grub_checkkey with grub_getkey_noblock.
13204
13205 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13206 (grub_getkey_noblock): ... this. All users updated.
13207
13208 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13209
13210 * grub-core/kern/emu/console.c: Move to ...
13211 * grub-core/term/emu/console.c: ...here.
13212 (grub_ncurses_getkey): Fix return value if no key is detected.
13213
13214 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13215
13216 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13217 (grub_unit_test_fini): Likewise.
13218 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13219
13220 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13221
13222 * include/grub/test.h (GRUB_UNIT_TEST)
13223
13224 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13225
13226 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13227 Better error handling.
13228 (grub_script_return): Likewise.
13229 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13230
13231 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13234 rimplicit redifinition.
13235
13236 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13239 GRUB.
13240
13241 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13244 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13245 prompt here.
13246
13247 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13248
13249 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13250 as GRUB_ERR_BUG. Don't malloc if no device is available.
13251
13252 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13253
13254 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13255 Mark calling with invalid term as GRUB_ERR_BUG.
13256
13257 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13260 packets rather than raising an error.
13261
13262 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13263
13264 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13265 in if.
13266
13267 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13268
13269 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13270 diagnostic to dprintf.
13271 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13272
13273 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13274
13275 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13276 device name.
13277
13278 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13279
13280 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13281 (grub_ntfs_iterate_dir): Likewise.
13282
13283 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13284
13285 Efiemu stylistic fixes and gettext.
13286
13287 * grub-core/efiemu/i386/loadcore32.c
13288 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13289 * grub-core/efiemu/i386/loadcore64.c
13290 (grub_arch_efiemu_relocate_symbols64): Likewise.
13291 * grub-core/efiemu/i386/pc/cfgtables.c
13292 (grub_machine_efiemu_init_tables): Likewise.
13293 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13294 (grub_efiemu_loadcore_initXX): Add a filename argument.
13295 All users updated.
13296 Improved error message.
13297 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13298 Add a filename argument.
13299 All users updated.
13300 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13301 Reclassify double relocation as GRUB_ERR_BUG.
13302
13303 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13304
13305 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13306 handling.
13307
13308 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13309
13310 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13311 on partition.
13312
13313 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13314
13315 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13316
13317 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13318
13319 Improve string. Gettextize.
13320
13321 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13322
13323 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13324 utils.
13325 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13326
13327 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13328
13329 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13330 [GRUB_UTIL]: New function.
13331 (insert_array) [GRUB_UTIL]: Store partmaps.
13332 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13333 partmaps.
13334 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13335 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13336 (probe_abstraction): Print diskfilter and not raid.
13337 Reported by: Lennart Sorensen
13338
13339 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13340
13341 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13342 * util/grub-mkimagexx.c (MASK3): New define.
13343 (add_value_to_slot_20b): Use MASK3.
13344 (add_value_to_slot_21): Likewise.
13345 (relocate_addresses): Fix format specification.
13346 (load_image): Explicitly init symtab_section.
13347
13348 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13349
13350 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13351 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13352
13353 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13354
13355 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13356 on powerpc.
13357 Reported by: Lennart Sorensen
13358
13359 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 * gentpl.py: Add missing license header.
13362 * docs/grub.texi: Update copyright year.
13363
13364 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13365
13366 Source grub-mkconfig_lib from the build directory at build time.
13367 Suggested by: Vladimir Serbinenko.
13368
13369 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13370 * util/grub-install.in: Define pkgdatadir if not already set, and source
13371 grub-mkconfig_lib from there.
13372 * util/grub-kbdcomp.in: Likewise.
13373 * util/grub-mkconfig.in: Likewise.
13374 * util/grub-mknetdir.in: Likewise.
13375 * util/grub-mkrescue.in: Likewise.
13376 * util/grub-mkstandalone.in: Likewise.
13377 * util/grub-reboot.in: Likewise.
13378 * util/grub-set-default.in: Likewise.
13379 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13380
13381 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13382
13383 Increase warning level.
13384
13385 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13386 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13387 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13388 (TARGET_CFLAGS): Likewise.
13389 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13390 * grub-core/Makefile.core.def (decompressor_xz): Add
13391 -Wno-unreachable-code.
13392 (normal): Add -Wno-redundant-decls.
13393 (xzio): Add -Wno-unreachable-code.
13394 (lzopio): Add -Wno-redundant-decls -Wno-error.
13395 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13396 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13397 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13398 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13399 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13400 * grub-core/kern/i386/coreboot/init.c: Add exception to
13401 -Wsuggest-attribute=noreturn.
13402 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13403 * grub-core/kern/ia64/dl_helper.c: Likewise.
13404 * grub-core/kern/mips/dl.c: Likewise.
13405 * grub-core/kern/sparc64/dl.c: Likewise.
13406 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13407 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13408 (memcmp): Likewise.
13409 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13410 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13411 * grub-core/loader/mips/linux.c: Likewise.
13412 * grub-core/loader/multiboot_elfxx.c: Likewise.
13413 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13414 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13415 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13416 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13417 fixme.
13418 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13419 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13420 Fix prototype.
13421
13422 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13423
13424 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13425 address.
13426
13427 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13428
13429 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13430 Avoid improper use of strings.
13431 (grub_cmd_legacy_initrdnounzip): Likewise.
13432
13433 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13436 attribute.
13437 (grub_util_info): Likewise.
13438 (grub_util_error): Likewise.
13439
13440 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13443 * util/grub-fstest.c (fstest): Likewise.
13444
13445 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13446
13447 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13448 (grub_md_sha512_real): Likewise.
13449 (grub_util_get_geli_uuid): Likewise.
13450 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13451 (grub_util_biosdisk_open): Fix format specification.
13452 Respect format security.
13453 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13454 (xrealloc): Likewise.
13455 (xasprintf): Likewise.
13456
13457 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13458
13459 * util/import_gcry.py: Include grub/crypto.h in init.c.
13460
13461 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13462
13463 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13464 (generate_image): Make prefix a const char *.
13465 Fix format specifications. Respect format security.
13466 Avoid void * arithmetics.
13467 Avoid shadowing.
13468 (argp_parser): Remove unused variable. Respect format security.
13469 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13470 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13471 (count_funcs): Remove unused variable.
13472 (relocate_addresses): Fix format specification.
13473 Disable x86-64 with elf32. Remove unused variables.
13474 (add_fixup_entry): Avoid shadowing.
13475 (make_reloc_section): Fix format specification.
13476 Use assert.
13477 (locate_sections): Fix format specifications.
13478 (load_image): Avoid shadowing.
13479
13480 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13483 Fix format specifications. Respect format security.
13484 Don't translate already translated grub_errmsg.
13485 (argp_parser): Remove unused variable
13486
13487 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13488
13489 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13490
13491 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13494 (main): Likewise. Use xmalloc. Respect format security.
13495
13496 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13497
13498 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13499 a const char *.
13500 (argp_parser): Remove unused variable.
13501
13502 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13503
13504 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13505 (add_pixel): Make static.
13506 (add_font): Likewise.
13507 (write_string_section): Make name and str a const char *.
13508 (write_be16_section): Make name a const char *.
13509 (print_glyphs): Make static.
13510 (write_font_ascii_bitmap): Likewise.
13511 (write_font_width_spec): Likewise.
13512 (write_font_pf2): Likewise.
13513 (argp_parser): Remove unused variable.
13514 Respect format security.
13515 (main): Avoid shadowing. Respect format security.
13516
13517 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * util/grub-editenv.c (argp_parser): Make static.
13520 (create_envblk_file): Use xmalloc.
13521 (open_envblk_file): Likewise.
13522 Resepect format security.
13523 (set_variables): Respect format security.
13524
13525 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13526
13527 * util/getroot.c (grub_find_device): Respect format security.
13528 (get_mdadm_uuid): Remove unused variable.
13529 (grub_util_pull_device): Dont call gettext on already translated
13530 grub_errmsg.
13531 (find_system_device): Remove unused variable.
13532 (grub_util_get_grub_dev): Likewise.
13533 (grub_make_system_path_relative_to_its_root): Respect format security.
13534
13535 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13536
13537 * util/grub-fstest.c (execute_command): Make first argument
13538 a const char *.
13539 (read_file): Avoid shadowing.
13540 Reuse underlying error message if device open fails.
13541 (cmd_cmp): Respect format security.
13542 (root): Make const char *.
13543 (fstest): Remove args argument and use global copy.
13544 Respect format security.
13545 (argp_parser): Make static.
13546 (main): Make default_root const char *.
13547
13548 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 * util/grub-mount.c (root): Make const char *.
13551 (execute_command): Make first argument a const char *.
13552 (fuse_init): Respect format security.
13553 (argp_parser): Make static. Remove unused variable.
13554 (main): Make default_root a const char *.
13555 Respect format security.
13556
13557 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * util/grub-probe.c (probe): Don't call gettext on already translated
13560 grub_errmsg.
13561 Remove unused variables.
13562 (argp_parser): Remove unused variable.
13563
13564 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13565
13566 * util/grub-script-check.c (argp_parser): Remove unused variable.
13567 (main): Rename read to curread to avoid shadowing.
13568
13569 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13570
13571 * util/misc.c (grub_util_write_image_at): Fix format specification.
13572 (grub_util_write_image): Likewise.
13573 (grub_script_execute_argument_to_string): Removed (unused).
13574 (grub_script_execute_menuentry): Likewise.
13575 (grub_putchar): Likewise.
13576
13577 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13578
13579 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13580 (FUNCTION) [GRUB_UTIL]: Likewise.
13581 (VARIABLE) [GRUB_UTIL]: Likewise.
13582
13583 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13586 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13587
13588 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13589
13590 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13591 buffer.
13592
13593 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13596 (LzmaEnc_SaveState): Removed (unused).
13597 (LzmaEnc_RestoreState): Likewise.
13598 (LzmaEnc_InitPriceTables): Made static.
13599 (LzmaEnc_Construct): Likewise.
13600 (LzmaEnc_FreeLits): Likewise.
13601 (LzmaEnc_Destruct): Likewise.
13602 (LzmaEnc_Init): Likewise.
13603 (LzmaEnc_InitPrices): Likewise.
13604 (LzmaEnc_Finish): Likewise.
13605 (LzmaEnc_PrepareForLzma2): Removed (unused).
13606 (LzmaEnc_MemPrepare): Likewise.
13607 (LzmaEnc_GetNumAvailableBytes): Likewise.
13608 (LzmaEnc_GetCurBuf): Likewise.
13609 (LzmaEnc_CodeOneMemBlock): Likewise.
13610
13611 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13612
13613 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13614 (grub_util_ldm_embed): Likewise.
13615
13616 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13617
13618 * util/grub-editenv.c (print_var): Rename name to varname to
13619 avoid shadowing.
13620 (main): Rename index to curindex to avoid shadowing.
13621 Make filename a const char *.
13622
13623 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13624
13625 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13626 to arg_getline to avoid shadowing.
13627
13628 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13629
13630 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13631 disk_ to avoid shadowing.
13632
13633 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13634
13635 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13636 curindex to avoid shadowing.
13637 Make static.
13638 (MatchFinder_GetNumAvailableBytes): Make static.
13639
13640 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13643 avoid shadowing.
13644
13645 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13646
13647 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13648 argument from encrypt to do_encrypt to avoid shadowing.
13649
13650 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13651
13652 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13653 incorrect nesting of #if's.
13654
13655 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13658 checks which are always false on some platforms.
13659 (grub_cmd_lsacpi): Likewise.
13660 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13661 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13662 Likewise.
13663
13664 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13665
13666 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13667 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13668
13669 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13670
13671 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13672 re_dfa_t to avoid breaking alignment invariants.
13673 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13674 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13675
13676 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13679 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13680
13681 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13684 Fix declaration.
13685
13686 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13689 conserve alignment invariants.
13690 (grub_ehci_ehcc_read16): Likewise.
13691 (grub_ehci_oper_read32): Likewise.
13692 (grub_ehci_oper_write32): Likewise.
13693 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13694 Conserve alignment invariants.
13695
13696 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13699 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13700 declarations.
13701
13702 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13705 Remove unused variable.
13706
13707 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13710 Remove set in if.
13711
13712 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 * include/grub/net.h: Remove double declarations.
13715
13716 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13717
13718 Remove "payload" command in ia64 Linux loader since I couldn't
13719 find any evidence of it being used for anything.
13720 Replace "relocate" command with an environment variable
13721
13722 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13723 fields.
13724 (ia64_boot_payload): Removed.
13725 (last_payload): Likewise.
13726 (RELOCATE_OFF): Likewise.
13727 (RELOCATE_ON): Likewise.
13728 (RELOCATE_FORCE): Likewise.
13729 (relocate): Likewise.
13730 (free_pages): Don't free payloads.
13731 (grub_load_elf64): Use common error messages.
13732 Use "linux_relocate" variable.
13733 Increase the space after boot_params.
13734 (grub_cmd_payload): Removed.
13735 (grub_cmd_relocate): Likewise.
13736 (grub_cmd_fpswa): Improve messages.
13737 (cmd_payload): Removed.
13738 (cmd_relocate): Likewise.
13739 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13740 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13741
13742 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 Convert UHCI to DMA framework.
13745
13746 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13747 (grub_uhci_pci_iter): Fill new members
13748 (grub_alloc_td): Use P2V and V2P functions.
13749 (grub_free_queue): Likewise.
13750 (grub_alloc_qh): Likewise.
13751 (grub_uhci_setup_transfer): Likewise.
13752 (grub_uhci_check_transfer): Likewise.
13753
13754 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13757 Remove assignment in if while on it.
13758
13759 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * util/grub-mkstandalone.in: Fix modules directory.
13762
13763 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13764
13765 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13766 on i386-pc target.
13767 (argp_parser): Accept "auto" as compression specification.
13768
13769 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 Fix `help' with unloaded modules.
13772
13773 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13774 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13775 (grub_dyncmd_dispatcher): Small stylistic fix.
13776 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13777 explicit help is requested.
13778
13779 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13782 Explicitly init restart while on it.
13783
13784 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13785
13786 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13787 uninited variable.
13788
13789 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13790
13791 * util/grub-mknetdir.in: Use . rather than source for POSIX
13792 compatibility.
13793
13794 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13797
13798 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13799
13800 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13801 variable.
13802
13803 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13804
13805 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13806 without quotes.
13807
13808 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13809
13810 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13811
13812 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13813
13814 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13815 iteration of partitions.
13816
13817 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13818
13819 Improve gettext support. Stylistic fixes and error handling fixes while
13820 on it.
13821
13822 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13823
13824 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13825 part. Instead setup the correct stack in RM.
13826 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13827 for stack.
13828 * include/grub/i386/relocator_private.h: New file.
13829
13830 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13833 argument.
13834 * util/grub-fstest.c (options): Add missing DEVICE part.
13835
13836 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 Clarify and unify messages.
13839
13840 * grub-core/commands/hashsum.c (options): Unify messages.
13841 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13842 literal-only message as translatable.
13843 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13844 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13845 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13846 commands.
13847 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13848 key, not the key used to unlock. Clarify what it's used for.
13849 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13850 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13851 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13852 * util/grub-editenv.c (options): Unify "verbose" message.
13853 * util/grub-fstest.c (read_file): Unify error message.
13854 (fstest): Add quotes around commands.
13855 (options): Unify "verbose" message.
13856 * util/grub-install.in: Add quotes around variable name.
13857 * util/grub-kbdcomp.in: Unify error message.
13858 * util/grub-mkfont.c (main): Likewise.
13859 * util/grub-mkrescue.in: Likewise.
13860 * util/grub-mklayout.c (options): Unify "verbose" message.
13861 * util/grub-mkstandalone.in: Unify help and verbose messages.
13862 * util/grub-mount.c (options): Unify "verbose" message.
13863 * util/grub-probe.c (options): Likewise.
13864 * util/grub-script-check.c (options): Likewise.
13865 * util/grub-setup.c (setup): Unify no-terminator message.
13866 (options): Use DEVICE and not DEV.
13867 Unify "verbose" message.
13868 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13869
13870 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13871
13872 Improve and unify messages.
13873
13874 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13875 name. All users updated.
13876 Print filename in error.
13877 (read_device_map): Print filename in error.
13878 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13879 (grub_util_get_os_disk): Likewise.
13880 (grub_util_biosdisk_get_grub_dev): Likewise.
13881 (grub_util_check_block_device): Likewise.
13882 (grub_util_check_char_device): Likewise.
13883 (grub_make_system_path_relative_to_its_root): Likewise.
13884 * util/grub-editenv.c (create_envblk_file): Likewise.
13885 (open_envblk_file): Likewise.
13886 (write_envblk): Likewise.
13887 * util/grub-fstest.c (cmd_cp): Likewise.
13888 (cmd_cat): Likewise.
13889 (cmd_cmp): Likewise.
13890 * util/grub-menulst2cfg.c (main): Likewise.
13891 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13892 (write_font_width_spec): Likewise.
13893 (write_font_pf2): Likewise.
13894 * util/grub-mkimage.c (generate_image): New argument outname.
13895 All users updated.
13896 Remove unreacheable message.
13897 (options): Unify messages.
13898 (help_filter): Likewise.
13899 * util/grub-mklayout.c (usage): Removed (unused).
13900 (main): Print filename in error.
13901 * util/grub-mkrescue.in: Fix wrong quoting.
13902 * util/grub-setup.c (setup): Print filename in error.
13903 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13904 (check_sas): Likewise.
13905 * util/misc.c (grub_util_get_fp_size): Removed.
13906 (grub_util_get_image_size): Print filename in error.
13907 (grub_util_read_at): Removed.
13908 (grub_util_read_image): Print filename in error.
13909 (grub_util_load_image): Likewise.
13910 (grub_util_write_image_at): New argument filename. All users updated.
13911 Print filename in error.
13912 (grub_util_write_image): New argument filename. All users updated.
13913 Print filename in error.
13914 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13915 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13916
13917 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 * grub-core/Makefile.core.def (pxechain): New module.
13920 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13921 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13922 function.
13923 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13924 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13925
13926 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13929 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13930 * include/grub/err.h (grub_error_saved): New struct.
13931 (grub_errmsg): Make array size explicit.
13932 * include/grub/misc.h (grub_error_save): New function.
13933 (grub_error_load): Likewise.
13934 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13935 (grub_error_push): Update `errno' member name.
13936 (grub_error_pop): Likewise
13937 * grub-core/net/tftp.c (tftp_data): New member save_err.
13938 (tftp_receive): Save error.
13939 (tftp_open): Restore error.
13940
13941 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13944 to real mode down to execute A20-related code in protected mode as
13945 intended.
13946
13947 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13948
13949 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13950 NULL when the argument `level' has an unexpected value.
13951
13952 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13953
13954 Move platform-dependent files from $prefix to $prefix/$platform.
13955
13956 * config.h.in (GRUB_TARGET_CPU): New definition.
13957 (GRUB_PLATFORM): Likewise.
13958 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13959 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13960 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13961 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13962 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13963 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13964 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13965 * grub-core/normal/term.c (read_terminal_list): Likewise.
13966 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13967 $prefix/locale.
13968 (grub_gettext_init_ext): Likewise.
13969 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13970 grub_platform.
13971 * util/grub-install.in: Update directories.
13972 * util/grub-mknetdir.in: Likewise.
13973 * util/grub-mkrescue.in: Likewise.
13974
13975 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13978 grub_error framework. All users updated.
13979
13980 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13981
13982 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13983 lists (by always binsearching), improve caching (cache strings
13984 used for binsearch, not only results), improve
13985 maintainability (by using more structured binary search) and correct
13986 error handling.
13987
13988 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * grub-core/script/execute.c (grub_script_return): Fix warning.
13991
13992 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13993
13994 * grub-core/script/execute.c (grub_script_return): Fix potential
13995 NULL-dereference.
13996 Reported by: Jim Meyering.
13997
13998 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13999
14000 * po/POTFILES.in: Regenerate.
14001 * util/grub-install.in: Gettextize the strings missed in first pass.
14002
14003 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14004
14005 * Makefile.util.def (grub-mkdevicemap): Removed.
14006 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14007 * include/grub/util/deviceiter.h: Removed.
14008 * util/deviceiter.c: Likewise.
14009 * util/getroot.c (grub_util_get_os_disk): New function.
14010 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14011 replacement for EFI.
14012 * util/grub-mkdevicemap.c: Removed.
14013 * util/grub-probe.c (probe): Handle PRINT_DISK.
14014 (argp_parser): Handle -t disk.
14015
14016 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * util/grub-mkfont.c: Migrate to argp.
14019 * util/grub-mklayout.c: Likewise.
14020 * util/grub-mkpasswd-pbkdf2.c: Likewise.
14021 * util/grub-mkrelpath.c: Likewise.
14022 * util/grub-probe.c: Likewise.
14023 * util/grub-script-check.c: Likewise.
14024
14025 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 * util/grub-reboot.in: Add missing datarootdir.
14028 Add missing newline.
14029 * util/grub-set-default.in: Add missing datarootdir.
14030 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14031 * util/grub-mkrescue.in: Likewise.
14032
14033 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14034
14035 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14036
14037 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 * util/grub-kbdcomp.in: Add decent help and gettextize.
14040 * docs/man/grub-kbdcomp.h2m: New file.
14041
14042 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 Migrate grub-mkimage.c to argp.
14045
14046 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14047 (grub-setup): Likewise.
14048 * util/grub-setup.c (print_version): Move to ...
14049 * util/argp_common.c (print_version): ... here.
14050 * util/grub-setup.c (argp_program_version_hook): Move to ...
14051 * util/argp_common.c (argp_program_version_hook): ... here.
14052 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14053 safety.
14054 * util/grub-mkimage.c (main): Migrate to argp.
14055
14056 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * util/grub-mkrescue.in: Use same message as
14059 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14060 for better translations.
14061
14062 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14065 options with generic grub-mkrescue.in with the goal of future
14066 merge.
14067
14068 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * grub-core/kern/mm.c: Add missing include of i18n.h
14071 * grub-core/lib/relocator.c: Likewise.
14072
14073 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14076 error.
14077 (allocate_pages): Check return value.
14078 Replace fatal with error.
14079 (grub_linux_boot): Replace printf with dprintf.
14080 Check find_mmap_size return value.
14081 Replace fatal with error.
14082 Don't call grub_machine_fini.
14083 (grub_load_elf64): Replace printf with dprintf.
14084 (grub_cmd_linux): Likewise.
14085 (grub_cmd_initrd): Likewise.
14086 (grub_cmd_payload): Likewise.
14087
14088 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14091 message.
14092 * grub-core/video/radeon_fuloong2e.c
14093 (grub_video_radeon_fuloong2e_setup): Likewise.
14094 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14095 * grub-core/video/video.c (grub_video_set_mode): Don't override
14096 standard out of memory message.
14097
14098 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14099
14100 NetBSD disk wedge support.
14101
14102 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14103 [__NetBSD__]: Handle NetBSD disk wedges.
14104 * util/getroot.c (convert_system_partition_to_system_disk)
14105 [__NetBSD__]: Likewise.
14106
14107 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14108
14109 * util/grub-mkconfig.in: Use umask rather than chmod to create
14110 grub.cfg.new to avoid insecure grub.cfg.
14111
14112 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14113
14114 * grub-core/commands/ls.c: Gettextize.
14115 * grub-core/commands/setpci.c: Likewise.
14116 * grub-core/commands/videotest.c: Likewise.
14117 * grub-core/disk/geli.c: Likewise.
14118 * grub-core/kern/mm.c: Likewise.
14119 * grub-core/lib/relocator.c: Likewise.
14120 * grub-core/loader/efi/appleloader.c: Likewise.
14121 * grub-core/loader/i386/xnu.c: Likewise.
14122 * grub-core/loader/ia64/efi/linux.c: Likewise.
14123 * grub-core/loader/xnu.c: Likewise.
14124 * grub-core/net/dns.c: Likewise.
14125 * grub-core/net/net.c: Likewise.
14126 * grub-core/script/lexer.c: Likewise.
14127 * grub-core/script/parser.y: Likewise.
14128 * grub-core/script/yylex.l: Likewise.
14129 * util/getroot.c: Likewise.
14130 * util/grub-setup.c: Likewise.
14131
14132 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14135 number.
14136
14137 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14138
14139 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14140
14141 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14142
14143 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14144 macro.
14145 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14146 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14147
14148 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14149
14150 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14151 * util/grub-install.in: Gettextize.
14152 * util/grub-mkconfig.in: Likewise.
14153 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14154 if not available.
14155 (grub_warn): Gettextize.
14156 * util/grub-mknetdir.in: Gettextize.
14157 * util/grub-mkrescue.in: Likewise.
14158 * util/grub-mkstandalone.in: Likewise.
14159 * util/grub-reboot.in: Likewise.
14160 * util/grub-set-default.in: Likewise.
14161 * util/grub.d/00_header.in: Likewise.
14162 * util/grub.d/10_hurd.in: Likewise.
14163 * util/grub.d/10_kfreebsd.in: Likewise.
14164 * util/grub.d/10_linux.in: Likewise.
14165 * util/grub.d/10_netbsd.in: Likewise.
14166 * util/grub.d/10_windows.in: Likewise.
14167 * util/grub.d/20_linux_xen.in: Likewise.
14168 * util/grub.d/30_os-prober.in: Likewise.
14169 * po/POTFILES-shell.in: Regenerate.
14170
14171 2012-02-03 Richard Laager <rlaager@wiktel.com>
14172
14173 * util/grub-mkimage.c (main): Fix format-security warning.
14174 * util/grub-mkrelpath.c (main): Likewise.
14175 * util/grub-probe.c (main): Likewise.
14176
14177 2012-02-03 Richard Laager <rlaager@wiktel.com>
14178
14179 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14180 failure.
14181 Put back lost PRINT_DRIVE.
14182
14183 2012-02-03 Richard Laager <rlaager@wiktel.com>
14184
14185 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14186 (grub_guess_root_devices): Replace strlen with sizeof.
14187 Avoid crash.
14188 (find_root_devices_from_poolname): Remove unused variable.
14189 Handle raidzN.
14190
14191 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14192
14193 Support install on multi-device filesystems.
14194
14195 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14196 (grub_guess_root_devices): ...this. Return char **. All users updated.
14197 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14198 Removed.
14199 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14200 (find_root_devices_from_poolname): ... here.
14201 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14202 Support zfs-fuse.
14203 (grub_guess_root_device): Rename to ...
14204 (grub_guess_root_devices): ... this. Return char **. All users updated.
14205 * util/grub-install.in: Handle multi-device filesystems.
14206 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14207 argument. All users updated.
14208 Handle multi-device filesystems.
14209 Use 'delim' as separator.
14210 Remove device check to allow filesystems on file.
14211 (main): Support -0 argument. Handle multi-device.
14212 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14213 Fix a cross-device check while on it.
14214 (arguments): Remove root_dev.
14215 (argp_parser): Remove -r.
14216 (main): Remove root_dev.
14217
14218 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14219
14220 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14221
14222 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14223
14224 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14225 symbol.
14226 Reported by: NODA, Kai <nodakai>.
14227
14228 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14229
14230 Fix ehci on amd64.
14231
14232 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14233 pointers.
14234 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14235 (grub_ehci_setup_qh): Likewise.
14236 (grub_ehci_find_qh): Likewise.
14237 (grub_ehci_transaction): Likewise.
14238 (grub_ehci_setup_transfer): Likewise.
14239 (grub_ehci_check_transfer): Likewise.
14240 (grub_ehci_portstatus): Likewise.
14241 (grub_ehci_detect_dev): Likewise.
14242 (grub_ehci_transfer_controller_data): New field td_last_phys.
14243 (grub_ehci_setup_transfer): Fill td_last_phys.
14244 (grub_ehci_check_transfer): Use td_last_phys.
14245
14246 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14247
14248 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14249 if no submenu is present.
14250
14251 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14252
14253 CBI support.
14254
14255 * include/grub/usb.h (grub_usbms_protocol_t): New values
14256 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14257 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14258 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14259 (grub_usbms_dev): Add subclass, protocol and intrpt.
14260 Remove in_maxsz and out_maxsz.
14261 (grub_usbms_reset): Rename to ...
14262 (grub_usbms_bo_reset): .. this.
14263 (grub_usbms_cbi_cmd): New function.
14264 (grub_usbms_cbi_reset): Likewise.
14265 (grub_usbms_reset): Likewise.
14266 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14267 (grub_usbms_transfer): Rename to ...
14268 (grub_usbms_transfer_bo): ... this.
14269 (grub_usbms_transfer_cbi): Likewise.
14270 (grub_usbms_transfer): Likewise.
14271
14272 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14273 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14276 the support for the CS5536 modification thereos and few bugfixes.
14277
14278 * grub-core/Makefile.core.def (ehci): New module.
14279 * grub-core/bus/usb/ehci.c: New file.
14280 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14281 port and hubaddr. All users updated.
14282 Save port and hubaddr into dev structure.
14283 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14284 define.
14285 * include/grub/pci.h (grub_dma_phys2virt): New function.
14286 (grub_dma_virt2phys): Likewise.
14287 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14288
14289 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14290
14291 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14292 check as some mkfs implementations omit it.
14293
14294 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14297
14298 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14301 Add new member volname2.
14302 (grub_jfs_label): Use volname2 if available.
14303
14304 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14307 over last_mounted as seen in image generated by mkfs.nilfs2.
14308 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14309
14310 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14313 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14314 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14315
14316 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14317
14318 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14319 over the sector.
14320
14321 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14322
14323 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14324 subvolume name (by removing a bogus and useless check).
14325
14326 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14327
14328 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14329 sizeof while on it.
14330
14331 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14332
14333 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14334 (grub_scsi_read_capacity10): ... this.
14335 (grub_scsi_read_capacity16): New function.
14336 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14337 0xffffffff.
14338 Fix off-by-one error.
14339 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14340 64-bit unsigned.
14341 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14342 (grub_scsi_read_capacity10): ... this.
14343 (grub_scsi_read_capacity_data): Rename to ...
14344 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14345 (grub_scsi_read_capacity16): New struct.
14346 (grub_scsi_read_capacity16_data): Likewise.
14347 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14348 grub_scsi_cmd_read_capacity10.
14349 New command grub_scsi_cmd_read_capacity16.
14350
14351 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14352
14353 SCSI >2TiB support.
14354
14355 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14356 (grub_scsi_write16): Likewise.
14357 (grub_scsi_read): Use read16 when necessary.
14358 (grub_scsi_write): Likewise.
14359 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14360 (grub_scsi_write16): Likewise.
14361 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14362
14363 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14364
14365 SCSI write support (for usbms mainly).
14366
14367 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14368 a const pointer.
14369 (grub_scsi_write): Implement.
14370 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14371
14372 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14373
14374 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14375 variable.
14376
14377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14380
14381 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * po/POTFILES.in: Regenerate.
14384
14385 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14388 with grub_printf to avoid unnecessary fatal failure.
14389
14390 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14393 (INT_MAX): Likewise.
14394 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14395 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14396 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14397 (strcpy): Likewise.
14398 (strstr): Likewise.
14399 (strchr): Likewise.
14400 (strncpy): Likewise.
14401 (strcat): Likewise.
14402 (strncat): Likewise.
14403 (strcoll): Likewise.
14404 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14405 (GRUB_INT_MAX): Likewise.
14406
14407 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14410 unexpected error.
14411 (optimize_utf8): Likewise.
14412 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14413
14414 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14415
14416 * grub-core/boot/i386/pc/lnxboot.S: Use
14417 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14418 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14419 location.
14420 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14421 definition.
14422 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14423
14424 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14427 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14428 now to avoid double free.
14429 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14430 hostdisk.
14431 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14432 * util/grub-probe.c (escape_of_path): Always return a new copy.
14433 (print_full_name): Escape path.
14434 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14435 Fix hints on abstractions.
14436
14437 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14440 Don't add "root" line if no compatibility hont is available.
14441 Suggested by: Seth Goldberg.
14442
14443 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14444
14445 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14446 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14447 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14448 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14449
14450 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14453
14454 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14455
14456 * util/grub-pe2elf.c (ehdr): Make static.
14457 (shdr): Likewise.
14458 (num_sections): Likewise.
14459 (offset): Likewise.
14460
14461 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14462
14463 Eliminate ofpath limits and possible overflows.
14464
14465 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14466 (OF_PATH_MAX): Removed.
14467 (MAX_DISK_CAT): New const.
14468 (find_obppath): Use allocated rather than preallocated buffer.
14469 Return result. Argument of_path removed. All users updated.
14470 Add missing fdstat.
14471 (xrealpath): New function.
14472 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14473 Allocate rather than use preallocated buffer. All users updated.
14474 (__of_path_common): Use allocated rather than preallocatecd buffer.
14475 Return result. Argument of_path removed. All users updated.
14476 (vendor_is_ATA): Read only needed part form the file.
14477 (check_sas): Allocate depending on contents rather than fixed.
14478 (main) [STANDALONE]: Handle NULL result.
14479
14480 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14483
14484 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14485
14486 Cryptodisk write support.
14487
14488 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14489 (grub_cryptodisk_decrypt): Moved logic to ...
14490 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14491 (grub_cryptodisk_write): Implement.
14492 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14493 (grub_util_fd_write): ... this. Make global.
14494 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14495
14496 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14497
14498 * include/grub/list.h (grub_list_remove): Don't crash if element is
14499 removed twice.
14500
14501 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 Rename ofconsole to console.
14504
14505 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14506 as sysnonym to console.
14507 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14508 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14509 Rename grub_ofconsole_ to grub_console_. All users updated
14510 (grub_console_term_output): Rename "ofconsole" to "console".
14511 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14512 as "console".
14513
14514 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14515
14516 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14517 handling.
14518 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14519 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14520 GRUB_DISK_DEVICE_FILE_ID.
14521
14522 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14523
14524 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14525 and improve performance.
14526
14527 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14528
14529 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14530 missing ieee1275/ prefix on whole disk.
14531
14532 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14533
14534 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14535 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14536
14537 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14538
14539 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14540
14541 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14542
14543 Merge common RAID and LVM logic to an abstract diskfilter.
14544 Add LDM support using the same framework.
14545
14546 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14547 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14548 (libgrubmods): Remove grub-core/disk/raid.c and
14549 grub-core/partmap/gpt.c.
14550 * grub-core/Makefile.core.def (ldm): New module.
14551 (raid): Renamed to diskfilter. All users updated.
14552 * grub-core/disk/raid.c: Moved to ...
14553 * grub-core/disk/diskfilter.c: ... here.
14554 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14555 (lv_num): New var.
14556 (find_array): Renamed to ...
14557 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14558 (grub_is_array_readable): Renamed to ...
14559 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14560 (insert_array): New argument id.
14561 (is_node_readable): New function.
14562 (scan_device): Rename to ...
14563 (scan_disk): .. this. Restrict to one disk.
14564 (scan_devices): New function.
14565 (grub_diskfilter_iterate): Support multi-LV.
14566 Skip invisible and nameless LVs.
14567 (grub_diskfilter_memberlist): Support multi-LV.
14568 (grub_diskfilter_read_node): New function.
14569 (grub_raid_read): Most of logic moved to ...
14570 (read_segment): ... here
14571 (read_lv): New function.
14572 (grub_diskfilter_get_vg_by_uuid): New function.
14573 (grub_diskfilter_make_raid): Likewise.
14574 * grub-core/disk/ldm.c: New file.
14575 * grub-core/disk/lvm.c (vg_list): Removed.
14576 (lv_count): Likewise.
14577 (scan_depth): Likewise.
14578 (is_lv_readable): Likewise.
14579 (grub_lvm_getvalue): Advance pointer past the number.
14580 (find_lv): Removed.
14581 (do_lvm_scan): Refactored into ...
14582 (grub_lvm_detect): ... this. Support raid.
14583 (grub_lvm_iterate): Removed.
14584 (grub_lvm_memberlist): Likewise.
14585 (grub_lvm_open): Likewise.
14586 (grub_lvm_close): Likewise.
14587 (read_lv): Likewise.
14588 (read_node): Likewise.
14589 (is_node_readable): Likewise.
14590 (is_lv_readable): Likewise.
14591 (grub_lvm_read): Likewise.
14592 (grub_lvm_write): Likewise.
14593 (grub_lvm_dev): Use diskfilter
14594 (GRUB_MOD_INIT): Likewise.
14595 (GRUB_MOD_FINI): Likewise.
14596 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14597 new interface.
14598 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14599 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14600 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14601 grub_diskfilter_read_node.
14602 Fix a bug with xor.
14603 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14604 grub_diskfilter_read_node.
14605 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14606 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14607 (grub_disk_dev_iterate): Move from here...
14608 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14609 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14610 Make global.
14611 (grub_hostdisk_find_partition_start): Likewise.
14612 (grub_hostdisk_os_dev_to_grub_drive): New function.
14613 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14614 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14615 * util/getroot.c (make_device_name): ... here.
14616 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14617 Move to ...
14618 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14619 * grub-core/kern/emu/hostdisk.c
14620 (convert_system_partition_to_system_disk): Move to ...
14621 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14622 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14623 * util/getroot.c (device_is_wholedisk): ... here.
14624 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14625 * util/getroot.c (find_system_device): ... here.
14626 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14627 Move to ...
14628 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14629 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14630 Move to ...
14631 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14632 Handle LDM.
14633 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14634 Move to ...
14635 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14636 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14637 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14638 DISKFILTER.
14639 * include/grub/raid.h: Renamed to ...
14640 * include/grub/diskfilter.h: ... this.
14641 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14642 (GRUB_RAID_LAYOUT_*): Make into array.
14643 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14644 (grub_diskfilter_vg): New struct.
14645 (grub_diskfilter_pv_id): Likewise.
14646 (grub_raid_member): Removed.
14647 (grub_raid_array): Likewise.
14648 (grub_diskfilter_pv): New struct.
14649 (grub_diskfilter_lv): Likewise.
14650 (grub_diskfilter_segment): Likewise.
14651 (grub_diskfilter_node): Likewise.
14652 (grub_diskfilter_get_vg_by_uuid): New proto.
14653 (grub_raid_register): Inline.
14654 (grub_diskfilter_unregister): Likewise.
14655 (grub_diskfilter_make_raid): New proto.
14656 (grub_diskfilter_vg_register): Likewise.
14657 (grub_diskfilter_read_node): Likewise.
14658 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14659 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14660 (grub_util_is_ldm): Likewise.
14661 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14662 (grub_hostdisk_find_partition_start): Likewise.
14663 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14664 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14665 New definition.
14666 (grub_gpt_partition_map_iterate): New proto.
14667 * include/grub/lvm.h (grub_lvm_vg): Removed.
14668 (grub_lvm_pv): Likewise.
14669 (grub_lvm_lv): Likewise.
14670 (grub_lvm_segment): Likewise.
14671 (grub_lvm_node): Likewise.
14672 * util/getroot.c [...]
14673 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14674 (probe_abstraction): Likewise.
14675 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14676 (main): Remove dead logic.
14677
14678 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14679
14680 Simplify root device discover and don't fail when trying to open
14681 incorrect devices.
14682
14683 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14684 function.
14685 (get_diskname_from_path): Likewise.
14686 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14687 of iterating.
14688
14689 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14692
14693 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14694
14695 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14696 pastthe end.
14697
14698 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14699
14700 * util/grub-install.in: Add missing \.
14701 Reported by: gentoofan
14702
14703 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14704
14705 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14706 (direct_read): Use correct compressed size.
14707 (grub_squash_read_data): Likewise.
14708
14709 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * docs/grub.texi (Platform limitations): New section.
14712 (Platform-specific operations): Likewise.
14713 * docs/grub-dev.texi (Porting): Likewise.
14714
14715 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 IEEE1275 disk write support.
14718
14719 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14720 const void *.
14721 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14722 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14723 and seek loginc to ...
14724 (grub_ofdisk_prepare): ... here.
14725 (grub_ofdisk_write): Implement.
14726
14727 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14728
14729 ARC disk write support.
14730
14731 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14732 (reopen): New argument writable. All users updated.
14733 Handle required access mode.
14734 (grub_arcdisk_write): Implement.
14735 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14736 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14737
14738 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14739
14740 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14741 (read_sblock): Don't attempt to read superblocks outside the disk size.
14742
14743 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14744
14745 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14746 first superblock to find the second one when possible.
14747
14748 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14749
14750 * util/grub-install.in: Fix an ARC bug.
14751 Print a warning if no platform-specific setup is available.
14752
14753 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 Use static allocation rather than scratch pointer in reed_solomon.
14756 It decreases its size significantly and avoids a variable in .text.
14757
14758 * grub-core/lib/reed_solomon.c (scratch): Removed.
14759 (chosenstat): New const or static array.
14760 (sigma): Likewise.
14761 (errpot): Likewise.
14762 (errpos): Likewise.
14763 (sy): Likewise.
14764 (mstat): Likewise.
14765 (errvals): Likewise.
14766 (eqstat): Likewise.
14767 (pol_evaluate): Replace x with log_x argument. All users updated.
14768 (syndroms): Removed.
14769 (gauss_solve): Use statically allocated arrays.
14770 (rs_recover): Likewise.
14771 Calculate syndroms directly.
14772 (decode_block): Use statically allocated arrays.
14773 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14774 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14775
14776 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14777
14778 Eliminate fixed limit on reed solomon decoder length.
14779
14780 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14781 rather than hardcoding the address.
14782 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14783 no_reed_solomon_length.
14784 Move gate_a20 to no-reed-solomon part.
14785 Don't force a particular size of no reed-solomon part.
14786 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14787 Removed.
14788 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14789 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14790
14791 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14792
14793 * grub-core/commands/wildcard.c (match_files): Handle filenames
14794 without explicit device.
14795 (wildcard_expand): Don't add explicit device if not already present.
14796 * tests/grub_script_echo1.in: Add a new expansion test.
14797
14798 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14799
14800 Replace single-linked with double-linked lists. It results in more
14801 compact and more efficient code.
14802
14803 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14804 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14805 (grub_list_remove): Moved from here ...
14806 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14807 (grub_prio_list_insert): Set prev.
14808 * include/grub/list.h (grub_list): Add prev. All users updated.
14809
14810 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14811
14812 Handle newer autotools. Add some missing quotes while on it.
14813
14814 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14815 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14816 (pkgdata_DATA): ... here.
14817 * Makefile.util.def (update-grub_lib): Removed.
14818 * conf/Makefile.common (pkglib_DATA): Removed.
14819 (pkglib_SCRIPTS): Likewise.
14820 (pkgdata_DATA): New variable.
14821 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14822 needed.
14823 Add missing quotes.
14824 Remove unused variable while on it.
14825 * tests/util/grub-shell.in: Likewise.
14826 * util/grub-install.in: Likewise.
14827 * util/grub-mkconfig.in: Likewise.
14828 * util/grub-mknetdir.in: Likewise.
14829 * util/grub-mkrescue.in: Likewise.
14830 * util/grub-mkstandalone.in: Likewise.
14831 * util/grub.d/00_header.in: Likewise.
14832 * util/grub.d/10_hurd.in: Likewise.
14833 * util/grub.d/10_illumos.in: Likewise.
14834 * util/grub.d/10_kfreebsd.in: Likewise.
14835 * util/grub.d/10_linux.in: Likewise.
14836 * util/grub.d/10_netbsd.in: Likewise.
14837 * util/grub.d/10_windows.in: Likewise.
14838 * util/grub.d/20_linux_xen.in: Likewise.
14839 * util/grub.d/30_os-prober.in: Likewise.
14840 * util/update-grub_lib.in: Removed.
14841
14842 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14843
14844 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14845 a workaround for intel problem.
14846
14847 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14848 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14849 2012-01-23 pfsmorigo
14850
14851 * util/grub-install.in: Support dd'in into PreP partition.
14852 * util/grub-probe.c (probe): Support discovering partition type.
14853 (main): Support -t msdos_parttype.
14854
14855 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14856
14857 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14858 infinite recursion using counter.
14859 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14860 init to skip it if the magic check fails.
14861 (dec_stream_header): Init s->crc32.
14862
14863 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14864 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14865 2012-01-22 Richard Laager <rlaager@wiktel.com>
14866
14867 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14868 All users updated.
14869 (find_bestub): Determine correct size.
14870 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14871 (scan_disk): Align the size down.
14872 Call check pool before find_bestub to have ashift.
14873
14874 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14877 dprintf in no-malloc zone.
14878
14879 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14880
14881 * configure.ac: Add back in test for limits.h.
14882
14883 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14884
14885 Support 4K-sector NTFS.
14886
14887 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14888 (grub_ntfs_data): Remove blocksize.
14889 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14890 Remove data argument. All users updated.
14891
14892 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14893
14894 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14895 being in .text to avoid dprel references.
14896 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14897 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14898 (grub_arch_highmemsize): Likewise.
14899 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14900 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14901 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14902
14903 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14904
14905 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14906
14907 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14908 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14909
14910 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14913 GRUB_UTIL.
14914 (grub_set_datetime_cmos): Likewise.
14915
14916 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14917
14918 Make XZ compression parameters dependent on target and not host CPU.
14919
14920 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14921 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14922
14923 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14924
14925 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14926 set but not used variable.
14927
14928 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14931 created when no uuid support is compiled into mkfs.reiser.
14932
14933 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14936 (utf8_to_macroman): Do the opposite.
14937 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14938
14939 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * configure.ac: Refise build qemu_mips w/o unifont.
14942
14943 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14944
14945 Eliminate grub_min/grub_max prone to overflow usage.
14946
14947 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14948 (poll_nonroot_hub): Likewise.
14949 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14950 (grub_affs_label): Likewise.
14951 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14952 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14953 (grub_hfs_label): Likewise.
14954 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14955 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14956 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14957 (zap_leaf_array_get): Likewise.
14958 (dnode_get_path): Likewise.
14959 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14960 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14961 * grub-core/script/execute.c (grub_script_break): Likewise.
14962 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14963 grub_max.
14964 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14965 * include/grub/misc.h (grub_min): Removed.
14966 (grub_max): Likewise.
14967
14968 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14969
14970 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14971 direct.inode = 0.
14972
14973 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14974
14975 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14976
14977 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14980
14981 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14984 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14985
14986 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14989 rather than a hack for grub_strncasemap.
14990
14991 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14992
14993 Support multiple initrds
14994 Note: part of this was accidently committed in r3739.
14995
14996 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14997 initrd.
14998 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14999 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15000 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15001 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15002 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15003
15004 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15005
15006 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15007 disks with unknown size.
15008 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15009
15010 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15011
15012 Remove defines pertaining to arbitrary limits not affecting GRUB
15013 anymore.
15014
15015 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15016 (EXT2_MAX_SYMLINKCNT): Likewise.
15017 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15018 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15019 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15020 (GRUB_PXE_MAX_BLKSIZE): Likewise.
15021 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15022 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15023 (DN_MAX_OBJECT_SHIFT): Likewise.
15024 (DN_MAX_OFFSET_SHIFT): Likewise.
15025 (DN_MAX_OBJECT): Likewise.
15026 (DNODES_PER_LEVEL_SHIFT): Likewise.
15027 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15028 (SPA_MAXBLOCKSIZE): Likewise.
15029 (SPA_BLOCKSIZES): Likewise.
15030 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15031 (MZAP_MAX_BLKSZ): Likewise.
15032
15033 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15036 handle NULL appropriately.
15037 Remove MIN.
15038
15039 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15040
15041 Fix efiemu.
15042
15043 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15044 cpu/types.h.
15045 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15046 * configure.ac: Fix efiemu check.
15047
15048 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15051 grub_probe.
15052 Reported by: adamwill
15053
15054 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15055
15056 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15057
15058 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 Fix handling of wide characters in gfxterm.
15061
15062 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15063 (clear_char): Likewise.
15064 (paint_char): Skip code == NULL chars.
15065 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15066
15067 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15068
15069 * grub-core/normal/charset.c: Move comment to right place.
15070
15071 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15074 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15075 (grub_affs_mount): Revert the correct version checking.
15076
15077 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15078
15079 * docs/grub.texi (Unicode): Mention several other unsupported features.
15080
15081 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15082
15083 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15084 case statements as compile-time one.
15085 (direct_read): Prevent spurious warnings.
15086 (grub_squash_read_data): Likewise.
15087
15088 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15089
15090 Various squash4 fixes and LZO and XZ support.
15091
15092 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15093 Add xzembed source files.
15094 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15095 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15096 (grub_squash_inode): New subtype long_dir.
15097 (SQUASH_TYPE_LONG_DIR): New inode type.
15098 (COMPRESSION): New enum.
15099 (XZBUFSIZ): New const.
15100 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15101 (read_chunk): Use data->decompress.
15102 (zlib_decompress): New function.
15103 (lzo_decompress): Likewise.
15104 (xz_decompress): Likewise.
15105 (squash_mount): Set new data fields.
15106 (grub_squash_iterate_dir): Handle long dir.
15107 (squash_unmount): Free xzdec and xzbuf.
15108 (grub_squash_open): Check ino type.
15109 (direct_read): Stylistic fixes. Use data->decompress.
15110 (grub_squash_read_data): Likewise.
15111 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15112 (get_byte): Likewise.
15113 (grub_zlib_disk_read): Removed.
15114 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15115 (GRUB_POSIX_BOOL_DEFINED): New define.
15116 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15117 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15118 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15119 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15120
15121 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 Don't override more informative errors.
15124
15125 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15126 * grub-core/font/font.c (open_section): Likewise.
15127 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15128 filename. Don't override errors.
15129 (grub_cmd_openbsd_ramdisk): Don't override errors.
15130 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15131 (grub_cmd_initrd): Likewise.
15132 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15133 (grub_cmd_initrd): Likewise.
15134 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15135 (grub_cmd_linux): Likewise.
15136 (grub_cmd_initrd): Likewise.
15137 (grub_cmd_payload): Likewise.
15138 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15139 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15140 (grub_cmd_module): Likewise.
15141 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15142 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15143 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15144 (grub_cmd_xnu_mkext): Likewise.
15145 (grub_cmd_xnu_ramdisk): Likewise.
15146 (grub_xnu_check_os_bundle_required): Likewise.
15147 (grub_xnu_load_kext_from_dir): Likewise.
15148 (grub_cmd_xnu_kextdir): Likewise.
15149 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15150
15151 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15152
15153 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15154 as 1024 in block size field. Found on one of my test images.
15155 Small optimisation while on it.
15156
15157 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15158
15159 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15160 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15161 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15162 performance fixes while on it.
15163 (grub_sfs_close): Fix memory leak while on it.
15164 (grub_sfs_label): Convert Latin1 to UTF-8.
15165
15166 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15169 space to avoid overflows.
15170 (grub_hfs_label): Convert from macroman to UTF-8.
15171
15172 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15173
15174 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15175
15176 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15177
15178 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15179
15180 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15181
15182 * unicode: Import Unicode 6.0 data.
15183
15184 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15185
15186 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15187 outside of range.
15188
15189 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15190
15191 Avoid cutting in the middle of UTF-8 character.
15192
15193 * include/grub/charset.h (grub_getend): New function.
15194 * grub-core/script/function.c (grub_script_function_find): Use
15195 grub_getend.
15196 * grub-core/normal/completion.c (add_completion): Likewise.
15197
15198 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15199
15200 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15201 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15202 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15203 (GRUB_UNICODE_TAG_END): Likewise.
15204 (GRUB_UNICODE_LAST_VALID): Likewise.
15205
15206 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15209 len and make it smaller. All users updated.
15210 * util/import_unicode.py: Put length and not end character.
15211 Check length.
15212
15213 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 Make better Unicode-compliant and unify some UTF-8 code pathes.
15216
15217 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15218 valid character.
15219 (grub_is_valid_utf8): Use grub_utf8_process.
15220 Check resulting code range.
15221 (grub_utf8_to_ucs4): Use grub_utf8_process.
15222 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15223 valid character.
15224
15225 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15228
15229 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * docs/grub.texi (Filesystems): Mention AFS.
15232
15233 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * docs/grub.texi (Filesystems): Clarify restrictions.
15236 (Regexp): Mention non-Unicode regexp behaviour.
15237 (Other): Mention non-Unicode matching behaviour.
15238
15239 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 Make HFS implementation use MacRoman.
15242
15243 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15244 (macroman): New const array.
15245 (macroman_to_utf8): New function.
15246 (utf8_to_macroman): Likewise.
15247 (grub_hfs_find_dir): Use utf8_to_macroman.
15248 (grub_hfs_dir): Use macroman_to_utf8.
15249 Set case_insensitive.
15250
15251 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15254
15255 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15256
15257 Integrate hints into autogeneration scripts.
15258
15259 * docs/grub.texi (Filesystems): Add a hostdisk example.
15260 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15261 (grub-probe): Add ofpath.
15262 * gentpl.py: Remove group nosparc64.
15263 * grub-core/commands/search.c (cache_entry): New struct.
15264 (cache): New var.
15265 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15266 * grub-core/commands/search_wrap.c (options): Add platform-specific
15267 hint options.
15268 (grub_cmd_search): Handle platform-specific hints.
15269 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15270 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15271 (grub_util_biosdisk_data): Likewise.
15272 (grub_util_biosdisk_open): Set device_map.
15273 (read_device_map): Handle "" as indication of no map.
15274 Set device_map.
15275 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15276 (grub_util_biosdisk_get_compatibility_hint): New function.
15277 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15278 * include/grub/emu/hostdisk.h
15279 (grub_util_biosdisk_get_compatibility_hint): New proto.
15280 * util/grub-install.in: Don't call grub-mkdevicemap.
15281 Add platform-specific hint to load.cfg.
15282 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15283 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15284 hints. Set root preliminary to compatibility hint, not to OS name.
15285 * util/grub-probe.c (PRINT_*): Add hints.
15286 (print): Make static.
15287 (escape_of_path): New function.
15288 (guess_bios_drive): Likewise.
15289 (guess_efi_drive): Likewise.
15290 (guess_baremetal_drive): Likewise.
15291 (print_full_name): Likewise.
15292 (probe): Handle hints.
15293 (main): Likewise.
15294 * util/ieee1275/devicemap.c: Removed.
15295 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15296 updated.
15297 (grub_util_devname_to_ofpath): Return NULL on failure.
15298
15299 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15300 resource leak.
15301 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15302
15303 * po/POTFILES.in: Regenerated.
15304
15305 Allow purely long options
15306
15307 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15308 (SHORT_ARG_USAGE): Likewise.
15309 (grub_arg_show_help): Compare opt with help_options.
15310 (parse_option): Receive opt as argument. If makes big simplificatons.
15311 All users updated
15312
15313 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15316 Restructure to avoid warning.
15317
15318 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15319
15320 * util/grub-install.in: Account for possible escaped comma in device
15321 name.
15322
15323 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15324
15325 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15326 channel.
15327
15328 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15331 allocation and zero-setting.
15332 (grub_ieee1275_get_devname): Check that alias is complete.
15333
15334 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15337 unaligned segments.
15338
15339 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15340
15341 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15342 prefix.
15343 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15344 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15345 Add ieee1275 prefix.
15346
15347 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15348
15349 * docs/grub.texi (Filesystems): Update.
15350
15351 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 Support odc, newc and bigendian cpio formats.
15354
15355 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15356 * grub-core/Makefile.core.def (newc): New module.
15357 (odc): Likewise.
15358 (cpio_be): Likewise.
15359 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15360 (MAGIC): Likewise.
15361 (MAGIC2): Likewise.
15362 (head) [MODE_ODC]: Adapt for the format.
15363 (head) [MODE_NEWC]: Likewise.
15364 (head) [!MODE_*]: Write fields of interest as arrays.
15365 (MAGIC_USTAR): Removed.
15366 (read_number) [MODE_NEWC]: Change to hex.
15367 (read_number) [!MODE_*]: Parse binary arrays.
15368 (grub_cpio_find_file): Factor out the code for better structure and
15369 always use read_number.
15370 (grub_cpio_mount): Use MAGIC and MAGIC2.
15371 (grub_cpio_dir): Exit on first hook non-0 return.
15372 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15373 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15374 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15375 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15376 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15377 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15378 * grub-core/fs/newc.c: New file.
15379 * grub-core/fs/odc.c: Likewise.
15380 * grub-core/fs/cpio_be.c: Likewise.
15381
15382 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 Fix handling of tar numbers occupying the whole field.
15385
15386 * grub-core/fs/cpio.c (read_number): New function.
15387 (grub_cpio_find_file): Use read_number instead of strtoull.
15388
15389 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15390
15391 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15392 occupying the whole field size.
15393
15394 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15395
15396 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15397
15398 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15399
15400 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15401
15402 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15403
15404 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15405 TARGET_IMG_LDFLAGS.
15406
15407 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15408
15409 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15410 (mountinfo_entry): Increase the field size to take escaping into
15411 account.
15412 (find_root_device_from_libzfs): Add one byte to size of strings for
15413 security.
15414
15415 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15418 an assert.
15419 * util/grub-setup.c (setup): Likewise.
15420
15421 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15422
15423 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15424 _LzmaDecodeA.
15425
15426 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15427
15428 * docs/grub.texi (Internationalisation): New section.
15429
15430 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15431
15432 * docs/grub.texi (Loopback booting): New section.
15433
15434 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15435
15436 * util/grub-mkstandalone.in: Fix minor typo errors.
15437
15438 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15439
15440 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15441
15442 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15443 net/icmp.c and net/icmp6.c.
15444 (http): New module.
15445 (priority_queue): Likewise.
15446 * grub-core/io/bufio.c: Rewritten.
15447 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15448 TYPE_WITH_CONFIGFILE_OPTION.
15449 (legacy_commands): Add bootp and dhcp.
15450 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15451 (grub_legacy_parse): Likewise.
15452 * grub-core/lib/priority_queue.c: New file.
15453 * grub-core/net/arp.c: Add missing license header.
15454 (arp_find_entry): Removed.
15455 (arp_find_entry): Likewise.
15456 (grub_net_arp_resolve): Rename to ...
15457 (grub_net_arp_send_request): ...this.
15458 (grub_net_arp_receive): New card argument.
15459 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15460 Set router and DNS server.
15461 (grub_net_configure_by_dhcp_ack): Handle routing information.
15462 (grub_cmd_bootp): Set checksum.
15463 (grub_bootp_init): Remove net_dhcp.
15464 * grub-core/net/dns.c: New file.
15465 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15466 completion.
15467 (get_card_packet): Handle allocation.
15468 (grub_efinet_findcards): Set mtu.
15469 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15470 (get_card_packet): Handle allocation.
15471 (emucard): Set mtu.
15472 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15473 (GRUB_MOD_INIT): Set mtu.
15474 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15475 mtu.
15476 (get_card_packet): Handle allocation.
15477 (grub_ofnet_findcards): Set mtu.
15478 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15479 assert.
15480 (grub_net_recv_ethernet_packet): Handle IPv6.
15481 * grub-core/net/http.c: New file.
15482 * grub-core/net/icmp.c: Likewise.
15483 * grub-core/net/icmp6.c: Likewise.
15484 * grub-core/net/ip.c (ip6addr): New type.
15485 (ip6hdr): Likewise.
15486 (reassemble): Likewise.
15487 (cmp): New function.
15488 (reassembles): New variable.
15489 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15490 (id): New variable.
15491 (send_fragmented): New function.
15492 (grub_net_send_ip_packet): Rename to ...
15493 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15494 Handle non-UDP.
15495 (grub_net_recv_ip_packets): Rename to ...
15496 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15497 (free_rsm): New function.
15498 (free_old_fragments): Likewise.
15499 (grub_net_recv_ip4_packets): New function.
15500 (grub_net_send_ip6_packet): Likewise.
15501 (grub_net_send_ip_packet): Likewise.
15502 (grub_net_recv_ip6_packets): Likewise.
15503 (grub_net_recv_ip_packets): Likewise.
15504 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15505 (LINK_LAYER_CACHE_SIZE): New const.
15506 (link_layer_find_entry): New function.
15507 (grub_net_link_layer_add_address): Likewise.
15508 (grub_net_link_layer_resolve_check): Likewise.
15509 (grub_net_link_layer_resolve): Likewise.
15510 (grub_net_ipv6_get_slaac): Likewise.
15511 (grub_net_ipv6_get_link_local): Likewise.
15512 (grub_cmd_ipv6_autoconf): Likewise.
15513 (parse_ip): Handle one number representation.
15514 (parse_ip6): New functoion.
15515 (match_net): Handle IPv6.
15516 (grub_net_resolve_address): Handle IPv6 and DNS.
15517 (grub_net_resolve_net_address): Handle IPv6.
15518 (route_cmp): New function.
15519 (grub_net_route_address): Find best route.
15520 (grub_net_addr_to_str): Handle IPv6.
15521 (grub_net_addr_cmp): New function.
15522 (grub_net_add_addr): Register local route.
15523 (print_net_address): Handle net address.
15524 (grub_net_poll_cards): Retransmit TCP.
15525 (grub_net_poll_cards_idle_real): Likewise.
15526 (have_ahead): New function.
15527 (grub_net_seek_real): Use underlying seek.
15528 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15529 * grub-core/net/tcp.c: New file.
15530 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15531 (cmp): New function.
15532 (ack): Likewise.
15533 (tftp_receive): Handle unordered input.
15534 (destroy_pq): New function.
15535 (tftp_close): Close pq.
15536 * grub-core/net/udp.c: Put missing license header.
15537 (grub_net_udp_socket): New function.
15538 (udp_socket_register): Likewise.
15539 (grub_net_udp_close): Likewise.
15540 (grub_net_recv_udp_packet): Check checksum.
15541 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15542 * include/grub/misc.h (grub_memchr): New function.
15543 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15544 (grub_net_card_driver): Return buf in recv.
15545 (grub_net_slaac_mac_list): New struct.
15546 (grub_network_level_protocol_id): Add ipv6.
15547 (grub_net_network_level_addr): Likewise.
15548 (grub_net_network_level_net_addr): Likewise.
15549 (grub_net_app_protocol): Add seek.
15550 (grub_net_socket): Removed.
15551 (grub_net_sockets): Likewise.
15552 (grub_net_socket_register): Likewise.
15553 (grub_net_socket_unregister): Likewise.
15554 (FOR_NET_SOCKETS): Likewise.
15555 (grub_net_add_addr): Add const.
15556 (GRUB_NET_BOOTP_*): New enum.
15557 (grub_net_addr_cmp): New proto.
15558 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15559 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15560 (grub_net_hwaddr_to_str): NEw proto.
15561 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15562 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15563 (grub_dns_init): New proto.
15564 (grub_dns_fini): Likewise.
15565 (grub_net_tcp_retransmit): Likewise.
15566 (grub_net_link_layer_add_address): Likewise.
15567 (grub_net_link_layer_resolve_check): Likewise.
15568 (grub_net_link_layer_resolve): Likewise.
15569 (grub_net_dns_lookup): Likewise.
15570 (grub_net_add_dns_server): Likewise.
15571 (grub_net_remove_dns_server): Likewise.
15572 (GRUB_NET_TRIES): New const.
15573 (GRUB_NET_INTERVAL): Likewise.
15574 * include/grub/net/arp.h: Mostly rewritten.
15575 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15576 * include/grub/net/ip.h: Mostly rewritten.
15577 * include/grub/net/netbuff.h: Indent.
15578 * include/grub/net/tcp.h: New file.
15579 * include/grub/net/udp.h: Mostly rewritten.
15580 * include/grub/priority_queue.h: New file.
15581 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15582 (grub_swap_bytes64_compile_time): Likewise.
15583 (grub_cpu_to_be16_compile_time): Likewise.
15584 (grub_cpu_to_be32_compile_time): Likewise.
15585 (grub_cpu_to_be64_compile_time): Likewise.
15586 (grub_be_to_cpu64_compile_time): Likewise.
15587
15588 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15589
15590 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15591 UINT_TO_PTR with cast.
15592
15593 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15594
15595 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15596 don't use them.
15597
15598 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15599
15600 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15601 already there.
15602
15603 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15606 confusing ipxe.
15607
15608 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15611 Add missing const attribute.
15612 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15613 Likewise.
15614 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15615 Likewise.
15616
15617 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15618
15619 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15620 misaligned access.
15621 (serpent_setkey): Likewise.
15622 (serpent_encrypt_internal): Likewise.
15623 (serpent_decrypt_internal): Likewise.
15624 (serpent_encrypt): Don't put an alignment-increasing cast.
15625 (serpent_decrypt): Likewise.
15626 (serpent_test): Likewise.
15627
15628 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15631
15632 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15635
15636 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15637 grub_addr_t casts.
15638 (PTR_TO_UINT64): Likewise.
15639 (PTR_TO_UINT32): Likewise.
15640
15641 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15642
15643 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15644 because of stack.
15645 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15646 limit.
15647
15648 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15651 text_width > available width a bit more gracefully.
15652
15653 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15656 current address calculation.
15657
15658 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15659
15660 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15661 stack.
15662 (encode_block): Likewise.
15663
15664 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15665
15666 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15667 certainety.
15668
15669 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15672 non-RS part to avoid RS messing with GDT.
15673 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15674 Increase to suit in realmode routines.
15675
15676 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15677
15678 * grub-core/kern/i386/realmode.S: Increase alignment.
15679 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15680
15681 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15684 be deterministic.
15685 (syndroms): Compute 0 syndrom.
15686 (rs_recover): Use 0 syndrom.
15687
15688 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15691
15692 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15695 brackets.
15696
15697 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15700 account.
15701 (get_top_pad): Likewise.
15702 (get_right_pad): Likewise.
15703 (get_bottom_pad): Likewise.
15704
15705 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15706
15707 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15708
15709 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15710
15711 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15712 attribute as the structure isn't guaranteed to be properly aligned.
15713 (grub_efi_pci_device_path): Likewise.
15714 (grub_efi_pccard_device_path): Likewise.
15715 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15716 specify the size of `memory_type'.
15717 (grub_efi_vendor_device_path): Likewise.
15718 (grub_efi_controller_device_path): Likewise.
15719 (grub_efi_acpi_device_path): Likewise.
15720 (grub_efi_expanded_acpi_device_path): Likewise.
15721 (grub_efi_atapi_device_path): Likewise.
15722 (grub_efi_scsi_device_path): Likewise.
15723 (grub_efi_fibre_channel_device_path): Likewise.
15724 (grub_efi_1394_device_path): Likewise.
15725 (grub_efi_usb_device_path): Likewise.
15726 (grub_efi_usb_class_device_path): Likewise.
15727 (grub_efi_i2o_device_path): Likewise.
15728 (grub_efi_mac_address_device_path): Likewise.
15729 (grub_efi_ipv4_device_path): Likewise.
15730 (grub_efi_ipv6_device_path): Likewise.
15731 (grub_efi_infiniband_device_path): Likewise.
15732 (grub_efi_uart_device_path): Likewise.
15733 (grub_efi_vendor_messaging_device_path): Likewise.
15734 (grub_efi_hard_drive_device_path): Likewise.
15735 (grub_efi_cdrom_device_path): Likewise.
15736 (grub_efi_vendor_media_device_path): Likewise.
15737 (grub_efi_file_path_device_path): Likewise.
15738 (grub_efi_protocol_device_path): Likewise.
15739 (grub_efi_piwg_device_path): Likewise.
15740 (grub_efi_bios_device_path): Likewise.
15741
15742 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15743
15744 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15745 (grub_ucs4_to_utf8_alloc): Likewise.
15746 (grub_ucs4_to_utf8): Likewise.
15747 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15748 (grub_ucs4_to_utf8_alloc): Likewise.
15749
15750 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15751
15752 AFFS never uses unicode.
15753
15754 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15755 (grub_latin1_to_utf8): New inline function.
15756 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15757
15758 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15761 overflow.
15762
15763 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15764
15765 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15766 (grub_squash_dirent_header): Likewise.
15767 (read_chunk): Don't double swap.
15768 (grub_squash_iterate_dir): Fix swap sizes.
15769
15770 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15771
15772 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15773
15774 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15777 (grub_hfs_iterate_dir): Likewise.
15778
15779 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 Fix video on platforms where unaligned access is forbidden.
15782 Make several optimisations while on it.
15783
15784 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15785 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15786 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15787 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15788 Disable.
15789 (grub_video_fbblit_replace_16bit_1bit):
15790 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15791 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15792 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15793 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15794 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15795 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15796 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15797 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15798 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15799 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15800 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15801 (grub_video_fbblit_replace_index_RGB888): Likewise.
15802 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15803 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15804 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15805 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15806 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15807 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15808 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15809 Disable.
15810 (grub_video_fbblit_blend_XXX565_1bit):
15811 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15812 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15813 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15814 void *.
15815 * grub-core/video/fb/video_fb.c (common_blitter)
15816 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15817 (grub_video_fb_create_render_target_from_pointer)
15818 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15819 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15820 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15821 definition.
15822 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15823
15824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15825
15826 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15827 HH22 and HM10 relocations.
15828
15829 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15832
15833 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15834
15835 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15836 allocation succeeded.
15837
15838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15841 argument a u8 pointer. All users updated.
15842 Handle unaligned buffers.
15843
15844 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15847 add_part to workaround compiler bug.
15848
15849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15852
15853 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15856 Reserve alignment invariants.
15857 (grub_multiboot_load): Likewise.
15858 (retrieve_video_parameters): Likewise.
15859 (grub_multiboot_make_mbi): Likewise.
15860
15861 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862
15863 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15864 incorrect pointer.
15865
15866 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15867
15868 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15869 (grub_pata_pio_write): Likewise.
15870
15871 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 Add noreturn attributes and remove unreachable code.
15874
15875 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15876 code.
15877 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15878 code. Mark as noreturn.
15879 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15880 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15881 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15882 unreachable code.
15883 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15884 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15885 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15886 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15887 * include/grub/kernel.h (grub_main): Mark as noreturn.
15888 * include/grub/reader.h (grub_rescue_run): Likewise.
15889
15890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15891
15892 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15893 redundant declaration.
15894
15895 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15896
15897 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15898 redundant declaration.
15899 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15900
15901 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15902
15903 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15904 to ensure alignment.
15905 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15906 alignment. Ensure tmp alignment.
15907 (grub_cmd_hdparm): Ensure buf alignment.
15908 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15909 to ensure alignment.
15910 (grub_ata_dumpinfo): Ensure text alignment.
15911 (grub_atapi_identify): Preserve alignment invariant.
15912 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15913
15914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15915
15916 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15917 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15918 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15919 * include/grub/misc.h (grub_reboot)
15920 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15921 (grub_halt) [__mips__]: Likewise.
15922
15923 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15924
15925 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15926 Remove redundant declaration.
15927 (grub_mmap_get_post64): Likewise.
15928 (grub_mmap_get_upper): Likewise.
15929 (grub_mmap_get_lower): Likewise.
15930
15931 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15932
15933 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15934 uint32_t * to ensure alignment.
15935 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15936
15937 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15940 uint16_t * to ensure alignment.
15941 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15942 alignment.
15943
15944 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15947 to ensure alignment.
15948 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15949
15950 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15951
15952 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15953 Handle unaligned pointers.
15954 (u32at): Likewise.
15955 (u64at): Likewise.
15956 (fixup): Use byte access instead of v16at.
15957 (find_attr): Fix imporper usage of v32at.
15958 (read_data): Likewise.
15959 (list_file): Handle byte-swapping and unaligned strings.
15960 (grub_ntfs_label): Likewise.
15961
15962 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963
15964 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15965 as it's not necessarily aligned.
15966
15967 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15968
15969 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15970 redundant declaration.
15971 (grub_serial_init): Likewise.
15972 (grub_terminfo_init): Likewise.
15973
15974 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15975
15976 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15977 function.
15978 (ZAP_HASH_IDX): Likewise.
15979 (ZAP_LEAF_HASH_SHIFT): Likewise.
15980 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15981 (LEAF_HASH): Likewise.
15982 (ZAP_LEAF_NUMCHUNKS): Likewise.
15983 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15984 alignment invariants. Return pointer. All users updated.
15985 (ZAP_LEAF_ENTRY): Make into inline function.
15986 (NBBY): Removed.
15987 (xor): LIkewise.
15988 (xor_out): Use grub_crypto_xor.
15989 (dnode_get_path): Use grub_get_unaligned.
15990 (nvlist_find_value): Likewise.
15991 (grub_zfs_nvlist_lookup_uint64): Likewise.
15992 (grub_zfs_nvlist_lookup_string): Likewise.
15993 (get_nvlist_size): Likewise.
15994 (grub_zfs_open): Likewise.
15995 (fill_fs_info): Likewise.
15996 (grub_zfs_dir): Likewise.
15997 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15998 alignment invariants.
15999 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16000 necessarily aligned.
16001
16002 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16003
16004 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16005
16006 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16007
16008 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16009 arithmetic to conserve alignment invariants.
16010
16011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16014 redundant declaration.
16015 (grub_efiemu_mm_obtain_request): Likewise.
16016 (grub_efiemu_prepare): Likewise.
16017
16018 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16019
16020 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16021 to match types.
16022
16023 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16024
16025 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16026 case of aunaligned recptr.
16027 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16028 alignment.
16029 (grub_hfsplus_btree_search): Handle unaligned index.
16030
16031 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16032
16033 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16034 to get freetag and skip.
16035
16036 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16039 array.
16040 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16041 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16042
16043 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16044
16045 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16046 name for checksum and fix allocation algorithm.
16047
16048 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16049
16050 * include/grub/types.h (grub_properly_aligned_t): New type.
16051 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16052 (grub_get_unaligned16): Add explicit casts.
16053 (grub_get_unaligned32): Likewise.
16054 (grub_get_unaligned64): Likewise.
16055 (grub_set_unaligned16): New function.
16056 (grub_set_unaligned32): Likewise.
16057
16058 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16059
16060 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16061
16062 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16065 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16066 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16067
16068 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16069
16070 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16071 conditionals.
16072
16073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16076 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16077
16078 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16079
16080 Unify and improve RAID and crypto xor.
16081
16082 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16083 changed to grub_crypto_xor
16084 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16085 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16086 Use bigger types when possible.
16087
16088 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16089
16090 * grub-core/disk/raid.c (scan_devices): Fix condition.
16091
16092 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16093
16094 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16095 Make name a const ptr.
16096
16097 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098
16099 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16100 first argument a const pointer.
16101 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16102 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16103 proto.
16104 (grub_children_iterate): Likewise.
16105 (grub_machine_mmap_iterate): Remove redundant declaration.
16106
16107 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108
16109 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16110 (grub_cmd_acpi) [!x86]: Disable EBDA.
16111
16112 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 Enable UTF8 in gnulib regexp.
16115
16116 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16117 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16118 (isupper): Use grub_isupper.
16119 (isascii): New inline function.
16120 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16121 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16122 * grub-core/normal/charset.c (grub_utf8_process): New function.
16123 (grub_utf8_to_utf16): Use grub_utf8_process.
16124 (grub_encode_utf8_character): New function.
16125 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16126 * include/grub/charset.h (grub_utf8_process): New declaration.
16127 (grub_encode_utf8_character): Likewise.
16128 * include/grub/misc.h (grub_islower): New inline function.
16129 (grub_isupper): Likewise.
16130 (grub_strchrsub): Moved down to fix the definitions.
16131
16132 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16133
16134 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16135 specification.
16136
16137 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16138
16139 * include/grub/loader.h (grub_loader_register_preboot_hook):
16140 Use struct preboot * and not void * for handle. All users updated.
16141 (grub_loader_unregister_preboot_hook): Likewise.
16142
16143 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16146 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16147 UTF-16-BE. All users updated.
16148 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16149 (grub_hfsplus_iterate_dir): Likewise.
16150 (grub_hfsplus_label): Likewise.
16151
16152 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16155
16156 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16157
16158 Add missing const qualifiers.
16159
16160 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16161 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16162 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16163 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16164 (grub_lvm_check_flag): Likewise.
16165 * grub-core/efiemu/i386/coredetect.c
16166 (grub_efiemu_get_default_core_name): Likewise
16167 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16168 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16169 * grub-core/fs/ntfs.c (fixup): Likewise.
16170 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16171 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16172 (fzap_lookup): Likewise.
16173 (zap_lookup): Likewise.
16174 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16175 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16176 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16177 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16178 (grub_freebsd_add_meta_module): Likewise.
16179 (grub_cmd_freebsd_module): Likewise.
16180 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16181 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16182 (grub_xnu_writetree_get_size): Likewise.
16183 (grub_xnu_writetree_toheap_real): Likewise.
16184 (grub_xnu_find_key): Likewise.
16185 (grub_xnu_create_key): Likewise.
16186 (grub_xnu_create_value): Likewise.
16187 (grub_xnu_register_memory): Likewise.
16188 (grub_xnu_check_os_bundle_required): Likewise.
16189 (grub_xnu_scan_dir_for_kexts): Likewise.
16190 (grub_xnu_load_kext_from_dir): Likewise.
16191 * grub-core/normal/color.c (color_list): Likewise.
16192 * grub-core/normal/completion.c (current_word): Likewise.
16193 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16194 * grub-core/term/serial.c (grub_serial_find): Likewise.
16195 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16196 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16197 Likewise.
16198 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16199 (grub_freebsd_add_meta_module): Likewise.
16200 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16201 * include/grub/net.h (grub_net_card_driver): Likewise.
16202 (grub_net_card): Likewise.
16203 (grub_net_app_protocol): Likewise.
16204 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16205 * include/grub/serial.h (grub_serial_find): Likewise.
16206 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16207 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16208 (grub_xnu_create_value): Likewise.
16209 (grub_xnu_find_key): Likewise.
16210 (grub_xnu_scan_dir_for_kexts): Likewise.
16211 (grub_xnu_load_kext_from_dir): Likewise.
16212
16213 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16214 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16215 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16216 Moved from here ...
16217 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16218
16219 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16220
16221 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16222
16223 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16226 (read_device): Fix size calculation.
16227
16228 2011-11-25 Robert Millan <rmh@gnu.org>
16229
16230 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16231 (find_root_device_from_libzfs): Add zpool output parser to be used
16232 as fallback when libzfs isn't available.
16233
16234 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16235
16236 * po/Makefile.in.in: Add missing escape-continuation.
16237
16238 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16239
16240 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16241
16242 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16245
16246 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16247
16248 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16249
16250 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16251
16252 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16253
16254 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16255
16256 * grub-core/lib/adler32.c: Add missing license specification.
16257 * grub-core/lib/crc64.c: Likewise.
16258 * grub-core/loader/i386/pc/plan9.c: Likewise.
16259 * grub-core/partmap/plan.c: Likewise.
16260
16261 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16262
16263 Add facility to debug GRUB with gdb under qemu.
16264
16265 * grub-core/gdb_grub.in: New file.
16266 * grub-core/gmodule.pl.in: Likewise.
16267 * grub-core/Makefile.core.def (gmodule.pl): New script.
16268 (gdb_grub): Likewise.
16269
16270 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * util/grub-mount.c (argp_parser): Accept relative pathes.
16273 * util/grub-fstest.c (argp_parser): Likewise.
16274
16275 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 Plan9 support.
16278
16279 * Makefile.util.def (libgrubmods): Add
16280 grub-core/partmap/plan.c.
16281 * docs/grub.texi: Notice Plan9 support.
16282 * grub-core/Makefile.core.def (plan9): New module.
16283 (part_plan): Likewise.
16284 * grub-core/loader/i386/pc/plan9.c: New file.
16285 * grub-core/partmap/plan.c: Likewise.
16286 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16287 define.
16288 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16289 * include/grub/mm.h (grub_extend_alloc): New inline function.
16290
16291 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16292
16293 Make Reed-Solomon faster by using power of generator representation of
16294 GF(256)*.
16295
16296 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16297 (gf_double_t): Likewise.
16298 (gf_invert): Removed.
16299 (gf_powx): New array.
16300 (gf_powx_inv): Likewise.
16301 (scratch): Move higher.
16302 (gf_reduce): Removed.
16303 (gf_mul): Use powx.
16304 (gf_invert): Likewise.
16305 (init_inverts): Replaced with ...
16306 (init_powx): ...this. All users updated.
16307 (pol_evaluate): Replace multiplications with additions.
16308 (rs_encode): Likewise.
16309 (gauss_eliminate): Call gf_invert.
16310 (grub_reed_solomon_add_redundancy): Call init_powx.
16311 (grub_reed_solomon_recover): Call init_powx unconditionally.
16312
16313 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16314
16315 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16316
16317 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16318
16319 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16320 disk->partiton for safety.
16321
16322 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16325 Fix a memory leak.
16326 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16327
16328 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16331
16332 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16335
16336 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 Fix spaces handling in proc/self/mountinfo.
16339
16340 * util/getroot.c (unescape): New function.
16341 (grub_find_root_device_from_mountinfo): Use unescape.
16342
16343 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 Support ZFS embedding.
16346
16347 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16348 (grub_zfs_fs): Register grub_zfs_embed.
16349
16350 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16351
16352 Fix MIPS compilation.
16353
16354 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16355 * include/grub/offsets.h: Rename decompressor fields from
16356 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16357 * util/grub-mkimage.c (image_targets): Use new names.
16358
16359 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16360
16361 Defer multiboot device parsing until we're in compressed part.
16362
16363 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16364 bsd_part. setdevice has fallen into disuse.
16365 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16366 (bsd_part): Likewise.
16367 (boot_dev): New variable.
16368 (multiboot_trampoline): Don't parse multiboot device.
16369 Pass multiboot device in %edx.
16370 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16371 grub_boot_device.
16372 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16373 Likewise.
16374 * grub-core/kern/i386/pc/startup.S: Save edx.
16375 (grub_boot_drive): Removed.
16376 (grub_install_dos_part): Likewise.
16377 (grub_install_bsd_part): Likewise.
16378 (grub_boot_device): New variable.
16379 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16380 (grub_install_bsd_part): Likewise.
16381 (grub_boot_drive): Likewise.
16382 (grub_boot_device): New variable.
16383 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16384 Removed.
16385 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16386 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16387 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16388 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16389 * util/grub-install.in: Remove redundant condition.
16390
16391 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 Fix bug introduced by previous commit.
16394
16395 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16396
16397 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16398
16399 Use decompressors framework on i386-pc. It increases core size
16400 by 46 bytes but improves compatibility and maintainability.
16401
16402 * grub-core/Makefile.core.def (lzma_decompress): New image.
16403 (kernel): Add i386_pc_ldflags.
16404 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16405 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16406 to real_to_prot, prot_to_real and device info.
16407 * include/grub/offsets.h: Renamed decompressor offsets.
16408 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16409 (image_target_desc): Remove raw_size and rename decompressor fields.
16410 (compress_kernel): Handle lzma.
16411 (generate_image): Handle decompressors on i386-pc.
16412
16413 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * configure.ac: Add -fno-asynchronous-unwind-tables.
16416
16417 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16418
16419 Move assembly code to C by using intwrap. It increases core size
16420 by 88 bytes but improves compatibility and maintainability.
16421
16422 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16423 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16424 ... here. Translated to C.
16425 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16426 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16427 ... here. Translated to C.
16428 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16429 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16430 ... here. Translated to C.
16431 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16432 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16433 ... here. Translated to C.
16434 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16435 * grub-core/term/i386/pc/console.c (grub_console_cls):
16436 ... here. Translated to C.
16437 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16438 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16439 ... here. Translated to C.
16440 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16441 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16442 Translated to C.
16443 * grub-core/term/i386/pc/console.c (int10_9): New function.
16444 (grub_console_putchar): Likewise.
16445 * include/grub/i386/pc/console.h: Removed the not anymore shared
16446 functions.
16447
16448 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 Move grub_chainloader_real_boot out of the kernel.
16451
16452 * grub-core/Makefile.am: Remove machine/loader.h.
16453 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16454 Removed.
16455 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16456 variable.
16457 (grub_relocator16_keep_a20_enabled): Likewise.
16458 (grub_relocator16_boot): Fill new variables.
16459 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16460 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16461 relocator.
16462 (grub_chainloader_unload): Likewise.
16463 (grub_chainloader_cmd): Likewise.
16464 * include/grub/i386/pc/loader.h: Removed.
16465 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16466 and esi. All initialisers updated.
16467
16468 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16469 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16470
16471 * Makefile.util.def (grub-mount): New util.
16472 * .bzrignore: Add grub-mount.
16473 * configure.ac: Check for fuse and enable grub-mount if available.
16474 * docs/man/grub-mount.h2m: New file.
16475 * util/grub-mount.c: Likewise.
16476
16477 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16478
16479 * grub-core/commands/efi/fixvideo.c: Gettextize.
16480 * grub-core/commands/hashsum.c: Likewise.
16481 * grub-core/commands/i386/cmostest.c: Likewise.
16482 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16483 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16484 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16485 * grub-core/commands/lsmmap.c: Likewise.
16486 * grub-core/commands/menuentry.c: Likewise.
16487 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16488 * grub-core/commands/setpci.c: Likewise.
16489 * grub-core/loader/i386/bsd.c: Likewise.
16490 * grub-core/loader/i386/linux.c: Likewise.
16491 * util/getroot.c: Likewise.
16492 * util/grub-editenv.c: Likewise.
16493 * util/grub-fstest.c: Likewise.
16494 * util/grub-mkfont.c: Likewise.
16495 * util/grub-mkimage.c: Likewise.
16496 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16497 * util/grub-pe2elf.c: Likewise.
16498 * util/grub-probe.c: Likewise.
16499 * util/grub-setup.c: Likewise.
16500 * util/ieee1275/ofpath.c: Likewise.
16501 * util/misc.c: Likewise.
16502 * util/raid.c: Likewise.
16503
16504 2011-11-11 Robert Millan <rmh@gnu.org>
16505
16506 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16507 __attribute__((unused)) from `os_dev', which *is* being used.
16508
16509 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16510
16511 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16512 forgotten define.
16513 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16514 GRUB_IA64_DL_GOT_ALIGN.
16515 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16516 GRUB_IA64_DL_TRAMP_ALIGN.
16517
16518 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16519
16520 Replace grub_fatal with normal errors in i386 linux loader.
16521
16522 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16523 (allocate_pages): Check find_efi_mmap_size return value.
16524 (grub_e820_add_region): Return error.
16525 (grub_linux_boot): Check mmap return value.
16526
16527 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 * grub-core/commands/acpihalt.c: Gettextized.
16530 * grub-core/commands/cacheinfo.c: Likewise.
16531 * grub-core/commands/cmp.c: Likewise.
16532 * grub-core/commands/efi/loadbios.c: Likewise.
16533 * grub-core/commands/gptsync.c: Likewise.
16534 * grub-core/commands/ieee1275/suspend.c: Likewise.
16535 * grub-core/commands/legacycfg.c: Likewise.
16536 * grub-core/commands/memrw.c: Likewise.
16537 * grub-core/commands/minicmd.c: Likewise.
16538 * grub-core/commands/parttool.c: Likewise.
16539 * grub-core/commands/time.c: Likewise.
16540 * grub-core/commands/videoinfo.c: Likewise.
16541 * grub-core/disk/geli.c: Likewise.
16542 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16543 * grub-core/disk/luks.c: Likewise.
16544 * grub-core/disk/lvm.c: Likewise.
16545 * grub-core/font/font_cmd.c: Likewise.
16546 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16547 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16548 * grub-core/gfxmenu/view.c: Likewise.
16549 * grub-core/kern/emu/hostdisk.c: Likewise.
16550 * grub-core/kern/emu/main.c: Likewise.
16551 * grub-core/kern/emu/misc.c: Likewise.
16552 * grub-core/kern/emu/mm.c: Likewise.
16553 * grub-core/kern/mips/arc/init.c: Likewise.
16554 * grub-core/kern/mips/loongson/init.c: Likewise.
16555 * grub-core/kern/partition.c: Likewise.
16556 * grub-core/lib/i386/halt.c: Likewise.
16557 * grub-core/lib/mips/arc/reboot.c: Likewise.
16558 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16559 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16560 * grub-core/loader/i386/xnu.c: Likewise.
16561 * grub-core/loader/multiboot.c: Likewise.
16562 * grub-core/net/bootp.c: Likewise.
16563 * grub-core/net/net.c: Likewise.
16564 * grub-core/normal/term.c: Likewise.
16565 * grub-core/partmap/bsdlabel.c: Likewise.
16566 * grub-core/parttool/msdospart.c: Likewise.
16567 * grub-core/term/gfxterm.c: Likewise.
16568 * grub-core/term/terminfo.c: Likewise.
16569 * grub-core/video/i386/pc/vbe.c: Likewise.
16570 * util/grub-menulst2cfg.c: Likewise.
16571 * util/grub-mkdevicemap.c: Likewise.
16572 * util/grub-mklayout.c: Likewise.
16573 * util/grub-mkrelpath.c: Likewise.
16574 * util/grub-script-check.c: Likewise.
16575 * util/ieee1275/grub-ofpathname.c: Likewise.
16576 * util/resolve.c: Likewise.
16577
16578 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 Support %1$d syntax.
16581
16582 * tests/printf_unit_test.c: New file.
16583 * Makefile.util.def (printf_test): New test.
16584 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16585
16586 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16589 fix.
16590
16591 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16592
16593 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16594 dprintf.
16595 * grub-core/font/font.c (grub_font_load): Likewise.
16596
16597 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 * util/grub-macho2img.c: Add comment concerning gettext.
16600 * grub-core/lib/legacy_parse.c: Likewise.
16601
16602 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16603
16604 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16605 (grub_xvasprintf): Likewise.
16606
16607 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 Add const keyword to grub_env_get and gettextize week days.
16610
16611 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16612 (grub_read_hook_datetime): Return const char *.
16613 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16614 updated.
16615 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16616 Mark for gettext.
16617 (grub_get_weekday_name): Return const char *. Call gettext.
16618 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16619 char * and len as the argument. All users updated.
16620 (grub_script_argv_split_append): Receive const char *.
16621 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16622 * include/grub/env.h (grub_env_get): Likewise.
16623 (grub_env_read_hook_t): Return const char *.
16624 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16625 (grub_script_argv_split_append): Likewise.
16626
16627 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16630
16631 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16632
16633 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16634 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16635
16636 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16637
16638 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16639 Fix prototype.
16640
16641 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 Fix mips compilation.
16644
16645 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16646 normal decoder.
16647 (hashes): Use in embed decoder as well (for sizes).
16648 (dec_stream_header): Fix embed decompressor logic.
16649 (dec_stream_footer): Likewise.
16650
16651 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16654 an error and not a fatal on unrecognised relocation types.
16655
16656 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16659 Issue error rather than printf on unknown arguments.
16660
16661 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16662
16663 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16664 Make buf a const.
16665
16666 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16669 Fix module name.
16670
16671 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16674 leftover debug printf.
16675
16676 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16679
16680 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16681
16682 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16683 A stylistic fix.
16684
16685 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16686
16687 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16688
16689 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16690
16691 Allow all modules to perform serial IO
16692
16693 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16694 * include/grub/serial.h (grub_serial_port_configure): New inline
16695 function.
16696 (grub_serial_port_fetch): Likewise.
16697 (grub_serial_port_put): Likewise.
16698 (grub_serial_port_fini): Likewise.
16699 (grub_serial_find): New proto.
16700
16701 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16702
16703 Put symlink at the end of the node and fix a potential
16704 memory corruption.
16705
16706 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16707 Make symlink into an array.
16708 (set_rockridge): Set have_symlink and alloc_dirents.
16709 (grub_iso9660_read_symlink): Use new layout.
16710 (grub_iso9660_iterate_dir): Fix memory corruption.
16711 Use new layout.
16712 (grub_iso9660_dir): Set have_symlink.
16713 (grub_iso9660_open): Likewise.
16714
16715 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16716
16717 Remove local keyword.
16718
16719 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16720 (version_test_gt): Likewise.
16721 (version_find_latest): Likewise.
16722 (gettext_printf): Likewise.
16723 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16724
16725 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16728
16729 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16730
16731 Fix ZFS memory and resource leaks.
16732
16733 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16734 All users updated.
16735 Free type on exit.
16736 (fill_vdev_info): New parameter inserted. All users updated.
16737 (check_pool_label): Likewise.
16738 (scan_disk): Likewise.
16739 (scan_devices): Close non-inserted disks.
16740 (fzap_iterate): Free l.
16741 (unmount_device): Free children descripto memory.
16742
16743 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16744
16745 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16746 argument (access out of bounds).
16747
16748 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16749
16750 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16751 >= 6 drives.
16752
16753 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16754
16755 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16756 Fix declaration.
16757
16758 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16759
16760 Fix several memory leaks.
16761
16762 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16763 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16764 (grub_cpio_dir): Likewise.
16765 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16766 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16767 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16768 (grub_romfs_label): Likewise.
16769 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16770 (squash_unmount): New function.
16771 (grub_squash_dir): Fix memory leak.
16772 (grub_squash_open): Likewise.
16773 (grub_squash_read): Likewise.
16774 (grub_squash_mtime): Likewise.
16775 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16776 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16777 * util/grub-fstest.c (fstest): Likewise.
16778
16779 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16780
16781 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16782 avoid accessing beyond the array.
16783
16784 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16785
16786 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16787
16788 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 Several AFFS fixes.
16791
16792 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16793 (GRUB_AFFS_FLAG_FFS): Removed.
16794 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16795 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16796 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16797 (grub_fshelp_node): Make block 32-bit.
16798 Add block_cache and last_block_cache.
16799 (grub_affs_read_block): Fill and use block cache.
16800 (grub_affs_read_file): Removed.
16801 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16802 boot block.
16803 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16804 safety.
16805 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16806 space.
16807 (grub_affs_close): Free block cache.
16808 (grub_affs_read): Use grub_fshelp_read_file directly.
16809
16810 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16811
16812 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16813 with no error set.
16814
16815 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16818 used variable.
16819 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16820 Likewise.
16821
16822 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16825
16826 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16827 byteswap when needed.
16828
16829 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 Fix FreeBSD compilation.
16832
16833 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16834 to avoid circular dependency.
16835 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16836 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16837 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16838
16839 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16840
16841 Fix ZFS crypto error types.
16842
16843 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16844 (grub_gcm_decrypt): Likewise.
16845 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16846 from PBKDF2.
16847
16848 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Illumos support.
16851
16852 * Makefile.util.def (10_illumos): New script.
16853 * configure.ac: Set COND_HOST_ILLUMOS.
16854 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16855 Support Illumos calls.
16856 (find_partition_start) [__sun__]: Likewise.
16857 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16858 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16859 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16860 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16861 device.
16862 * util/grub-probe.c (probe) [__sun__]: Do character check.
16863 * util/grub.d/10_illumos.in: New file.
16864
16865 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 Support escaped commas in hostdisk.
16868
16869 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16870 (find_grub_drive): Use unescape_cmp.
16871 (make_device_name): Escape commas.
16872
16873 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16876
16877 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16878
16879 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16880 variable.
16881
16882 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16883
16884 Support trampoline jumps on powerpc.
16885
16886 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16887 __ia64__ path.
16888 (grub_dl_load_segments): Set mod->sz.
16889 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16890 segments.
16891 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16892 (jump): Likewise.
16893 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16894 function.
16895 (trampoline): New struct.
16896 (trampoline_template): New const.
16897 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16898 * include/grub/dl.h (grub_dl): Add sz element.
16899 [__powerpc__]: Follow __ia64__.
16900 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16901 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16902 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16903 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16904
16905 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16906
16907 ZFS crypto support.
16908
16909 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16910 * grub-core/Makefile.core.def (zfscrypt): New module.
16911 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16912 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16913 it. All users updated.
16914 (grub_zfs_decrypt): New var.
16915 (grub_zfs_load_key): Likewise.
16916 (zio_checksum_functions): Add SHA256+MAC.
16917 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16918 (zio_read): Handle encrypted blocks.
16919 (zap_verify): Remove incorrect check.
16920 (fzap_iterate): Handle non-standard fzap.
16921 (zap_iterate): Likewise.
16922 (zap_iterate_u64): New function.
16923 (dnode_get_fullpath): Load keys.
16924 * grub-core/fs/zfs/zfscrypt.c: New file.
16925 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16926 (grub_crypto_ecb_encrypt): Make input const.
16927 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16928 (grub_crypto_ecb_encrypt): Make input const.
16929 (GRUB_CIPHER_AES): New macro.
16930 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16931 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16932 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16933 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16934 prefix. All users updated.
16935 (grub_zfs_add_key): New proto.
16936 (grub_zfs_decrypt): Likewise.
16937 (grub_zfs_load_key): Likewise.
16938 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16939 * util/grub-fstest.c (options): Add -K option.
16940 (argp_parser): Likewise.
16941
16942 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 Support zle compression on ZFS.
16945
16946 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16947 (decomp_table): Add zle.
16948 * include/grub/zfs/zio.h (zio_compress): Add zle.
16949
16950 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 Support BtrFS embedding.
16953
16954 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16955 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16956 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16957 * util/grub-setup.c (setup): Use fs embedding if available.
16958 Add additional sanity check.
16959
16960 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16961
16962 * util/grub-install.in: Fix condition for config_opt.
16963
16964 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16965
16966 Support third redundancy strip on raidz3.
16967
16968 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16969 Return error on singularity. All users updated.
16970 (read_device): Don't stop on 3rd failure on raidz3.
16971
16972 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 Support case-insensitive ZFS subvolumes.
16975
16976 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16977 All users updated.
16978 (zap_hash): Likewise.
16979 (name_cmp): New function.
16980 (zap_leaf_array_equal): New parameter case_insensitive.
16981 All users updated.
16982 (zap_leaf_lookup): Likewise.
16983 (fzap_lookup): Likewise.
16984 (zap_lookup): Likewise.
16985 (dnode_get_path): New parameter case_insensitive. Retrieve case
16986 sensitiviness of a volume. All users updated.
16987 (dnode_get_fullpath): New parameter case_insensitive.
16988 All users updated.
16989 (grub_zfs_dir): Set info.case_insensitiveness.
16990
16991 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 Support second redundancy strip on raidz(2,3).
16994
16995 * grub-core/fs/zfs/zfs.c (powx): New array.
16996 (powx_inv): Likewise.
16997 (poly): New const.
16998 (xor_out): New function.
16999 (gf_mul): Likewise.
17000 (recovery): Likewise.
17001 (read_device): Use second redundancy strip.
17002
17003 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17004
17005 Use a power of generator representation of GF(256) multiplication group
17006 to save space time and complexity.
17007
17008 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17009 (raid6_table2): Likewise.
17010 (powx): New array.
17011 (powx_inv): Likewise.
17012 (poly): New const.
17013 (grub_raid_block_mul): Replace with ...
17014 (grub_raid_block_mulx): ...this.
17015 (grub_raid6_init_table): Rewritten.
17016 (grub_raid6_recover): Use power of generator representation.
17017
17018 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17021 for the right device.
17022
17023 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17026 expected by grub-mkimage and it's more clear since there is no implicit
17027 padding.
17028
17029 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17032 disk.
17033 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17034
17035 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17036
17037 * util/grub-mkrescue.in: Fix handling xorriso option.
17038
17039 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17040
17041 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17042 NULL.
17043
17044 2011-11-03 crocket <crockabiscuit@gmail.com>
17045
17046 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17047
17048 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 XZ CRC64 and SHA256 support.
17051
17052 * Makefile.util.def (libgrubmods): Add crc64.c.
17053 * grub-core/Makefile.core.def (crc64): New module.
17054 * grub-core/lib/crc64.c: New file.
17055 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17056 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17057 Fix the type.
17058 (MAX_HASH_SIZE): New define.
17059 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17060 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17061 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17062 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17063 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17064 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17065 Handle non-crc32 hashes.
17066 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17067 (dec_stream_header): Handle non-crc32 hashes.
17068 (dec_stream_footer): Likewise.
17069 (dec_block_header): Likewise.
17070 (dec_main): Likewise.
17071 (xz_dec_init): Likewise.
17072 (xz_dec_reset): Likewise.
17073 (xz_dec_end): Likewise.
17074 * util/import_gcry.py: Add CRC64 line.
17075
17076 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17077
17078 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17079 as well.
17080
17081 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17082
17083 Make reiserfs label retrieval similar to other *_label functions.
17084
17085 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17086 (REISERFS_MAX_LABEL_LENGTH): Removed.
17087 (REISERFS_LABEL_OFFSET): Likewise.
17088 (grub_reiserfs_label): Rewritten.
17089
17090 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17091
17092 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17093 field.
17094
17095 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17098
17099 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17100
17101 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17102 drive failure on both raidz and raidz2.
17103
17104 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17105
17106 Fix RAIDZ(2) for >= 5 devices.
17107
17108 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17109 asize argument. All users updated.
17110
17111 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17112
17113 Fix RAIDZ(2).
17114
17115 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17116 (fill_vdev_info_real): Set ashift.
17117 (read_device): Rewrite RAIDZ part based on reverse engineering.
17118
17119 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17120
17121 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17122 don't report potentially unavialiable fields in debug output.
17123 (find_path): Fix double-free and memory leak.
17124
17125 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17126
17127 Read label on UFS1.
17128
17129 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17130 (grub_ufs_fs): Always set .label.
17131
17132 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 Use shifts in UFS.
17135
17136 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17137 (grub_ufs_data): New field log2_blksz.
17138 (grub_ufs_read_file): Use shifts.
17139 (grub_ufs_mount): Check block size and logarithm it.
17140
17141 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17144 long symlinks.
17145
17146 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17147
17148 Handle symlinks and long names on tar and cpio.
17149
17150 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17151 (ATTR_FILE): Likewise.
17152 (ATTR_DIR): Likewise.
17153 (ATTR_LNK): Likewise.
17154 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17155 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17156 L and K entries.
17157 (grub_cpio_mount): Zero-fill data.
17158 (handle_symlink): New function.
17159 (grub_cpio_dir): Handle symlinks.
17160 (grub_cpio_open): Likewise.
17161 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17162
17163 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17164
17165 Fix iso9660 filename limitations and fix memory leaks.
17166
17167 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17168 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17169
17170 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 Fix JFS file name length limitations.
17173
17174 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17175 (grub_jfs_diropen): Fix maximum filename length.
17176 (grub_jfs_getent): Fix filename length.
17177 (grub_jfs_lookup_symlink): Fix size checks.
17178
17179 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17180
17181 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17182 string.
17183
17184 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17185
17186 Leverage BFS implementation to read AFS.
17187
17188 * Makefile.util.def (libgrubmods): Add afs.c.
17189 * grub-core/Makefile.core.def (afs): New module
17190 * grub-core/fs/afs.c: New file.
17191 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17192
17193 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17194
17195 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17196
17197 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17198
17199 * grub-core/fs/bfs.c: Run indent.
17200
17201 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17202
17203 BFS implementation based on the specification.
17204
17205 * grub-core/fs/bfs.c: New file.
17206 * Makefile.util.def (libgrubmods): Add bfs.c.
17207 * grub-core/Makefile.core.def (bfs): New module.
17208
17209 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * util/grub-fstest.c (cmd_cp): Clarify error message.
17212 (cmd_cmp): Likewise.
17213
17214 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17215
17216 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17217 and befs_be.
17218
17219 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17220
17221 Remove afs and befs because of copyright problem.
17222
17223 * grub-core/fs/afs.c: Removed.
17224 * grub-core/fs/afs_be.c: Removed.
17225 * grub-core/fs/befs.c: Removed.
17226 * grub-core/fs/befs_be.c: Removed.
17227 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17228 * grub-core/Makefile.core.def (afs): Removed.
17229 (afs_be): Likewise.
17230 (befs): Likewise.
17231 (befs_be): Likewise.
17232
17233 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17234
17235 Prefer rockridge over Joliet.
17236
17237 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17238 to ...
17239 (set_rockridge): ... here.
17240 (grub_iso9660_mount): Check rockridge on the primary label when
17241 discovering. Ignore Joliet if Rockridge is present.
17242
17243 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 Use shifts in nilfs2.
17246
17247 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17248 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17249 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17250 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17251 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17252 (grub_nilfs2_entries_per_block): Replaced with ...
17253 (grub_nilfs2_log_entries_per_block_log): ... this.
17254 (grub_nilfs2_blocks_per_group): Replaced with ...
17255 (grub_nilfs2_blocks_per_group_log): ... this.
17256 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17257 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17258 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17259 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17260 (grub_nilfs2_palloc_entry_offset): Replaced ...
17261 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17262 (grub_nilfs2_dat_translate): Use shifts.
17263 (grub_nilfs2_read_inode): Likewise.
17264 (GRUB_MOD_INIT): Ensure that logs are correct.
17265
17266 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17267
17268 Use shifts in minix filesystem.
17269
17270 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17271 (GRUB_MINIX_ZONE2SECT): Likewise.
17272 (grub_minix_data): Replace block_size with log_block_size.
17273 (grub_minix_read_file): Use shifts.
17274 (grub_minix_mount): Check block size and take a logarithm.
17275
17276 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17277
17278 Use shifts in squash4.
17279
17280 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17281 (squash_mount): Check block size and take logarithm.
17282 (direct_read): Use shifts.
17283
17284 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 Correct befs block counting logic.
17287
17288 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17289 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17290 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17291 (grub_afs_read_inode): Use block_shift.
17292 (RANGE_SHIFT): New definition.
17293 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17294 unexpected conditions, use shifts and appropriate types.
17295 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17296
17297 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17298
17299 * grub-core/disk/raid.c (scan_devices): Check partition.
17300 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17301
17302 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17303
17304 Support BFS (befs) UUID.
17305
17306 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17307 (grub_afs_small_data_element_header): New struct.
17308 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17309 (grub_afs_read_attribute) [MODE_BFS]: New function.
17310 (grub_afs_iterate_dir): Allocate for complete inode.
17311 (grub_afs_mount): Likewise.
17312 (grub_afs_uuid) [MODE_BFS]: New function.
17313 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17314
17315 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17316
17317 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17318 (zfs_unmount): Fix memory leak.
17319
17320 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 Support NTFS reparse points.
17323
17324 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17325 (symlink_descriptor): New struct.
17326 (grub_ntfs_read_symlink): New function.
17327 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17328 (grub_ntfs_open): Likewise.
17329
17330 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17333
17334 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17335
17336 fstest xnu_uuid subcommand.
17337
17338 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17339 grub-core/commands/xnu_uuid.c.
17340 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17341 (fstest): Handle xnu_uuid.
17342 (options): Document xnu_uuid.
17343 (argp_parser): Parse xnu_uuid.
17344
17345 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17346
17347 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17348 -l argument. Add newline at the end if printing.
17349 (GRUB_MOD_INIT): Document -l.
17350
17351 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17352
17353 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17354
17355 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17356
17357 ZFS multi-device and version 33 support.
17358
17359 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17360 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17361 (grub_zfs_data): Add multidev-ice-related fields.
17362 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17363 (dva_get_offset): Make dva const.
17364 (zfs_fetch_nvlist): New function.
17365 (fill_vdev_info_real): Likewise.
17366 (fill_vdev_info): Likewise.
17367 (check_pool_label): Likewise.
17368 (scan_disk): Likewise.
17369 (scan_devices): Likewise.
17370 (read_device): Likewise.
17371 (read_dva): Likewise.
17372 (zio_read_gang): Use read_dva.
17373 (zio_read_data): Likewise.
17374 (zap_leaf_lookup): Add missing endian conversion.
17375 (zap_verify): Add missing endian conversion. All users updated.
17376 (fzap_lookup): Likewise.
17377 (fzap_iterate): Likewise.
17378 (dnode_get_path): Handle SA bonus.
17379 (nvlist_find_value): Make input const. All users updated.
17380 (unmount_device): New function.
17381 (zfs_unmount): Use unmount_device.
17382 (zfs_mount): Use scan_disk.
17383 (zfs_mtime): New function.
17384 (grub_zfs_open): Handle system attributes.
17385 (fill_fs_info): Likewise.
17386 (grub_zfs_dir): Likewise.
17387 (grub_zfs_fs): Add mtime.
17388 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17389 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17390 (SA_MTIME_OFFSET): Likewise.
17391 (SA_SYMLINK_OFFSET): Likewise.
17392 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17393 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17394 (fstest): Support zfsinfo.
17395 (argp_parser): Likewise.
17396
17397 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17400 error.
17401
17402 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17403
17404 ZFS fixes.
17405
17406 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17407 sharing the same block. Iterate over correct number of indices.
17408 (dnode_get_path): Handle symlinks correctly.
17409
17410 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17411
17412 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17413
17414 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17415
17416 Read label on HFS+.
17417
17418 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17419 (grub_hfsplus_btree_search): Fix types.
17420 (grub_hfsplus_label): Implement.
17421
17422 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17423
17424 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17425
17426 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17429
17430 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17431
17432 Fix symlink handling on iso9660.
17433
17434 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17435 All users updated.
17436 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17437 (grub_iso9660_read_symlink): Moved most of code ...
17438 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17439
17440 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17441
17442 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17443 Use union to avoid breaking strict-aliasing rules.
17444
17445 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17446
17447 Support multi-extent iso files.
17448
17449 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17450 Add node.
17451 (grub_fshelp_node): Revamp. All users updated.
17452 (FLAG_*): New enum.
17453 (read_node): New function.
17454 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17455 All users updated.
17456 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17457 (get_node_size): New function.
17458 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17459 entries.
17460 Fix memory leak on . and ..
17461 (grub_iso9660_read): Use read_node.
17462 (grub_iso9660_close): Free node.
17463
17464 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17465
17466 Fix tar 4G limit and handle paths containing dot.
17467
17468 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17469 (canonicalize): New function.
17470 (grub_cpio_find_file): Use canonicalize. Store offs in
17471 grub_disk_addr_t.
17472 (grub_cpio_dir): Use grub_disk_addr_t.
17473 (grub_cpio_open): Likewise.
17474
17475 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17476
17477 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17478
17479 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17480 unused flags.
17481 (grub_squash_inode): Add long_file and block_size.
17482 (grub_squash_cache_inode): New struct.
17483 (grub_squash_dirent): Make types into enum.
17484 (SQUASH_TYPE_LONG_REGULAR): New type.
17485 (grub_squash_frag_desc): Add field size.
17486 (SQUASH_BLOCK_FLAGS): New enum.
17487 (grub_squash_data): Use grub_squash_cache_inode.
17488 (grub_fshelp_node): Make ino_chunk 64-bit.
17489 (read_chunk): Minor argument change. All users updated.
17490 (squash_mount): Use correct le_to_cpu.
17491 (grub_squash_open): Handle LONG_REGULAR.
17492 (direct_read): New function.
17493 (grub_squash_read_data): Handle blocks correctly.
17494
17495 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17498
17499 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17502
17503 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 Fix 2G limit on ZFS.
17506
17507 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17508 types.
17509 (uberblock_verify): Likewise.
17510 (dmu_read): Likewise.
17511 (grub_zfs_read): Likewise. Remove invalid cast.
17512
17513 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17514
17515 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17516 (grub_jfs_blkno): Fix incorrect shift.
17517 (grub_jfs_read_file): Use more appropriate types.
17518
17519 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17520
17521 Support triple indirect on minix2 and minix3.
17522
17523 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17524 Declare triple_indir_zone.
17525 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17526 indirect.
17527
17528 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 Minix FS fixes.
17531
17532 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17533 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17534 Rename ctime to mtime. All users updated.
17535 (grub_minix_get_file_block): Fix types and double indirect computations.
17536
17537 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17538
17539 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17540 if no label is found.
17541 (grub_fat_iterate_dir): Fix file size type.
17542 (grub_fat_iterate_dir): Likewise.
17543
17544 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17545
17546 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17547 save some space.
17548 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17549 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17550
17551 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17552
17553 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17554
17555 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 * util/import_gcry.py: Accept space between # and include.
17558
17559 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17560
17561 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17562
17563 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17564
17565 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17566
17567 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17568 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17569 yylex_strncpy.
17570 * grub-core/script/yylex.l: Add fine-grained #pragma.
17571
17572 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17573
17574 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17575 New inline function.
17576 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17577 Likewise.
17578 (memset) [GRUB_UTIL]: Likewise.
17579 (memcmp) [GRUB_UTIL]: Likewise.
17580
17581 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17582
17583 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17584 inline function rather than a define.
17585
17586 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * util/grub-setup.c: Add missing include.
17589
17590 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17591
17592 * util/ieee1275/grub-ofpathname.c: Add missing include.
17593
17594 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17597 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17598 Likewise.
17599
17600 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17601
17602 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17603 grub_memcmp usage.
17604
17605 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * util/grub-install.in: Add datarootdir as per automake manual
17608 suggestion.
17609 * util/grub-mknetdir.in: Likewise.
17610
17611 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17614 suggestion.
17615 * util/grub.d/10_kfreebsd.in: Likewise.
17616 * util/grub.d/10_linux.in: Likewise.
17617 * util/grub.d/10_netbsd.in: Likewise.
17618 * util/grub.d/10_windows.in: Likewise.
17619 * util/grub.d/20_linux_xen.in: Likewise.
17620
17621 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17622
17623 Remove redundant grub_kernel_image_size.
17624
17625 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17626 _edata and _start.
17627 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17628 the small code. It moves it only by few bytes but simplifies the code.
17629 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17630 _start.
17631 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17632 (grub_kernel_image_size): Removed.
17633 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17634 (grub_kernel_image_size): Removed.
17635 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17636 compiled with Apple toolchain.
17637 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17638 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17639 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17640 (grub_total_module_size): Likewise.
17641 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17642 Removed.
17643 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17644 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17645 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17646 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17647 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17648 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17649 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17650 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17651 Removed.
17652 (grub_total_module_size): Removed.
17653 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17654 (image_targets): Likewise.
17655 Set .compressed_size to no field on sparc.
17656 (generate_image): Remove kernel_image_size handling.
17657
17658 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17659
17660 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17661 NULL pointer dereference.
17662
17663 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17664
17665 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17666 done with a dedicated section.
17667
17668 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17669 Ensure the correct position of boot_path.
17670 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17671 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17672 other fields.
17673 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17674 * include/grub/boot.h: Removed. All references removed.
17675 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17676 Removed.
17677 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17678
17679 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17680
17681 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17682 name.
17683
17684 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17685
17686 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17687
17688 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17689
17690 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17691 Don't add the bogus brackets.
17692
17693 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17694
17695 ExFAT support.
17696
17697 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17698 * grub-core/Makefile.core.def (exfat): New module.
17699 * grub-core/fs/exfat.c: New file.
17700 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17701 (GRUB_FAT_ATTR_*): Make into an enum.
17702 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17703 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17704 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17705 (GRUB_FAT_MAXFILE): Removed.
17706 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17707 (grub_current_fat_bpb_t): New type.
17708 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17709 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17710 (grub_fat_dir_node_t): New type.
17711 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17712 (fat_log2) [MODE_EXFAT]: Removed.
17713 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17714 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17715 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17716 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17717 (grub_fat_label) [MODE_EXFAT]: New function.
17718 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17719 reserved_first_sector to 0.
17720
17721 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17722
17723 Move grub_reboot out of the kernel.
17724
17725 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17726 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17727 * grub-core/lib/efi/reboot.c: ... here.
17728 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17729 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17730 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17731 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17732 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17733 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17734 * grub-core/lib/ieee1275/reboot.c: ... here.
17735 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17736 * grub-core/lib/mips/arc/reboot.c: ... here.
17737 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17738 * grub-core/lib/mips/loongson/reboot.c: ...here.
17739 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17740 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17741 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17742 * include/grub/i386/reboot.h: New file.
17743 * include/grub/mips/loongson/ec.h: Fix includes.
17744 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17745 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17746 * grub-core/lib/i386/reboot.c: New file.
17747
17748 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17749
17750 Make grub_prefix into module to fix the arbitrary limit and save
17751 some space.
17752
17753 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17754 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17755 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17756 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17757 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17758 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17759 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17760 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17761 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17762 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17763 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17764 * include/grub/ia64/efi/kernel.h: Removed.
17765 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17766 (grub_prefix): Removed.
17767 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17768 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17769 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17770 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17771 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17772 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17773 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17774 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17775 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17776 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17777 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17778 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17779 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17780 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17781 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17782 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17783 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17784 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17785 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17786 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17787 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17788 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17789 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17790 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17791 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17792 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17793 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17794 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17795 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17796 from module.
17797 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17798 prefix_end.
17799 (image_targets): Likewise.
17800 (generate_image): Put prefix as a module.
17801
17802 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17803
17804 Replace grub_module_iterate with FOR_MODULES.
17805
17806 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17807 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17808 (grub_efi_modules_addr): ...this.
17809 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17810 (grub_efi_init): Set grub_modbase.
17811 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17812 (grub_modbase): New variable.
17813 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17814 (grub_modbase): New variable.
17815 (grub_machine_init): Set grub_modbase.
17816 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17817 (grub_modbase): New variable.
17818 (grub_machine_init): Set grub_modbase.
17819 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17820 (grub_modbase): New variable.
17821 (grub_machine_init): Set grub_modbase.
17822 * grub-core/kern/main.c (grub_module_iterate): Remove.
17823 (grub_modules_get_end): Use grub_modbase.
17824 (grub_load_modules): Use FOR_MODULES.
17825 (grub_load_config): Likewise.
17826 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17827 (grub_modbase): New variable.
17828 (grub_machine_init): Set grub_modbase.
17829 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17830 (grub_modbase): New variable.
17831 (grub_machine_init): Set grub_modbase.
17832 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17833 Removed.
17834 (grub_modbase): New variable.
17835 (grub_machine_init): Set grub_modbase.
17836 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17837 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17838 (grub_module_iterate): Likewise.
17839 (grub_modbase): New variable declaration.
17840 (FOR_MODULES): New macro.
17841
17842 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17845 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17846
17847 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17848
17849 Fix few obvious type discrepancies.
17850
17851 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17852 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17853 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17854 variable.
17855 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17856 and connected types.
17857 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17858 offset.
17859 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17860 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17861 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17862 and connected types.
17863
17864 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17865
17866 Fix python 3.x incompatibilities.
17867
17868 * gentpl.py: Put brackets around print strings.
17869 * util/import_gcry.py: Open explicitly as utf-8.
17870 Use in instead of has_key.
17871
17872 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17873
17874 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17875 (GRUB_XFS_INO_AGBITS): Make into inline function.
17876 (GRUB_XFS_INO_INOINAG): Likewise.
17877 (GRUB_XFS_INO_AG): Likewise.
17878 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17879 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17880 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17881 (GRUB_XFS_EXTENT_SIZE): Likewise.
17882 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17883 (GRUB_XFS_NEXT_DIRENT): Likewise.
17884 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17885 (grub_xfs_read_file): Fix offset type.
17886
17887 2011-10-15 Robert Millan <rmh@gnu.org>
17888
17889 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17890
17891 2011-10-15 Robert Millan <rmh@gnu.org>
17892
17893 Fix build problem on FreeBSD and GNU/kFreeBSD.
17894
17895 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17896
17897 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17898
17899 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17900
17901 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17902 types.
17903 (grub_hfsplus_btree_recoffset): Likewise.
17904 (grub_hfsplus_btree_recptr): Likewise.
17905 (grub_hfsplus_find_block): Likewise.
17906 (grub_hfsplus_btree_search): Likewise.
17907 (grub_hfsplus_read_block): Likewise.
17908 (grub_hfsplus_read_file): Likewise.
17909 (grub_hfsplus_mount): Likewise.
17910 (grub_hfsplus_btree_iterate_node): Likewise.
17911 (grub_hfsplus_btree_search): Likewise.
17912 (grub_hfsplus_iterate_dir): Likewise.
17913 (grub_hfsplus_read): A small code simplification.
17914
17915 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 * grub-core/kern/emu/hostdisk.c
17918 (convert_system_partition_to_system_disk): Don't assume that children
17919 of mapper nodes are mapper nodes.
17920
17921 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17922
17923 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17924 * include/grub/misc.h (grub_isxdigit): New function.
17925 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17926 switched to grub_isxdigit.
17927 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17928 number starting with a letter.
17929
17930 2011-10-09 Robert Millan <rmh@gnu.org>
17931
17932 LVM support for FreeBSD and GNU/kFreeBSD.
17933
17934 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17935 GNU/kFreeBSD.
17936 (LVM_DEV_MAPPER_STRING): Move from here ...
17937 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17938 * util/getroot.c: Include `<grub/util/lvm.h>'.
17939 (grub_util_get_dev_abstraction): Enable
17940 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17941 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17942 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17943 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17944 support it.
17945 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17946 GNU/kFreeBSD.
17947 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17948 when LVM abstraction is required for ${GRUB_DEVICE}.
17949
17950 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17951
17952 Add support for LZO compression in GRUB:
17953 - import of minilzo library,
17954 - LZO decompression for btrfs,
17955 - lzop files decompression.
17956
17957 * grub-core/io/lzopio.c: New file.
17958 * grub-core/lib/adler32.c: Likewise.
17959 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17960 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17961 * grub-core/lib/minilzo/minilzo.c: Likewise.
17962 * grub-core/lib/minilzo/minilzo.h: Likewise.
17963 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17964 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17965 grub-core/lib/minilzo/minilzo.c to common.
17966 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17967 cflags in cppflags.
17968 * grub-core/Makefile.core.def (btrfs): Likewise.
17969 * grub-core/Makefile.core.def (lzopio): New module.
17970 (adler32): Likewise.
17971 * grub-core/fs/btrfs.c: Include minilzo.h.
17972 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17973 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17974 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17975 (grub_btrfs_lzo_decompress): New function.
17976 (grub_btrfs_extent_read): Add support for LZO compression type.
17977 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17978 (GRUB_USHRT_MAX): Likewise.
17979 (GRUB_UINT_MAX): Likewise.
17980 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17981 (UINT_MAX): Likewise.
17982 (CHAR_BIT): Likewise.
17983 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17984 grub-core/lib/posix_wrap/limits.h
17985 (UCHAR_MAX): Likewise.
17986 * include/grub/file.h (grub_file_filter_id): New compression filter
17987 GRUB_FILE_FILTER_LZOPIO.
17988 * include/grub/file.h (grub_file_filter_id): Set
17989 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17990 * include/grub/types.h (grub_get_unaligned16): New function.
17991 (grub_get_unaligned32): Likewise.
17992 (grub_get_unaligned64): Likewise.
17993 * util/import_gcry.py (cryptolist): Add adler32.
17994
17995 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17996
17997 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17998 in perspective decreases the complexity of build system and fixes
17999 compilation right now.
18000
18001 2011-10-01 Ales Nesrsta <starous@volny.cz>
18002
18003 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18004 (fixed problem related to using UHCI with coreboot).
18005
18006 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18007
18008 * gentpl.py: Use Autogen macros so that the output template file
18009 (Makefile.tpl) size is reduced.
18010
18011 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
18012
18013 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18014 extra_dist.
18015
18016 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18017
18018 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18019 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18020
18021 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18022
18023 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18024 _fullpath.
18025
18026 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
18027
18028 Remove extra declaration of sleep for mingw32.
18029
18030 * util/misc.c (sleep) [__MINGW32__]: Removed.
18031 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18032
18033 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18034
18035 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18036 type and packname.
18037 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18038 Resurrected.
18039 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18040 (grub_netbsd_btinfo_bootwedge): New struct.
18041 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18042 New function.
18043 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18044
18045 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18046
18047 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18048 loader.
18049
18050 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18051
18052 Fix incorrect identifiers in bash-completion.
18053
18054 * util/bash-completion.d/grub-completion.bash.in
18055 (_grub_mkpasswd-pbkdf2): Rename to ...
18056 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18057 (_grub_script-check): Rename to ...
18058 (_grub_script_check): ... this. All users updated.
18059
18060 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18061
18062 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18063 Return 0 if disk isn't biosdisk.
18064
18065 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18066
18067 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18068 on NetBSD.
18069 * Makefile.util.def (grub-fstest): Likewise.
18070
18071 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18072
18073 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18074 Get sector size from disk label.
18075
18076 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18077
18078 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18079 */README* as well as README*.
18080 Reported by: Axel Beckert.
18081
18082 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18083
18084 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18085 case of less than 256 MiB of RAM.
18086
18087 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18088
18089 * grub-core/commands/wildcard.c (make_regex): Handle @.
18090
18091 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18094
18095 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18096
18097 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18098 AC_LANG_CONFTEST macros.
18099
18100 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18101
18102 Add grub-fstest option to uncompress data for commands.
18103
18104 * util/grub-fstest.c (uncompress): New var.
18105 (options): New option -u.
18106
18107 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18108
18109 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18110 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18111
18112 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18113
18114 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18115 file type was not recognized correctly (not gzip or corrupted).
18116
18117 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18118
18119 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18120 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18121
18122 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18125 loongson.
18126 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18127 video_radeon_fuloong2e.
18128 * grub-core/video/radeon_fuloong2e.c: New file.
18129 * include/grub/video.h (grub_video_id_t): Add new ID
18130 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18131
18132 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18133
18134 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18135 define.
18136 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18137 that PRID matches the detected subplatform and reset the subplatform
18138 if it doesn't.
18139
18140 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18143
18144 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18145
18146 Fix PCI iterating on functions >= 4.
18147
18148 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18149 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18150 Removed.
18151 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18152 (grub_pci_read): Fix bitmask.
18153 (grub_pci_read_word): Likewise.
18154 (grub_pci_read_byte): Likewise.
18155 (grub_pci_write): Likewise.
18156 (grub_pci_write_word): Likewise.
18157 (grub_pci_write_byte): Likewise.
18158
18159 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18162 can still be specified in TARGET_CFLAGS)
18163
18164 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18165
18166 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18167
18168 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18169 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18170 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18171 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18172 (FULOONG): Rename to ...
18173 (FULOONG2F): ... this. All users updated.
18174 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18175 (machtype_fuloong2f_str): ... this.
18176 (machtype_fuloong2e_str): New string.
18177 Check for machtype_fuloong2e_str.
18178 * grub-core/loader/mips/linux.c (loongson_machtypes)
18179 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18180 * grub-core/term/serial.c (loongson_defserial)
18181 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18182 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18183 loongson_defserial.
18184 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18185 Rename to ...
18186 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18187 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18188 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18189 to IMAGE_FULOONG2F_FLASH. All users updated.
18190 (image_targets): Rename images.
18191 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18192
18193 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18194
18195 Make enable of disk cache statistics code configurable.
18196
18197 * configure.ac: --enable-cache-stats added.
18198 * config.h.in (DISK_CACHE_STATS): New define.
18199 * grub-core/Makefile.core.def (cacheinfo): New command.
18200 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18201 * grub-core/commands/cacheinfo.c: New file.
18202 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18203 moved to cacheinfo.c.
18204 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18205 debug code.
18206 * include/grub/disk.h: Likewise.
18207
18208 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18209
18210 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18211 * grub-core/Makefile.am: Likewise.
18212
18213 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18214
18215 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18216 non-zero pull.
18217
18218 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18219
18220 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18221 All users updated.
18222 (grub_jfs_lookup_symlink): Use correct starting inode.
18223
18224 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18225
18226 * util/grub-setup.c (main): Add missing gcry initialisation.
18227
18228 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18229
18230 Don't accept text modes on EFI when booting Linux.
18231
18232 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18233 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18234
18235 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18236 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18237
18238 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18239 use of "/path/.." as in grub-install for EFI as well as handling
18240 symlinks correctly.
18241 Fixes Debian bug #637768.
18242
18243 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18244
18245 * util/grub-probe.c: Remove duplicate #include.
18246
18247 2011-08-10 Robert Millan <rmh@gnu.org>
18248
18249 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18250
18251 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18252 function.
18253 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18254 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18255
18256 2011-08-03 Robert Millan <rmh@gnu.org>
18257
18258 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18259 la_array as packed.
18260 Reported by: Zachary Bedell
18261
18262 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18263
18264 * configure.ac: The Loongson port requires grub-mkfont due to its
18265 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18266 be built.
18267
18268 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18269
18270 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18271 processing arguments (otherwise help2man fails when GRUB has not yet
18272 been installed).
18273
18274 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18275
18276 New script grub-mkstandalone.
18277
18278 * Makefile.util.def (grub-mkstandalone): New script.
18279 * docs/man/grub-mkstandalone.h2m: New file.
18280 * util/grub-mkstandalone.in: Likewise.
18281
18282 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18283
18284 Support ATA disks with 4K sectors.
18285
18286 * include/grub/ata.h (grub_ata): New member log_sector_size.
18287 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18288 (grub_ata_identify): Read sector size.
18289 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18290
18291 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18292
18293 * util/grub-install.in: Don't use uhci outside of x86.
18294
18295 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18296
18297 * util/grub-mkrescue.in: Add missing quotes.
18298
18299 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18300
18301 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18302 dereference.
18303
18304 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18307
18308 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18309
18310 * include/grub/video.h: add missing EXPORT_FUND on
18311 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18312
18313 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18314
18315 * include/grub/mips/kernel.h: Fix define conflict.
18316
18317 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18318
18319 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18320 all four ways.
18321
18322 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18323
18324 Preferred resolution detection for VBE.
18325
18326 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18327 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18328 the Flat Panel extension, in line with the X.org VESA driver.
18329 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18330 New function.
18331 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18332 (grub_vbe_bios_read_edid): Likewise.
18333 (grub_vbe_get_preferred_mode): Likewise.
18334 (grub_video_vbe_setup): When the mode is "auto", try to get the
18335 preferred mode from VBE, and use the largest mode that is no larger
18336 than the preferred mode (some BIOSes expose a preferred mode that is
18337 not in their mode list!). If this fails, fall back to 640x480 as a
18338 safe conservative choice.
18339 (grub_video_vbe_get_edid): New function.
18340 (grub_video_vbe_adapter): Add get_edid.
18341 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18342 (struct grub_video_adapter): Add get_edid.
18343 (grub_video_edid_checksum): Add prototype.
18344 (grub_video_edid_preferred_mode): Likewise.
18345 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18346 structure.
18347
18348 * grub-core/commands/videoinfo.c (print_edid): New function.
18349 (grub_cmd_videoinfo): Print EDID if available.
18350
18351 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18352 is more appropriate on a wider range of platforms than 640x480.
18353 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18354 documentation.
18355
18356 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18359
18360 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18361
18362 * po/POTFILES.in: Regenerate.
18363
18364 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18365
18366 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18367 incorrect memory usage.
18368
18369 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18370
18371 * util/grub-install.in: Source grub-mkconfig_lib.
18372
18373 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18374
18375 Remove getroot.c from core on emu platform.
18376
18377 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18378 kern/emu/raid.c.
18379 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18380 useless.
18381 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18382 * util/getroot.c (get_win32_path): ... here.
18383 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18384 * util/getroot.c (fini_libzfs): ... here.
18385 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18386 * util/getroot.c (grub_get_libzfs_handle): ... here.
18387 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18388 Moved from here...
18389 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18390 * grub-core/kern/emu/misc.c
18391 (grub_make_system_path_relative_to_its_root): Moved from here...
18392 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18393 * grub-core/kern/emu/getroot.c: Moved from here ...
18394 * util/getroot.c: ... here. All users updated.
18395 * grub-core/kern/emu/raid.c: Moved from here ...
18396 * util/raid.c: ... here. All users updated.
18397
18398 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18399
18400 * po/POTFILES.in: Regenerate.
18401
18402 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18403
18404 Fix compilation on GNU/Linux.
18405
18406 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18407 Disable geli.
18408 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18409 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18410 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18411
18412 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18413 2011-07-07 Michael Gorven <michael@gorven.za.net>
18414 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18415
18416 LUKS and GELI support.
18417
18418 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18419 grub-core/disk/luks.c, grub-core/disk/geli.c,
18420 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18421 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18422 grub-core/lib/arg.c.
18423 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18424 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18425 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18426 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18427 (grub-bin2h): Add libgcry.a.
18428 (grub-mkimage): Likewise.
18429 (grub-mkrelpath): Likewise.
18430 (grub-script-check): Likewise.
18431 (grub-editenv): Likewise.
18432 (grub-mkpasswd-pbkdf2): Likewise.
18433 (grub-pe2elf): Likewise.
18434 (grub-fstest): Likewise.
18435 (grub-mkfont): Likewise.
18436 (grub-mkdevicemap): Likewise.
18437 (grub-probe): Likewise.
18438 (grub-ofpath): Likewise.
18439 (grub-mklayout): Likewise.
18440 (example_unit_test): Likewise.
18441 (grub-menulst2cfg): Likewise.
18442 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18443 * grub-core/Makefile.core.def (cryptodisk): New module.
18444 (luks): Likewise.
18445 (geli): Likewise.
18446 * grub-core/disk/AFSplitter.c: New file.
18447 * grub-core/disk/cryptodisk.c: Likewise.
18448 * grub-core/disk/geli.c: Likewise.
18449 * grub-core/disk/luks.c: Likewise.
18450 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18451 grub_util_is_lvm.
18452 (grub_util_get_dm_abstraction): New function.
18453 (grub_util_follow_gpart_up): Likewise.
18454 (grub_util_get_geom_abstraction): Likewise.
18455 (grub_util_get_dev_abstraction): Use new functions.
18456 (grub_util_pull_device): Pull GELI and LUKS.
18457 (grub_util_get_grub_dev): Handle LUKS and GELI.
18458 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18459 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18460 (follow_geom_up): Removed.
18461 (grub_util_fd_seek): New function.
18462 (open_device): Use grub_util_fd_seek.
18463 (nread): Rename to ..
18464 (grub_util_fd_read): ... this. All users updated.
18465 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18466 (grub_crypto_cbc_decrypt): Likewise.
18467 (grub_crypto_hmac_write): Likewise.
18468 (grub_crypto_hmac_buffer): Likewise.
18469 (grub_password_get): Extend to util.
18470 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18471 New member modname.
18472 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18473 * include/grub/cryptodisk.h: New file.
18474 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18475 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18476 LUKS and GELI.
18477 (grub_util_follow_gpart_up): New proto.
18478 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18479 (grub_util_fd_read): Likewise.
18480 (grub_cryptodisk_cheat_mount): Likewise.
18481 (grub_util_cryptodisk_print_uuid): Likewise.
18482 (grub_util_get_fd_sectors): Likewise.
18483 * util/grub-fstest.c (mount_crypt): New var.
18484 (fstest): Mount crypto if requested.
18485 (options): New option -C.
18486 (argp_parser): Parse -C.
18487 (main): Init and fini gcry.
18488 * util/grub-install.in: Support cryptodisk install.
18489 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18490 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18491 cryptodisk.
18492 (prepare_grub_to_access_device): Likewise.
18493 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18494 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18495 (probe_cryptodisk_uuid): New function.
18496 (probe_abstraction): Likewise.
18497 (probe): Use new functions.
18498 * util/import_gcry.py: Create Makefile.utilgcry.def.
18499 Add modname member.
18500
18501 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18502
18503 Lazy device scanning.
18504
18505 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18506 (grub-setup): Remove util/raid.c.
18507 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18508 * grub-core/disk/lvm.c (scan_depth): New variable.
18509 (grub_lvm_iterate): Rescan if necessary.
18510 (find_lv): New function based on grub_lvm_open.
18511 (grub_lvm_open): Use find_lv. Rescan on error.
18512 (is_node_readable): New function.
18513 (is_lv_readable): Likewise.
18514 (grub_lvm_scan_device): Skip already found disks.
18515 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18516 Stop if searched device is found and readable.
18517 * grub-core/disk/raid.c (inscnt): New variable.
18518 (scan_depth): Likewise.
18519 (scan_devices): New function based on grub_raid_register. Abort if
18520 looked for device is found.
18521 (grub_raid_iterate): Rescan if needed.
18522 (find_array): NEw function based on -grub_raid_open.
18523 (grub_raid_open): Use find_array and rescan.
18524 (insert_array): Set became_readable_at.
18525 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18526 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18527 New function.
18528 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18529 (grub_util_pull_device): New function.
18530 (grub_util_get_grub_dev): Call grub_util_pull_device.
18531 * util/raid.c: Moved to ..
18532 * grub-core/kern/emu/raid.c: ... here.
18533 (grub_util_raid_getmembers): New parameter "bootable".
18534 All users updated. Support 1.x.
18535 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18536 All users updated.
18537 * include/grub/disk.h (grub_disk_pull_t): New enum.
18538 (grub_disk_dev): Change iterate prototype.
18539 All users updated.
18540 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18541 New proto.
18542 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18543 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18544 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18545 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18546 All users updated.
18547 * include/grub/util/raid.h: Removed.
18548
18549 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18550
18551 * po/POTFILES.in: Regenerate.
18552
18553 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 Unify sparc init with other ieee1275.
18556
18557 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18558 instead of kern/sparc64/ieee1275/init.c.
18559 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18560 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18561 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18562 grub/machine/kernel.h.
18563 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18564 (grub_claim_heap) [__sparc__]: Use sparc version.
18565 (grub_machine_init): Moved args parsing to
18566 (grub_parse_cmdline): ...this.
18567 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18568 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18569 New definition.
18570 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18571
18572 Move BOOTP to separate file.
18573
18574 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18575 * grub-core/net/net.c: Move all BOOTP functions to
18576 * grub-core/net/bootp.c: ... here.
18577
18578 Use frame interface on PXE.
18579
18580 * grub-core/Makefile.core.def (pxecmd): Removed.
18581 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18582 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18583 * grub-core/i386/pc/pxe.c: Moved from here ...
18584 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18585 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18586 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18587
18588 EFI network support.
18589
18590 * grub-core/Makefile.core.def (efinet): New module.
18591 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18592 here...
18593 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18594 All users updated.
18595 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18596 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18597 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18598 * grub-core/net/drivers/efi/efinet.c: New file.
18599 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18600 (grub_efi_net_config): New extern var.
18601
18602 Various cleanups and bugfixes.
18603
18604 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18605 error.
18606 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18607 disk declared as partition.
18608 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18609 leak on failure.
18610 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18611 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18612 (grub_debug_zalloc): Likewise.
18613 (grub_debug_realloc): Likewise.
18614 (grub_debug_memalign): Likewise.
18615 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18616 Check that target is IPv4.
18617 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18618 local-mac-address as fallback.
18619 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18620 memory leak.
18621 * grub-core/net/ip.c (ipchksum): Rename to ...
18622 (grub_net_ip_chksum): ... this. All users updated.
18623 (grub_net_recv_ip_packets): Special handling for DHCP.
18624 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18625
18626 Unify prefix handling
18627
18628 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18629 (grub_machine_get_bootlocation): ... this.
18630 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18631 (grub_machine_get_bootlocation): ... this.
18632 (grub_prefix): New variable.
18633 (prefix): Removed.
18634 (root_dev): New variable.
18635 (dir): Likewise.
18636 (main): Use new variables.
18637 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18638 Revamped into ...
18639 (grub_machine_get_bootlocation): ... this.
18640 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18641 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18642 (grub_machine_get_bootlocation): ... this.
18643 (grub_machine_set_prefix): Removed.
18644 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18645 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18646 Revamped into ...
18647 (grub_machine_get_bootlocation): ... this.
18648 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18649 (grub_set_prefix_and_root): ... this. All users updated.
18650 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18651 Revamped into ...
18652 (grub_machine_get_bootlocation): ... this.
18653 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18654 (grub_machine_get_bootlocation): New proto.
18655 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18656
18657 Less intrusive and more reliable seek on network implementation.
18658
18659 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18660 (grub_file_seek): Don't call grub_file_net_seek.
18661 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18662 (grub_net_fs_read_real): .. this.
18663 (grub_net_seek_real): Use net->offset.
18664 (grub_net_fs_read): Seek if necessary.
18665
18666 Unify IEEE1275 netwotk config with the other platforms.
18667
18668 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18669 New variable.
18670 (grub_machine_get_bootlocation): Support network.
18671 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18672 Support type and device parsing.
18673 (grub_ieee1275_get_device_type): New function.
18674 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18675 into ...
18676 (grub_ieee1275_net_config_real): ... this.
18677 (grub_ofnet_probecards): Removed.
18678 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18679 * include/grub/ieee1275/ofnet.h: Removed.
18680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18681 extern var.
18682 (grub_ieee1275_get_device_type): New function.
18683
18684 Unify network device closing across platforms and make more robust.
18685
18686 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18687 grub_grubnet_fini.
18688 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18689 already.
18690 * grub-core/net/net.c (grub_net_network_level_interface_register):
18691 Update num_ifaces.
18692 (grub_net_card_unregister): Close all interfaces.
18693 (receive_packets): Don't poll if no iterfaces are registered.
18694 Open if necessary.
18695 (grub_net_fini_hw): New function.
18696 (grub_net_restore_hw): Likewise.
18697 (fini_hnd): New variable.
18698 (GRUB_MOD_INIT): Register preboot hook.
18699 (GRUB_MOD_FINI): Run and unregister preboot hook.
18700
18701 Poll network cards when idle.
18702
18703 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18704 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18705 * grub-core/net/net.c (receive_packets): Save last poll time.
18706 (grub_net_poll_cards_idle_real): New function.
18707 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18708 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18709 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18710
18711 Rename ofnet interfaces.
18712
18713 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18714 (grub_ofnet_findcards): Use ofnet_%s names.
18715
18716 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18717
18718 Cleanup socket opening.
18719
18720 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18721 (grub_net_fs_close): Likewise.
18722 (grub_net_fs_read_real): Use eof member.
18723 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18724 (+grub_net_udp_close): New inline function.
18725
18726 * include/grub/net/tftp.h: Moved to the top of ...
18727 * grub-core/net/tftp.c: ... here.
18728 * include/grub/net/ip.h: Moved mostly to the top of ...
18729 * grub-core/net/ip.c: ... here.
18730 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18731 * grub-core/net/ethernet.c: ... here.
18732
18733 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18734
18735 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18736 FS name.
18737
18738 * include/grub/net/ip.h (ipv4_ini): Removed.
18739 (ipv4_fini): Likewise.
18740
18741 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18742 (grub_net_send_ip_packets): Likewise.
18743
18744 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18745
18746 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18747 grub_read_cmos prototype.
18748
18749 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 VGA text support in qemu-mips
18752
18753 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18754 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18755 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18756 text.
18757 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18758 * grub-core/kern/vga_init.c: ... this.
18759 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18760 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18761 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18762 Adjust.
18763 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18764 GRUB_MACHINE_PCI_IO_BASE.
18765
18766 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18767
18768 MIPS qemu flash support.
18769
18770 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18771 magic.
18772 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18773 (grub_machine_init): Probe memory if its size isn't known.
18774 * util/grub-mkimage.c (image_targets): Add flash targets.
18775 (generate_image): Handle flash targets.
18776
18777 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18778
18779 MIPS qemu at_keyboard support.
18780
18781 * gentpl.py (videoinkernel): Add qemu-mips.
18782 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18783 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18784 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18785 modules.
18786 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18787 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18788 * grub-core/term/serial.c (grub_serial_register)
18789 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18790
18791 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18792
18793 CMOS support on sparc.
18794
18795 * gentpl.py (cmos): Add powerpc and sparc.
18796 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18797 powerpc and sparc.
18798 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18799 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18800 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18801 grub_set_datetime_cmos.
18802 * grub-core/lib/ieee1275/cmos.c: New file.
18803 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18804 (find_rtc): Set no_ieee1275_rtc on error.
18805 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18806 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18807 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18808 fail. Move value to argument. All users updated
18809 (grub_cmos_write): Likewise.
18810 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18811 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18812 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18813 grub_get_datetime_cmos and grub_set_datetime_cmos.
18814
18815 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18816
18817 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18818 sourcing grub-mkconfig_lib.
18819 * util/update-grub_lib.in: Likewise.
18820 * util/grub.d/00_header.in: Likewise.
18821 * util/grub.d/10_hurd.in: Likewise.
18822 * util/grub.d/10_kfreebsd.in: Likewise.
18823 * util/grub.d/10_linux.in: Likewise.
18824 * util/grub.d/10_netbsd.in: Likewise.
18825 * util/grub.d/10_windows.in: Likewise.
18826 * util/grub.d/20_linux_xen.in: Likewise.
18827 * util/grub.d/30_os-prober.in: Likewise.
18828
18829 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18830
18831 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18832 default_bg_color rather than black.
18833 (grub_gfxterm_fullscreen): Likewise.
18834 (grub_gfxterm_background_color_cmd): Save new background color in
18835 default_bg_color.
18836
18837 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18838
18839 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18840
18841 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18842
18843 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18844 mismerge.
18845
18846 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18847
18848 Chainloading on coreboot support.
18849
18850 * grub-core/Makefile.core.def (chain): Add coreboot.
18851 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18852
18853 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18854
18855 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18856 if it happens.
18857
18858 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18859
18860 Implement time command.
18861
18862 * grub-core/Makefile.core.def (time): New module.
18863 * grub-core/commands/time.c: New file.
18864 * grub-core/script/parser.y: Remove "time" keyword.
18865 * grub-core/script/yylex.l: Likewise.
18866
18867 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18868
18869 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18870
18871 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18872
18873 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18874 when handling leftovers.
18875
18876 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18877
18878 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18879 so that help2man doesn't fail.
18880
18881 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18882
18883 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18884 type in pointers on sparc64.
18885 (get_card_packet): Likewise.
18886
18887 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18888
18889 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18890 with `*'.
18891 (grub_cmd_videoinfo): Fetch current video mode.
18892
18893 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18894
18895 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18896 because of underlying system restrictions.
18897
18898 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18899
18900 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18901 necessary.
18902
18903 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18904
18905 Coreboot video support.
18906
18907 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18908 (vbe): Likewise.
18909 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18910 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18911 here ...
18912 * grub-core/kern/i386/int.S: ... here.
18913 * grub-core/video/i386/pc/vbe.c: Updated includes.
18914 * grub-core/video/i386/pc/vga.c: Likewise.
18915 * include/grub/i386/coreboot/memory.h
18916 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18917 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18918 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18919 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18920 Disable interrupts.
18921 * include/grub/i386/pc/vga.h: Removed. All users updated.
18922
18923 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18924
18925 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18926 definitions for dprintf.
18927 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18928
18929 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18930
18931 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18932 prototype.
18933 (get_card_packet): Likewise.
18934
18935 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18936
18937 Display the path of the file when file is not found
18938
18939 * grub-core/fs/fat.c: Display the filename when file is not found.
18940 * grub-core/fs/fshelp.c: Likewise.
18941 * grub-core/fs/hfs.c: Likewise.
18942 * grub-core/fs/jfs.c: Likewise.
18943 * grub-core/fs/minix.c: Likewise.
18944 * grub-core/fs/ufs.c: Likewise.
18945 * grub-core/fs/btrfs.c: Likewise.
18946 * grub-core/commands/i386/pc/play.c: Likewise.
18947
18948 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18949
18950 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18951 pointer checks before calling grub_free().
18952 * grub-core/commands/wildcard.c (match_devices): Likewise.
18953 * grub-core/commands/wildcard.c (match_files): Likewise.
18954 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18955 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18956 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18957 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18958 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18959 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18960 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18961 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18962 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18963
18964 2011-06-25 Patrick <p55@mailinator.com>
18965
18966 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18967
18968 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18969
18970 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18971 (grub_pxe_send): Likewise.
18972 (GRUB_MOD_INIT): Fix types.
18973
18974 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18975
18976 * grub-core/io/xzio.c: Fix code style issues
18977
18978 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18979 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18980
18981 Network infrastructure.
18982 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18983
18984 * include/grub/net/arp.h: New file.
18985 * include/grub/net/device.h: Likewise.
18986 * include/grub/net/ethernet.h: Likewise.
18987 * include/grub/net/ip.h: Likewise.
18988 * include/grub/net/netbuff.h: Likewise.
18989 * include/grub/net/tftp.h: Likewise.
18990 * include/grub/net/udp.h: Likewise.
18991 * include/grub/ieee1275/ofnet.h: Likewise.
18992 * include/grub/emu/export.h: Likewise.
18993 * include/grub/net.h: Likewise.
18994 * grub-core/net/arp.c: Likewise.
18995 * grub-core/net/ethernet.c: Likewise.
18996 * grub-core/net/ip.c: Likewise.
18997 * grub-core/net/udp.c: Likewise.
18998 * grub-core/net/tftp.c: Likewise.
18999 * grub-core/net/netbuff.c: Likewise.
19000 * grub-core/net/net.c: Likewise.
19001 * grub-core/net/drivers/emu/emunet.c: Likewise.
19002 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19003 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19004 export.h.
19005 * grub-core/Makefile.core.def (net): New module.
19006 (tftp): Likewise.
19007 (ofnet): Likewise.
19008 (emunet): Likewise.
19009 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19010 network protocols.
19011 * grub-core/kern/device.c (grub_net_open) : New variable.
19012 (grub_device_open): Handle network device.
19013 (grub_device_close): Likewise.
19014 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19015 (grub_grubnet_fini): Likewise.
19016 (grub_file_seek): Seek in network device.
19017 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19018 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19019 network root.
19020 (grub_machine_fini): Call grub_grubnet_fini.
19021 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19022 network.
19023 (grub_ieee1275_get_aliasdevname): New function.
19024 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19025 Add unofficial Solaris network info.
19026 (grub_multiboot_make_mbi): Likewise.
19027 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19028 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19029 * include/grub/device.h (grub_fs): Removed.
19030 * include/grub/err.h (grub_err_t): Add network-related values.
19031 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19032 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19033 (grub_ieee1275_get_aliasdevname): New proto.
19034 * include/grub/net.h: Rewritten.
19035
19036 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19037
19038 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19039 names.
19040
19041 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19044 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19045 it truncates the output.
19046 Reported by: Ximin Luo.
19047
19048 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19049
19050 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19051
19052 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19055 partmap before abstraction.
19056
19057 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19058
19059 * util/grub-mkconfig_lib.in: Add missing quotes.
19060
19061 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19062
19063 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19064 old method if mountinfo would return /dev/root and /dev/root doesn't
19065 exist.
19066
19067 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 ZFS zlib support
19070
19071 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19072 (decomp_table): Add zlib entries.
19073 (zio_read): USe 8 bits for compression function rather than 3.
19074 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19075
19076 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19077
19078 * grub-core/disk/ahci.c: Add missing license statements.
19079 * grub-core/fs/romfs.c: Likewise.
19080 * grub-core/lib/ia64/setjmp.S: Likewise.
19081 * grub-core/loader/i386/pc/freedos.c: Likewise.
19082 * grub-core/loader/ia64/efi/linux.c: Likewise.
19083 * grub-core/video/colors.c: Likewise.
19084 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19085
19086 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19087
19088 AHCI support.
19089
19090 * grub-core/Makefile.core.def (ata_pthru): Removed.
19091 (ahci): New module.
19092 (pata): Likewise.
19093 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19094 on unload.
19095 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19096 readwrite.
19097 (grub_hdparm_do_check_powermode_cmd): Likewise.
19098 (grub_hdparm_do_smart_cmd): Likewise.
19099 (grub_hdparm_set_val_cmd): Likewise.
19100 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19101 * grub-core/disk/ahci.c: New file.
19102 * grub-core/disk/ata.c: Factor out the low-level part into ...
19103 * grub-core/disk/pata.c: ... here.
19104 * grub-core/disk/ata_pthru.c: Contents moved to ...
19105 * grub-core/disk/pata.c: ... here.
19106 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19107 (grub_scsi_iterate): Use grub_scsi_names.
19108 (grub_scsi_open): Likewise.
19109 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19110 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19111 (grub_ata_regs_t): New struct.
19112 (grub_disk_ata_pass_through_parms): Likewise.
19113 (grub_ata_device): Renamed to ...
19114 (grub_ata): ... this.
19115 (grub_ata_dev): New struct.
19116 Removed all low-level inline functions.
19117 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19118 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19119 iterate hooks and open. All users updated.
19120 * util/grub-install.in: Handle AHCI disk module.
19121
19122 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19123
19124 Add support for DRI and RSTn markers in JPEG files.
19125
19126 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19127 (JPEG_MARKER_RST0): Likewise.
19128 (JPEG_MARKER_RST1): Likewise.
19129 (JPEG_MARKER_RST2): Likewise.
19130 (JPEG_MARKER_RST3): Likewise.
19131 (JPEG_MARKER_RST4): Likewise.
19132 (JPEG_MARKER_RST5): Likewise.
19133 (JPEG_MARKER_RST6): Likewise.
19134 (JPEG_MARKER_RST7): Likewise.
19135 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19136 (grub_jpeg_decode_dri): New function.
19137 (grub_jpeg_decode_sos): Move image data related part into
19138 grub_jpeg_decode_data function.
19139 (grub_jpeg_decode_data): New function.
19140 (grub_jpeg_reset): New function.
19141 (grub_jpeg_decode_jpeg): Handle new markers.
19142
19143 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19144
19145 * util/ieee1275/ofpath.c (check_sas): Close fd.
19146 (main): Free of_path.
19147 Reported by: David Volgyes <dvolgyes>.
19148
19149 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19150
19151 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19152 Reported by: David Volgyes <dvolgyes>.
19153
19154 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19155
19156 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19157 file after stat.
19158 Reported by: David Volgyes <dvolgyes>.
19159
19160 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19161
19162 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19163
19164 Reported by: David Volgyes <dvolgyes>.
19165
19166 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19167
19168 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19169 Prevent memory leak.
19170
19171 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19172
19173 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19174 (main): Close file.
19175 Reported by: David Volgyes <dvolgyes>.
19176
19177 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19180 to continue if allocation is failed.
19181
19182 Reported by: David Volgyes <dvolgyes>.
19183
19184 2011-06-23 David Volgyes <dvolgyes>
19185
19186 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19187 dereference.
19188
19189 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19190
19191 Fix spurious warning.
19192
19193 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19194 (acorn_partition_map_find): Use .bin member.
19195
19196 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19197
19198 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19199 /dev/root as a valid device.
19200
19201 2011-06-23 Jim Meyering <meyering@redhat.com>
19202
19203 Avoid NULL deref in grub_device_open.
19204
19205 * grub-core/kern/device.c (grub_device_open): Don't dereference
19206 a NULL pointer upon failed grub_env_get.
19207
19208 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 Support non-512B sectors and agglomerate reads.
19211
19212 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19213 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19214 (disk_io_guid): Removed.
19215 (make_devices): Locate solely by BlockIO.
19216 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19217 (grub_efidisk_read): Use read_blocks.
19218 (grub_efidisk_write): Use write_blocks.
19219 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19220 log_sector_size.
19221 (get_safe_sectors): Handle non-512B sectors.
19222 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19223 sectors.
19224 (grub_biosdisk_write): Handle non-512B sectors.
19225 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19226 (grub_scsi_read): Remove special non-512B block handling (now handled
19227 one level up).
19228 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19229 and do sanity checks.
19230 (grub_disk_adjust_range): Handle non-512B sectors.
19231 (transform_sector): New function.
19232 (grub_disk_read_small): Likewise.
19233 (grub_disk_read): Rewritten.
19234 (grub_disk_write): Handle non-512B sectors.
19235 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19236 log_sector_size.
19237 (open_device): Use log_sector_size.
19238 (grub_util_biosdisk_read): Likewise.
19239 (grub_util_biosdisk_write): Likewise.
19240 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19241 non-512B sectors.
19242 (pc_partition_map_embed): Likewise.
19243 * include/grub/disk.h (grub_disk): New field log_sector_size.
19244 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19245 (GRUB_DISK_CACHE_BITS): Increased to 6.
19246 * util/grub-fstest.c (fstest): New command testload.
19247 (argp_parser): Likewise.
19248
19249 2011-06-16 Robert Millan <rmh@gnu.org>
19250
19251 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19252 `ata' driver on kernel of FreeBSD 9.
19253
19254 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19255 (get_ataraid_disk_name): New functions.
19256 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19257 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19258 get_ataraid_disk_name() and get_ada_disk_name().
19259
19260 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19261
19262 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19263 input format.
19264
19265 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19266
19267 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19268 `ftp.gnu.org' for `alpha.gnu.org'.
19269
19270 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19271
19272 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19273 partitions under /dev/disk/by-id/.
19274
19275 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19276
19277 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19278 after ten consecutive open failures. Scanning all the way up to
19279 10000 is excessive and can cause serious performance problems in
19280 some configurations.
19281 Fixes Ubuntu bug #787461.
19282
19283 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19284
19285 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19286 opening new one.
19287
19288 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19289 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19290
19291 Don't stat devices unless we have to.
19292
19293 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19294 dir == /dev/mapper.
19295 (grub_guess_root_device): Use already known os_dev if possible.
19296 * grub-core/kern/emu/hostdisk.c
19297 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19298 if device is known to be a dm one.
19299
19300 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19301
19302 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19303 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19304 Reported by: Pawel Tecza.
19305
19306 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19307
19308 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19309 (lsefisystab): Likewise.
19310 (lssal): Likewise.
19311 (lsefimmap): Likewise.
19312 (hdparm): Enable on qemu-mips.
19313 (setjmp): Add ia64 nodist.
19314 (serial): Simplify tags.
19315
19316 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19317
19318 * Makefile.util.def (grub-ofpathname): Install manual page.
19319
19320 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19321
19322 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19323
19324 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19325
19326 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19327
19328 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19329
19330 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19331 into dprintf.
19332
19333 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19334
19335 Use full 64-bit division.
19336
19337 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19338 (grub_divmod64): ... this.
19339 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19340 version.
19341
19342 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19343
19344 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19345 `source'.
19346
19347 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19348
19349 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19350 to avoid accidents when debugging with 'sh -x'.
19351 * grub-core/gensyminfo.sh.in: Likewise.
19352 * tests/example_scripted_test.in: Likewise.
19353 * tests/grub_cmd_regexp.in: Likewise.
19354 * tests/grub_script_blanklines.in: Likewise.
19355 * tests/grub_script_dollar.in: Likewise.
19356 * tests/grub_script_expansion.in: Likewise.
19357 * tests/grub_script_final_semicolon.in: Likewise.
19358 * tests/partmap_test.in: Likewise.
19359 * tests/util/grub-shell-tester.in: Likewise.
19360 * tests/util/grub-shell.in: Likewise.
19361
19362 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19363
19364 Move gfxmenu color handling to video, so that gfxterm can use it
19365 too.
19366
19367 * grub-core/gfxmenu/named_colors.c: Move to ...
19368 * grub-core/video/colors.c: ... here. Rename
19369 grub_gui_get_named_color to grub_video_get_named_color.
19370 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19371 * grub-core/video/colors.c (my_isxdigit): ... here.
19372 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19373 Move to ...
19374 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19375 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19376 to ...
19377 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19378
19379 * include/grub/gui.h (grub_gui_color_t): Move to ...
19380 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19381 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19382 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19383 * include/grub/gui.h (grub_gui_map_color): Move to ...
19384 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19385 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19386 to ...
19387 * include/grub/video.h (grub_video_get_named_color): ... here.
19388 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19389 * include/grub/video.h (grub_video_parse_color): ... here.
19390
19391 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19392 video/colors.c.
19393 (gfxmenu): Remove gfxmenu/named_colors.c.
19394 (video) [videomodules]: Add video/colors.c.
19395
19396 Add a background_color command.
19397
19398 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19399 function.
19400 (GRUB_MOD_INIT): Register background_color command.
19401 (GRUB_MOD_FINI): Unregister background_color command.
19402 (redraw_screen_rect): Allow blend/replace of text layer to be
19403 controlled independently from whether there is a background bitmap.
19404 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19405 changing bitmap.
19406
19407 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19408
19409 Patch BPB in ntldr and chainloader --bpb.
19410
19411 * grub-core/fs/fat.c: Include grub/fat.h.
19412 (grub_fat_bpb): Moved to ...
19413 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19414 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19415 grub/ntfs.h.
19416 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19417 Moved from here...
19418 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19419 here.
19420 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19421 New function.
19422 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19423 (GRUB_MOD_INIT): Show --bpb.
19424 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19425 * grub-core/normal/main.c (features): New variable.
19426 (GRUB_MOD_INIT): Set feature_* variables.
19427 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19428 proto.
19429 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19430
19431 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19432
19433 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19434 for cleanness.
19435
19436 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19437
19438 FreeDOS direct loading support.
19439
19440 * docs/grub.texi (Supported OS): Add FreeDOS.
19441 * grub-core/Makefile.core.def (freedos): New module.
19442 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19443 variable.
19444 (grub_relocator16_boot): Handle %ebx.
19445 * grub-core/lib/i386/relocator16.S: Likewise.
19446 * grub-core/loader/i386/pc/freedos.c: New file.
19447
19448 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19449
19450 Long Linux command line support.
19451
19452 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19453 (maximal_cmdline_size): New variable.
19454 (allocate_pages): Use maximal_cmdline_size.
19455 (grub_cmd_linux): Set and use maximal_cmdline_size.
19456 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19457 (allocate_pages): Use maximal_cmdline_size.
19458 (grub_cmd_linux): Set and use maximal_cmdline_size.
19459 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19460 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19461 and cmdline_size.
19462
19463 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19464 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19465
19466 Improve devmapper support
19467
19468 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19469 (grub_util_is_lvm): New function.
19470 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19471 than lvm if not dmraid.
19472 Handle mapped md nodes.
19473 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19474 (grub_util_device_is_mapped): ... this. Make always available. All users
19475 updated.
19476 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19477 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19478 dmraid nodes.
19479 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19480
19481 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19482
19483 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19484
19485 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19486 * grub-core/modinfo.sh.in: New file.
19487 * grub-core/Makefile.core.def (modinfo.sh): New script.
19488 * util/grub-mknetdir.in: Use modinfo.sh.
19489 * util/grub-mkrescue.in: Likewise.
19490
19491 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19494 Fix potential usage of Elf32 instead of Elf64 when compiling on
19495 32-bit architecture. Add endianness macros while on it.
19496
19497 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19498
19499 Use mipsel- rather than mips- in directories involving mipsel ports to
19500 allow both endiannesses coexist.
19501
19502 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19503 mips. All conditions adjusted.
19504 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19505 variable.
19506 * util/grub-install.in: Adjust conditions to take renaming into account.
19507 * util/grub-mkimage.c (image_targets): Likewise. New target
19508 mips-qemu_mips-elf for bigendian mips.
19509
19510 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 Avoid unnecessary copying on MIPS.
19513
19514 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19515 early if src == dest.
19516 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19517 compression is none.
19518
19519 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19520
19521 Reduce memory footprint on SGI by putting modules before the kernel
19522 as opposed to after.
19523
19524 * grub-core/Makefile.core.def (kernel): Increase linking address.
19525 (none_decompress): Likewise.
19526 (xz_decompress): Likewise.
19527 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19528 address.
19529 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19530 layout change.
19531 (grub_arch_modules_addr): New function.
19532 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19533 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19534 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19535 here.
19536 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19537 (grub_total_modules_size): ... this. Make global.
19538 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19539 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19540 New definition.
19541 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19542 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19543 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19544 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19545 * util/grub-mkimage.c (image_target_desc): New flag
19546 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19547 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19548 (generate_image): Handle images with modules before kernel.
19549
19550 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19551
19552 Prevent potential loss of memory map by overwrite on qemu-mips.
19553
19554 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19555 Save ram size in $s4.
19556 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19557 All users changed to grub_arch_memsize.
19558 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19559 Loongson.
19560 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19561 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19562 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19563 external variable.
19564
19565 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19566
19567 * .bzrignore: Remove grub-dumpbios.
19568
19569 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19570
19571 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19572 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19573 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19574 existing options which append).
19575 * docs/grub.texi (Simple configuration): Document new options.
19576 Reported by: Ian Jackson. Fixes Debian bug #617538.
19577
19578 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19579
19580 * util/grub-fstest.c (cmd_cat): New function.
19581 (fstest): Handle CMD_CAT.
19582 (options): Add cat.
19583 (argp_parser): Handle cat.
19584
19585 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19586
19587 * Makefile.util.def (grub-bin2h): Don't install.
19588 * docs/man/grub-bin2h.h2m: Remove.
19589
19590 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19591
19592 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19593 place.
19594
19595 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19596
19597 Reenable qemu-mips port.
19598
19599 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19600 Fix small arc bug while on it.
19601 * gentpl.py: Handle qemu_mips.
19602 * grub-core/Makefile.am: Likewise.
19603 * grub-core/Makefile.core.def: Likewise.
19604 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19605 inappropriate includes.
19606 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19607 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19608 * grub-core/kern/main.c (grub_modules_get_end)
19609 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19610 * grub-core/kern/mips/qemu-mips: Moved to ..
19611 * grub-core/kern/mips/qemu_mips: ... this.
19612 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19613 (grub_machine_init): Call terminfo_init and serial_init.
19614 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19615 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19616 New variable.
19617 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19618 parameter passing.
19619 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19620 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19621 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19622 * include/grub/mips/qemu_mips/cmos.h: New file.
19623 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19624 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19625 Removed.
19626 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19627 Use correct mips-style address.
19628 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19629 (GRUB_TICKS_PER_SECOND): Removed.
19630 (grub_get_rtc): Likewise.
19631 (grub_cpu_idle): Likewise.
19632 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19633 New definition.
19634 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19635 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19636 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19637 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19638 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19639 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19640 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19641 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19642
19643 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19644
19645 SGI ARCS port.
19646
19647 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19648 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19649 platforms.
19650 * configure.ac: New target mips-arc.
19651 * gentpl.py: Likewise.
19652 * grub-core/Makefile.am: Likewise.
19653 * grub-core/Makefile.core.def: Likewise.
19654 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19655 (none_decompress): Likewise.
19656 (lsdev): New module.
19657 (datetime): Use lib/arc/datetime.c on ARC.
19658 (part_dvh): New module.
19659 * grub-core/commands/arc/lsdev.c: New file.
19660 * grub-core/disk/arc/arcdisk.c: Likewise.
19661 * grub-core/kern/mips/arc/init.c: Likewise.
19662 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19663 aligned addresses.
19664 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19665 support.
19666 (grub_arch_dl_relocate_symbols): Likewise.
19667 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19668 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19669 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19670 platforms.
19671 * grub-core/lib/arc/datetime.c: New file.
19672 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19673 pci.h on non-loongson.
19674 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19675 (grub_linux_boot): Set unused registers to 0.
19676 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19677 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19678 * grub-core/mmap/mips/uppermem.c: ...here.
19679 * grub-core/partmap/dvh.c: New file.
19680 * grub-core/term/arc/console.c: Likewise.
19681 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19682 (grub_terminfo_set_current): Add terminal "arc".
19683 (grub_terminfo_readkey): Support ARC sequences.
19684 * include/grub/arc/arc.h: New file.
19685 * include/grub/arc/console.h: Likewise.
19686 * include/grub/disk.h (grub_disk_dev_id): Add
19687 GRUB_DISK_DEVICE_ARCDISK_ID.
19688 * include/grub/mips/arc/kernel.h: New file.
19689 * include/grub/mips/arc/memory.h: Likewise.
19690 * include/grub/mips/arc/time.h: Likewise.
19691 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19692 * include/grub/mips/kernel.h (grub_halt): ... here.
19693 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19694 here...
19695 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19696 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19697 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19698 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19699 proto.
19700 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19701 from here ...
19702 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19703 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19704 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19705 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19706 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19707 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19708 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19709 (grub_phys_addr_t): Moved from here ...
19710 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19711 (grub_vtop): Moved from here ...
19712 * include/grub/mips/memory.h (grub_vtop): ... here.
19713 (grub_map_memory): Moved from here ...
19714 * include/grub/mips/memory.h (grub_map_memory): ... here.
19715 (grub_unmap_memory): Moved from here ...
19716 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19717 (grub_machine_mmap_iterate): Moved from here ...
19718 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19719 (grub_mmap_get_lower): Moved from here ...
19720 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19721 (grub_mmap_get_upper): Moved from here ...
19722 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19723 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19724 here ...
19725 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19726 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19727 here ...
19728 * include/grub/mips/time.h (grub_get_rtc): ... here.
19729 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19730 here ...
19731 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19732 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19733 here ...
19734 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19735 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19736 definition.
19737 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19738 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19739 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19740 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19741 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19742 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19743 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19744 (GRUB_MACHINE_LINK_ADDR): Likewise.
19745 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19746 to 6.
19747 * util/grub-install.in: Run dvhtool on ARC.
19748 * util/grub-mkimage.c (image_targets): Add mips-arc.
19749 (generate_image): Handle ECOFF output for mips-arc.
19750
19751 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19752
19753 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19754 blocks.
19755
19756 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19757
19758 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19759 after enabling port.
19760
19761 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19762
19763 Skip incorrect USB devices.
19764
19765 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19766 configcnt == 0.
19767 * include/grub/usb.h (grub_usb_err_t): New enum value
19768 GRUB_USB_ERR_BADDEVICE.
19769
19770 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19771
19772 Fuloong video init support.
19773
19774 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19775 well.
19776 (grub_vga_read_arx): New function.
19777 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19778 definition.
19779 (framebuffer): New members io, mmioptr and mmiobase.
19780 (read_sis_cmd): New function.
19781 (write_sis_cmd): Likewise.
19782 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19783 rather than 640x400.
19784 * grub-core/video/sis315_init.c: New file.
19785
19786 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19787
19788 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19789 non-loongson.
19790 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19791 to grub_dl_register_symbol.
19792
19793 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19794
19795 Fix compilation errors.
19796
19797 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19798 potentially unused.
19799 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19800 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19801 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19802 to loongson machines.
19803
19804 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19805
19806 Several FS mtime support.
19807
19808 * grub-core/fs/affs.c (grub_affs_time): New struct.
19809 (grub_affs_file): New field mtime.
19810 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19811 type. Removed 'size'. New field 'di'. All users updated.
19812 (grub_affs_mount): Simplify checsum checking.
19813 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19814 (grub_affs_dir): Handle mtime.
19815 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19816 (grub_cpio_dir): Likewise.
19817 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19818 (grub_hfs_filerec): New field mtime.
19819 (grub_hfs_dir): Handle mtime.
19820 (grub_hfs_mtime): New function.
19821 (grub_hfs_fs): Register grub_hfs_mtime.
19822 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19823 (grub_iso9660_dir): New field mtime.
19824 (grub_fshelp_node): New field dirent.
19825 (iso9660_to_unixtime): New function.
19826 (iso9660_to_unixtime2): Likewise.
19827 (grub_iso9660_read_symlink): Use node->dirent.
19828 (grub_iso9660_iterate_dir): Likewise.
19829 (grub_iso9660_dir): Set mtime.
19830 (grub_iso9660_mtime): New function.
19831 (grub_iso9660_fs): Register grub_iso9660_mtime.
19832 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19833 (grub_jfs_inode): New fields atime, ctime and mtime.
19834 (grub_jfs_dir): Set mtime.
19835 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19836 * grub-core/fs/ntfs.c (list_file): Set mtime.
19837 (grub_ntfs_dir): Likewise.
19838 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19839 (grub_reiserfs_iterate_dir): Set mtime.
19840 (grub_reiserfs_dir): Likewise.
19841 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19842 (grub_fshelp_node): Likewise.
19843 (grub_sfs_iterate_dir): Set mtime.
19844 (grub_sfs_dir): Likewise.
19845 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19846 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19847 (grub_xfs_inode): New fields atime, mtime, ctime.
19848 (grub_xfs_dir): Set mtime.
19849 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19850 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19851 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19852
19853 Support UDF symlinks.
19854
19855 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19856 (grub_ufs_read_symlink): New function. All users updated.
19857
19858 Check amiga partmap checksum.
19859
19860 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19861 (grub_amiga_partition): Likewise.
19862 (amiga_partition_map_checksum): New function.
19863 (amiga_partition_map_iterate): Check checksum.
19864
19865 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19866
19867 ROMFS support.
19868
19869 * Makefile.util.def (libgrubmods.a): Add romfs.
19870 * grub-core/Makefile.core.def (romfs): New module.
19871 * grub-core/fs/romfs.c: New file.
19872
19873 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19874
19875 Squashfs v4 support.
19876
19877 * Makefile.util.def (libgrubmods.a): Add squash4.
19878 * grub-core/Makefile.core.def (squash4): New module.
19879 * grub-core/fs/squash4.c: New file.
19880 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19881 disk_input_start, disk_input.
19882 (get_byte): Handle disk_input.
19883 (grub_zlib_disk_read): New function.
19884 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19885
19886 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19887 2011-05-15 Feiran Zheng <famcool@gmail.com>
19888
19889 * Makefile.util.def (libgrubmods.a): Add minix3.
19890 * grub-core/Makefile.core.def (minix3): New module.
19891 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19892 (GRUB_MINIX_BSIZE): Removed.
19893 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19894 (grub_minix_ino_t): New type.
19895 (grub_minix_le_to_cpu_ino): New macro.
19896 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19897 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19898 (grub_minix_data): New field block_size.
19899 (grub_minix_read_file): Handle 64-bit correctly.
19900 * grub-core/fs/minix3.c: New file.
19901
19902 2011-05-15 Tristan Gingold <gingold@free.fr>
19903 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19904 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19905
19906 IA64 support.
19907
19908 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19909 * configure.ac: Add ia64-efi target.
19910 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19911 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19912 * gentpl.py: Add ia64_efi platform.
19913 Rename x86_efi to efi and Add ia64-efi. All users updated.
19914 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19915 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19916 Remove kern/generic/rtc_get_time_ms.c on EFI.
19917 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19918 kern/ia64/dl_helper.c on ia64-efi.
19919 Add kern/emu/cache.c on emu.
19920 (linux): Use on loader/ia64/efi/linux.c on ia64.
19921 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19922 whether symbol is a function.
19923 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19924 (grub_symbol): New field 'isfunc'.
19925 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19926 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19927 (grub_dl_load_segments): Place all sections into the same region.
19928 [__ia64__]: Create trampolines and got.
19929 [GRUB_MACHINE_EMU]: Call mprotect.
19930 (grub_dl_resolve_symbols): Resolve symbol type as well.
19931 [__ia64__]: Create function descriptors.
19932 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19933 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19934 (grub_get_rtc): New function.
19935 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19936 * grub-core/kern/emu/cache.S: Renamed to ...
19937 * grub-core/kern/emu/cache_s.S: ... this.
19938 [__ia64__]: Add a nop.
19939 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19940 [__ia64__]: New function.
19941 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19942 * grub-core/kern/ia64/dl.c: New file.
19943 * grub-core/kern/ia64/dl_helper.c: Likewise.
19944 * grub-core/kern/ia64/efi/init.c: New file.
19945 * grub-core/kern/ia64/efi/startup.S: Likewise.
19946 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19947 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19948 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19949 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19950 * grub-core/loader/ia64/efi/linux.c: New file.
19951 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19952 (GRUB_MOD_DEP): Likewise.
19953 (grub_dl) [__ia64__]: New fields got and tramp.
19954 (grub_dl): New field 'base'.
19955 (grub_dl_register_symbol): New argument isfunc. All users updated.
19956 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19957 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19958 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19959 (grub_ia64_dl_get_tramp_got_size): New proto.
19960 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19961 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19962 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19963 * include/grub/efi/api.h: Skip call wrappers on ia64.
19964 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19965 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19966 * include/grub/elf.h (ELF_ST_INFO): New definition.
19967 * include/grub/ia64/efi/kernel.h: New file.
19968 * include/grub/ia64/efi/memory.h: Likewise.
19969 * include/grub/ia64/efi/time.h: Likewise.
19970 * include/grub/ia64/kernel.h: Likewise.
19971 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19972 * include/grub/ia64/time.h: New file.
19973 * include/grub/ia64/types.h: Likewise.
19974 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19975 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19976 New protos.
19977 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19978 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19979 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19980 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19981 All users updated.
19982 (EFI64_HEADER_SIZE): New definition. All users updated.
19983 (image_targets): Add ia64-efi.
19984 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19985 jumpers_addr. All users updated.
19986 Create function descriptors.
19987 (count_funcs): New function.
19988 (unaligned_uint32): New struct.
19989 (MASK20): New definition.
19990 (MASK19): Likewise.
19991 (MASKF21): Likewise.
19992 (add_value_to_slot_20b): New function.
19993 (add_value_to_slot_21_real): Likewise.
19994 (add_value_to_slot_21): Likewise.
19995 (ia64_kernel_trampoline): New struct.
19996 (nopm): New variable.
19997 (jump): Likewise.
19998 (make_trampoline): New function.
19999 (relocate_addresses): Handle ia64.
20000 (make_reloc_section): Likewise.
20001 (load_image): Likewise.
20002
20003 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20006 warning. Move variables before code while on it.
20007
20008 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
20009
20010 Fuloong support.
20011
20012 * configure.ac: Rename yeeloong platform to loongson. All users updated.
20013 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20014 * grub-core/boot/mips/loongson/fuloong.S: New file.
20015 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20016 Explicitly init CS5536.
20017 [FULOONG]: Don't use serial until CS5536 is available.
20018 Set GPIO based on dumps.
20019 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20020 [FULOONG]: Handle GPIO and memory controller differences.
20021 Parse machine type in $a2.
20022 * grub-core/boot/mips/startup_raw.S: Determine and save the
20023 architecture.
20024 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20025 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20026 init on architecture type.
20027 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20028 SIS315E. Don't init at_keyboard on fuloong.
20029 (grub_halt): Support Fuloong.
20030 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20031 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20032 (loongson_machtypes): New array.
20033 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20034 type.
20035 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20036 config. All users updated. Handle CS5536 serial.
20037 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20038 default port on machine type. Register serial as inactive.
20039 * grub-core/video/sis315pro.c: New file.
20040 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20041 definition.
20042 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20043 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20044 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20045 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20046 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20047 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20048 to ...
20049 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20050 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20051 definition.
20052 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20053 (grub_arch_machine): New extern var.
20054 * include/grub/mips/loongson/serial.h
20055 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20056 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20057 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20058 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20059 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20060 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20061 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20062 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20063 * include/grub/term.h (grub_term_register_input_inactive): New inline
20064 function.
20065 (grub_term_register_output_inactive): Likewise.
20066 * include/grub/video.h (grub_video_driver_id): New value
20067 GRUB_VIDEO_DRIVER_SIS315PRO.
20068 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20069 New field "names". All users updated.
20070 New field value IMAGE_FULOONG_FLASH.
20071 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20072
20073 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20074
20075 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20076 and add some clarification.
20077
20078 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20081 platforms if kernel is compressed.
20082
20083 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20084
20085 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20086 unused modules since currently referrence counter isn't reliable and
20087 there isn't much memory to recover there anyway.
20088
20089 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20090
20091 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20092 rather than resetting it to allow modules to reference themselves
20093 in init.
20094
20095 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20096
20097 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20098 counter on dependencies since grub_dl_unref already handles this.
20099
20100 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20101
20102 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20103 on error if not already done.
20104
20105 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20106
20107 Fix few potential memory misusage.
20108
20109 * grub-core/font/font.c (load_font_index): Don't free char_index to
20110 avoid double free.
20111 (grub_font_load): Zero-fill font at alloc for safety.
20112 Close file on error.
20113 (free_font): Free bmp_idx.
20114
20115 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * docs/grub.texi (Installation): Fix several outdated claims.
20118
20119 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20120
20121 Handle module_license on windows.
20122
20123 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20124 sections shifted.
20125 (insert_string): Make argument const char * instead of char *.
20126 (write_section_data): Handle long section names.
20127 Handle module_license.
20128
20129 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20132 handle class-free menuentries.
20133 (grub_normal_add_menu_entry): Add a check to be sure.
20134
20135 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20136
20137 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20138 PgUp and PgDown.
20139
20140 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * configure.ac: Bump version to 1.99.
20143
20144 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20145
20146 Give ATA device a bit more time on first try in order to allow disks
20147 to spin up.
20148
20149 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20150 if dev->present is 1. Reset dev->present on failure.
20151 (grub_ata_device_initialize): Set dev->present to 1.
20152 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20153 (grub_ata_device): New member 'present'.
20154
20155 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20156
20157 * util/grub-mkimage.c (generate_image): Update hash.
20158
20159 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 Flush caches on DMA memory.
20162
20163 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20164 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20165 (grub_dma_free): Likewise.
20166 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20167
20168 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20169
20170 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20171 to avoid asm treating ld and sd as macros.
20172
20173 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20174
20175 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20176 decompressor.
20177
20178 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20181 grub_decompress_core since later would fail if grub_decompress_core
20182 is too far.
20183
20184 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20187 R_MIPS_JALR since it's used by newer compiler.
20188
20189 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20190
20191 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20192
20193 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20196 file_path to 0 for surety.
20197 (grub_chainloader_boot): Set exit_data to NULL.
20198 Unset the loader once done.
20199 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20200
20201 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20202
20203 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20204 unknown key into a dprintf.
20205
20206 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20207
20208 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20209 on first non-existant partition.
20210
20211 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20212
20213 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20214 openning fails.
20215 Reported by: Mark Korenberg.
20216
20217 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20218
20219 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20220 overflow.
20221
20222 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20223
20224 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20225 before closing to ensure that it will be readable by grub-setup.
20226
20227 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20228
20229 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20230 (devpath_1): Use MAKE_PIWG_PATH.
20231 (devpath_2): Likewise.
20232 (devpath_3): Likewise.
20233 (devpath_4): Likewise.
20234 (devpath_5): Likewise.
20235 (devpath_6): Likewise.
20236
20237 The appleldr.mod was checked that to be binary identical to previous
20238 version.
20239
20240 2011-05-05 Zach <mikezackles>
20241
20242 Support 2010 Macbooks.
20243
20244 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20245 (devs): Add devpath_6.
20246
20247 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20248
20249 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20250 /dev/random. /dev/urandom is good enough for our purposes (salting).
20251
20252 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20253
20254 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20255
20256 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20257
20258 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20259 hexadecimal.
20260
20261 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20262
20263 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20264 and not 0 on failure.
20265
20266 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20267
20268 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20269 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20270 disk; otherwise grub_fs_probe will not fall back to the next
20271 filesystem.
20272 (grub_pxefs_open): Likewise, for consistency.
20273 Reported and tested by: Ezekiel Grave.
20274
20275 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20276
20277 * tests/partmap_test.in: Don't hardcode path to parted.
20278 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20279
20280 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20281
20282 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20283 of `ls' to find out which devices are available.
20284
20285 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20286
20287 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20288 than source address for efi mmap buffer.
20289
20290 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20291
20292 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20293 wrong action on non-detecting the magic.
20294
20295 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20296
20297 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20298 already supplied by another part of the module (fixes compilation on
20299 FreeBSD).
20300
20301 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20302
20303 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20304 match the one used by mdadm.
20305
20306 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20307
20308 * po/README: Add instructions for creating po/LINGUAS.
20309
20310 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20311
20312 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20313 #551428.
20314
20315 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20316 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20317 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20318 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20319 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20320 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20321 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20322 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20323 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20324 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20325 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20326 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20327 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20328 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20329 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20330 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20331 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20332 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20333 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20334 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20335 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20336 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20337
20338 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20339
20340 * grub-core/kern/emu/getroot.c
20341 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20342 test that was incorrectly reintroduced in r3214.
20343 Reported by: Ian Dall. Fixes Savannah bug #33133.
20344
20345 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20346
20347 Fix stack pointer handling in 16-bit relocator.
20348
20349 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20350 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20351 Fixes Ubuntu bug #683904.
20352
20353 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20354
20355 * configure.ac: Bump version to 1.99~rc2.
20356
20357 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20358
20359 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20360 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20361 * grub-core/lib/x86_64/setjmp.S: Likewise.
20362 * grub-core/lib/mips/setjmp.S: Likewise.
20363 * grub-core/lib/powerpc/setjmp.S: Likewise.
20364 * grub-core/lib/sparc64/setjmp.S: Likewise.
20365
20366 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20369 * grub-core/lib/efi/datetime.c: Likewise.
20370
20371 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20372
20373 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20374 New function.
20375 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20376 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20377 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20378
20379 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20380
20381 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20382 bitmap.
20383 (grub_gfxterm_term_init): Likewise.
20384
20385 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20386
20387 Take into account the decorations the computing menu entry width.
20388
20389 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20390 (grub_gfxmenu_create_box): Register get_border_width.
20391 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20392 if available.
20393 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20394 get_border_width.
20395
20396 2011-04-18 Endres Puschner <code@e7p.de>
20397
20398 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20399 Don't skip first class.
20400
20401 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20402
20403 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20404 chunks.
20405 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20406
20407 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20408
20409 Complete 64-bit division support.
20410
20411 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20412 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20413 * include/grub/misc.h (grub_divmod64): Rename to ...
20414 (grub_divmod64_full): ... this.
20415 (grub_divmod64): New inline function.
20416
20417 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20418
20419 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20420
20421 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20422
20423 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20424 performing the necessary test.
20425
20426 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20427
20428 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20429 (kfreebsd.elf): Likewise.
20430 (pc-chainloader.elf): Likewise.
20431 (ntldr.elf): Likewise.
20432
20433 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 Identify RAID by its UUID rather than (guessed) name.
20436
20437 * grub-core/disk/raid.c (ascii2hex): New function.
20438 (grub_raid_open): Accept mduuid/%s specification.
20439 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20440 (get_mdadm_uuid): ... this.
20441 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20442
20443 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20444
20445 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20446 to negative size.
20447
20448 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20449
20450 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20451 btrfs subvolume.
20452 * util/grub.d/20_linux_xen.in: Likewise.
20453
20454 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20455
20456 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20457 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20458
20459 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20460 Build a list of relevant visible mounts using the mnt_id and
20461 parent_mnt_id fields, and then scan that list at the end.
20462
20463 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20464
20465 * docs/grub.texi (normal): New section.
20466 (normal_exit): New section.
20467 (Embedded configuration): Add reference to normal.
20468 (GRUB only offers a rescue shell): Likewise.
20469 * docs/grub-dev.texi (Error Handling): Fix typo.
20470
20471 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20472
20473 * NEWS: Drop obsolete entry about probe-only btrfs support.
20474
20475 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20476
20477 * util/import_gcry.py: Fix typo.
20478
20479 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20480
20481 * NEWS: Add btrfs support.
20482
20483 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20484 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20485
20486 BtrFS support. Written by me (Vladimir) with important bugfixes and
20487 even more important testing by Colin.
20488
20489 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20490 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20491 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20492 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20493 mem_input_off and mem_input. All users updated to accept in-RAM input.
20494 (gzio_seek): New function.
20495 (test_zlib_header): Likewise.
20496 (grub_gzio_read): Likewise.
20497 (grub_zlib_decompress): Likewise.
20498 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20499 Accept partial and non-virtual mounts.
20500 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20501 avoid receiving /dev/dm-X as device.
20502 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20503 Handle bind and partial mounts.
20504 * grub-core/lib/crc.c: New file.
20505 * include/grub/deflate.h: Likewise.
20506 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20507 proto.
20508 * include/grub/lib/crc.h: New file.
20509
20510 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20511
20512 Implement automatic module license checking according to new GNU
20513 guidelines.
20514
20515 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20516 (grub_dl_load_core): Use grub_dl_check_license.
20517 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20518 (GRUB_MOD_LICENSE): Likewise.
20519 (GRUB_MOD_DUAL_LICENSE): Likewise.
20520 All modules updated.
20521
20522 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20523
20524 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20525 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20526 loaders.
20527 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20528
20529 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20530
20531 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20532
20533 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20534
20535 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20536 failed.
20537
20538 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20539
20540 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20541 parenthesis in the middle of the filename.
20542
20543 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20544
20545 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20546 rather than trying to put initrd way too high.
20547 Reported by: Ryan Lortie <desrt@desrt.ca>
20548
20549 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20550
20551 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20552 improperly removed string.
20553
20554 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20555
20556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20557 is_disk.
20558 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20559 (open_device) Likewise.
20560 (grub_util_biosdisk_close): Likewise.
20561 Reported by: Mark Korenberg.
20562
20563 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20564
20565 * util/grub-mkconfig_lib.in: Add missing quotes.
20566
20567 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20568
20569 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20570 is NULL.
20571
20572 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 Dynamically count the number of lines for the lower banner.
20575
20576 * grub-core/normal/menu_entry.c (per_term_screen): New member
20577 num_entries.
20578 (print_down): Use num_entries.
20579 (update_screen): Likewise.
20580 (grub_menu_entry_run): Set num_entries.
20581 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20582 num_entries.
20583 (grub_print_message_indented): Move real part to ...
20584 (grub_print_message_indented_real): ... here. Additional argument
20585 dry_run.
20586 (draw_border): Additional argument num_entries.
20587 (print_message): Additional argument dry_run.
20588 (print_entries): Receive menu viewer data.
20589 (grub_menu_init_page): New argment num_entries.
20590 (menu_text_set_chosen_entry): Use num_entries.
20591 (grub_menu_try_text): Likewise.
20592 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20593 All users updated.
20594 (grub_ucs4_count_lines): New function.
20595 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20596 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20597 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20598 (grub_term_border_height): Likewise.
20599 (grub_term_num_entries): Likewise.
20600
20601 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20602
20603 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20604 Remove now unused string.
20605
20606 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20607
20608 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20609 build system.
20610 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20611
20612 (Comment): Fix typo.
20613 (Getting started): General copy-editing.
20614 (Typical Development Experience): Likewise.
20615 (Error Handling): Likewise.
20616 (Video API): Likewise.
20617
20618 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20619
20620 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20621 throughout.
20622
20623 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20624
20625 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20626 directory.
20627
20628 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20629
20630 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20631 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20632 "development".
20633
20634 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20637 grub_strcpy since the lines aren't necessarily 0-terminated.
20638
20639 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20640
20641 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20642 root on legacy.
20643
20644 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20645
20646 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20647 (GRUB_MOD_INIT): DEVICE isn't optional.
20648
20649 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20650
20651 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20652 word on new line if it's too long anyway. Fixes a hang.
20653
20654 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20655
20656 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20657 const.
20658 * util/grub-setup.c (main): Reuse md device name if available.
20659 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20660 not GRUB name as argument.
20661 Based on patch by: Florian Wagner <fwagner>.
20662
20663 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20666 Place mbi on low memory for better compatibility.
20667
20668 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20669
20670 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20671
20672 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20673 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20674
20675 * autogen.sh: Ensure that collate and ctype locale is C.
20676 * conf/Makefile.common: Likewise.
20677
20678 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20679
20680 * grub-core/normal/menu.c: Add missing include.
20681
20682 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20683
20684 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20685
20686 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20687
20688 * util/grub-mkconfig.in: Ignore emacsen backup.
20689
20690 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20691
20692 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20693 on open.
20694 (grub_util_biosdisk_close): Likewise.
20695
20696 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20697
20698 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20699 const attribute and use grub_isdigit.
20700
20701 2011-04-06 Andrey <dev_null@ukr.net>
20702
20703 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20704 gcc warning.
20705
20706 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20707
20708 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20709 useful grub_dprintf's.
20710
20711 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20712
20713 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20714
20715 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20716
20717 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20718
20719 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20720
20721 Output errors if theme loading failed.
20722
20723 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20724 grub_gfxterm_fullscreen on error paths to ...
20725 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20726 theme loading error.
20727
20728 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20729
20730 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20731 space for older compilers.
20732 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20733
20734 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20735
20736 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20737 and report them as not RAID members since they are useless for GRUB.
20738 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20739
20740 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20741
20742 Increase LVM implementation robustness in order not to crash on
20743 configurations like pvmove. Previously code assumed that in some places
20744 only lvs or only pvs are used whereas it seems that they are used
20745 interchangeably.
20746
20747 * grub-core/disk/lvm.c (read_node): New function.
20748 (read_lv): Use read_node.
20749 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20750 Match volumes only at the end when all lvs are found. Take both
20751 pvs (first) and lvs (second) into account.
20752 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20753 mirror_* into node_*. All users updated.
20754 (grub_lvm_stripe): Merge this ...
20755 (grub_lvm_mirror): ... and this ...
20756 (grub_lvm_node): ... into this. All users updated.
20757
20758 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20759
20760 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20761 of function to allow further scanning for LVMs.
20762
20763 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20766 on failed seek as it breaks open fd reusage.
20767
20768 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 * util/grub-install.in: Add a recommendation to use --recheck before
20771 reporting bugs.
20772
20773 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20776 are obtained.
20777
20778 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20779
20780 GRUB developper manual based on existing Internals section and
20781 contributions by the various authors with active copyright assignment.
20782
20783 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20784 * docs/font_char_metrics.png: New file.
20785 * docs/font_char_metrics.txt: Likewise.
20786 * docs/grub-dev.texi: Likewise.
20787 * docs/grub.texi (Internals): Move from here ...
20788 * docs/grub-dev.texi: ... here.
20789
20790 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20791
20792 Store the loopback device as data on loopback grub_disk structures,
20793 rather than the file it points to. This fixes use of freed memory
20794 if an existing loopback device is replaced.
20795
20796 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20797 disk->data, not dev->file.
20798 (grub_loopback_read): Adjust file assignment to match.
20799 Fixes Ubuntu bug #742967.
20800
20801 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20802
20803 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20804 when replacing an existing device.
20805
20806 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20807
20808 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20809 memory corruptions.
20810
20811 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20812 unsigned.
20813 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20814 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20815 (grub_jfs_read_inode): Likewise.
20816 (grub_jfs_opendir): Likewise. Remove now useless casts.
20817 (grub_jfs_getent): Likewise.
20818 Make ino a grub_uint32_t rather than int.
20819 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20820 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20821 division and module with bit operations.
20822 (grub_jfs_find_file): Make ino a grub_uint32_t.
20823 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20824
20825 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20826
20827 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20828 warning. (This was in fact always initialised before use, but GCC
20829 wasn't smart enough to prove that.)
20830 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20831
20832 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20833
20834 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20835 stack alignment.
20836 (efi_wrap_1): Likewise.
20837 (efi_wrap_2): Likewise.
20838 (efi_wrap_3): Likewise.
20839 (efi_wrap_4): Likewise.
20840 (efi_wrap_5): Likewise.
20841 (efi_wrap_6): Likewise.
20842 (efi_wrap_10): Likewise.
20843 Based on information by: Red Hat/Peter Jones.
20844
20845 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20846
20847 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20848 set-but-not-used variable.
20849
20850 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20851
20852 * docs/grub.texi (Simple configuration): Be more explicit about
20853 GRUB_DEFAULT, and add an example.
20854 Reported by: Leslie Rhorer.
20855
20856 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20857
20858 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20859 shell".
20860
20861 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20862
20863 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20864 * util/grub.d/20_linux_xen.in: Likewise.
20865
20866 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20867
20868 * util/grub.d/10_linux.in: Try alternative config filenames where
20869 we parse config file.
20870 * util/grub.d/20_linux_xen.in: Likewise.
20871
20872 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20873
20874 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20875 * util/grub.d/20_linux_xen.in: Likewise.
20876
20877 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20878
20879 * grub-core/disk/raid.c (insert_array): Add few potentially
20880 useful grub_util_info.
20881 (grub_raid_register): Likewise.
20882
20883 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20886 Preserve partition number in mdadm code path.
20887
20888 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20889
20890 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20891 few potentially useful grub_util_info.
20892
20893 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20894
20895 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20896
20897 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20898
20899 * docs/grub.texi (default): Use @example rather than nested
20900 itemized lists to avoid breaking gendocs.
20901
20902 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20903
20904 * docs/grub.texi (Future): Update.
20905
20906 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20907
20908 * docs/grub.texi (Environment): New chapter.
20909 (Changes from GRUB Legacy): Link to "Environment block" section for
20910 details of limitations.
20911 (Simple configuration): Likewise. Link to documentation of gfxmode
20912 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20913 respectively.
20914 (Shell-like scripting): Note that normal variables are stored in the
20915 environment.
20916 (gettext): Link to documentation of lang and locale_dir.
20917 (list_env): New section.
20918 (load_env): New section.
20919 (save_env): New section.
20920
20921 (Reporting bugs): Fix typo.
20922
20923 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20926 the example.
20927
20928 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20929
20930 * grub-core/term/at_keyboard.c (set_scancodes)
20931 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20932
20933 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20934
20935 * docs/grub.texi (Menu-specific commands): Remove some semantics
20936 that were true in GRUB Legacy but not in GRUB 2.
20937 (submenu): New section.
20938 (false): New section.
20939 (read): New section.
20940 (true): New section.
20941
20942 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20943
20944 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20945
20946 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20947
20948 * docs/grub.texi (Simple configuration): Explain some of the
20949 current limitations of grub-mkconfig.
20950 Reported by: Leslie Rhorer.
20951
20952 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20953
20954 Old macs search for boot.efi rather than for bootia32.efi.
20955
20956 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20957 * util/grub-mkrescue.in: Likewise.
20958 Suggested by: Peter Jones.
20959
20960 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20963
20964 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20965
20966 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20967 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20968 (grub_lvm_mirror): New struct.
20969 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20970 (grub_lvm_iterate): Iterate only visible volumes.
20971 (grub_lvm_read): Factor out to ..
20972 (read_lv): ... this. Support mirrors.
20973 (grub_lvm_read): New wrapper function.
20974 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20975 stripped or mirrored.
20976
20977 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20980
20981 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20982
20983 * docs/grub.texi (loopback): New section.
20984
20985 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20986
20987 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20988 removed -p option.
20989
20990 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20991
20992 * docs/grub.texi (BIOS installation): New section, partly based on
20993 previous text in other sections.
20994 (Installing GRUB using grub-install): Replace BIOS discussion with a
20995 cross-reference.
20996 (Images): Likewise.
20997
20998 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20999
21000 * grub-core/kern/emu/hostdisk.c (find_partition_start)
21001 [HAVE_DIOCGDINFO]: Add safety checks.
21002
21003 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21004
21005 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21006 per default compiled in kernel and prior to 8.0 isn't shipped at all.
21007
21008 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
21009
21010 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21011 real_sb->size is zero (e.g. RAID-0), get the disk size from
21012 real_sb->data_size instead.
21013 Fixes Ubuntu bug #743136.
21014
21015 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21018 printf clauses for printing size and start.
21019
21020 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21023 Reported and tested by: Timothy Nikkel.
21024
21025 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21026
21027 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21028 (dirty_region_add_real): ... this.
21029 (dirty_region_add): Don't discard margin refresh when performing
21030 scheduled repaint.
21031
21032 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21033
21034 * grub-core/lib/relocator.c (allocate_regstart)
21035 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21036 terminals are capabple of malloc-free operation.
21037 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21038 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21039
21040 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21041
21042 * util/grub-setup.c: Copy the partition table zone if floppy support
21043 is disabled, even if no partition table is found.
21044
21045 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21046 during POST if an invalid partition table is contained in the PBR
21047 of the active partition when GRUB is installed to a partition.
21048
21049 2011-03-28 Colin Watson <cjwatson@debian.org>
21050
21051 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21052 comment.
21053
21054 2011-03-28 Colin Watson <cjwatson@debian.org>
21055
21056 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21057 to be specific about what kind of RAID device we're scanning for.
21058
21059 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21060
21061 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21062 return freed string.
21063
21064 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21067
21068 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 Use libgeom on FreeBSD to detect partitions.
21071
21072 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21073 (grub-mkrelpath): Likewise.
21074 (grub-script-check): Likewise.
21075 (grub-editenv): Likewise.
21076 (grub-mkpasswd-pbkdf2): Likewise.
21077 (grub-fstest): Likewise.
21078 (grub-mkfont): Likewise.
21079 (grub-mkdevicemap): Likewise.
21080 (grub-probe): Likewise.
21081 (grub-setup): Likewise.
21082 (grub-ofpathname): Likewise.
21083 (grub-mklayout): Likewise.
21084 (example_unit_test): Likewise.
21085 (grub-menulst2cfg): Likewise.
21086 * grub-core/Makefile.core.def (grub-emu): Likewise.
21087 (grub-emu-lite): Likewise.
21088 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21089 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21090 define HAVE_DIOCGDINFO.
21091 (follow_geom_up) [FreeBSD]: New function.
21092 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21093 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21094 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21095 unconditionally of HAVE_DIOCGDINFO.
21096
21097 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21098
21099 Fix FreeBSD compilation problem.
21100
21101 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21102 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21103
21104 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21105
21106 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21107 Switch back to page zero before loading a kernel, since some kernel
21108 drivers expect that.
21109 Thanks to: Felix Kuehling.
21110
21111 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21112
21113 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21114 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21115 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21116
21117 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21118
21119 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21120 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21121
21122 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21123
21124 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21125 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21126 malloc is disabled.
21127
21128 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21129
21130 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21131 for modules headers when counting the needed allocation size.
21132
21133 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21134
21135 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21136 if no ASCII character is found to prevent crash.
21137
21138 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21139
21140 * grub-core/video/bitmap.c (match_extension): Ignore case.
21141
21142 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21143
21144 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21145
21146 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21147
21148 * grub-core/script/parser.y: Declare "time" as valid argument.
21149
21150 2011-03-23 Peter Jones <pjones@redhat.com>
21151
21152 Fix incorrect assert failure reporting.
21153
21154 * grub-core/tests/example_functional_test.c (example_test): Add
21155 a failure comment.
21156 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21157 (failure_start): ...this. Check that malloc succeeded.
21158 Don't call xvasprintf. Return failure struct.
21159 (failure_append_vtext): New function.
21160 (failure_append_text): Likewise.
21161 (add_failure): Likewise.
21162 (grub_test_assert_helper): Likewise.
21163 * include/grub/test.h (grub_test_assert_helper): New declaration.
21164 (grub_test_assert): Macro rewritten.
21165
21166 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21167
21168 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21169
21170 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21171
21172 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21173
21174 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21175
21176 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21177 into GRUB-style one.
21178
21179 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21180
21181 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21182 error and not grub_errno.
21183 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21184
21185 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21186
21187 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21188 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21189
21190 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21191
21192 * grub-core/efiemu/i386/pc/cfgtables.c
21193 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21194 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21195 (grub_xnu_unlock): Likewise.
21196 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21197
21198 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21199
21200 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21201 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21202 * grub-core/commands/hashsum.c (aliases): Likewise.
21203 * grub-core/commands/setpci.c (pci_registers): Likewise.
21204 * grub-core/disk/usbms.c (attach_hook): Likewise.
21205 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21206 (zio_checksum_table): Likewise.
21207 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21208 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21209 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21210 * grub-core/lib/relocator.c (leftovers): Likewise.
21211 (extra_blocks): Likewise.
21212 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21213 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21214 (modules_last): Likewise.
21215 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21216 (devices): Likewise.
21217 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21218 (modules_last): Likewise.
21219 * grub-core/normal/auth.c (users): Likewise.
21220 * grub-core/normal/context.c (initial_menu): Likewise.
21221 (current_menu): Likewise.
21222 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21223 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21224 (grub_serial_terminfo_input_template): Likewise.
21225 (grub_serial_terminfo_output_template): Likewise.
21226 (grub_serial_terminfo_input): Likewise.
21227 (grub_serial_terminfo_output): Likewise.
21228 (registered): Likewise.
21229 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21230
21231 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21232
21233 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21234 grub_video_mode_type_t.
21235 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21236 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21237 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21238
21239 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21240
21241 * util/grub-install.in: Correct the x86-64 name as x86_64.
21242
21243 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21244
21245 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21246 initial chunk read from the kernel always includes GRUB's multiboot
21247 header, which is now outside the first sector.
21248
21249 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21250
21251 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21252 cached mmap_size, so that this works correctly when called multiple
21253 times.
21254 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21255
21256 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21257
21258 * docs/grub.texi (Simple configuration): Tidy up formatting.
21259
21260 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21261
21262 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21263 Set-but-not-used variable removed.
21264
21265 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 Workaround yet another IEEE1275 bug.
21268
21269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21270 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21271 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21272 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21273 is set.
21274 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21275 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21276
21277 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21278
21279 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21280 error.
21281
21282 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21283
21284 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21285 empty, since in that case we can only generate either nothing or a
21286 syntactically invalid configuration file.
21287 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21288
21289 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21290
21291 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21292 (Making a GRUB bootable CD-ROM): Likewise.
21293 (Invoking grub-mkrescue): New section.
21294 Reported by: Yann Dirson. Fixes Debian bug #612585.
21295
21296 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21297
21298 * util/grub-install.in: Remove unnecessary brackets from tr
21299 arguments.
21300 * util/grub.d/10_hurd.in: Likewise.
21301 * util/grub.d/10_kfreebsd.in: Likewise.
21302 * util/grub.d/10_linux.in: Likewise.
21303 * util/grub.d/20_linux_xen.in: Likewise.
21304 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21305
21306 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21307
21308 * include/grub/file.h (not_easly_seekable): Rename to ...
21309 (not_easily_seekable): ... this. Update all users.
21310
21311 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21312
21313 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21314 grub-mkrescue.
21315
21316 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 * util/grub-mkimage.c (generate_image): Refuse to create the images
21319 bigger than the actual flash (512K) in Loongson machines. 512K is also
21320 the biggest chip supported by them.
21321
21322 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21323
21324 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21325
21326 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21327
21328 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21329 super_offset field.
21330
21331 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21332
21333 * util/grub-install.in: Ignore install device on platforms
21334 where it doesn't make sense. Always use UUIDs except on pc, efi and
21335 sparc64.
21336 Reported by: Daniel Kahn Gillmor.
21337
21338 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21339
21340 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21341
21342 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21343
21344 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21345 (iterate_real): Don't rely on partition being non-NULL.
21346
21347 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21348
21349 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21350 supported platforms. Put a compile time assert for this rather than
21351 generate a warning with 32-bit shift.
21352
21353 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21354
21355 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21356 logical expression more readable.
21357
21358 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21359
21360 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21361 even if some elements have a name.
21362 Reported by: Alexander GQ Gerasiov.
21363
21364 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21365
21366 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21367 path unreadable if `grub-probe -t abstraction' fails, for example if
21368 memberlist fails on an LVM volume group.
21369 Reported by: Darius Jahandarie.
21370
21371 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21372
21373 * docs/grub.texi (Simple configuration): Document
21374 GRUB_PRELOAD_MODULES.
21375
21376 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21377
21378 * .bzrignore: Remove nonexistent grub-pbkdf2.
21379
21380 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * configure.ac: Bump version to 1.99~rc1.
21383
21384 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21387 for safety.
21388
21389 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21390
21391 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21392 module.
21393
21394 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21395
21396 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21397
21398 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21399
21400 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21401 diskdevid.
21402
21403 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21404
21405 Fix compilation on cygwin.
21406
21407 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21408 -R .drectve on cygwin.
21409 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21410 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21411 (COND_CYGWIN): New condition.
21412 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21413 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21414 not @TARGET_OBJ2ELF@.
21415 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21416 type to determine whether aux is to be used.
21417
21418 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21421 realpath'ed device string.
21422 Handle floppy (somewhat).
21423 Issue error in unknown case rather than garbage.
21424 Reported by: Axel Beckert.
21425
21426 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21427
21428 * util/grub.d/00_header.in (load_video): Handle the case when no video
21429 drivers available.
21430 Thanks to: Axel Beckert.
21431
21432 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21435 variable. Fixes problem on big endian platforms.
21436
21437 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21438
21439 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21440 It doesn't work well there.
21441
21442 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21443
21444 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21445 warning.
21446 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21447 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21448 counter.
21449
21450 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21451
21452 Use alias->path rather than buggy "canon".
21453
21454 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21455 (ofdisk_hash_add): New argument curcan. All users updated.
21456
21457 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21458
21459 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21460
21461 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21462
21463 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21464 loadmask before doing any calculations. Use correct type for offset.
21465 (grub_linux_load64): Likewise.
21466
21467 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21468
21469 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21470 with NULL.
21471 (console_grub_equivalences_unshift): Likewise.
21472 Reported by: Daniel Dehennin.
21473
21474 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21477 (set_env_limn_ro): Likewise.
21478 (GRUB_MOD_INIT): Likewise.
21479 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21480 ARRAY_SIZE while on it.
21481 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21482 * grub-core/normal/context.c (grub_env_export): Move from here ...
21483 * grub-core/kern/env.c (grub_env_export): ... here.
21484 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21485 prefix.
21486 * grub-core/kern/main.c (grub_main): Export root and prefix.
21487 * include/grub/env.h (grub_env_export): Export.
21488 Reported by: Seth Goldberg.
21489
21490 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21491
21492 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21493 Take into account space used by ELF sections and multiboot palette.
21494 Reported by: Grégoire Sutre.
21495
21496 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21497
21498 * BUGS: New file.
21499
21500 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21501
21502 Pass more appropriate video id to Linux.
21503
21504 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21505 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21506 fill have_vga.
21507 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21508 shift params->lfb_size.
21509 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21510
21511 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21514
21515 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21516
21517 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21518 separator and pass bootpath/devid even if only one of them is available.
21519 Reported by: Seth Goldberg.
21520
21521 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21522
21523 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21524 implementations bug on them.
21525
21526 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21527 memory.
21528 (filter_memory_map): Likewise.
21529
21530 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21531
21532 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21533 Reported by: nebuchadnezzar.
21534
21535 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21536
21537 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21538 Reported by: nebuchadnezzar.
21539
21540 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 Submenu default support.
21543
21544 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21545 auto_boot. All users updated.
21546 Declared static.
21547 Handle chosen and default with submenus.
21548 (grub_menu_execute_with_fallback): Declared static.
21549 Don't notify failure if autobooted. Upper level does it.
21550 (menuentry_eq): New function.
21551 (get_entry_number): Use menuentry_eq.
21552 (show_menu): New parameter "autobooted". All users updated.
21553 (grub_show_menu): Likewise.
21554 * include/grub/normal.h (grub_show_menu): Likewise.
21555 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21556 (grub_menu_execute_with_fallback): Likewise.
21557
21558 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21559
21560 * util/grub-mklayout.c (usage): Update help text.
21561
21562 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21563
21564 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21565
21566 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21567
21568 * util/grub-menulst2cfg.c (main): Trim the line.
21569
21570 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21573 (grub_machine_init): Don't check amount of low memory as reportedly
21574 INT 12h can be broken and if low memory is too low we wouldn't have
21575 gotten into grub_machine_init anyway.
21576
21577 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21580 (grub_machine_mmap_iterate): Take low memory into account
21581
21582 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21583
21584 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21585 badfs.
21586 Reported by: TiCPU.
21587
21588 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21589
21590 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21591 members errors.
21592
21593 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21594
21595 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21596 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21597
21598 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21599
21600 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21601 openbsd and netbsd types being in part_bsd module.
21602
21603 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21604
21605 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21606 (_FILE_OFFSET_BITS): Likewise.
21607 Reported by: Seth Goldberg.
21608
21609 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21610
21611 * configure.ac: Check for libdevmapper header.
21612
21613 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21616 avoid aliasing.
21617 (fzap_lookup): Likewise.
21618 (dnode_get): Likewise.
21619 (make_mdn): Likewise.
21620 (zfs_mount): Likewise.
21621 (fzap_iterate): Use temporary pointer to avoid aliasing.
21622 (grub_zfs_read): Likewise.
21623 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21624 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21625 pointers to avoid aliasing.
21626 (grub_cmd_xnu_kernel64): Likewise.
21627 (grub_xnu_load_driver): Likewise.
21628
21629 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21632 aliasing warning.
21633 (grub_cmd_terminal_output): Likewise.
21634 Reported and tested by: Grégoire Sutre.
21635
21636 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21637
21638 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21639 warning.
21640 Reported and tested by: Grégoire Sutre.
21641
21642 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21643
21644 * configure.ac: Do CPU substitution even if it's specified explicitly.
21645 Reported and tested by: Alain Greppin.
21646
21647 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21648
21649 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21650 Reported and tested by: Alain Greppin.
21651
21652 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21653
21654 Satisfy some bison versions need for inttypes.h.
21655
21656 * grub-core/lib/posix_wrap/inttypes.h: New file.
21657 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21658 (int16_t): Likewise.
21659 (int32_t): Likewise.
21660 (int64_t): Likewise.
21661 Reported and tested by: Alain Greppin.
21662
21663 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21664
21665 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21666 Silence spurious warning.
21667 Reported and tested by: Alain Greppin.
21668
21669 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21670
21671 * docs/grub.texi (Support automatic decompression): Update with xz
21672 decompression support.
21673
21674 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21675
21676 Improve loaders' kernel command line handling.
21677
21678 * grub-core/lib/cmdline.c: New file.
21679 * include/grub/lib/cmdline.h: Likewise.
21680 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21681 grub_create_loader_cmdline to create kernel command line.
21682 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21683 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21684 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21685 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21686 (linux): Add lib/cmdline.c on common.
21687
21688 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21689
21690 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21691 inopos might be unaligned.
21692
21693 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21696 endian transformations.
21697 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21698 Based on report by: Doug Nazar.
21699
21700 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21701
21702 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21703 array->members[i].start_sector.
21704 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21705
21706 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21707
21708 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21709 Reported and tested by: Grégoire Sutre.
21710
21711 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21712
21713 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21714 avoid causing test failures by clearing the screen.
21715
21716 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21717
21718 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21719 Fix prefix check to handle the case where dir ends with a slash
21720 (most significantly, "/" itself).
21721 Reported by: Michael Vogt.
21722
21723 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21724
21725 Run terminfo_cls on initing terminfo output to clear the screen and
21726 move the cursor to (0,0).
21727
21728 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21729 Call grub_terminfo_output_init.
21730 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21731 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21732 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21733
21734 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21737 only when needed.
21738
21739 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21740
21741 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21742 CTRL.
21743
21744 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21745
21746 The E820 type 5 is BADRAM, not EXEC_CODE.
21747
21748 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21749 (GRUB_E820_BADRAM): New define.
21750 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21751 into reserved. Propagate BADRAM.
21752 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21753 (GRUB_E820_BADRAM): New define.
21754
21755 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21756
21757 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21758 Ignore the memory post-4G.
21759 (grub_relocator_firmware_alloc_region): Additional debug statement.
21760
21761 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21762
21763 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21764 names.
21765 Reported by: David Pravec.
21766
21767 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21768
21769 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21770 BIOSes.
21771
21772 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21773
21774 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21775 Prevent overflow.
21776 (grub_reed_solomon_recover): Likewise.
21777
21778 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21779
21780 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21781
21782 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21783
21784 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21785 variable.
21786
21787 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21788
21789 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21790 descriptions of extract_legacy_entries_source and
21791 extract_legacy_entries_configfile.
21792 Reported by: Seung Soo, Ha.
21793
21794 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21795
21796 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21797 on devices that do not implement function 0.
21798
21799 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21800
21801 * grub-core/fs/hfsplus.c: Make parent unsigned.
21802 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21803 overflows.
21804 (grub_hfsplus_cmp_extkey): Likewise
21805
21806 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21807
21808 * util/grub-install.in: Correctly use bootloader_id and not
21809 GRUB_DISTRIBUTOR on efibootmgr line.
21810
21811 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21812
21813 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21814
21815 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21816
21817 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21818 Xen and reorder menu item wording to make it clearer that this entry
21819 will launch Xen. Print separate messages when loading Xen and
21820 Linux.
21821
21822 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21823
21824 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21825 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21826 loop in case of incorrect amiga partmap.
21827
21828 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21829
21830 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21831 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21832 Reported by:EHeM.
21833
21834 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21835
21836 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21837 spurious warning.
21838 Reported by: crocket
21839
21840 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21841
21842 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21843 Preload EFIemu.
21844 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21845
21846 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21847
21848 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21849 is loaded
21850 (grub_cmd_xnu_kextdir): Likewise.
21851 (grub_cmd_xnu_splash): Likewise.
21852
21853 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21854
21855 Avoid using Reed-Solomon with 0 redundancy.
21856
21857 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21858 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21859 or 0 redundancy.
21860 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21861 (grub_reed_solomon_recover): Likewise.
21862
21863 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 Don't use disk subsystem in freebsd_boot.
21866
21867 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21868 (freebsd_biosdev): Likewise.
21869 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21870 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21871
21872 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21873
21874 Handling of files of unknown size is currently limited. They can't be
21875 used e.g. for initrd or modules. Moreover gzip handling of not
21876 easily seekable files is buggy. Disable unknown file size for now. May
21877 be inefficient but works.
21878
21879 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21880 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21881
21882 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21883
21884 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21885 floppy probe.
21886
21887 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21888
21889 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21890
21891 2010-12-25 Shea Levy <shlevy>
21892
21893 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21894
21895 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21896
21897 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21898 Windows Server 2008.
21899 Reported by: Devin Giddings.
21900
21901 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21902
21903 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21904 writing an error message because of async power management.
21905 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21906 (grub_reboot): Likewise.
21907
21908 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21909
21910 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21911 keep unit tests from failing when they shouldn't.
21912
21913 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21914
21915 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21916 previous patch increased the size of the RS code by 20 bytes (at
21917 least with gcc-4.4), so increase this by 20 bytes to match.
21918 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21919
21920 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21921
21922 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21923 scratch area. Make sure to initialise chosen in standalone mode as
21924 well as non-standalone.
21925 Reported by: Robert Hooker and Andy Whitcroft.
21926 Tested by: Andy Whitcroft.
21927
21928 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21929
21930 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21931 constructing a new unescaped string and passing it to grub_xputs in
21932 one go, rather than passing characters to grub_printf one at a time.
21933
21934 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21935
21936 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21937 initialising utf16.
21938
21939 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21942 comment. Add an extra layer of quotation, requiring the output of
21943 this function to be used in a printf format string.
21944 (gettext_printf): New function.
21945 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21946 Extract translatable strings from here-documents and use a temporary
21947 variable instead, so that xgettext can find them.
21948 * util/grub.d/10_kfreebsd.in: Likewise.
21949 * util/grub.d/10_linux.in: Likewise.
21950 * util/grub.d/20_linux_xen.in: Likewise.
21951
21952 * po/grub.d.sed: New file.
21953 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21954 arguments. Set c-format flags on all strings extracted from
21955 util/grub.d/ (xgettext refuses to include these itself for strings
21956 it extracted from a shell file, but these really are c-format).
21957
21958 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21959
21960 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21961 Avoid next pointing to nowhere.
21962
21963 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21964
21965 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21966 rather than assuming than rootblock is exactly in the middle.
21967 (grub_affs_label): Likewise.
21968
21969 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21970
21971 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21972 reserved_first_sector to 0.
21973 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21974 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21975 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21976
21977 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21978
21979 Fix handling of UTF-16 UDF labels.
21980
21981 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21982 (read_string): .. here.
21983 (grub_udf_label): Use read_string.
21984
21985 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21986
21987 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21988 editor under argument scope.
21989 Reported by: Jordan Uggla
21990
21991 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21992
21993 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21994
21995 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21996
21997 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21998 line, and other keys scroll an entire page (previous handling was
21999 for \r and \n to scroll a page and other keys to scroll two lines).
22000
22001 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
22002
22003 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22004 Set ptrdest to correct get_physical_target_address rather than
22005 incorrect get_virtual_current_address.
22006
22007 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
22008
22009 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22010 correct cat to grub_uint8_t * rather than grub_uint32_t *.
22011
22012 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22013
22014 * .bzrignore: Ignore grub-core/rs_decoder.S.
22015
22016 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
22017
22018 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22019 .mo/.mo.gz opening sequence to ...
22020 (grub_mofile_open_lang): ... here.
22021 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22022 * util/grub.d/00_header.in (grub_lang): Include country part of
22023 locale.
22024 Reported by: Mario Limonciello.
22025
22026 2010-12-09 Robert Millan <rmh@gnu.org>
22027
22028 * NEWS: Document addition of ZFS support.
22029
22030 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22031
22032 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22033 rather than `/ 2', as the latter requires -Wa,--divide which would
22034 require bumping our minimum binutils version.
22035
22036 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22037
22038 * util/grub-script-check.c (main): Print script line number on
22039 error.
22040
22041 2010-12-01 Robert Millan <rmh@gnu.org>
22042
22043 * grub-core/fs/zfs/zfs.c: New file.
22044 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22045 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22046 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22047 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22048
22049 * include/grub/zfs/dmu.h: Likewise.
22050 * include/grub/zfs/dmu_objset.h: Likewise.
22051 * include/grub/zfs/dnode.h: Likewise.
22052 * include/grub/zfs/dsl_dataset.h: Likewise.
22053 * include/grub/zfs/dsl_dir.h: Likewise.
22054 * include/grub/zfs/sa_impl.h: Likewise.
22055 * include/grub/zfs/spa.h: Likewise.
22056 * include/grub/zfs/uberblock_impl.h: Likewise.
22057 * include/grub/zfs/vdev_impl.h: Likewise.
22058 * include/grub/zfs/zap_impl.h: Likewise.
22059 * include/grub/zfs/zap_leaf.h: Likewise.
22060 * include/grub/zfs/zfs.h: Likewise.
22061 * include/grub/zfs/zfs_acl.h: Likewise.
22062 * include/grub/zfs/zfs_znode.h: Likewise.
22063 * include/grub/zfs/zil.h: Likewise.
22064 * include/grub/zfs/zio.h: Likewise.
22065 * include/grub/zfs/zio_checksum.h: Likewise.
22066
22067 * Makefile.util.def: Build ZFS into libgrubmods.
22068 * grub-core/Makefile.core.def: Build zfs.mod.
22069
22070 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22071
22072 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22073 variable.
22074 * grub-core/commands/wildcard.c (match_files): Likewise.
22075
22076 2010-11-30 Robert Millan <rmh@gnu.org>
22077
22078 * grub-core/loader/i386/bsd.c
22079 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22080 whether kernel is loaded using grub_loader_is_loaded(), rather
22081 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22082 certain error conditions.
22083
22084 2010-11-30 Robert Millan <rmh@gnu.org>
22085
22086 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22087 (grub_cmd_echo): Call grub_refresh() after printing a message.
22088
22089 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22090
22091 Avoid using tricks for initialising endian variables.
22092
22093 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22094 Make const.
22095 (GRUB_MOD_INIT): Don't byte-swap.
22096 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22097 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22098 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22099 (grub_swap_bytes32_compile_time): Likewise.
22100 (grub_cpu_to_le32_compile_time): Likewise.
22101 (grub_cpu_to_le16_compile_time): Likewise.
22102
22103 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22104
22105 * util/grub-setup.c (setup): Stop recommending --force. People who
22106 understand the dangers of blocklists are able to find this option
22107 anyway and the ones who don't shouldn't use it anyway.
22108
22109 2010-11-26 Robert Millan <rmh@gnu.org>
22110
22111 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22112 Update all users.
22113
22114 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22115
22116 Fix LVM-on-RAID probing.
22117
22118 * util/grub-probe.c (probe): Remember which disk was detected as
22119 RAID (perhaps an LVM physical volume). Use that disk's raidname
22120 rather than that of the top-level disk.
22121
22122 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22123
22124 Fix cmdline argument quotes for setparams command of menuentry
22125 definitions.
22126
22127 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22128 quotes for arguments.
22129 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22130 grub_strchrsub function instead.
22131
22132 * include/grub/misc.h (grub_strchrsub): New function.
22133
22134 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22135
22136 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22137 effort by skipping "." and ".." entries up-front.
22138 Suggested by: Michael Lazarev.
22139
22140 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22141
22142 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22143 ldflags to ldadd, to fix link line ordering.
22144 (none_decompress): Likewise.
22145
22146 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22147
22148 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22149 platforms.
22150 (grub-emu-lite): Remove kern/emu/cache.S.
22151
22152 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22153
22154 * util/deviceiter.c (compare_devices): If the by-id link for a
22155 device couldn't be resolved, fall back to sorting by the by-id link
22156 rather than segfaulting.
22157 Reported and tested by: Daniel Mierswa.
22158
22159 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22160
22161 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22162 ldflags, to fix link line ordering.
22163
22164 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22165
22166 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22167 linkers are picky about this.
22168
22169 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22170
22171 * grub-core/Makefile.am (command.lst): Adjust sed expression
22172 ordering so that extended and priority commands aren't treated as
22173 ordinary commands.
22174
22175 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22176
22177 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22178 Remove byte-swapping function calls, which are not valid in
22179 structure initialisers.
22180 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22181 non-const.
22182 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22183 grub_gpt_partition_type_bios_boot.
22184
22185 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22186
22187 Fix test program build on GNU/kFreeBSD.
22188
22189 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22190 $(LIBNVPAIR)' library dependencies.
22191
22192 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22193
22194 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22195
22196 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22197
22198 * util/grub-install.in: Remove excessive quoting that broke
22199 installations to RAID devices.
22200
22201 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22202
22203 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22204 bootloader version instead of 0.
22205
22206 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22207
22208 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22209 warning.
22210
22211 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22212
22213 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22214 retrieve the metadat sector if size isn't known.
22215 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22216
22217 2010-11-18 Robert Millan <rmh@gnu.org>
22218
22219 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22220 with grub_memcmp().
22221
22222 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22223
22224 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22225 arrow.
22226 Reported by: Jordan Uggla.
22227
22228 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22229
22230 Make better UTF compliant.
22231
22232 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22233 sequences as incorrect.
22234 (grub_is_valid_utf8): Likewise.
22235 (grub_utf8_to_ucs4): Likewise.
22236 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22237 (grub_ucs4_to_utf8_alloc): Likewise.
22238 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22239
22240 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22241
22242 Make legacy_source behave like source.
22243
22244 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22245 grub_show_menu.
22246 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22247
22248 2010-11-16 Colin Watson <cjwatson@debian.org>
22249
22250 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22251 (-Wunused implies -Wunused-parameter, but not vice versa).
22252
22253 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22254
22255 * configure.ac: Make error messages less confusing by testing for
22256 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22257 accepted, but produces a diagnostic if something else is wrong).
22258
22259 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22262 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22263 (now unused).
22264 (grub_keyboard_controller_init)
22265 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22266 read the initial state since controller isn't inited yet.
22267
22268 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22271 allocate_regbeg may need to create new chunk header.
22272
22273 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 Fix quoting in legacy parser.
22276
22277 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22278 single quotes.
22279 (grub_legacy_parse): Likewise.
22280 Reported by: Jordan Uggla.
22281 Tested by: Jordan Uggla.
22282
22283 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22284
22285 Don't add -lgcc on i386 and x86_64.
22286
22287 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22288 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22289 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22290
22291 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22292
22293 * configure.ac: Add -Wno-trampolines when supported.
22294
22295 2010-11-14 Modestas Vainius <modax@debian.org>
22296
22297 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22298 fakeraid.
22299
22300 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22301
22302 Add generic logical block size support for UDF.
22303
22304 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22305 (GRUB_UDF_BLKSZ): Removed.
22306 (struct grub_udf_data): New field "lbshift" to hold the logical block
22307 size of the file system in log2 format. All users updated.
22308 (sblocklist): Change type to unsigned.
22309 (grub_udf_mount): Change type of "sblklist" to unsigned.
22310 Move AVDP search before VRS recognition, because the latter requires
22311 knowledge of the logical block size, which is detected during the
22312 former.
22313 Detect and validate logical block size during AVDP search, adding
22314 support for block sizes 512, 1024 and 4096.
22315 Make VRS recognition independent of block size.
22316
22317 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22318
22319 Properly handle deleted files on UDF.
22320
22321 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22322 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22323 set.
22324
22325 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22326
22327 Support reading files larger than 2 GiB.
22328
22329 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22330 "offset" to grub_off_t.
22331 (grub_udf_read_file): Likewise for parameter "pos".
22332
22333 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22334
22335 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22336 unavailable.
22337 (Simple configuration): Refer to Changes from GRUB Legacy about
22338 save_env availability.
22339
22340 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * util/grub-install.in: Ignore empty partition table detection
22343 instead of trying to include part_ module.
22344
22345 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22346
22347 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22348 LVM on RAID support.
22349
22350 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22351
22352 Properly define WORDS_BIGENDIAN in wrapped environments.
22353
22354 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22355 definition.
22356 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22357
22358 Reported by: Manoel Rebelo Abranches.
22359 Tested by: Manoel Rebelo Abranches.
22360
22361 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22362
22363 * util/grub-mkconfig.in: Fix quoting.
22364
22365 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 Support big ext2 files.
22368
22369 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22370 (grub_ext2_read_block): Support triple indirect blocks.
22371 (grub_ext2_read_file): Use 64-bit types and read size_high.
22372 (grub_ext2_open): Read size_high.
22373 Reported by: Ximin Luo.
22374 Tested by: Manoel Rebelo Abranches.
22375
22376 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * util/grub-install.in: Handle filenames containing spaces.
22379 Reported by: Jordan Uggla.
22380 Tested by: Jordan Uggla.
22381
22382 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22383
22384 * util/grub-mkconfig.in (grub_script_check): New variable.
22385 Use grub_script_check instead of grub-script-check.
22386 Reported by: Barry Jackson.
22387
22388 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22389
22390 * docs/grub.texi (menu): Correct the order.
22391 Reported by: D. Hugh Redelmeier.
22392
22393 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22394
22395 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22396 jump.
22397
22398 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22399
22400 * include/grub/elfload.h (grub_elf32_size): New parameter.
22401 All users updated.
22402 Return maximum segments alignment.
22403 (grub_elf64_size): Likewise.
22404 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22405 Return maximum segments alignment.
22406 (grub_elf64_size): Likewise.
22407 * grub-core/loader/powerpc/ieee1275/linux.c:
22408 (grub_linux_claimmap_iterate): New function. Uses the
22409 "available" property in the "memory" node for memory allocation
22410 for kernel in the PowerPC loader.
22411 (grub_linux_load32): Correctly find linux entry point offset.
22412 (grub_linux_load64): Likewise.
22413
22414 2010-11-07 Robert Millan <rmh@gnu.org>
22415
22416 On mips-yeeloong, build with -march=loongson2f when this flag is
22417 available (GCC >= 4.4).
22418 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22419 `-march=mips3'.
22420 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22421 or otherwise add -march=mips3.
22422
22423 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22424
22425 Suppress shell expansion on echo '*' and echo "*" like cases.
22426 Reported by: Jordan Uggla.
22427
22428 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22429 string arguments before shell expansion.
22430 * tests/grub_cmd_echo.in: New testcases.
22431
22432 2010-11-07 Robert Millan <rmh@gnu.org>
22433
22434 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22435 transition.
22436
22437 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22438
22439 * grub-core/kern/emu/hostdisk.c
22440 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22441
22442 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22443
22444 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22445 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22446 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22447
22448 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22449
22450 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22451
22452 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22453
22454 * util/grub-install.in: Replace useless recomendation to pass
22455 --modules with a recomendation to report a bug.
22456
22457 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22458
22459 Properly register serial terminfo.
22460 Reported by: Jordan Uggla
22461
22462 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22463 const.
22464 (grub_serial_terminfo_output_template): Likewise.
22465 (grub_cmd_serial): Register "serial" with terminfo.
22466 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22467 grub_serial_terminfo_output.
22468
22469 2010-11-05 Robert Millan <rmh@gnu.org>
22470
22471 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22472 needed).
22473
22474 2010-11-05 Robert Millan <rmh@gnu.org>
22475
22476 On Yeeloong, pass machine type information to Linux.
22477
22478 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22479 (LOONGSON_MACHTYPE): New macro, set to
22480 "machtype=lemote-yeeloong-2f-8.9inches".
22481 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22482 additional argument to Linux.
22483
22484 2010-11-04 Robert Millan <rmh@gnu.org>
22485
22486 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22487 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22488 (its SATA disks are detected as slaveless IDE master drives on
22489 kFreeBSD).
22490 Reported by Carsten Aulbert.
22491
22492 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22493
22494 * util/bin2h.c (main): Fix spelling error in generated output.
22495
22496 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22497
22498 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22499
22500 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22501
22502 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22503 vga= option is supplied.
22504
22505 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22506
22507 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22508 * util/grub.d/10_kfreebsd.in: Likewise.
22509 * util/grub.d/10_linux.in: Likewise.
22510 * util/grub.d/20_linux_xen.in: Likewise.
22511
22512 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22513
22514 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22515 argument as an argument to no-argument option.
22516
22517 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22518
22519 * util/grub.d/10_linux.in: Add missing load_video with explicit
22520 GRUB_GFXPAYLOAD_LINUX.
22521
22522 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22523
22524 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22525
22526 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22527
22528 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22529 elements with invlid index.
22530 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22531 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22532 members.
22533 * include/grub/raid.h (grub_raid_member): New struct.
22534 (grub_raid_array): Transform devices and start_sector into usage of
22535 grub_raid_member. All users updated
22536 (allocated_devs): New member.
22537
22538 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22539
22540 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22541 is modified
22542
22543 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22544
22545 NetBSD build fix for getline function conflict from gnulib.
22546
22547 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22548 components that depend on gnulib headers.
22549 (libgrubmods.a): Renamed from earlier libgrub.a.
22550 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22551
22552 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22553
22554 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22555 install rather than creating a broken install.
22556
22557 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22558
22559 * util/grub-setup.c (argp): Remove misleading example of installing to
22560 a partition.
22561
22562 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22563
22564 * util/grub-setup.c (setup): Clarify the error message.
22565
22566 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22567
22568 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22569
22570 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22571
22572 * grub-core/kern/emu/misc.c
22573 (grub_make_system_path_relative_to_its_root)
22574 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22575
22576 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22577
22578 * grub-core/kern/emu/misc.c
22579 (grub_make_system_path_relative_to_its_root): Revert r2882.
22580
22581 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22584 useless field head. All users updated.
22585 (free_subchunk): Correct handling of IN_REGION subchunk.
22586
22587 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22588
22589 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22590 (Supported kernels): Likewise.
22591
22592 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22593
22594 Make mktemp invocations portable.
22595
22596 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22597 exit if mktemp fails.
22598 * tests/grub_script_blockarg.in: Likewise.
22599 * tests/partmap_test.in: Likewise.
22600 * tests/util/grub-shell-tester.in: Likewise.
22601 * tests/util/grub-shell.in: Likewise.
22602 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22603 * Makefile.am: Likewise, and chain shell commands with `&&'
22604 instead of ';'.
22605 * util/grub-mkrescue.in: Use the same explicit template as above, and
22606 exit if mktemp fails.
22607
22608 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22609
22610 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22611 Linux kernel, reported by Dennis Schridde.
22612
22613 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22614
22615 * grub-core/normal/auth.c (grub_auth_check_authentication):
22616 Set-but-not-used variable removed.
22617
22618 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22619
22620 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22621 32-bit linux protocol.
22622
22623 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22624
22625 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22626 cursor shape for sanity.
22627
22628 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22629
22630 * docs/grub.texi (Installation): Document buggy BIOS install.
22631
22632 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22633
22634 * docs/grub.texi (Installation): Indent.
22635
22636 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22637
22638 * util/grub-setup.c (setup): New parameter allow_floppy.
22639 (arguments): New member allow_floppy.
22640 (argp_parser): Handle --allow-floppy.
22641 (main): Pass allow_floppy.
22642 * util/grub-install.in: New option --allow-floppy passed though to
22643 grub-setup.
22644
22645 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22646
22647 * util/grub-install.in: Handle partitionless disks.
22648
22649 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22650
22651 * util/grub-setup.c (setup): Don't clean blocklists before readability
22652 verfification.
22653
22654 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22655
22656 * docs/grub.texi (Installation): Document embedding zone. Remove
22657 obsolete grub-install example.
22658
22659 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22660
22661 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22662 Set-but-not-used variable ifdef'ed.
22663 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22664 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22665 variable removed.
22666 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22667 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22668 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22669 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22670 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22671 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22672 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22673 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22674 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22675 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22676 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22677 Likewise.
22678
22679 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22680
22681 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22682 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22683 enum value.
22684
22685 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22686
22687 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22688 synonym to _S5_. Needed for some DSDTs.
22689
22690 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 Userspace ACPI parser debugging.
22693
22694 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22695 headers and add relevant defines. Don't include standard headers.
22696 (main) [GRUB_DSDT_TEST]: New function.
22697 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22698 Don't declare functions.
22699
22700 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 Remove dead grub_efi_mm_fini.
22703
22704 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22705 (ALLOCATED_PAGES_SIZE): Likewise.
22706 (MAX_ALLOCATED_PAGES): Likewise.
22707 (allocated_pages): Likewise.
22708 (grub_efi_allocate_pages): Don't record allocated pages.
22709 (grub_efi_free_pages): Likewise.
22710 (grub_efi_mm_init): Likewise.
22711 (grub_efi_mm_fini): Removed.
22712
22713 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22714
22715 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22716 (grub_efi_mm_init): Take into account the memory map size increase.
22717
22718 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22719
22720 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22721 (serial_hw_put): Wait based on real time rather than port reads. Don't
22722 roken ports.
22723 * include/grub/serial.h (grub_serial_port): New field broken.
22724
22725 2010-10-16 Robert Millan <rmh@gnu.org>
22726
22727 * grub-core/kern/emu/misc.c
22728 (grub_make_system_path_relative_to_its_root): Fix premature return
22729 when processing non-root ZFS filesystems.
22730 Reported by Sergio Talens-Oliag.
22731
22732 2010-10-15 Robert Millan <rmh@gnu.org>
22733
22734 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22735 guarantee compressed ones are processed first.
22736
22737 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22738
22739 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22740 grub_efiemu_autocore.
22741
22742 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22743
22744 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22745 rather than 0x1b.
22746 (grub_console_getkey): Use correct jae opcode rather than ja.
22747
22748 2010-10-12 Robert Millan <rmh@gnu.org>
22749
22750 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22751 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22752 variable. All references updated.
22753
22754 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22755
22756 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 Correctly distinguish mdraid flavours.
22759
22760 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22761 (insert_array): New argument raid.
22762 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22763 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22764 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22765
22766 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22767
22768 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22769 handling of special keys.
22770
22771 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22772
22773 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22774 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22775
22776 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22777
22778 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22779 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22780 users updated.
22781 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22782 Use right endpoint when querying descriptor.
22783
22784 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22785
22786 Clear out 0x80 color bit on EFI.
22787 Tested by: decoder
22788 Reported by: decoder and meta tech.
22789
22790 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22791 (grub_console_setcolorstate): Clear out 0x80 bit.
22792 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22793 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22794 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22795
22796 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22797
22798 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22799 Set to "auto".
22800
22801 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22802
22803 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22804 mo_file after freeing.
22805
22806 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22807
22808 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22809
22810 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22811
22812 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22813 flags.
22814
22815 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22818 usage.
22819
22820 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22823
22824 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22825 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22826 and terminfo.h when needed.
22827 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22828 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22829 (terminfo): Enable only on terminfokernel.
22830 (extcmd): Likewise.
22831 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22832 * include/grub/lib/arg.h: Likewise.
22833 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22834 incorrect usage of ->.
22835
22836 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22837
22838 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22839 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22840
22841 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22842
22843 Fix coreboot compilation.
22844
22845 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22846 Take VBE info into account even if only text is supported.
22847 (fill_vbe_info): Take into account the case when only VGA text
22848 is supported.
22849 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22850 on coreboot, multiboot and qemu.
22851
22852 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22853
22854 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22855 debug messages.
22856 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22857
22858 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22859
22860 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22861 parameters.
22862
22863 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22864
22865 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22866 if they were BSD-style.
22867
22868 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22869
22870 * grub-core/boot/i386/pc/lnxboot.S: Replace
22871 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22872 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22873
22874 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22875
22876 Write embedding zone using Reed-Solomon.
22877
22878 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22879 * grub-core/Makefile.am (rs_decoder.S): New target.
22880 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22881 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22882 (multiboot): Move to RS part.
22883 (post_reed_solomon): New label.
22884 (grub_boot_drive): Move to non-RS part since it's modified in memory
22885 on boot.
22886 Include rs_decoder.S.
22887 * grub-core/lib/reed_solomon.c: New file.
22888 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22889 New definition.
22890 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22891 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22892 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22893 * include/grub/partition.h (grub_partition_map): Change prototype of
22894 embed to allow returning additional sectors.
22895 * include/grub/reed_solomon.h: New file.
22896 * util/grub-setup.c (setup): Handle Reed-Solomon.
22897
22898 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22899
22900 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22901 i386 and x86-64 definedness tests.
22902
22903 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22904
22905 Fix generation of kernel_syms.lst
22906
22907 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22908 ASM_PREFIX
22909
22910 2010-09-26 Robert Millan <rmh@gnu.org>
22911
22912 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22913
22914 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22915 the pool is an array of devices, iterate through it and return the
22916 first device that passes a stat() test (instead of blindly returning
22917 the first one).
22918
22919 2010-09-26 Robert Millan <rmh@gnu.org>
22920
22921 Build fixes for GNU/kFreeBSD.
22922
22923 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22924 to programs that require ZFS conversion.
22925 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22926 kernels that don't have FLOPPY_MAJOR.
22927
22928 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22929
22930 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22931
22932 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22933
22934 Fix grub-emu build.
22935
22936 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22937 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22938 mdraid09 and mdraid1x.
22939
22940 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22941
22942 Re-enable grub-extras.
22943
22944 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22945 avoid confusing Automake. Run autogen only twice, once for the top
22946 level and once for grub-core. Add Makefile.util.def and
22947 Makefile.core.def from extra modules to the appropriate autogen
22948 invocations. If Makefile.common exists in an extra module, include
22949 it in both Makefile.util.am and grub-core/Makefile.core.am;
22950 similarly, include any Makefile.util.common file in Makefile.util.am
22951 and any Makefile.core.common file in grub-core/Makefile.core.am.
22952 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22953 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22954 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22955 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22956
22957 * gentpl.py (gvar_add): Turn GVARS into a set.
22958 (global_variable_initializers): Sort global variables on output.
22959 (vars_init): New function.
22960 (first_time): Likewise.
22961 (library): Ensure that non-global variable initialisations are
22962 emitted before the first time we emit code for a library block.
22963 Append to variables rather than setting them. Only emit
22964 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22965 each conditional path.
22966 (program): installdir() emits an Autogen macro, so must be passed to
22967 var_add rather than gvar_add.
22968 (data): Likewise.
22969 (script): Likewise.
22970 (rules): New function, centralising handling for different target
22971 types. Set up Guile association lists for first_time and vars_init,
22972 and send most output to a diversion so that variable initialisations
22973 can be emitted first.
22974 (module_rules): Use new rules function.
22975 (kernel_rules): Likewise.
22976 (image_rules): Likewise.
22977 (library_rules): Likewise.
22978 (program_rules): Likewise.
22979 (script_rules): Likewise.
22980 (data_rules): Likewise.
22981
22982 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22983
22984 * .bzrignore: Add contrib and grub-core/contrib. Remove
22985 grub-core/Makefile.gcry.am.
22986
22987 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22988
22989 * grub-core/lib/LzFind.c: Add missing include.
22990 * grub-core/lib/LzmaEnc.c: Likewise.
22991 * grub-core/script/lexer.c: Likewise.
22992 * grub-core/script/yylex.l: Likewise.
22993 * util/grub-macho2img.c: Likewise.
22994 * util/grub-menulst2cfg.c: Likewise.
22995 * util/grub-mklayout.c: Likewise.
22996 * util/grub-mkpasswd-pbkdf2.c
22997 * util/grub-mkrelpath.c: Likewise.
22998 * util/resolve.c: Likewise.
22999
23000 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
23001
23002 * Makefile.util.def (example_unit_test): Add
23003 grub-core/gnulib/libgnu.a.
23004
23005 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
23006
23007 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23008
23009 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23010
23011 Support xz compression on yeeloong.
23012
23013 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23014 * configure.ac: Check for LZMA.
23015 * grub-core/Makefile.core.def (xz_decompress): New target.
23016 (none_decompress): Likewise.
23017 * grub-core/boot/decompressor/minilib.c: New file.
23018 * grub-core/boot/decompressor/none.c: Likewise.
23019 * grub-core/boot/decompressor/xz.c: Likewise.
23020 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23021 * grub-core/kern/mips/cache_flush.S: Likewise.
23022 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23023 * grub-core/kern/mips/startup.S: Move first stage to ...
23024 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23025 nomacro.
23026 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23027 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23028 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23029 Allocate statically.
23030 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23031 Allocate statically or use scratch. Don't check CRC32.
23032 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23033 Allocate statically. Don't check CRC32.
23034 * include/grub/decompressor.h: New file.
23035 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23036 Removed.
23037 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23038 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23039 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23040 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23041 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23042 * util/grub-mkimage.c (grub_compression_t): New type.
23043 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23044 (image_target_desc): New field default_compression.
23045 (image_targets): Adjust yeeloong targets.
23046 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23047 (compress_kernel): New parameter comp.
23048 (generate_image): Likewise. Handle new compression case.
23049 (options): New option --compression
23050 (help): Likewise.
23051 (main): Handle new option.
23052
23053 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23054
23055 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23056
23057 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23058
23059 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23060 typo in __i386__ conditional.
23061
23062 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23063
23064 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23065 include.
23066
23067 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23068
23069 Implement EFI and ACPI multiboot2 extensions.
23070
23071 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23072 new tags as supported.
23073 (acpiv2_size): New function.
23074 (grub_multiboot_get_mbi_size): Take new tags into account.
23075 (grub_multiboot_make_mbi): Add new tags.
23076 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23077
23078 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23079
23080 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23081 Added missing configuration of USB device.
23082
23083 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23084
23085 * grub-core/normal/menu_entry.c (run): Make sure we always return
23086 a value.
23087
23088 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23089
23090 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23091 NumberOfPages is UINT64 according to the UEFI specification, not
23092 UINTN. Fix printf format.
23093
23094 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23095
23096 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23097 `err' to grub_usb_err_t.
23098 Reported and tested by: KESHAV P.R.
23099
23100 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23101
23102 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23103 tpart non-const, so that we can assign to it. (Since this is a
23104 typedef, the constness refers to the pointer rather than what it
23105 points to.)
23106
23107 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23108
23109 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23110 $(top_srcdir)/grub-core/gnulib as well as
23111 $(top_builddir)/grub-core/gnulib.
23112 Reported by: KESHAV P.R.
23113
23114 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23115
23116 * util/grub-install.in: Fix the bootloader ID option to be
23117 consistently --bootloader-id, not --bootloader_id.
23118 Reported by: KESHAV P.R.
23119
23120 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23121
23122 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23123 check hash checksum." consistently translatable.
23124
23125 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23126
23127 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23128 $(top_builddir).
23129
23130 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23131
23132 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23133 (GRUB_MOD_INIT): Register sha1sum command.
23134 (GRUB_MOD_FINI): Unregister sha1sum command.
23135
23136 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23137
23138 Keep boot and grub directory names in sync with utils scripts
23139
23140 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23141 * config.h.in: Add previous macros.
23142 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23143 * util/grub-install.in: Use $bootdir and $grubdir variables.
23144
23145 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23146
23147 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23148 convert partition names to disk names if the new `convert' parameter
23149 is set.
23150 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23151 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23152 disk in its own right. This can happen with Xen disk images.
23153
23154 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23155
23156 * util/grub-editenv.c: Update strings to avoid warnings when generating
23157 grub.pot file.
23158 * util/grub-setup.c: Likewise.
23159
23160 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23161
23162 * configure.ac: Change version to 1.99~beta0.
23163
23164 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23165
23166 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23167 Add BADRAM.
23168 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23169 Likewise.
23170 * include/multiboot.h: Resynced with specification.
23171 * include/multiboot2.h: Likewise.
23172
23173 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23174
23175 Fix po directory handling.
23176
23177 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23178 * grub-core/gnulib/Makefile.am: Import gettext module.
23179 * m4/gnulib-cache.m4: Likewise.
23180 * m4/gnulib-comp.m4: Likewise.
23181 * m4/gettext.m4: New file, from gnulib.
23182 * m4/glibc2.m4: Likewise.
23183 * m4/iconv.m4: Likewise.
23184 * m4/intdiv0.m4: Likewise.
23185 * m4/intl.m4: Likewise.
23186 * m4/intldir.m4: Likewise.
23187 * m4/intlmacosx.m4: Likewise.
23188 * m4/intmax.m4: Likewise.
23189 * m4/inttypes-pri.m4: Likewise.
23190 * m4/lcmessage.m4: Likewise.
23191 * m4/lib-ld.m4: Likewise.
23192 * m4/lib-link.m4: Likewise.
23193 * m4/lib-prefix.m4: Likewise.
23194 * m4/lock.m4: Likewise.
23195 * m4/nls.m4: Likewise.
23196 * m4/po.m4: Likewise.
23197 * m4/printf-posix.m4: Likewise.
23198 * m4/progtest.m4: Likewise.
23199 * m4/threadlib.m4: Likewise.
23200 * m4/uintmax_t.m4: Likewise.
23201 * m4/visibility.m4: Likewise.
23202 * po/Makefile.am: Remove.
23203 * po/Makefile.in.in: New file, from gettext.
23204 ($(DOMAIN).pot-update): Support POTFILES-shell.
23205 * po/Makevars: New file.
23206 * po/POTFILES-shell: Rename to ...
23207 * po/POTFILES-shell.in: ... this. Update.
23208 * po/POTFILES: Rename to ...
23209 * po/POTFILES.in: ... this. Update.
23210 * po/Rules-quot: New file, from gettext.
23211 * po/boldquot.sed: Likewise.
23212 * po/en@boldquot.header: Likewise.
23213 * po/en@quot.header: Likewise.
23214 * po/insert-header.sin: Likewise.
23215 * po/quot.sed: Likewise.
23216 * po/remove-potcdate.sin: Likewise.
23217
23218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23219
23220 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23221
23222 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23223
23224 * util/grub.d/20_linux_xen.in: Use submenus.
23225
23226 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23227
23228 Support submenus.
23229
23230 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23231 parameter submenu. All users updated.
23232 * grub-core/normal/main.c (free_menu): Rename to ...
23233 (grub_normal_free_menu): ... this. Made global.
23234 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23235 if requested.
23236 * grub-core/normal/menu_entry.c (screen): New field submenu.
23237 (make_screen): Set submenu.
23238 (run): Open new context if requested.
23239 * include/grub/menu.h (grub_menu_entry): New field submenu.
23240 * include/grub/normal.h (grub_normal_free_menu): New proto.
23241
23242 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23243
23244 Menu entries extractor.
23245
23246 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23247 variants.
23248 (GRUB_MOD_INIT): Register new variants.
23249 (GRUB_MOD_FINI): Unregister new variants.
23250 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23251 into grub_cmd_legacy_source.
23252 (grub_cmd_legacy_source): Implement extractor variants.
23253 (GRUB_MOD_INIT): Register new variants.
23254 (GRUB_MOD_FINI): Unregister new variants.
23255 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23256 as an extractor.
23257 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23258 search as an extractor.
23259 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23260 test as an extractor.
23261 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23262 as an extractor.
23263 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23264 (grub_env_new_context): New function.
23265 (grub_env_context_open): Likewise.
23266 (grub_env_extractor_open): Likewise.
23267 (grub_env_extractor_close): Likewise.
23268 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23269 grub_extractor_level.
23270 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23271 * include/grub/env.h (grub_env_extractor_open): New proto.
23272 (grub_env_extractor_close): Likewise.
23273 * include/grub/normal.h (grub_extractor_level): New external variable.
23274
23275 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 Make cutmem accept a region specification.
23278 Suggested by: Samuel Thibault
23279
23280 * grub-core/mmap/mmap.c (parsemem): New function.
23281 (grub_cmd_cutmem): Handle new arguments.
23282
23283 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23284
23285 New command cutmem.
23286
23287 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23288 (GRUB_MOD_INIT): Register new command.
23289 (GRUB_MOD_FINI): Unregister new command.
23290
23291 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23292
23293 Support some annoying BSD and Minix subpartitions.
23294
23295 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23296 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23297 Properly handle concatenation.
23298 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23299 * grub-core/normal/completion.c (iterate_partition): Likewise.
23300 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23301 contain partition. All users updated.
23302 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23303 struct.
23304 (grub_openbsdlabel_partition_map): Likewise.
23305 (bsdlabel_partition_map_iterate): Rename to ..
23306 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23307 (bsdlabel_partition_map_iterate): New function.
23308 (netopenbsdlabel_partition_map_iterate): Likewise.
23309 (netbsdlabel_partition_map_iterate): Likewise.
23310 (openbsdlabel_partition_map_iterate): Likewise.
23311 (GRUB_MOD_INIT): Register new partmaps.
23312 (GRUB_MOD_FINI): Unregister new partmaps.
23313 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23314 (grub_partition_msdos_iterate): ... this. All users updated.
23315 Don't support embedding other than in a minix partition.
23316 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23317 proto.
23318 * include/grub/partition.h (grub_partition): New field msdostype.
23319 * util/grub-install.in: Handle openbsd and netbsd types being in
23320 part_bsd module.
23321
23322 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23323
23324 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23325
23326 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23327 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23328 (mdraid09): ... this.
23329 (mdraid1x): New module.
23330 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23331 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23332
23333 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23334
23335 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23336 vsprintf.
23337
23338 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23339
23340 * grub-core/commands/efi/lsefimmap.c: Correct header.
23341 * NEWS: Update.
23342
23343 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23344
23345 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23346 as printf format strings; the translations might contain '%' which
23347 could cause a crash.
23348 (main): Likewise.
23349 * util/grub-fstest.c (argp_parser): Likewise.
23350 * util/grub-setup.c (argp_parser): Likewise.
23351 (main): Likewise.
23352
23353 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23354
23355 Use argp in grub-fstest.
23356
23357 * util/grub-fstest.c: Don't include getopt.h.
23358 Include argp.h.
23359 (root): New variable.
23360 (args_count): Likewise.
23361 (nparm): Likewise.
23362 (num_disks): Likewise.
23363 (images): Likewise.
23364 (cmd): Likewise.
23365 (debug_str): Likewise.
23366 (args): Likewise.
23367 (options): Transformed to argp.
23368 (usage): Removed.
23369 (main): Split argument parsing into ...
23370 (argp_parser): ... this. Changed to argp format.
23371 (argp): New variable.
23372 (main): Use argp_parse.
23373
23374 2010-09-20 Tristan Gingold <gingold@free.fr>
23375 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23376 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23377
23378 * grub-core/commands/efi/lsefimmap.c: New file.
23379 * grub-core/Makefile.core.def (lsefimmap): New module.
23380 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23381
23382 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23383
23384 Pause the execution (10s max) if any errors are displayed so the user
23385 has a chance to see them.
23386
23387 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23388 (grub_print_error): Increment grub_err_printed_errors.
23389 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23390 execution if any errors were displayed.
23391 (show_menu): Remove old code for pause.
23392 * grub-core/normal/menu_entry.c (run): Likewise.
23393 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23394 users updated.
23395 (grub_normal_get_char_counter): Likewise.
23396 * include/grub/err.h (grub_err_printed_errors): New external variable.
23397 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23398
23399 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23400
23401 Support multiboot VBE info.
23402
23403 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23404 Take VBE info into account.
23405 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23406 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23407 Call fill_vbe_info when appropriate.
23408 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23409 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23410 as supported.
23411 (grub_multiboot_get_mbi_size): Take new tags into account.
23412 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23413 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23414 Call fill_vbe_tag when appropriate.
23415 (grub_multiboot_make_mbi): Properly align tags.
23416 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23417 function.
23418 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23419 proto.
23420 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23421
23422 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23423
23424 Suport manual terminal geometry specification.
23425
23426 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23427 Save state in grub_ofconsole_terminfo_output.
23428 (grub_ofconsole_term): Use grub_terminfo_getwh.
23429 (grub_ofconsole_getwh): Removed.
23430 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23431 (grub_serial_term): Use grub_terminfo_getwh.
23432 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23433 (options): New struct.
23434 (OPTION_*): New enum.
23435 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23436 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23437 width and height.
23438 (grub_terminfo_getwh): New proto.
23439 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23440
23441 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23442
23443 Handle legacy "terminal" command.
23444
23445 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23446 and FLAG_TERMINAL.
23447 (legacy_commands): Add terminal and title.
23448 (grub_legacy_parse): Handle terminal. Simplify title handling.
23449
23450 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23451
23452 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23453 parameters overflow.
23454
23455 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23456
23457 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23458 widthspec.h.
23459
23460 * docs/grub.texi (Shell-like scripting): Document `!'.
23461 (Network): Simplify using new i386-pc-pxe format. Mention
23462 grub-mknetdir.
23463
23464 * NEWS: Update.
23465
23466 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23467
23468 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23469 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23470 when needed.
23471
23472 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23473
23474 * grub-core/commands/efi/lsefisystab.c: Correct header.
23475 * grub-core/commands/efi/lssal.c: Likewise.
23476 * grub-core/commands/testload.c: Likewise.
23477
23478 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23479
23480 * util/grub-mkrescue.in: Add explicit root argument to --set to
23481 prevent the UUID being interpreted as an argument to --set (matches
23482 previous change to prepare_grub_to_access_device).
23483
23484 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23485
23486 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23487 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23488 the verbosity of later #ifs.
23489 (find_partition_start): Define this function on FreeBSD too.
23490 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23491 function.
23492 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23493 on FreeBSD.
23494
23495 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23496
23497 * util/grub-editenv.c: Use argp instead of getopt.
23498
23499 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23500
23501 * util/grub-setup.c: Use argp instead of getopt.
23502
23503 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23504
23505 Use gnulib-tool to create gnulib source files.
23506
23507 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23508 grub-core/gnulib directories
23509 * .bzignore: Add **/.deps and autogenerated gnulib files
23510 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23511 of gnulib macros, add grub-core/gnulib/Makefile
23512 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23513 include m4 directory to aclocal.
23514 * Makefile.util.def: Remove direct compilation of gnulib source files
23515 and use the new grub-core/gnulib/libgnu.a.
23516 * build-aux/config.rpath: move config.rpath from top directory to
23517 build-aux
23518 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23519 in gnulib headers
23520 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23521 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23522 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23523 header.
23524 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23525 string.
23526
23527 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23528
23529 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23530 grub-core/genmod.sh and grub-core/gensyminfo.sh
23531
23532 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23533
23534 Add a test for echo command options.
23535
23536 * tests/grub_cmd_echo.in: New test.
23537 * Makefile.util.def: Rules for new test.
23538
23539 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23540
23541 Remove crc.mod and move crc command to hashsum.mod.
23542 Remove lib/crc.c - users updated to use gcrypt implementation.
23543
23544 * grub-core/commands/crc.c: Removed.
23545 * grub-core/Makefile.core.def (crc): Module removed.
23546 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23547 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23548 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23549 * grub-core/lib/crc.c: Removed.
23550 * include/grub/lib/crc.h: Removed.
23551 * Makefile.util.def (crc): Remove lib/crc.c
23552 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23553 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23554 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23555 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23556 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23557 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23558
23559 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23560
23561 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23562
23563 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 Split config.h for util and core.
23566
23567 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23568 (ADDR32): Likewise.
23569 (DATA32): Likewise.
23570 (BSS_START_SYMBOL): Likewise.
23571 (END_SYMBOL): Likewise.
23572 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23573 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23574 * config.h.in: New file.
23575 * configure.ac: Use config-util.h as config define file.
23576 Rename MACHINE into GRUB_MACHINE. All users updated.
23577 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23578 updated.
23579 (NESTED_FUNC_ATTR): Likewise.
23580 Substitue new variables.
23581 (COND_HAVE_ASM_USCORE): New conditional.
23582 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23583 (kernel_syms.lst): Use ASM_PREFIX.
23584 * grub-core/kern/emu/console.c: Include config-util.h.
23585 * grub-core/kern/emu/misc.c: Likewise.
23586 * grub-core/kern/emu/mm.c: Likewise.
23587 * include/grub/emu/misc.h: Likewise.
23588 * include/grub/libgcc.h: Likewise.
23589
23590 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23591
23592 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23593 constants usage.
23594 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23595 Fix GRUB_TERM_KEY_* constants usage.
23596 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23597
23598 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23599
23600 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23601 print pointer.
23602 * grub-core/bus/usb/uhci.c: Remove empty define.
23603 (grub_uhci_check_transfer): Add missing cast.
23604 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23605 print pointer.
23606 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23607 PRIuGRUB_SIZE.
23608 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23609
23610 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23611
23612 * grub-core/Makefile.core.def (legacycfg): Add
23613 lib/i386/pc/vesa_modes_table.c on emu.
23614
23615 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23616
23617 Reduce number of temporary files generated by build system.
23618
23619 * grub-core/gencmdlist.sh: Removed.
23620 * grub-core/genfslist.sh: Removed.
23621 * grub-core/genhandlerlist.sh: Removed.
23622 * grub-core/genmodsrc.sh: Removed.
23623 * grub-core/genpartmaplist.sh: Removed.
23624 * grub-core/genparttoollist.sh: Removed.
23625 * grub-core/gentermiinallist.sh: Removed.
23626 * grub-core/genvideolist.sh: Removed.
23627
23628 * grub-core/genmod.sh.in: New file.
23629 * grub-core/gensyminfo.sh.in: New file.
23630
23631 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23632 * conf/Makefile.extra-dist: Update with new files.
23633 * gentpl.py: Remove rules related to unnecessary temporary files.
23634 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23635 and und-* files.
23636 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23637 genmod.sh scripts.
23638 * grub-core/bus/usb/uhci.c: Remove empty #define.
23639 * grub-core/genmoddep.awk: Updated with new syminfo format.
23640 * util/bash-completion.d/Makefile.am: Add config.log to
23641 CLEANFILES.
23642
23643 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23644
23645 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23646
23647 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23648
23649 * util/grub-mkconfig.in: Check the config script for syntax errors
23650 before saving.
23651
23652 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23653 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23654
23655 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23656 platforms.
23657 * util/grub-install.in: Add EFI and IEEE1275 support.
23658 * util/i386/efi/grub-install.in: Removed.
23659 * util/ieee1275/grub-install.in: Likewise.
23660
23661 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23662
23663 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23664 (grub_cmd_cmosclean): Likewise.
23665 (GRUB_MOD_INIT): Register command cmosclean.
23666 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23667 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23668
23669 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23670 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23671 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23672
23673 Add keyboard layouts support.
23674
23675 * Makefile.util.def (grub-mklayout): New file.
23676 (grub-kbdcomp): New script.
23677 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23678 Add keyboard_layouts.h.
23679 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23680 commands/boot.c on yeeloong.
23681 (keylayouts): New module.
23682 * grub-core/bus/usb/ohci.c
23683 * grub-core/bus/usb/uhci.c
23684 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23685 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23686 (attach_root_port): Likewise.
23687 (poll_nonroot_hub): Likewise.
23688 (grub_usb_poll_devices): Likewise.
23689 (detach_device): Close transfer.
23690 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23691 function.
23692 (grub_usb_bulk_setup_readwrite): Likewise.
23693 (grub_usb_bulk_finish_readwrite): Likewise.
23694 * grub-core/commands/keylayouts.c: New file.
23695 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23696 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23697 aliases.
23698 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23699 support scancode 2.
23700 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23701 * include/grub/keyboard_layouts.h: New file.
23702 * util/grub-mklayout.c: New file.
23703 * util/grub-kbdcomp.in: Likewise.
23704
23705 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 Unify memory types.
23708
23709 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23710 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23711 types.
23712 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23713 (grub_upper_mem): Likewise.
23714 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23715 * include/grub/memory.h (grub_memory_type_t): New enum.
23716 All users updated.
23717
23718 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23719
23720 * grub-core/Makefile.core.def (lsapm): New module.
23721 * grub-core/commands/i386/pc/lsapm.c: New file.
23722 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23723 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23724 Likewise.
23725 * include/grub/i386/pc/apm.h: New file.
23726 * include/multiboot.h (multiboot_apm_info): New struct.
23727
23728 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23729
23730 GRUB-legacy configuration file support.
23731
23732 * Makefile.util.def (grub-menulst2cfg): New util.
23733 * docs/man/grub-menulst2cfg.h2m: New file.
23734 * grub-core/Makefile.core.def (legacycfg): New module.
23735 * grub-core/commands/legacycfg.c: New file.
23736 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23737 (grub_normal_add_menu_entry): ... this.
23738 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23739 (grub_normal_set_password): ...this.
23740 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23741 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23742 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23743 * grub-core/lib/legacy_parse.c: New file.
23744 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23745 * include/grub/i386/pc/vesa_modes_table.h: New file.
23746 * include/grub/legacy_parse.h: Likewise.
23747 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23748 * util/grub-menulst2cfg.c: New file.
23749
23750 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23751
23752 * grub-core/kern/emu/hostdisk.c
23753 (convert_system_partition_to_system_disk): Initialise node.
23754
23755 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23756
23757 * grub-core/kern/emu/hostdisk.c
23758 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23759 leak.
23760 Reported and based on patch by: Modestas Vainius.
23761
23762 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23763
23764 Fix DM-RAID probing with recent versions of device-mapper udev
23765 rules.
23766
23767 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23768 canonicalise device paths under /dev/mapper/.
23769 (convert_system_partition_to_system_disk): Compare the
23770 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23771 path, since device nodes under /dev/mapper/ are often symlinks.
23772
23773 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23774
23775 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23776
23777 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23778
23779 * configure.ac: Avoid some annoying error messages if freetype-config
23780 program is not found.
23781
23782 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23783
23784 Support RAID on virtio devices, and others.
23785
23786 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23787 Rename to ...
23788 [__MINGW32__] (grub_find_device): ... this.
23789 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23790 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23791 reasonable default if dir is NULL.
23792 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23793 ...
23794 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23795 (grub_guess_root_device): Update callers.
23796 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23797
23798 * util/raid.c (grub_util_getdiskname): Remove.
23799 (grub_util_raid_getmembers): Use grub_find_device rather than
23800 grub_util_getdiskname.
23801
23802 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23803
23804 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23805 needing to be compiled with serial support.
23806 (ls): Indicate that multiple files are accepted.
23807 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23808 indicate that multiple files are accepted.
23809
23810 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23811
23812 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23813 libgrub_a_init.c, and util/bash-completion.d/grub.
23814
23815 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23816
23817 * util/grub-setup.c (setup): Fix incorrect container semantics.
23818
23819 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23820
23821 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23822 misusage.
23823 Reported by: J. Nick Terry
23824
23825 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23826
23827 Move embedding routines to partmap sources files.
23828
23829 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23830 [GRUB_UTIL]: New variable.
23831 (gpt_partition_map_iterate): Set part.parent.
23832 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23833 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23834 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23835 New function.
23836 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23837 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23838 (grub_partition_map) [GRUB_UTIL]: New field embed.
23839 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23840 (setup): Use ->embed.
23841
23842 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23843
23844 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23845 function.
23846 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23847 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23848
23849 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23850
23851 Add function to get completions from usage.
23852
23853 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23854 completions from usage. Use LC_ALL=C to get options properly.
23855
23856 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23857
23858 * grub-core/gnulib/basename-lgpl.c: Imported.
23859 * grub-core/gnulib/basename.c: Likewise.
23860 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23861 * grub-core/gnulib/dirname.c: Likewise.
23862 * grub-core/gnulib/dirname.h: Likewise.
23863 * grub-core/gnulib/stripslash.c: Likewise.
23864
23865 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23866
23867 * grub-core/gnulib/error.c: Resynced.
23868 * grub-core/gnulib/getopt.c: Likewise.
23869 * grub-core/gnulib/getopt_int.h: Likewise.
23870 * grub-core/gnulib/regex.h: Likewise.
23871 * grub-core/gnulib/regex_internal.c: Likewise.
23872 * grub-core/gnulib/regex_internal.h: Likewise.
23873
23874 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23875
23876 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23877 CRC calculations and validity checks.
23878 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23879 calculations.
23880
23881 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23882
23883 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23884
23885 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 Fix incorrect echo options handling.
23888 Reported by: Yves Blusseau.
23889
23890 * include/grub/command.h (grub_command_flags_t): New flags
23891 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23892 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23893 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23894
23895 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23896
23897 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23898 users updated.
23899 (GRUB_COMMAND_FLAG_MENU): Likewise.
23900 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23901 (GRUB_COMMAND_FLAG_TITLE): Removed.
23902 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23903 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23904 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23905 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23906 (grub_command_flags_t): New enum. All users updated.
23907
23908 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23909
23910 Fix solaris compilation.
23911
23912 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23913 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23914 (grub-emu-list): Likewise.
23915
23916 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23917
23918 Remove deprecated root command.
23919
23920 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23921 updated.
23922
23923 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23924
23925 * util/i386/pc/grub-setup.c: Merge this ...
23926 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23927 * util/grub-setup.c: ... into this.
23928 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23929 New struct.
23930
23931 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23932
23933 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23934 possible.
23935
23936 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23937
23938 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23939 allocate p.
23940
23941 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23942
23943 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23944 explicit root argument to set to prevent UUID to be interpreted as
23945 argument to set.
23946
23947 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23950
23951 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 Don't export grub_gate_a20.
23954
23955 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23956 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23957 to ...
23958 (grub_gate_a20): ... this. All users updated.
23959 * include/grub/i386/pc/init.h: Removed. All users updated.
23960
23961 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23962
23963 Create euro.pf2 which supports most European languages.
23964
23965 * Makefile.am (grubdata_DATA): Add euro.pf2.
23966 (euro.pf2): New target.
23967 (CLEANFILES): Add euro.pf2.
23968
23969 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23970
23971 * configure.ac: Disable emu-usb by default to prevent inadvertent
23972 device takeover.
23973
23974 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23975
23976 Disable usbserial on grub-emu since our libusb code isn't good enough
23977 yet.
23978
23979 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23980 (usbserial_pl2303): Likewise.
23981 (usbserial_ftdi): Likewise.
23982
23983 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23984
23985 * include/grub/disk.h (grub_disk): Remove has_partitions.
23986 All users updated.
23987 * disk/loopback.c (grub_loopback): Remove has_partitions.
23988 All users updated.
23989 (options): Remove partitions. All users updated.
23990 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23991 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23992 actual partition table is found.
23993
23994 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23995
23996 Remove readability checks (too many false negatives).
23997
23998 * util/grub-install.in: Remove readability checks.
23999 * util/grub-mkconfig.in: Likewise.
24000 * util/grub.d/10_hurd.in: Likewise.
24001 * util/grub.d/10_kfreebsd.in: Likewise.
24002 * util/grub.d/10_linux.in: Likewise.
24003 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24004 way.
24005
24006 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24007
24008 Enable acpi shutdown on all ACPI platforms.
24009
24010 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24011 on coreboo, multiboot and EFI.
24012 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24013 (grub_acpi_halt): Likewise.
24014 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24015 (grub_cmd_halt): Don't call grub_acpi_halt directly.
24016 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24017 * grub-core/lib/i386/halt.c (grub_halt)
24018 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24019
24020 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24021
24022 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24023 context.
24024
24025 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24026
24027 * grub-core/video/efi_gop.c: Fix over-80-chars line.
24028 * grub-core/video/efi_uga.c: Likewise.
24029
24030 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24031
24032 Filter devaliases and never open same device twice.
24033
24034 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24035 (last_ihandle): Likewise.
24036 (ofdisk_hash_ent): New member shortest.
24037 (ofdisk_hash_add): Add canonical path too.
24038 (scan): New function.
24039 (grub_ofdisk_iterate): Iterate over hashed entries.
24040 (compute_dev_path): Don't add :0.
24041 (grub_ofdisk_open): Don't really open the disk.
24042 (grub_ofdisk_close): Avoid closing unrelated disk.
24043 (grub_ofdisk_read): Implement reopen logic.
24044 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24045 New function.
24046 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24047 New proto.
24048
24049 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24050
24051 Fix sparc64.
24052
24053 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24054 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24055 right address. Add sparc64_ieee1275_ldflags.
24056 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24057 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24058 to grub_host_to_target_addr
24059 (load_image): Likewise.
24060
24061 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24062
24063 * grub-core/normal/completion.c (complete_file): Handle device
24064 containing slash.
24065 Fix based on patch by Doug Nazar.
24066
24067 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24068
24069 grub-mknetdir script.
24070
24071 * Makefile.util.def (grub-mknetdir): New module.
24072 * tests/util/grub-shell.in: Support boot=net
24073 * util/grub-mknetdir.in: New file.
24074
24075 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24076
24077 videoinfo on non-vbe.
24078
24079 * grub-core/Makefile.core.def (vbeinfo): Removed.
24080 (vbetest): Removed.
24081 (videoinfo): New module.
24082 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24083 * grub-core/commands/i386/pc/vbetest.c: Removed.
24084 * grub-core/commands/videoinfo.c: New file.
24085 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24086 specification.
24087 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24088 as vbetest.
24089 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24090 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24091 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24092 mode_number. New parameter mode. All users updated.
24093 (grub_video_gop_iterate): New function.
24094 (grub_video_efi_gop): New member iterate.
24095 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24096 (grub_vbe_set_video_mode): Remove setting useless fields.
24097 (vbe2videoinfo): New function.
24098 (grub_video_vbe_iterate): Likewise.
24099 (grub_video_vbe_setup): Use vbe2videoinfo.
24100 (grub_video_vbe_print_adapter_specific_info): New function.
24101 (grub_video_vbe_adapter): New fields iterate and
24102 print_adapter_specific_info.
24103 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24104 All users updated.
24105 (grub_video_mode_info): New field mode_number.
24106 (grub_video_adapter): New fields iterate and
24107 print_adapter_specific_info.
24108
24109 2010-09-13 Tristan Gingold <gingold@free.fr>
24110 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24111 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * grub-core/commands/efi/lsefisystab.c: New file.
24114 * grub-core/commands/efi/lssal.c: Likewise.
24115 * grub-core/Makefile.core.def (lsacpi): New module.
24116 (lsefisystab): Likewise.
24117 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24118 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24119 (grub_efi_sal_system_table): New struct.
24120 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24121 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24122 (grub_efi_sal_system_table_platform_features): Likewise.
24123 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24124 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24125 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24126 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24127
24128 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24129
24130 Support explicit user claim that a device is BIOS-visible.
24131
24132 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24133 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24134 * grub-core/kern/emu/hostdisk.c
24135 (convert_system_partition_to_system_disk): Support mdX.
24136 (find_system_device): New parameter add. All users updated.
24137 (grub_util_biosdisk_is_present): New function.
24138 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24139 proto.
24140
24141 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24142
24143 Search hints support.
24144
24145 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24146 All users updated.
24147
24148 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24149
24150 Bash completion script for util commands
24151
24152 * Makefile.am: Add util/bash-completion.d directory
24153 * configure.ac: Likewise.
24154 * util/bash-completion.d/Makefile.am: New file.
24155 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24156
24157 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24158
24159 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24160 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24161 Reported by: Yves Blusseau.
24162
24163 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24164
24165 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24166 partition size and offset.
24167
24168 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24169
24170 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24171
24172 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24173
24174 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24175
24176 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24177
24178 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24179 (grub_xvasprintf): Likewise.
24180
24181 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24182
24183 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24184
24185 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24186
24187 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24188 args ending with NULL.
24189
24190 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24191
24192 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24193 pointer.
24194
24195 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24196
24197 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24198
24199 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24200
24201 Shutdown using ACPI.
24202
24203 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24204 * grub-core/commands/acpihalt.c: New file.
24205 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24206 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24207 (grub_acpi_halt): New proto.
24208 (GRUB_ACPI_SLP_EN): New const.
24209 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24210 (GRUB_ACPI_OPCODE_*): New enum.
24211 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24212
24213 2010-09-11 Tristan Gingold <gingold@free.fr>
24214 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24215 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24216
24217 * commands/lsacpi.c: New file.
24218 * grub-core/Makefile.core.def (lsacpi): New module.
24219 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24220 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24221 (grub_acpi_madt_entry_header): New struct.
24222 (grub_acpi_madt): Likewise.
24223 (grub_acpi_madt_entry_interrupt_override): Likewise.
24224 (grub_acpi_madt_entry_sapic): Likewise.
24225 (grub_acpi_madt_entry_lsapic): Likewise.
24226 (grub_acpi_madt_entry_platform_int_source): Likewise.
24227 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24228 (PRIuGRUB_UINT32_T): Likewise.
24229 (PRIxGRUB_UINT64_T): Likewise.
24230
24231 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 Implement loading palette on ieee1275_fb.
24234
24235 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24236 (have_setcolors): Likewise.
24237 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24238 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24239 (grub_video_ieee1275_set_palette): Implement.
24240
24241 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24242 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24243
24244 * util/grub-install.in (grub_partition): New variable.
24245 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24246 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24247 Fixes a bug reported by Yves Blusseau.
24248
24249 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24250
24251 Fix emu on mipsel.
24252
24253 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24254 =grub_cpu_flush_cache on all mips and not only yeeloong.
24255 * configure.ac (COND_mips): New conditional.
24256 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24257 platforms.
24258 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24259 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24260 [GRUB_LINKER_HAVE_INIT]: New function.
24261 (grub_emu_post_init): Likewise.
24262 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24263 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24264 * include/grub/cache.h (_mips): Include mips/cache.h.
24265 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24266 LVM and RAID prototypes.
24267 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24268 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24269 function.
24270
24271 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24272
24273 * util/grub-install.in: Don't try to verify core.img until after
24274 running grub-mkimage to create it.
24275
24276 2010-09-10 Robert Millan <rmh@gnu.org>
24277
24278 * util/grub.d/10_hurd.in: Add misc readability checks.
24279 * util/grub.d/10_kfreebsd.in: Likewise.
24280 * util/grub.d/10_linux.in: Likewise.
24281
24282 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24283
24284 * util/grub-install.in: ${imgext} won't be defined here until the
24285 install branch is merged. For the meantime, only verify core.img on
24286 i386-pc and sparc64-ieee1275 platforms.
24287
24288 2010-09-10 Robert Millan <rmh@gnu.org>
24289
24290 Solaris support in grub_find_zpool_from_dir(). Thanks
24291 Seth Goldberg for referring to getextmntent() facility.
24292
24293 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24294 `sys/mkdev.h'.
24295 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24296 `<sys/mnttab.h>'.
24297 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24298 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24299 method for finding zpool name.
24300
24301 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24302
24303 grub-fstest needs the host and hostfs modules while other utilities
24304 actively require those modules to be absent, so grub-fstest needs
24305 its own initialisation and finalisation code.
24306
24307 * Makefile.am (grub_fstest.pp): New target.
24308 (grub_fstest_init.lst): Likewise.
24309 (grub_fstest_init.c): Likewise.
24310 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24311
24312 2010-09-10 Robert Millan <rmh@gnu.org>
24313
24314 * configure.ac: Check for `struct statfs.f_fstypename' and
24315 `struct statfs.f_mntfromname'.
24316
24317 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24318 kFreeBSD-specific code.
24319
24320 2010-09-10 Robert Millan <rmh@gnu.org>
24321
24322 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24323 on ZFS. Now non-main filesystems are supported as / too.
24324
24325 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24326
24327 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24328 and grub-core/disk/host.c to ...
24329 (grub-fstest): ... here. Having the host disk implementation
24330 present confuses grub-probe and other utility programs.
24331
24332 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24333 when writing to a file, not when writing to stdout.
24334
24335 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24336
24337 * tests/partmap_test.in: New test for partitions.
24338 * Makefile.util.def: Rules for new test.
24339
24340 2010-09-09 Robert Millan <rmh@gnu.org>
24341
24342 * util/grub-probe.c (probe): Fix a pair of unhandled error
24343 conditions.
24344
24345 2010-09-09 Robert Millan <rmh@gnu.org>
24346
24347 Basic Btrfs support (detection and UUID).
24348
24349 * grub-core/fs/btrfs.c: New file.
24350 * Makefile.util.def (library): Register btrfs.c.
24351 * grub-core/Makefile.core.def: Likewise.
24352
24353 2010-09-08 Robert Millan <rmh@gnu.org>
24354
24355 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24356 with (optional) parameters to specify device and relative path.
24357 * util/grub-install.in: Use is_path_readable_by_grub() to
24358 verify readability of a few critical files.
24359 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24360 verify readability of grub.cfg.new.
24361
24362 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24363
24364 Split minix.mod into minix.mod and minix2.mod.
24365
24366 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24367 * grub-core/Makefile.core.def (minix2): New module.
24368 * grub-core/fs/minix.c: Use definitions instead of runtime version
24369 checking.
24370 * grub-core/fs/minix2.c: New file.
24371
24372 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24373
24374 Add new --boot-directory option to replace --root-directory
24375
24376 * util/grub-install.in: Add new --boot-directory option
24377 * util/grub-reboot.in: Likewise.
24378 * util/grub-set-default.in: Likewise.
24379
24380 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24381
24382 * util/grub-mkconfig.in: Use new variable.
24383
24384 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24385
24386 * configure.ac: Define some useful variables.
24387
24388 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24389
24390 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24391 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24392 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24393 Use terminfo and don't use cursor-on/cursor-off unless it's known
24394 to work.
24395 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24396 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24397
24398 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24399
24400 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24401 starts with "(,", fill the drive containing the loaded image in
24402 between those two characters, but expect that a full partition
24403 specification including partition map names will follow.
24404
24405 2010-09-08 Robert Millan <rmh@gnu.org>
24406
24407 * configure.ac: Remove `--enable-grub-fstest' option.
24408 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24409
24410 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24411 `grub-fstest' instead of `grub-probe' for readability verification.
24412 * util/grub-probe.c (probe): Remove readability verification kludge.
24413
24414 2010-09-08 Robert Millan <rmh@gnu.org>
24415
24416 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24417 initializing `GRUB_FS'.
24418
24419 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24420
24421 Not command (!) support to GRUB script.
24422
24423 * tests/grub_script_not.in: New test.
24424 * Makefile.util.def: Rules for new test.
24425
24426 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24427 ! command as a special case.
24428 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24429
24430 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24431
24432 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24433 grub_free.
24434
24435 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24436
24437 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24438
24439 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24440
24441 * docs/grub.texi (Shell-like scripting): Documentation for break,
24442 continue, shift and return commands.
24443
24444 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24445
24446 Rename CD-ROM to cd on BIOS.
24447
24448 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24449 "cd".
24450 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24451
24452 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24453
24454 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24455 * util/grub-probe.c (main): Likewise.
24456 * util/i386/pc/grub-setup.c (main): Likewise.
24457 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24458 Reported and debugged by: alexxy
24459
24460 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24461
24462 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24463 diagnostic info.
24464
24465 2010-09-05 Jo Shields <directhex@apebox.org>
24466
24467 * util/grub.d/30_os-prober.in: Add missing classes.
24468
24469 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24470
24471 * docs/grub.texi (Theme file format): Document new position format.
24472
24473 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24474
24475 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24476 a table. Use @code instead of @verbatim.
24477
24478 2010-09-05 Colin D Bennett <colin@gibibit.com>
24479
24480 Gfxmenu documentation.
24481
24482 * docs/grub.texi (Theme file format): New chapter.
24483
24484 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24485
24486 * grub-core/Makefile.core.def (xzio): New module.
24487 * grub-core/io/xzio.c: New file.
24488 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24489 * grub-core/lib/xzembed/xz_config.h: Likewise.
24490 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24491 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24492 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24493 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24494 * grub-core/lib/xzembed/xz_private.h: Likewise.
24495 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24496 * include/grub/file.h (grub_file_filter_id): New compression filter
24497 GRUB_FILE_FILTER_XZIO.
24498
24499 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24500
24501 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24502 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24503 size.
24504
24505 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24506
24507 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24508 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24509
24510 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24511
24512 Uncompressed checksum support.
24513
24514 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24515 (check_list): New parameter uncompress.
24516 (grub_cmd_hashsum): Handle --uncompress.
24517
24518 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24519
24520 Reintroduce testload.
24521
24522 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24523 from here ...
24524 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24525 (GRUB_MOD_INIT): New function.
24526 (GRUB_MOD_FINI): Likewise.
24527 * grub-core/Makefile.core.def (testload): New module.
24528
24529 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24530
24531 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24532 (uint8_t): New type.
24533 (uint16_t): Likewise.
24534 (uint32_t): Likewise.
24535 (uint64_t): Likewise.
24536
24537 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24538
24539 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24540
24541 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24542
24543 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24544 Made static.
24545 (grub_gzfile_open): Removed. All users updated.
24546 (GRUB_MOD_INIT): New function.
24547 (GRUB_MOD_FINI): Likewise.
24548 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24549 (grub_file_filters_enabled): Likewise.
24550 (grub_file_open): Handle filters.
24551 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24552 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24553 * include/grub/file.h (grub_file_filter_id_t): New type.
24554 (grub_file_filter_t): Likewise.
24555 (grub_file_filters_all): New extern variable.
24556 (grub_file_filters_enabled): Likewise.
24557 (grub_file_filter_register): New inline function.
24558 (grub_file_filter_unregister): Likewise.
24559 (grub_file_filter_disable): Likewise.
24560 (grub_file_filter_disable_compression): Likewise.
24561 * include/grub/gzio.h: Removed.
24562
24563 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24564
24565 Filename expansion support for wildcards in GRUB script.
24566
24567 * tests/grub_script_expansion.in: New test.
24568 * Makefile.util.def: Rule for new test.
24569
24570 * grub-core/commands/wildcard.c: New file, implements filename
24571 expansion support for GRUB script.
24572 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24573 * grub-core/script/argv.c: Cosmetic changes.
24574 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24575 Refactored to perform wildcard expansion on arguments.
24576 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24577 struct.
24578
24579 * tests/util/grub-shell.in: Fix quoting for read input.
24580
24581 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24582
24583 Support for updating environment variables with matched substrings
24584 of regexp.
24585
24586 * tests/grub_cmd_regexp.in: New test.
24587 * Makefile.util.def: Rule for new test.
24588
24589 * grub-core/commands/regexp.c: New option -s to update environment
24590 variables with regexp matches.
24591
24592 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24593
24594 * include/grub/file.h (grub_file): New member not_easly_seekable.
24595 (grub_file_seekable): New inline function.
24596 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24597 easily seekable.
24598 (grub_gzio_open): Set not_easly_seekable.
24599 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24600 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24601
24602 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24603
24604 Support for options to appear multiple times on cmdline.
24605
24606 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24607 * grub-core/commands/extcmd.c: Support for repeatable option.
24608 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24609 repeatable option support.
24610
24611 Refactor menuentry into a regular command.
24612
24613 * grub-core/commands/menuentry.c: New file, menuentry command
24614 implementation.
24615 * grub-core/Makefile.core.def: Rule update for normal.mod.
24616 * grub-core/normal/main.c: Moved menuentry creation to
24617 grub-core/commands/menuentry.c.
24618 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24619 (grub_menu_execute_entry_real): Removed.
24620 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24621 function.
24622 (grub_script_execute_menuentry): Removed.
24623 * grub-core/script/parser.y (menuentry): Removed.
24624 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24625 * grub-core/script/yylex.l (menuentry): Removed.
24626 * include/grub/menu.h (grub_menu_init): New prototype.
24627 (grub_menu_fini): New prototype.
24628 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24629 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24630 (grub_script_execute_sourcecode): New prototype.
24631
24632 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24633
24634 "return" command for GRUB script functions.
24635
24636 * tests/grub_script_return.in: New test.
24637 * Makefile.util.def: Rules for new test.
24638
24639 * grub-core/script/execute.c (grub_script_return): New function.
24640 * grub-core/script/main.c: Register/unregister return commaond.
24641 * include/grub/script_sh.h (grub_script_return): New prototype.
24642
24643 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24644
24645 "setparams" command to update positional parameters.
24646
24647 * tests/grub_script_setparams.in: New test.
24648 * Makefile.util.def: Rules for new test.
24649
24650 * grub-core/script/argv.c (grub_script_argv_make): New function.
24651 * grub-core/script/execute.c (replace_scope): New function.
24652 (grub_script_setparams): New function.
24653 * grub-core/script/lexer.c: Remove unused variables.
24654 * grub-core/script/main.c: Register/unregister setparams command.
24655 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24656 (grub_script_setparams): New prototype.
24657
24658 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24659
24660 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24661 grub_free order.
24662
24663 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24664
24665 Support for passing block of commands as an argument to extcmds.
24666
24667 * Makefile.util.def: Rules for new test.
24668 * tests/grub_script_blockarg.in: New test.
24669 * grub-core/tests/test_blockarg.c: New file, block argument
24670 command used in the test.
24671
24672 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24673 (grub_register_extcmd_prio): New function prototype.
24674 (grub_extcmd_dispatcher): New function prototype.
24675 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24676 type.
24677 * include/grub/script_sh.h (struct grub_script): New members
24678 `children', `next_siblings' and `refcnt' for block arguments and
24679 reference counting.
24680 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24681 (grub_script_arg): New member `script' for block argument.
24682 (grub_script_argv): New member `script' for block argument.
24683 (grub_parser_param): New member `scripts' for block argument.
24684 (grub_script_mem_free): New extern function prototype.
24685 (grub_script_ref): New function prototype.
24686 (grub_script_unref): New function prototype.
24687
24688 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24689 extcmd form to support block arguments.
24690 * grub-core/script/argv.c: Block arguments support.
24691 * grub-core/script/execute.c: Likewise.
24692 * grub-core/script/lexer.c: Likewise.
24693 * grub-core/script/main.c: Likewise.
24694 * grub-core/script/script.c: Likewise.
24695 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24696 non-terminals.
24697
24698 * grub-core/commands/acpi.c: Update extcmd implementations with
24699 grub_extcmd_context_t.
24700 * grub-core/commands/cat.c: Likewise.
24701 * grub-core/commands/echo.c: Likewise.
24702 * grub-core/commands/extcmd.c: Likewise.
24703 * grub-core/commands/hashsum.c: Likewise.
24704 * grub-core/commands/hdparm.c: Likewise.
24705 * grub-core/commands/help.c: Likewise.
24706 * grub-core/commands/hexdump.c: Likewise.
24707 * grub-core/commands/i386/cpuid.c: Likewise.
24708 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24709 * grub-core/commands/i386/pc/halt.c: Likewise.
24710 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24711 * grub-core/commands/iorw.c: Likewise.
24712 * grub-core/commands/keystatus.c: Likewise.
24713 * grub-core/commands/loadenv.c: Likewise.
24714 * grub-core/commands/ls.c: Likewise.
24715 * grub-core/commands/lspci.c: Likewise.
24716 * grub-core/commands/memrw.c: Likewise.
24717 * grub-core/commands/probe.c: Likewise.
24718 * grub-core/commands/search_wrap.c: Likewise.
24719 * grub-core/commands/setpci.c: Likewise.
24720 * grub-core/commands/sleep.c: Likewise.
24721 * grub-core/disk/loopback.c: Likewise.
24722 * grub-core/hello/hello.c: Likewise.
24723 * grub-core/loader/i386/bsd.c: Likewise.
24724 * grub-core/loader/xnu.c: Likewise.
24725 * grub-core/term/gfxterm.c: Likewise.
24726 * grub-core/term/serial.c: Likewise.
24727 * grub-core/tests/lib/functional_test.c: Likewise.
24728
24729 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24730
24731 Multi-line quoted strings support.
24732
24733 * grub-core/script/lexer.c (append_newline): Removed.
24734 (grub_script_lexer_yywrap): Refactored.
24735 (grub_script_lexer_init): Refactored.
24736 * grub-core/script/yylex.l (yywrap): New function.
24737 (grub_lexer_resplit): New function.
24738 (grub_lexer_unput): New function.
24739 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24740 and resplit.
24741 * tests/grub_script_echo1.in: Added few more testcases.
24742
24743 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 * grub-core/kern/misc.c: Don't add abort alias in utils.
24746 Reported by: echoline.
24747
24748 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24749
24750 Add missing files into "make dist" tarball for other platforms.
24751
24752 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24753 * conf/Makefile.common (dist_noinst_DATA): New variable.
24754 * conf/Makefile.extra-dist: Added missing make dist files.
24755 * grub-core/Makefile.core.def: Likewise.
24756
24757 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24758
24759 Compress grub_prefix.
24760
24761 * grub-core/boot/i386/pc/lnxboot.S: Use
24762 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24763 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24764 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24765 GRUB_MACHINE_PREFIX_END. All users updated.
24766 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24767 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24768 + 0x40.
24769 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24770 * util/grub-mkimage.c (image_target_desc): Change data_end to
24771 prefix_end. All users updated.
24772
24773 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24774
24775 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24776 value.
24777 (grub_openbsd_boot): Likewise.
24778 (grub_netbsd_boot): Likewise.
24779 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24780 (grub_xnu_boot): Likewise.
24781
24782 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24783
24784 * configure.ac: Clean LIBS variable after tests.
24785
24786 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24787
24788 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24789
24790 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24791
24792 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24793 echo if libdevmapper will be used.
24794
24795 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24796
24797 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24798 constant for the same file.
24799
24800 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24801
24802 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24803
24804 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24805
24806 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24807 grub-core/*.pp.
24808
24809 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24810
24811 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24812 required by the boot protocol.
24813
24814 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24815 ebp and edi members.
24816 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24817 state.ebp and state.edi.
24818 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24819 %ebp and %edi according to grub_relocator32_ebp and
24820 grub_relocator32_edi respectively.
24821 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24822 and state.edi.
24823
24824 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24825
24826 Add i386-pc-pxe image target.
24827
24828 * util/grub-mkimage.c (image_target_desc): New enum value
24829 IMAGE_I386_PC_PXE.
24830 (image_targets): New target i386-pc-pxe.
24831 (generate_image): Handle i386-pc-pxe image.
24832
24833 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24834
24835 Fix grub_pxe_scan.
24836
24837 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24838 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24839 All users updated.
24840 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24841 (grub_pxe_pxenv): Correct type.
24842
24843 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24844
24845 * NEWS: Document most of the important changes since 1.98.
24846
24847 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24848
24849 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24850 generated manual page) a little.
24851
24852 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24853
24854 * docs/grub.texi: Add myself as an author.
24855
24856 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24857
24858 * Makefile.util.def (libgrub.a): Add missing sunpc.
24859 Reported by: Seth Goldberg.
24860
24861 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24862
24863 Interrupt wrapping and code simplifications.
24864
24865 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24866 x86_noieee1275 which are functionaly equivalent in this case.
24867 (grub-install): Make source on each platform explicit. Enable on
24868 all noemu.
24869 * gentpl.py (x86_efi_pc): Removed group.
24870 (x86_noefi): Likewise.
24871 (i386_noefi): Likewise.
24872 (x86_noieee1275): Likewise.
24873 (i386_noieee1275): Likewise.
24874 (i386_noefi_noieee1275): Likewise.
24875 (i386_pc_qemu_coreboot): Likewise.
24876 (i386_coreboot_multiboot): Likewise.
24877 (i386_pc_coreboot_multiboot_qemu): Likewise.
24878 (x86_noefi_mips): Likewise.
24879 (noieee1275): Likewise.
24880 (ieee1275_mips): Likewise.
24881 (noemu_noieee1275): Likewise.
24882 (cmos): New group.
24883 (usb): Likewise.
24884 (videoinkernel): Likewise.
24885 (videomodules): Likewise.
24886 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24887 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24888 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24889 include/grub/loader.h, include/grub/msdos_partition.h,
24890 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24891 include/grub/machine/console.h, include/grub/machine/vga.h,
24892 include/grub/machine/vbe.h, include/grub/machine/init.h,
24893 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24894 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24895 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24896 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24897 * grub-core/Makefile.core.def (kernel): Explicit the source for
24898 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24899 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24900 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24901 Use videoinkernel tag.
24902 (usb): Enable on all usb.
24903 (usbserial_common): Likewise.
24904 (usbserial_pl2303): Likewise.
24905 (usbserial_ftdi): Likewise.
24906 (uhci): Enable on all x86.
24907 (ohci): Enable on all pci.
24908 (cmostest): Enable on all CMOS.
24909 (acpi): Include commands/acpi.c on all platforms.
24910 (halt): Add relevant lib/*/halt.c.
24911 (hdparm): Enable on all pci.
24912 (lspci): Likewise.
24913 (usbtest): Enable on all usb.
24914 (ata): Enable on all pci.
24915 (ata_pthru): Likewise.
24916 (usbms): Enable on all usb.
24917 (usb_keyboard): Likewise.
24918 (font): Use tag videomodules.
24919 (bufio): Likewise.
24920 (datetime): Use tag cmos. Enable on all noemu.
24921 (mmap): Use tags common and x86.
24922 (gfxterm): Use tag videomodules.
24923 (bitmap): Likewise.
24924 (bitmap_scale): Likewise.
24925 (video_fb): Likewise.
24926 (video): Likewise.
24927 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24928 adjust padding accordingly. All users updated.
24929 (grub_ohci_transaction): Fix bad format specification.
24930 (GRUB_MOD_INIT): Add asserts for struct size.
24931 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24932 (grub_alloc_td): Likewise.
24933 (grub_free_queue): Likewise.
24934 (grub_uhci_transfer): Likewise.
24935 (grub_uhci_transaction): Fix bad format specification.
24936 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24937 (grub_usb_bulk_readwrite): Likewise.
24938 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24939 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24940 Made static.
24941 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24942 Made static.
24943 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24944 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24945 Transformed into C.
24946 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24947 Moved from here ...
24948 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24949 ... here. Transformed into C. Made static.
24950 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24951 Moved from here ...
24952 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24953 ... here. Transformed into C. Made static.
24954 * grub-core/kern/i386/pc/startup.S
24955 (grub_biosdisk_check_int13_extensions): Moved from here ...
24956 * grub-core/disk/i386/pc/biosdisk.c
24957 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24958 Made static.
24959 * grub-core/kern/i386/pc/startup.S
24960 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24961 * grub-core/disk/i386/pc/biosdisk.c
24962 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24963 Transformed into C. Made static.
24964 * grub-core/kern/i386/pc/startup.S
24965 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24966 * grub-core/disk/i386/pc/biosdisk.c
24967 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24968 Transformed into C. Made static.
24969 * grub-core/kern/i386/pc/startup.S
24970 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24971 * grub-core/disk/i386/pc/biosdisk.c
24972 (grub_biosdisk_get_diskinfo_standard): ... here.
24973 Transformed into C. Made static.
24974 * grub-core/kern/i386/pc/startup.S
24975 (grub_biosdisk_get_num_floppies): Moved from here ...
24976 * grub-core/disk/i386/pc/biosdisk.c
24977 (grub_biosdisk_get_num_floppies): ... here.
24978 Transformed into C. Made static.
24979 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24980 New function.
24981 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24982 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24983 Transformed into C. Made static.
24984 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24985 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24986 Transformed into C. Made static.
24987 * grub-core/kern/i386/ieee1275/init.c: Removed.
24988 * grub-core/kern/i386/misc.S: Likewise.
24989 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24990 Splitted from here ...
24991 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24992 Transformed into C. Made static. All users updated.
24993 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24994 Transformed into C. Made static. All users updated.
24995 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24996 Moved from here...
24997 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24998 Transformed into C. Made static. All users updated.
24999 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25000 Moved from here...
25001 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25002 Transformed into C. Made static. All users updated.
25003 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25004 Removed (replaced by C version).
25005 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25006 Moved from here...
25007 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25008 Transformed into C. Made static.
25009 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25010 Moved from here...
25011 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25012 ... here. Transformed into C.
25013 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25014 Moved from here...
25015 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25016 ... here. Transformed into C.
25017 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25018 Moved from here...
25019 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25020 ... here. Transformed into C. Made static.
25021 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25022 Moved from here...
25023 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25024 ... here. Transformed into C.
25025 * grub-core/kern/i386/pc/startup.S
25026 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25027 * grub-core/video/i386/pc/vbe.c
25028 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25029 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25030 Moved from here...
25031 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25032 ... here. Transformed into C.
25033 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25034 Moved from here...
25035 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25036 ... here. Transformed into C.
25037 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25038 Moved from here...
25039 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25040 ... here. Transformed into C.
25041 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25042 Moved from here...
25043 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25044 ... here. Transformed into C.
25045 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25046 Moved from here...
25047 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25048 ... here. Transformed into C. Made static.
25049 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25050 Moved from here...
25051 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25052 ... here. Transformed into C. Made static.
25053 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25054 Moved from here...
25055 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25056 ... here. Transformed into C. Made static.
25057 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25058 pxe_rm_entry as third argument.
25059 (grub_bios_interrupt): New function.
25060 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25061 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25062 of calling grub_stop.
25063 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25064 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25065 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25066 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25067 * grub-core/lib/i386/halt.c: Moved from here ...
25068 * grub-core/lib/i386/halt.c: ... here.
25069 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25070 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25071 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25072 grub_stop_floppy.
25073 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25074 * include/grub/i386/coreboot/init.h: Removed.
25075 * include/grub/i386/multiboot/init.h: Likewise.
25076 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25077 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25078 * include/grub/i386/pc/int.h: New file.
25079 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25080 (grub_pxe_scan): Removed.
25081 (grub_pxe_call): Update prototype.
25082 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25083 prototypes.
25084 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25085 * include/grub/i386/qemu/init.h: Removed.
25086 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25087 noreturn.
25088 (grub_halt): Likewise.
25089 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25090 (grub_reboot): Likewise.
25091 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25092 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25093 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25094
25095 2010-08-30 Robert Millan <rmh@gnu.org>
25096
25097 * NEWS: Document addition of ZFS support in `grub-install' and
25098 `grub-mkconfig'.
25099
25100 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25101
25102 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25103 dprintf output.
25104
25105 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25106
25107 Remove leftover embedding of font objects.
25108
25109 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25110 * util/grub-install.in (font): Removed.
25111 * util/grub-mkimage.c (generate_image): Remove font support. All users
25112 updated.
25113
25114 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25115
25116 Remove leftover embedding of font objects.
25117
25118 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25119 * util/grub-install.in (font): Removed.
25120 * util/grub-mkimage.c (generate_image): Remove font support. All users
25121 updated.
25122
25123 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25124
25125 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25126 Reported by: Ian Turner
25127
25128 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25129
25130 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25131 timeout to avoid indefinite boot stalling.
25132
25133 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25134
25135 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25136 (grub_env_write_color_highlight): Likewise.
25137
25138 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25139
25140 * grub-core/normal/term.c (print_more): Return to normal and not
25141 to standard state after printing "---MORE---".
25142
25143 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25144
25145 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25146 Mask out the bit 0x80 since it has other meaning that specifiing color.
25147
25148 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25149
25150 New relocator. Allows for more kernel support and more straightforward
25151 loader writing.
25152
25153 * Makefile.am (BOOTTARGET): New variable.
25154 (QEMU32): Likewise.
25155 (linux.init.x86_64): New target.
25156 (linux.init.i386): Likewise.
25157 (multiboot.elf): Likewise.
25158 (kfreebsd.elf): Likewise.
25159 (kfreebsd.aout): Likewise.
25160 (pc-chainloader.elf): Likewise.
25161 (pc-chainloader.bin): Likewise.
25162 (ntldr.elf): Likewise.
25163 (ntldr.bin): Likewise.
25164 (multiboot2.elf): Likewise.
25165 (kfreebsd.init.x86_64): Likewise.
25166 (kfreebsd.init.i386): Likewise.
25167 (knetbsd.init.i386): Likewise.
25168 (kopenbsd.init.i386): Likewise.
25169 (knetbsd.init.x86_64): Likewise.
25170 (kopenbsd.init.x86_64): Likewise.
25171 (linux-initramfs.i386): Likewise.
25172 (linux-initramfs.x86_64): Likewise.
25173 (kfreebsd-mfsroot.i386.img): Likewise.
25174 (knetbsd.image.i386): Likewise.
25175 (kopenbsd.image.i386): Likewise.
25176 (kopenbsd.image.x86_64): Likewise.
25177 (knetbsd.miniroot-image.i386.img): Likewise.
25178 (kfreebsd-mfsroot.x86_64.img): Likewise.
25179 (knetbsd.image.x86_64): Likewise.
25180 (knetbsd.miniroot-image.x86_64.img): Likewise.
25181 (kfreebsd-mfsroot.i386.gz): Likewise.
25182 (bootcheck-kfreebsd-i386): Likewise.
25183 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25184 (bootcheck-kfreebsd-x86_64): Likewise.
25185 (knetbsd.miniroot-image.i386.gz): Likewise.
25186 (bootcheck-knetbsd-i386): Likewise.
25187 (bootcheck-kopenbsd-i386): Likewise.
25188 (bootcheck-kopenbsd-x86_64): Likewise.
25189 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25190 (bootcheck-knetbsd-x86_64): Likewise.
25191 (bootcheck-linux-i386): Likewise.
25192 (bootcheck-linux-x86_64): Likewise.
25193 (bootcheck-linux16-i386): Likewise.
25194 (bootcheck-linux16-x86_64): Likewise.
25195 (bootcheck-multiboot): Likewise.
25196 (bootcheck-multiboot2): Likewise.
25197 (bootcheck-kfreebsd-aout): Likewise.
25198 (bootcheck-pc-chainloader): Likewise.
25199 (bootcheck-ntldr): Likewise.
25200 (CLEANFILES): Add new targets.
25201 (BOOTCHECKS): New variable.
25202 (.PHONY): Add bootchecks.
25203 (SUCCESSFUL_BOOT_STRING): New variable.
25204 (BOOTCHECK_TIMEOUT): Likewise.
25205 (bootcheck): New target
25206 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25207 * configure.ac: Correct efiemu excuse.
25208 * docs/grub.texi (Supported kernels): New chapter.
25209 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25210 include/grub/mm_private.h. Simplify inclusion of
25211 include/grub/boot.h, include/grub/loader.h
25212 and include/grub/msdos_partition.h
25213 (KERNEL_HEADER_FILES) [i386_coreboot]:
25214 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25215 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25216 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25217 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25218 include/grub/machine/loader.h.
25219 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25220 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25221 extra_dist.
25222 (pci.mod): Enable on i386-multiboot.
25223 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25224 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25225 i386-qemu.
25226 (relocator.mod): Rewritten.
25227 (aout.mod): Enable on all x86.
25228 (bsd.mod): Likewise.
25229 (ntldr.mod): New module.
25230 (linux.mod): Use loader/i386/linux.c on all x86.
25231 (xnu.mod): Enable on all x86.
25232 (vga_text.mod): disable on EFI and QEMU.
25233 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25234 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25235 * grub-core/efiemu/loadcore.c: Likewise.
25236 * grub-core/efiemu/main.c: Likewise.
25237 (grub_efiemu_exit_boot_services): Removed.
25238 (grub_efiemu_finish_boot_services): Likewise.
25239 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25240 function.
25241 * grub-core/efiemu/i386/nocfgtables.c: New file.
25242 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25243 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25244 (grub_efi_finish_boot_services): Moved from here ...
25245 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25246 Fille finish memory map and related data.
25247 (finish_mmap_buf): New variable.
25248 (grub_efi_uintn_t finish_mmap_size): Likewise.
25249 (grub_efi_uintn_t finish_key): Likewise.
25250 (grub_efi_uintn_t finish_desc_size): Likewise.
25251 (grub_efi_uint32_t finish_desc_version): Likewise.
25252 (grub_efi_is_finished): Likewise.
25253 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25254 finished.
25255 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25256 (grub_elf64_phdr_iterate): Likewise.
25257 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25258 (grub_os_area_size): Likewise.
25259 (grub_machine_init): Don't reserve os area.
25260 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25261 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25262 * grub-core/kern/i386/loader.S: Removed.
25263 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25264 (grub_os_area_size): Likewise.
25265 (grub_machine_init): Don't reserve os area.
25266 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25267 Don't call grub_dl_unload_all.
25268 Don't include loader.S.
25269 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25270 Declare the memory after _end as available.
25271 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25272 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25273 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25274 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25275 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25276 * include/grub/mm_private.h (grub_mm_header): ... here.
25277 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25278 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25279 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25280 (grub_mm_region): ..here. Removed addr. Added pre_size.
25281 All users updated.
25282 * grub-core/kern/mm.c (base): Renamed to ...
25283 (grub_mm_base): ... this. Made global.
25284 (grub_real_malloc): Alloc from end of region.
25285 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25286 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25287 * grub-core/kern/powerpc/cache_flush.S: ... here.
25288 * grub-core/lib/efi/relocator.c: New file.
25289 * grub-core/lib/i386/relocator.c: Rewritten.
25290 * grub-core/lib/i386/relocator16.S: New file.
25291 * grub-core/lib/i386/relocator32.S: Likewise.
25292 * grub-core/lib/i386/relocator64.S: Likewise.
25293 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25294 * grub-core/lib/i386/relocator_common.S: New file.
25295 * grub-core/lib/ieee1275/relocator.c: Likewise.
25296 * grub-core/lib/mips/relocator.c: Rewritten.
25297 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25298 stylistic adjustments.
25299 * grub-core/lib/powerpc/relocator.c: New file.
25300 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25301 * grub-core/lib/relocator.c: Rewritten.
25302 * grub-core/lib/x86_64/relocator_asm.S: New file.
25303 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25304 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25305 (bsd_tag): New struct.
25306 (tags): New variable.
25307 (tags_last): Likewise.
25308 (netbsd_module): New struct.
25309 (netbsd_mods): New variable.
25310 (netbsd_mods_last): Likewise.
25311 (openbsd_opts): New parameter "serial".
25312 (OPENBSD_SERIAL_ARG): New definition.
25313 (netbsd_opts): New parameter "serial".
25314 (NETBSD_SERIAL_ARG): New definition.
25315 (grub_freebsd_add_meta): Reorganised into ...
25316 (grub_bsd_add_meta): ...this. All users updated.
25317 (grub_freebsd_add_mmap): Reorganised into ...
25318 (generate_e820_mmap): ...this...
25319 (grub_bsd_add_mmap): ...and this. All users updated.
25320 (grub_freebsd_list_modules): Use tags.
25321 (grub_netbsd_add_meta_module): New function.
25322 (grub_netbsd_list_modules): Likewise.
25323 (grub_freebsd_boot): Use relocator and finish EFI.
25324 (grub_openbsd_boot): Likewise.
25325 (grub_netbsd_setup_video): New function.
25326 (grub_netbsd_add_modules): Likewise.
25327 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25328 and finish EFI.
25329 (grub_bsd_unload): Unload tags.
25330 (grub_bsd_load_aout): Use relocator.
25331 (grub_bsd_elf32_size_hook): New function.
25332 (grub_bsd_elf32_hook): Use relocator.
25333 (grub_bsd_elf64_size_hook): New function.
25334 (grub_bsd_elf64_hook): Use relocator.
25335 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25336 (grub_bsd_load): Zero-out openbsd_ramdisk.
25337 (grub_bsd_load): Use relocator.
25338 (grub_cmd_openbsd): Support serial.
25339 (grub_cmd_netbsd): Support modules.
25340 (grub_cmd_freebsd_module): Use relocator.
25341 (grub_netbsd_module_load): New function.
25342 (grub_cmd_netbsd_module): Likewise.
25343 (grub_cmd_openbsd_ramdisk): Likewise.
25344 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25345 kopenbsd_ramdisk.
25346 (GRUB_MOD_FINI): Unregister new commands.
25347 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25348 (grub_freebsd_load_elfmodule_obj): Use relocator.
25349 (grub_freebsd_load_elfmodule): Likewise.
25350 (grub_freebsd_load_elf_meta): Likewise.
25351 (grub_netbsd_load_elf_meta): New function.
25352 (grub_openbsd_find_ramdisk): Likewise.
25353 * grub-core/loader/i386/bsd_helper.S: Removed.
25354 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25355 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25356 * grub-core/loader/i386/efi/linux.c: Likewise.
25357 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25358 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25359 (DEFAULT_VIDEO_MODE): Likewise.
25360 (real_mode_target): New variable.
25361 (prot_mode_target): Likewise.
25362 (initrd_mem_target): Likewise.
25363 (relocator): Likewise.
25364 (efi_mmap_buf): Likewise.
25365 (efi_mmap_size): Likewise.
25366 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25367 (free_pages): Use relocator.
25368 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25369 (grub_linux_setup_video): Return error.
25370 (grub_linux_trampoline_start): Removed.
25371 (grub_linux_trampoline_end): Likewise.
25372 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25373 andd video parameters depending on firmware.
25374 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25375 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25376 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25377 (grub_cmd_initrd): Use relocator.
25378 * grub-core/loader/i386/linux_trampoline.S: Removed.
25379 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25380 (elf_sec_entsize): Likewise.
25381 (elf_sec_shstrndx): Likewise.
25382 (elf_sections): Likewise.
25383 (grub_multiboot_load): Use relocator.
25384 (grub_multiboot_get_mbi_size): Account for sections.
25385 (grub_multiboot_make_mbi): Use relocator and support sections.
25386 (grub_multiboot_add_elfsyms): New function.
25387 (grub_multiboot_free_mbi): Free sections.
25388 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25389 (grub_linux_real_target): Likewise.
25390 (grub_linux_real_chunk): Likewise.
25391 (grub_linux16_prot_size): Likewise.
25392 (grub_linux16_boot): Use relocator.
25393 (grub_linux_unload): Unload relocator.
25394 (grub_cmd_linux): Use relocator.
25395 (grub_cmd_initrd): Likewise.
25396 * grub-core/loader/i386/pc/ntldr.c: New file.
25397 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25398 Don't try to guess CPU frequency.
25399 (grub_xnu_set_video): Stretch bitmap.
25400 (grub_xnu_boot): Use relocator.
25401 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25402 (grub_linux_unload): Free relocator.
25403 (grub_linux_load32): Use relocator.
25404 (grub_linux_load64): Likewise.
25405 (grub_cmd_initrd): Likewise.
25406 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25407 (grub_multiboot_unload): Unload relocator.
25408 (grub_cmd_multiboot): Use relocator.
25409 (grub_cmd_module): Likewise.
25410 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25411 Use relocator and support sections.
25412 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25413 (elf_sec_entsize): Likewise.
25414 (elf_sec_shstrndx): Likewise.
25415 (elf_sections): Likewise.
25416 (grub_multiboot_load): Use relocator.
25417 (grub_multiboot_get_mbi_size): Account for sections.
25418 (grub_multiboot_make_mbi): Use relocator and support sections.
25419 (grub_multiboot_add_elfsyms): New function.
25420 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25421 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25422 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25423 Prototype changed. All users updated.
25424 (grub_xnu_align_heap): Simplified.
25425 (grub_xnu_writetree_toheap): Likewise.
25426 (grub_xnu_unload): Unload relocator.
25427 (grub_cmd_xnu_kernel): Use relocator.
25428 (grub_cmd_xnu_kernel64): Likewise.
25429 (grub_xnu_register_memory): Simplified.
25430 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25431 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25432 EFI is finished.
25433 (grub_console_checkkey): Likewise.
25434 (grub_console_getkey): Likewise.
25435 (grub_console_getwh): Likewise.
25436 (grub_console_getxy): Likewise.
25437 (grub_console_gotoxy): Likewise.
25438 (grub_console_cls): Likewise.
25439 (grub_console_setcolorstate): Likewise.
25440 (grub_console_setcursor): Likewise.
25441 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25442 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25443 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25444 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25445 * grub-core/tests/boot/kernel-8086.S: Likewise.
25446 * grub-core/tests/boot/kernel-i386.S: Likewise.
25447 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25448 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25449 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25450 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25451 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25452 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25453 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25454 * grub-core/tests/boot/linux.cfg: Likewise.
25455 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25456 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25457 * grub-core/tests/boot/linux16.cfg: Likewise.
25458 * grub-core/tests/boot/multiboot.cfg: Likewise.
25459 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25460 * grub-core/tests/boot/ntldr.cfg: Likewise.
25461 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25462 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25463 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25464 New definition.
25465 * include/grub/dl.h (grub_dl_unload_all): Removed.
25466 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25467 (grub_efi_finish_boot_services): Change prototype.
25468 (grub_efi_is_finished): New variable.
25469 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25470 Changed prototype.
25471 (grub_efiemu_finish_boot_services): Removed.
25472 (grub_machine_efiemu_init_tables): New prototype.
25473 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25474 (grub_elf64_phdr_iterate): Likewise.
25475 * include/grub/i386/bsd.h: Include relocator.h.
25476 (freebsd_tag_header): New struct.
25477 (grub_openbsd_bios_mmap): Removed.
25478 (grub_unix_real_boot): Removed.
25479 (grub_freebsd_load_elfmodule32): Changed prototype.
25480 (grub_freebsd_load_elfmodule_obj64): Likewise.
25481 (grub_freebsd_load_elf_meta32): Likewise.
25482 (grub_freebsd_load_elf_meta64): Likewise.
25483 (grub_freebsd_add_meta): Removed.
25484 (grub_netbsd_load_elf_meta32): New prototype.
25485 (grub_netbsd_load_elf_meta64): Likewise.
25486 (grub_bsd_add_meta): Likewise.
25487 (grub_openbsd_ramdisk_descriptor): New struct.
25488 (grub_openbsd_find_ramdisk32): New prototype.
25489 (grub_openbsd_find_ramdisk64): Likewise.
25490 * include/grub/i386/coreboot/loader.h: Removed.
25491 * include/grub/i386/efi/loader.h: Likewise.
25492 * include/grub/i386/ieee1275/loader.h: Likewise.
25493 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25494 to grub_uint32_t.
25495 * include/grub/i386/loader.h: Removed.
25496 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25497 value.
25498 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25499 (grub_phys_addr_t): New type.
25500 (grub_vtop): New inline function.
25501 (grub_map_memory): Likewise.
25502 (grub_unmap_memory): Likewise.
25503 * include/grub/i386/multiboot/loader.h: Removed.
25504 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25505 (NETBSD_BTINFO_CONSOLE): New definition.
25506 (NETBSD_BTINFO_SYMTAB): Likewise.
25507 (NETBSD_BTINFO_MODULES): Likewise.
25508 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25509 (grub_netbsd_bootinfo): New struct.
25510 (grub_netbsd_btinfo_common): Use explicit bitsize.
25511 (grub_netbsd_btinfo_mmap_entry): Removed.
25512 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25513 (grub_netbsd_btinfo_bootdisk): New struct.
25514 (grub_netbsd_btinfo_symtab): Likewise.
25515 (grub_netbsd_btinfo_serial): Likewise.
25516 (grub_netbsd_btinfo_modules): Likewise.
25517 (grub_netbsd_btinfo_framebuf): Likewise.
25518 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25519 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25520 Likewise.
25521 (grub_openbsd_bootargs): Use explicit bitsize.
25522 (grub_openbsd_bootarg_console): New struct.
25523 (GRUB_OPENBSD_COM_MAJOR): New definition.
25524 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25525 * include/grub/i386/pc/efiemu.h: Removed.
25526 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25527 * include/grub/i386/qemu/loader.h: Removed.
25528 * include/grub/i386/relocator.h: Rewritten.
25529 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25530 * include/grub/mips/memory.h: New file.
25531 * include/grub/mips/multiboot.h: Rewritten.
25532 * include/grub/mips/relocator.h: Rewritten.
25533 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25534 (grub_vtop): New function.
25535 (grub_map_memory): Likewise.
25536 (grub_unmap_memory): Likewise.
25537 * include/grub/misc.h (ALIGN_DOWN): New definition.
25538 * include/grub/mm.h (grub_mm_check_real): New proto.
25539 (GRUB_MM_CHECK): New definition.
25540 * include/grub/mm_private.h: New file.
25541 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25542 (grub_multiboot_get_mbi_size): Removed.
25543 (grub_multiboot_make_mbi): Change prottype.
25544 (grub_multiboot_set_accepts_video): New proto.
25545 (grub_multiboot_add_elfsyms): Likewise.
25546 (grub_multiboot_payload_eip): New variable.
25547 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25548 New prototype.
25549 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25550 New definition.
25551 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25552 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25553 * include/grub/powerpc/ieee1275/loader.h: Removed.
25554 * include/grub/powerpc/memory.h: New file.
25555 * include/grub/powerpc/relocator.h: Likewise.
25556 * include/grub/relocator.h: Likewise.
25557 * include/grub/relocator_private.h: Likewise.
25558 * include/grub/sparc64/ieee1275/loader.h: Removed.
25559 * include/grub/x86_64/memory.h: New file.
25560 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25561 (grub_xnu_heap_malloc): Likewise.
25562 (grub_xnu_heap_real_start): Removed.
25563 (grub_xnu_heap_start): Likewise.
25564 (grub_xnu_relocator): New variable.
25565 (grub_xnu_heap_target_start): Likewise.
25566 * tests/util/grub-shell.in: Support non-pc.
25567 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25568
25569 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25570
25571 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25572 on malloc error.
25573 (grub_bidi_logical_to_visual): Check that malloc succeded.
25574 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25575 puts.
25576 (grub_xputs_normal): Likewise.
25577
25578 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25579
25580 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25581 extra_dist.
25582
25583 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25584
25585 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25586
25587 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25588
25589 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25590
25591 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25592
25593 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25594 dprintf.
25595
25596 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25597
25598 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25599
25600 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25601
25602 * grub-core/normal/term.c (print_more): Fix a memory leak.
25603 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25604 (grub_xputs_normal): Likewise.
25605
25606 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25607
25608 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25609 the begining of the string
25610
25611 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25612
25613 * grub-core/script/script.c (grub_script_parse): Free parsed on
25614 failure.
25615
25616 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25617
25618 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25619 on failure.
25620
25621 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25622
25623 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25624 return.
25625
25626 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25627
25628 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25629 (scroll_up): Fix a memory leak.
25630
25631 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25632
25633 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25634 errors.
25635
25636 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25637
25638 Handle USB pendrives exposed as floppies.
25639
25640 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25641 floppy.
25642 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25643 Check for partitions on all devices.
25644
25645 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25646
25647 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25648 (readkey): Likewise.
25649
25650 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25651
25652 Multiple variable names support to "export" command.
25653
25654 * normal/context.c (grub_cmd_export): "export" command supports
25655 multiple variable names.
25656
25657 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25658
25659 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25660 --target=drive output to Mach device name.
25661
25662 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25663
25664 New Automake based build system for GRUB.
25665
25666 * ABOUT-NLS: New file.
25667 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25668 in Makefile.util.def file.
25669 * Makefile.util.def: New file. Autogen build definitions file for
25670 GRUB host utils.
25671 * conf/Makefile.common: New file. Common variables for GRUB host
25672 utils and target modules.
25673 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25674 * docs/Makefile.am: New file. Automake file for docs.
25675 * gentpl.py: New file. Python script to generate Autogen
25676 template.
25677 * grub-core/Makefile.am: New file. GRUB target modules' rules
25678 that doesn't fit in Makefile.core.def file.
25679 * grub-core/Makefile.core.def: New file. Autogen build
25680 definitions file for GRUB target modules.
25681 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25682 specific setjmp.S file.
25683 * po/Makefile.am: New file.
25684
25685 * .bzrignore: New ignores.
25686 * INSTALL: New requirements, without Ruby.
25687 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25688 * autogen.sh: Updated to invoke autogen as necessary.
25689 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25690 and defines for Automake conditionals.
25691 * geninit.sh: Refactoring.
25692
25693 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25694 necessary.
25695 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25696 New prototype.
25697
25698 * include/grub/test.h: Fix functional test modules' naming.
25699 * grub-core/tests/example_functional_test.c: Fix test module name.
25700
25701 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25702 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25703 * util/grub-editenv.c: Likewise.
25704 * util/grub-fstest.c: Likewise.
25705 * util/grub-mkdevicemap.c: Likewise.
25706 * util/grub-mkfont.c: Likewise.
25707 * util/grub-mkimage.c: Likewise.
25708 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25709 * util/grub-probe.c: Likewise.
25710 * util/grub-script-check.c: Likewise.
25711 * util/i386/pc/grub-setup.c: Likewise.
25712 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25713
25714 * tests/util/grub-shell.in: Fix override directory path.
25715 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25716 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25717
25718 * util/lvm.c: Update #includes.
25719 * util/raid.c: Likewise.
25720 * util/resolve.c: Likewise.
25721 * grub-core/bus/emu/pci.c: Likewise.
25722 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25723 * grub-core/lib/posix_wrap/string.h: Likewise.
25724 * grub-core/kern/emu/main.c: Likewise.
25725
25726 * grub-core/gensymlist.sh: New file. Script for generating kernel
25727 symbols file.
25728 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25729
25730 * grub-core/gentrigtables.c: Fix unused variable warnings.
25731
25732 * Makefile.in: Removed.
25733 * conf/any-emu.rmk: Removed.
25734 * conf/common.rmk: Removed.
25735 * conf/i386-coreboot.rmk: Removed.
25736 * conf/i386-efi.rmk: Removed.
25737 * conf/i386-ieee1275.rmk: Removed.
25738 * conf/i386-multiboot.rmk: Removed.
25739 * conf/i386-pc.rmk: Removed.
25740 * conf/i386-qemu.rmk: Removed.
25741 * conf/i386.rmk: Removed.
25742 * conf/mips-yeeloong.rmk: Removed.
25743 * conf/mips.rmk: Removed.
25744 * conf/powerpc-ieee1275.rmk: Removed.
25745 * conf/sparc64-ieee1275.rmk: Removed.
25746 * conf/tests.rmk: Removed.
25747 * conf/x86-efi.rmk: Removed.
25748 * conf/x86_64-efi.rmk: Removed.
25749 * gendistlist.sh: Removed.
25750 * geninitheader.sh: Removed.
25751 * genkernsyms.sh.in: Removed.
25752 * genmk.rb: Removed.
25753 * gensymlist.sh.in: Removed.
25754 * mkinstalldirs: Removed.
25755 * boot: Moved ...
25756 * grub-core/boot: ... to here.
25757 * bus: Moved ...
25758 * grub-core/bus: ... to here.
25759 * commands: Moved ...
25760 * grub-core/commands: ... to here.
25761 * disk: Moved ...
25762 * grub-core/disk: ... to here.
25763 * efiemu: Moved ...
25764 * grub-core/efiemu: ... to here.
25765 * font: Moved ...
25766 * grub-core/font: ... to here.
25767 * fs: Moved ...
25768 * grub-core/fs: ... to here.
25769 * gencmdlist.sh: Moved ...
25770 * grub-core/gencmdlist.sh: ... to here.
25771 * genemuinit.sh: Moved ...
25772 * grub-core/genemuinit.sh: ... to here.
25773 * genemuinitheader.sh: Moved ...
25774 * grub-core/genemuinitheader.sh: ... to here.
25775 * genfslist.sh: Moved ...
25776 * grub-core/genfslist.sh: ... to here.
25777 * genhandlerlist.sh: Moved ...
25778 * grub-core/genhandlerlist.sh: ... to here.
25779 * genmoddep.awk: Moved ...
25780 * grub-core/genmoddep.awk: ... to here.
25781 * genmodsrc.sh: Moved ...
25782 * grub-core/genmodsrc.sh: ... to here.
25783 * genpartmaplist.sh: Moved ...
25784 * grub-core/genpartmaplist.sh: ... to here.
25785 * genparttoollist.sh: Moved ...
25786 * grub-core/genparttoollist.sh: ... to here.
25787 * genterminallist.sh: Moved ...
25788 * grub-core/genterminallist.sh: ... to here.
25789 * gentrigtables.c: Moved ...
25790 * grub-core/gentrigtables.c: ... to here.
25791 * genvideolist.sh: Moved ...
25792 * grub-core/genvideolist.sh: ... to here.
25793 * gettext: Moved ...
25794 * grub-core/gettext: ... to here.
25795 * gfxmenu: Moved ...
25796 * grub-core/gfxmenu: ... to here.
25797 * gnulib: Moved ...
25798 * grub-core/gnulib: ... to here.
25799 * hello: Moved ...
25800 * grub-core/hello: ... to here.
25801 * hook: Moved ...
25802 * grub-core/hook: ... to here.
25803 * io: Moved ...
25804 * grub-core/io: ... to here.
25805 * kern: Moved ...
25806 * grub-core/kern: ... to here.
25807 * lib: Moved ...
25808 * grub-core/lib: ... to here.
25809 * loader: Moved ...
25810 * grub-core/loader: ... to here.
25811 * mmap: Moved ...
25812 * grub-core/mmap: ... to here.
25813 * normal: Moved ...
25814 * grub-core/normal: ... to here.
25815 * partmap: Moved ...
25816 * grub-core/partmap: ... to here.
25817 * parttool: Moved ...
25818 * grub-core/parttool: ... to here.
25819 * script: Moved ...
25820 * grub-core/script: ... to here.
25821 * term: Moved ...
25822 * grub-core/term: ... to here
25823 * tests/example_functional_test.c: Moved ...
25824 * grub-core/tests/example_functional_test.c: ... to here.
25825 * tests/lib/functional_test.c: Moved ...
25826 * grub-core/tests/lib/functional_test.c: ... to here.
25827 * tests/lib/test.c: Moved ...
25828 * grub-core/tests/lib/test.c: ... to here.
25829 * video: Moved ...
25830 * grub-core/video: ... to here.
25831
25832 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25833
25834 Replace --enable-grub-emu-modules with grub-emu-lite.
25835
25836 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25837 cache.S.
25838
25839 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25840 * kern/emu/full.c: New file. For grub-emu specific initialization.
25841 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25842 * kern/emu/main.c: Call initialization function grub_emu_init.
25843
25844 * Makefile.in: Include grub-emu-lite in install.
25845 * commands/parttool.c: Use grub_no_autoload to differentiate
25846 between grub-emu and grub-emu-lite.
25847 * include/grub/misc.h: New variable grub_no_autoload.
25848
25849 * conf/any-emu.rmk: New rules for grub-emu-lite.
25850 * configure.ac: Remove --enable-grub-emu-modules.
25851 * genmk.rb: Cleanup unnecessary rules.
25852 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25853
25854 * normal/main.c: Don't load list files on grub-emu-lite.
25855 * util/misc.c (grub_arch_sync_caches): Removed.
25856
25857 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25858
25859 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25860 grub-mkimage rather than grub-mkelfimage.
25861 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25862
25863 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25864
25865 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25866 a key after CapsLock or NumLock. It's just a qemu bug.
25867
25868 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25869
25870 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25871 needed by libusb wrapper.
25872
25873 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25874
25875 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25876
25877 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25878
25879 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25880 --nounzip is passed.
25881
25882 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25883
25884 USB hotunplugging and USB serial support.
25885
25886 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25887 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25888 (grub_uhci_transfer): Respect timeout and set *actual.
25889 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25890 non-standard length.
25891 (grub_usb_device_attach): Autoload modules.
25892 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25893 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25894 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25895 users updated.
25896 (grub_usb_add_hub): Fill nports and children.
25897 (attach_root_port): Receive hub instead of controller.
25898 All users updated. Fill hub->devices.
25899 (grub_usb_root_hub): Allocate hub->devices.
25900 (detach_device): New function.
25901 (poll_nonroot_hub): Fill children and detach devices.
25902 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25903 actual arguments. All users updated.
25904 (grub_usb_bulk_read_extended): New function.
25905 * bus/usb/serial/common.c: New file.
25906 * bus/usb/serial/ftdi.c: Likewise.
25907 * bus/usb/serial/pl2303.c: Likewise.
25908 * commands/terminal.c (handle_command): Support wildcard.
25909 * commands/usbtest.c: Output "Unknown" instead of empty string.
25910 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25911 (usbserial_common_mod_SOURCES): New variable.
25912 (usbserial_common_mod_CFLAGS): Likewise.
25913 (usbserial_common_mod_LDFLAGS): Likewise.
25914 (pkglib_MODULES): Add usbserial_pl2303.mod.
25915 (usbserial_pl2303_mod_SOURCES): New variable.
25916 (usbserial_pl2303_mod_CFLAGS): Likewise.
25917 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25918 (pkglib_MODULES): Add usbserial_ftdi.mod.
25919 (usbserial_ftdi_mod_SOURCES): New variable.
25920 (usbserial_ftdi_mod_CFLAGS): Likewise.
25921 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25922 (pkglib_MODULES): Add serial.mod.
25923 (serial_mod_SOURCES): New variable.
25924 (serial_mod_CFLAGS): Likewise.
25925 (serial_mod_LDFLAGS): Likewise.
25926 * conf/i386-pc.rmk: Likewise.
25927 * conf/mips-yeeloong.rmk: Likewise.
25928 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25929 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25930 * disk/usbms.c (first_available_slot): New variable.
25931 (grub_usbms_attach): Don't reuse free slots due to potential cache
25932 problems.
25933 * include/grub/serial.h: Moved to ..
25934 * include/grub/ns8250.h: ...this.
25935 * include/grub/serial.h: New file.
25936 * include/grub/term.h (grub_term_poll_usb): New variable.
25937 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25938 readkey. All users updated.
25939 (grub_terminfo_output_state): Pass term to put.
25940 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25941 (grub_usb_controller_dev): Add timeout and actual arguments to
25942 transfer. All users updated.
25943 (grub_usb_interface): New field detach_data.
25944 (grub_usb_device): New fields children and nports.
25945 (grub_usb_ep_type_t): New type.
25946 (grub_usb_get_ep_type): New function.
25947 (grub_usb_bulk_read_extended): Likewise.
25948 * include/grub/usbdesc.h (grub_usb_desc): New type.
25949 * include/grub/usbserial.h: New file.
25950 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25951 * kern/term.c (grub_term_poll_usb): New variable.
25952 (grub_getkey): Call grub_term_poll_usb if set.
25953 (grub_checkkey): Likewise.
25954 (grub_getkeystatus): Likewise.
25955 * term/serial.c: Moved controller-specific parts to ...
25956 * term/ns8250.c: ... here.
25957 * term/serial.c: Mostly rewritten.
25958 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25959 according to spec.
25960
25961 2010-08-20 Robert Millan <rmh@gnu.org>
25962
25963 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25964 a separate module and maybe other interesting combinations.
25965
25966 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25967 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25968 (kfreebsd_entry): Add generic filesystem module load routine.
25969 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25970
25971 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25972
25973 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25974 "numcenter" (I misunderstood the purpose of this entry).
25975 * docs/grub.texi (sendkey): Likewise.
25976
25977 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25978
25979 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25980 status flag options; simply omitting the option is equivalent and
25981 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25982 (keysym_table): Rename "num5numlock" to "numlock".
25983 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25984 can uniformly say that only the last of multiple `sendkey'
25985 invocations has any effect.
25986 * docs/grub.texi (sendkey): New section.
25987
25988 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25989
25990 * commands/i386/pc/sendkey.c (options): Fix three typos.
25991
25992 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25993
25994 Implement sendkey support.
25995
25996 * commands/i386/pc/sendkey.c: New file.
25997 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25998 (sendkey_mod_SOURCES): New variable.
25999 (sendkey_mod_CFLAGS): Likewise.
26000 (sendkey_mod_LDFLAGS): Likewise.
26001
26002 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26003
26004 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26005 fix warnings from Autoconf.
26006
26007 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
26008
26009 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26010 to avoid false positives with some assemblers that output things
26011 like "someprefix_func" as part of their output.
26012
26013 2010-08-15 Robert Millan <rmh@gnu.org>
26014
26015 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26016 errors.
26017 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26018 grub_get_libzfs_handle() errors.
26019
26020 2010-08-14 Robert Millan <rmh@gnu.org>
26021
26022 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26023 filesystem is not ZFS.
26024
26025 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26026
26027 Fix for misspelled color names defaulting to black/black (bug
26028 reported by Doug Nazar)
26029
26030 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26031 status to prototype.
26032 * normal/color.c (grub_parse_color_name_pair): Return failure
26033 status.
26034 (grub_env_write_color_normal): Ignore bad color names.
26035 (grub_env_write_color_highlight): Likewise.
26036 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26037
26038 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26039
26040 "shift" command support to GRUB script.
26041
26042 * include/grub/script_sh.h (grub_script_shift): New prototype.
26043 * script/execute.c (grub_script_shift): New function.
26044 * script/main.c (grub_script_init): Register shift command.
26045 (grub_script_fini): Unregister shift command.
26046 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26047
26048 * tests/grub_script_shift.in: New testcase.
26049 * conf/tests.rmk: Rules for new testcase.
26050
26051 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26052
26053 "continue" command support to GRUB script.
26054
26055 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26056 (grub_script_break): Continue support.
26057 * script/main.c (grub_script_init): Register continue command.
26058 (grub_script_fini): Unregister continue command.
26059
26060 * tests/grub_script_continue.in: New testcase.
26061 * conf/tests.rmk: Rules for new testcase.
26062
26063 2010-08-12 BVK Chaitanya <bvk@dbook>
26064
26065 "break" command support to GRUB script.
26066
26067 * conf/common.rmk: Rule updates to grub-script-check.
26068 * include/grub/misc.h (grub_min): New function.
26069 * include/grub/script_sh.h (grub_script_init): New prototype.
26070 (grub_script_fini): New prototype.
26071 (grub_script_break): New prototype.
26072 * script/main.c (grub_script_init): New function.
26073 (grub_script_fini): New function.
26074 * script/execute.c (grub_script_break): New function.
26075 * normal/main.c: Calls to grub_script_{init,fini}.
26076 * util/grub-script-check.c (grub_script_break): New function.
26077
26078 * tests/grub_script_break.in: New testcase.
26079 * conf/tests.rmk: Rules for new test case.
26080
26081 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26082
26083 Function parameters support to GRUB script.
26084
26085 * script/yylex.l (VARIABLE): Regular expression update.
26086 * script/function.c (grub_script_function_call): Moved ...
26087 * script/execute.c (grub_script_function_call): ... to here.
26088 (grub_script_execute_arglist_to_argv): Removed.
26089 (grub_script_arglist_to_argv): New function.
26090 * script/argv.c: New file.
26091 (grub_script_argv_free): New function.
26092 (grub_script_argv_next): Likewise.
26093 (grub_script_argv_append): Likewise.
26094 (grub_script_argv_split_append): Likewise.
26095 * include/grub/script_sh.h (grub_script_argv): New struct.
26096 (grub_script_argv_free): New function.
26097 (grub_script_argv_next): Likewise.
26098 (grub_script_argv_append): Likewise.
26099 (grub_script_argv_split_append): Likewise.
26100
26101 * conf/common.rmk (normal.mod): New source script/argv.c.
26102
26103 * tests/grub_script_echo1.in: More tests.
26104 * tests/grub_script_vars1.in: Likewise.
26105 * tests/grub_script_functions.in: New test case.
26106 * conf/tests.rmk: Rules for new testcase.
26107
26108 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26109
26110 Remove grub_script_cmdblock struct.
26111
26112 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26113 * script/parser.y: Likewise.
26114 * script/execute.c: Rename cmdblock suffix to cmdlist.
26115 * script/script.c: Likewise.
26116 * util/grub-script-check.c: Likewise.
26117
26118 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26119
26120 * .bzrignore: add grub-macho2img
26121
26122 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26123
26124 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26125
26126 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26127
26128 Remove the dump of sm712 initialisation sequence.
26129
26130 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26131 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26132 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26133 (GRUB_VGA_CR_*): Added many registers.
26134 (GRUB_VGA_SR_*): Likewise.
26135 (GRUB_VGA_GR_*): Likewise.
26136 (grub_vga_write_arx): New function.
26137 (grub_video_hw_config): New struct.
26138 (grub_vga_set_geometry): New function.
26139 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26140 GRUB_PCI_CLASS_SUBCLASS_VGA.
26141 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26142 * video/sm712.c (grub_sm712_write_reg): New function
26143 (grub_sm712_read_reg): Likewise.
26144 (grub_sm712_sr_write): Likewise.
26145 (grub_sm712_gr_write): Likewise.
26146 (grub_sm712_cr_write): Likewise.
26147 (grub_sm712_write_arx): Likewise.
26148 (grub_sm712_cr_shadow_write): Likewise.
26149 (grub_sm712_write_dda_lookup): Likewise.
26150 (grub_video_sm712_setup): Initialise the video rather then
26151 blindly replay the dump.
26152 (main) [TEST]: Add a routine to be able to compile as standalone for
26153 tests.
26154 * video/sm712_init.c (sm712_init): Removed.
26155 (sm712_sr_seq1): New array.
26156 (sm712_sr_seq2): Likewise.
26157
26158 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26159
26160 * include/grub/vga.h: Add missing grub/pci.h include.
26161
26162 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26163
26164 * util/grub-macho2img.c (main): fix typo
26165
26166 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26167
26168 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26169 (grub_vga_gr_read): Likewise.
26170 (grub_vga_cr_write): Likewise.
26171 (grub_vga_cr_read): Likewise.
26172 (grub_vga_sr_write): Likewise.
26173 (grub_vga_sr_read): Likewise.
26174 (grub_vga_palette_read): Likewise.
26175 (grub_vga_palette_write): Likewise.
26176 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26177 (grub_sm712_sr_read): New function.
26178 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26179 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26180
26181 2010-08-09 Robert Millan <rmh@gnu.org>
26182
26183 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26184 out unused variables on non-ZFS build.
26185
26186 2010-08-08 Robert Millan <rmh@gnu.org>
26187
26188 Fix path generation for sub-filesystems in ZFS.
26189
26190 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26191 missing slash.
26192
26193 2010-08-08 Robert Millan <rmh@gnu.org>
26194
26195 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26196
26197 2010-08-08 Robert Millan <rmh@gnu.org>
26198
26199 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26200 exist, issue a proper error message (rely on `ls' for translated
26201 strings).
26202
26203 2010-08-08 Robert Millan <rmh@gnu.org>
26204
26205 Fix grub-probe invocation.
26206
26207 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26208
26209 2010-08-04 Robert Millan <rmh@gnu.org>
26210
26211 * configure.ac: Remove checks for getfsstat() and getmntany().
26212 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26213 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26214 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26215 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26216 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26217 function.
26218 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26219 via find_mount_point_from_dir() and getfsstat() / getmntany().
26220
26221 2010-08-04 Robert Millan <rmh@gnu.org>
26222
26223 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26224 (grub_find_zpool_from_mount_point): Merge into ...
26225 (grub_find_zpool_from_dir): ... this.
26226 * kern/emu/misc.c: Likewise.
26227
26228 * kern/emu/misc.c
26229 (grub_make_system_path_relative_to_its_root): Replace
26230 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26231 with grub_find_zpool_from_dir().
26232 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26233
26234 2010-08-04 Robert Millan <rmh@gnu.org>
26235
26236 Support OpenSolaris in ZFS device resolution.
26237
26238 * configure.ac: Check for getmntany().
26239 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26240 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26241 support.
26242
26243 2010-08-03 Robert Millan <rmh@gnu.org>
26244
26245 Fix grub-emu build.
26246
26247 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26248 * include/grub/emu/misc.h: ... here.
26249
26250 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26251 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26252
26253 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26254 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26255 (grub_get_libzfs_handle): Move to ...
26256 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26257 (grub_get_libzfs_handle): ... here.
26258
26259 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26260
26261 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26262 as command name case.
26263
26264 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26265
26266 * disk/raid.c (insert_array): Select unique numbers for named arrays
26267 as well, for use as keys in the disk cache.
26268
26269 2010-08-01 Robert Millan <rmh@gnu.org>
26270
26271 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26272 kFreeBSD device name, except on ZFS where the filesystem label is
26273 used.
26274 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26275 `/boot/zfs/zpool.cache'.
26276 Set mountfrom kernel variable using ${kfreebsd_device}.
26277
26278 2010-08-01 Robert Millan <rmh@gnu.org>
26279
26280 Make it even harder to use uninitialized `libzfs_handle' (and
26281 make the interface a bit simpler).
26282
26283 * include/grub/util/misc.h (grub_util_init_libzfs)
26284 (libzfs_handle): Remove.
26285 (grub_get_libzfs_handle): New prototype.
26286
26287 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26288 attribute.
26289 (grub_util_init_libzfs): Remove.
26290 (grub_get_libzfs_handle): New function.
26291
26292 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26293 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26294 accessing `libzfs_handle' directly.
26295
26296 2010-08-01 Robert Millan <rmh@gnu.org>
26297
26298 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26299 (grub_find_zpool_from_mount_point): New function prototypes.
26300
26301 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26302 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26303
26304 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26305 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26306 `static' attribute.
26307
26308 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26309 finding zpool from mount point into ...
26310 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26311
26312 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26313 requested path is part of a ZFS pool, use
26314 grub_find_zpool_from_mount_point() to detect its filesystem name,
26315 and generate a path with `/fsname@path' syntax.
26316
26317 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26318
26319 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26320 (void) rather than () so that this is a proper prototype.
26321
26322 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26323
26324 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26325
26326 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26327
26328 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26329 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26330
26331 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26332
26333 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26334
26335 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26336
26337 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26338
26339 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26340
26341 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26342 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26343 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26344 disable gfxpayload.
26345 (Shell-like scripting): Add real content.
26346 (Serial terminal): Suggest `terminal_input serial; terminal_output
26347 serial' rather than putting the two commands on separate lines,
26348 since console input will be inoperative after the first command.
26349 (menuentry): Document --class, --users, and --hotkey options.
26350 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26351 Vladimir Serbinenko).
26352
26353 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26354 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26355
26356 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26357
26358 2010-08-01 Robert Millan <rmh@gnu.org>
26359
26360 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26361 (grub_find_zpool_from_mount_point): New function prototypes.
26362
26363 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26364 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26365
26366 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26367 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26368 `static' attribute.
26369
26370 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26371 finding zpool from mount point into ...
26372 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26373
26374 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26375 requested path is part of a ZFS pool, use
26376 grub_find_zpool_from_mount_point() to detect its filesystem name,
26377 and generate a path with `/fsname@path' syntax.
26378
26379 2010-08-01 Robert Millan <rmh@gnu.org>
26380
26381 Prevent accidental use of uninitialized libzfs_handle.
26382
26383 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26384 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26385 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26386
26387 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26388
26389 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26390 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26391
26392 2010-08-01 Robert Millan <rmh@gnu.org>
26393
26394 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26395
26396 2010-07-31 Robert Millan <rmh@gnu.org>
26397
26398 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26399
26400 2010-07-31 Robert Millan <rmh@gnu.org>
26401
26402 * kern/emu/misc.c: Add missing license header.
26403
26404 2010-07-31 Robert Millan <rmh@gnu.org>
26405
26406 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26407
26408 * include/grub/util/libnvpair.h: Include `<config.h>'.
26409 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26410 declaring libnvpair prototypes ourselves.
26411 * include/grub/util/libzfs.h: Include `<config.h>'.
26412 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26413 declaring libzfs prototypes ourselves.
26414
26415 (libzfs_handle): Moved to ...
26416 * include/grub/util/misc.h (libzfs_handle): ... here.
26417 Include `<grub/util/libzfs.h>'.
26418
26419 2010-07-30 Robert Millan <rmh@gnu.org>
26420
26421 * include/grub/emu/misc.h: Add missing license header.
26422
26423 2010-07-30 Robert Millan <rmh@gnu.org>
26424
26425 Enable `grub-probe -t device' resolution on ZFS.
26426
26427 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26428 * include/grub/util/libnvpair.h: New file.
26429 * include/grub/util/libzfs.h: New file.
26430
26431 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26432 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26433 `<grub/util/libnvpair.h>'.
26434 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26435
26436 (find_mount_point_from_dir): New static function.
26437 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26438 function.
26439 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26440 find_root_device_from_libzfs() before ressorting to find_root_device().
26441
26442 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26443 prototype.
26444 * util/misc.c: Include `<grub/util/libzfs.h>'.
26445 (grub_util_init_libzfs): New function.
26446 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26447 [HAVE_LIBZFS] (fini_libzfs): New static function.
26448 (grub_util_init_libzfs): New function.
26449 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26450
26451 2010-07-30 Robert Millan <rmh@gnu.org>
26452
26453 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26454 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26455 `warn_unused_result' attribute.
26456 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26457 (grub_xasprintf, grub_xvasprintf): Likewise.
26458 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26459
26460 2010-07-29 Robert Millan <rmh@gnu.org>
26461
26462 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26463 (probe): Handle `PRINT_FS_LABEL'.
26464 (main): Handle `-t fs_label'.
26465
26466 2010-07-29 Robert Millan <rmh@gnu.org>
26467
26468 * configure.ac: Remove grub-mkisofs checks.
26469
26470 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26471
26472 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26473 Reported by: Lennart Sorensen.
26474
26475 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26476
26477 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26478 prior to terminal_input/terminal_output separation. It's been over 1.5
26479 years and those versions weren't widely deployed.
26480
26481 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26482
26483 * disk/raid.c (insert_array): Don't count named arrays when looking
26484 for unused array numbers.
26485 Reported and tested by: Michael Guntsche.
26486
26487 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26488
26489 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26490 implementation of this so that grub-emu links again, with a note
26491 that this should support hotplugging in the future.
26492
26493 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26494
26495 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26496
26497 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26498
26499 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26500 handle on failure.
26501 (grub_loopback_close): Remove empty function.
26502 (grub_loopback_dev): Remove close method.
26503
26504 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26505
26506 Disable EFI cursor when the EFI console becomes inactive.
26507
26508 * term/efi/console.c (grub_efi_console_init): New function.
26509 (grub_efi_console_fini): New function.
26510 (grub_console_term_output): Register init and fini methods.
26511
26512 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26513
26514 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26515 sh script.
26516
26517 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26518
26519 * disk/loopback.c (grub_loopback): Replace filename with file.
26520 (delete_loopback): Handle new semantics.
26521 (grub_cmd_loopback): Likewise.
26522 (grub_loopback_iterate): Likewise.
26523 (grub_loopback_close): Likewise.
26524
26525 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26526
26527 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26528 with -p "".
26529 Reported by: Tito Keitel.
26530
26531 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26532
26533 * docs/grub.texi (Naming convention): Document new naming convention.
26534
26535 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26536 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26537
26538 Generate device.map in something closer to the old ordering.
26539
26540 * util/deviceiter.c (struct device): New declaration.
26541 (compare_file_names): Rename to ...
26542 (compare_devices): ... this. Sort by kernel name in preference to
26543 the stable by-id name, but keep the latter as a fallback comparison.
26544 Update header comment.
26545 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26546 of `struct device' rather than of plain file names.
26547
26548 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26549
26550 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26551 on i386.
26552
26553 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26554
26555 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26556 hardcoding size.
26557 (setv1table): Likewise.
26558
26559 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26560
26561 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26562 removing the homehost if present.
26563 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26564 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26565 removing the homehost if present.
26566 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26567 if possible.
26568 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26569
26570 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26571 parameter. Set its pointer target to 0.
26572 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26573 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26574 `data_offset' value from the superblock for 1.x metadata.
26575 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26576 data on the device.
26577 (insert_array): Record the start sector of data on the device.
26578 (grub_raid_register): Pass start_sector parameters to
26579 grub_raid_list->detect and insert_array.
26580 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26581 member.
26582 (struct grub_raid): Add start_sector parameter to `detect'.
26583
26584 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26585 __attribute__ ((packed)), leaving a comment.
26586 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26587 (grub_mdraid_detect_09): ... here and ...
26588 (grub_mdraid_detect_1x): ... here.
26589
26590 2010-07-20 Peter Henn <peter.henn@web.de>
26591
26592 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26593 chunk size and disk size, which are already given as sector counts
26594 as distinct from the 0.90 units. Fetch the correct device number
26595 from the role table instead of using the table index.
26596
26597 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26598
26599 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26600 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26601 (WriteMostly1): New macro.
26602 Set array->name to NULL for metadata format 0.90. Add support for
26603 metadata 1.x. Fix some comments.
26604 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26605 few comments.
26606 * util/getroot.c (grub_util_get_grub_dev): Add support for
26607 /dev/md/name style devices.
26608
26609 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26610
26611 * .bzrignore: Ignore 20_linux_xen.
26612
26613 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26614
26615 * util/import_unicode.py: Remove unnecessary imports.
26616
26617 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26618
26619 Hotplugging and USB hub support.
26620
26621 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26622 (grub_ohci): Likewise.
26623 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26624 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26625 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26626 (GRUB_OHCI_CTRL_EDS): Likewise.
26627 (GRUB_OHCI_BULK_EDS): Likewise.
26628 (GRUB_OHCI_TDS): Likewise.
26629 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26630 (grub_ohci_ed_phys2virt): New function.
26631 (grub_ohci_virt_to_phys): Likewise.
26632 (grub_ohci_td_phys2virt): Likewise.
26633 (grub_ohci_td_virt2phys): Likewise.
26634 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26635 attachment.
26636 (grub_ohci_find_ed): New function.
26637 (grub_ohci_alloc_td): Likewise.
26638 (grub_ohci_free_td): Likewise.
26639 (grub_ohci_free_tds): Likewise.
26640 (grub_ohci_transfer): Use previously allocated memory.
26641 (grub_ohci_portstatus): Reset status changed bit.
26642 (grub_ohci_detect_dev): Supply status changed.
26643 (grub_ohci_fini_hw): Free memory.
26644 (grub_ohci_restore_hw): Reallocate memory.
26645 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26646 Reset status change.
26647 (grub_uhci_detect_dev): Supply status_change.
26648 * bus/usb/usb.c (attach_hooks): New var.
26649 (grub_usb_device_attach): New function.
26650 (grub_usb_register_attach_hook_class): Likewise.
26651 (grub_usb_unregister_attach_hook_class): Likewise.
26652 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26653 (grub_usb_add_hub): Reset connection changed bit.
26654 (attach_root_port): New function.
26655 (grub_usb_root_hub): Likewise.
26656 (poll_nonroot_hub): Likewise.
26657 (grub_usb_poll_devices): Likewise.
26658 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26659 * disk/usbms.c (grub_usbms_open): Use device hooks.
26660 (grub_usbms_iterate) :Poll devices.
26661 (grub_usbms_finddevs): Split into ...
26662 (grub_usbms_attach): ... this ...
26663 (grub_usbms_attach): ... and this.
26664 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26665 in detect_dev.
26666 (grub_usb_interface): New fields attached and detach_hook.
26667 (grub_usb_attach_hook_class): New type.
26668 (grub_usb_attach_desc): New struct.
26669 (grub_usb_register_attach_hook_class): New function.
26670 (grub_usb_unregister_attach_hook_class): Likewise.
26671 (grub_usb_poll_devices): Likewise.
26672 (grub_usb_device_attach): Likewise.
26673 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26674 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26675
26676 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26677
26678 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26679 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26680 delta determination style. Works with most NetBSD partitions too.
26681
26682 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26683
26684 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26685 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26686
26687 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26688
26689 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26690
26691 2010-07-14 Anton Blanchard <anton@samba.org>
26692
26693 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26694 ET_DYN files.
26695
26696 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26697
26698 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26699
26700 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26701
26702 * kern/partition.c (grub_partition_check_containment): New function to
26703 check that a partition is physically contained in a parent. Since
26704 offsets are relative (and non-negative), this reduces to checking that
26705 the partition ends before its parent.
26706 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26707 (grub_partition_iterate): Likewise.
26708 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26709 comments.
26710 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26711 partitions that start before their parent, and add debug printfs.
26712
26713 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26714
26715 * Makefile.in (.SUFFIX): Spell correctly, as ...
26716 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26717 bare module name without `.mod', e.g. `test') tried to invoke a
26718 Modula-2 compiler.
26719
26720 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26721
26722 * README: Point to the Info manual.
26723
26724 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26725
26726 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26727 2nd superblock position from partition size.
26728
26729 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26730
26731 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26732 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26733 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26734 outputs.
26735
26736 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26737
26738 Restructure SCSI .id handling.
26739 Reported and tested by: Aleš Nesrsta.
26740
26741 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26742 (grub_atapi_dev): Changed .name to "ata". New field .id.
26743 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26744 (grub_usbms_dev): New field .id.
26745 * disk/scsi.c (grub_scsi_iterate): Generate name.
26746 (grub_scsi_open): Parse name.
26747 * include/grub/scsi.h (grub_make_scsi_id): New function.
26748 (grub_scsi_dev): Change iterate and open to number instead of naming
26749 busses. All users updated.
26750 (grub_scsi): Remove name. Add .bus.
26751
26752 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26753
26754 * commands/help.c (grub_cmd_help): Fix a typo.
26755
26756 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26757
26758 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26759 Reported and tested by: Colin Watson.
26760
26761 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26762
26763 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26764 in this context.
26765
26766 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26767
26768 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26769
26770 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26771
26772 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26773 indentation.
26774
26775 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26776
26777 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26778 and disk/raid6_recover.c.
26779 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26780 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26781
26782 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26783
26784 * term/gfxterm.c (repaint_schedulded): Rename to ...
26785 (repaint_scheduled): ... this. Update all callers.
26786 (repaint_was_schedulded): Rename to ...
26787 (repaint_was_scheduled): ... this. Update all callers.
26788
26789 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26790
26791 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26792 which we expect to be handled by upper layers.
26793
26794 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26795
26796 * bus/usb/usbhub.c: #include time.h header.
26797
26798 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26799
26800 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26801 entry_name also for entries without stat blocks (e.g. ".."); fixes
26802 corruption of the first entry in a directory.
26803
26804 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26805
26806 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26807 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26808 doesn't work otherwise.
26809
26810 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26811
26812 * docs/grub.texi (Features): Update list of supported file systems.
26813 (GNU/Linux): Update for GRUB 2.
26814 (Serial terminal): Remove mention of --disable-serial, which was a
26815 GRUB Legacy configure option. Update instructions to use
26816 `terminal_input' and `terminal_output' rather than `terminal'.
26817 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26818 configuration' and `Installing GRUB using grub-install'.
26819 (Menu entry editor): Update for GRUB 2.
26820 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26821 Document new -a, -u, and -v options.
26822 (initrd): New section.
26823 (initrd16): New section.
26824 (linux): New section.
26825 (linux16): New section.
26826 (search): The `var' argument to `--set' is optional.
26827 (GRUB only offers a rescue shell): Go into a little more detail on
26828 drive ordering.
26829
26830 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26831
26832 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26833
26834 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26835
26836 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26837 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26838
26839 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26840
26841 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26842 install_prefix, in line with install_dos_part and install_bsd_part.
26843 Add new prefix variable, which is copied to install_prefix after
26844 comparing core.img in memory with the one read from disk in the
26845 no-embedding case, and use that rather than overwriting
26846 install_prefix immediately when installing to a partition.
26847 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26848 Bicakci.
26849
26850 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26851
26852 * configure.ac: Avoid == in test command, it's not portable.
26853 * util/grub.d/30_os-prober.in: Likewise.
26854
26855 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26856
26857 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26858
26859 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26860
26861 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26862 multiple (top-level) partmaps.
26863
26864 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26865
26866 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26867 Reported by: Tino Keitel.
26868
26869 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26870
26871 Bidi and diacritics support.
26872
26873 * Makefile.in (widthspec.bin): New target.
26874 (widthspec.h): Likewise.
26875 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26876 * autogen.sh: Generate unidata.c.
26877 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26878 * commands/ls.c (grub_ls_list_devices): Likewise.
26879 (grub_ls_list_files): Likewise.
26880 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26881 (grub_mini_cmd_lsmod): Likewise.
26882 * commands/read.c: Likewise.
26883 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26884 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26885 * lib/arg.c (grub_arg_show_help): Likewise.
26886 * lib/crypto.c (grub_password_get): Likewise.
26887 * normal/auth.c (grub_username_get): Likewise.
26888 * normal/misc.c (grub_normal_print_device_info): Likewise.
26889 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26890 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26891 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26892 (normal/charset.c_DEPENDENCIES): New variable.
26893 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26894 (pkglib_MODULES): Remove charset.mod.
26895 (charset_mod_SOURCES): Removed.
26896 (charset_mod_CFLAGS): Likewise.
26897 (charset_mod_LDFLAGS): Likewise.
26898 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26899 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26900 and term/tparm.c.
26901 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26902 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26903 (kernel_img_HEADERS): Add terminfo.h.
26904 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26905 Fill ->font. Reverse ascii bitmaps.
26906 (grub_font_get_xheight): New function.
26907 * font/font.c (grub_font_get_string_width): Moved from here ...
26908 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26909 * font/font.c (grub_font_draw_string): Moved from here ...
26910 * gfxmenu/font.c (grub_font_draw_string): ... here.
26911 * font/font.c (grub_font_dup_glyph): New function.
26912 (grub_font_blit_glyph): Likewise.
26913 (grub_font_blit_glyph_mirror): Likewise.
26914 (blit_comb): Likewise.
26915 (grub_font_construct_dry_run): Likewise.
26916 (grub_font_get_constructed_device_width): Likewise.
26917 (grub_font_construct_glyph): Likewise.
26918 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26919 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26920 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26921 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26922 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26923 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26924 (grub_font_get_xheight): New proto.
26925 (grub_font_get_constructed_device_width): Likewise.
26926 (grub_font_construct_glyph): Likewise.
26927 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26928 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26929 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26930 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26931 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26932 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26933 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26934 (grub_console_getcharwidth): Likewise.
26935 * include/grub/misc.h (grub_xputs): New proto.
26936 (grub_puts): Inlined.
26937 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26938 (grub_normal_get_line_counter): Removed.
26939 (grub_install_newline_hook): Likewise.
26940 (grub_normal_get_char_counter): New proto.
26941 (grub_normal_reset_more): Likewise.
26942 (grub_xputs_normal): Likewise.
26943 * include/grub/powerpc/ieee1275/console.h: Removed.
26944 * include/grub/sparc64/ieee1275/console.h: Likewise.
26945 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26946 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26947 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26948 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26949 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26950 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26951 (grub_term_input): Pass reference to self. All users updated.
26952 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26953 Pass reference to self. New fields normal_color, highlight_color and
26954 data. All users updated.
26955 (grub_putchar): Removed.
26956 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26957 (grub_unicode_estimate_width): New function.
26958 (grub_term_getcharwidth): Add defaults.
26959 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26960 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26961 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26962 (grub_cls): Remove EXPORT_FUNC.
26963 (grub_setcolorstate): Inline.
26964 (grub_newline_hook): Removed.
26965 * include/grub/terminfo.h: Rewritten. All users updated.
26966 * include/grub/unicode.h: New file.
26967 * include/grub/video.h (grub_video_signed_rect): New type.
26968 * kern/emu/console.c (grub_console_highlight_color): Removed.
26969 (grub_console_normal_color): Likewise.
26970 (grub_console_standard_color): Made static.
26971 (grub_ncurses_putchar): Remove mapping.
26972 (grub_ncurses_getcharwidth): Removed.
26973 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26974 (grub_ncurses_setcolor): Removed.
26975 (grub_ncurses_getcolor): Likewise.
26976 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26977 (grub_console_putchar): ... this.
26978 (grub_console_putchar): Handle argument difference.
26979 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26980 console_init_early and console_init_lately.
26981 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26982 * kern/misc.c (grub_puts): Removed.
26983 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26984 (grub_vsnprintf_real): Remove str = NULL support.
26985 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26986 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26987 * kern/term.c (grub_putcode): Renamed to ...
26988 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26989 (grub_putchar): Removed.
26990 (grub_xputs_dumb): New function.
26991 (grub_xputs): New variable.
26992 * lib/charset.c: Move from here ...
26993 * normal/charset.c: ... to here.
26994 (grub_ucs4_to_utf8): New function.
26995 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26996 (join_types): New variable.
26997 (unpack_join): New function.
26998 (bidi_types): New variable.
26999 (unpack_bidi): New function.
27000 (get_bidi_type): Likewise.
27001 (get_join_type): Likewise.
27002 (is_mirrored): Likewise.
27003 (grub_unicode_get_comb_type): Likewise.
27004 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27005 (is_type_after): Likewise.
27006 (grub_unicode_aglomerate_comb): Likewise.
27007 (bidi_line_wrap): Likewise.
27008 (grub_bidi_line_logical_to_visual): Likewise.
27009 (grub_bidi_logical_to_visual): Likewise.
27010 (grub_unicode_mirror_code): Likewise.
27011 (grub_unicode_shape_code): Likewise.
27012 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27013 Don't use grub_putchar.
27014 * normal/main.c (grub_normal_init_page): Use grub_putcode.
27015 (grub_normal_reader_init): Likewise.
27016 (grub_xputs_saved): New variable.
27017 (GRUB_MOD_INIT): Set grub_xputs.
27018 (GRUB_MOD_FINI): Restore grub_xputs.
27019 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27020 (menu_init): Avoid printing gfxmenu error.
27021 (show_menu): Use grub_normal_get_char_counter.
27022 * normal/menu_entry.c (update_screen): Fix out-of-array.
27023 (complete): Avoid NULL dereferencing.
27024 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27025 * normal/menu_text.c (print_spaces): Removed.
27026 (grub_print_ucs4): Likewise.
27027 (grub_print_message_indented): Use grub_print_ucs4.
27028 (print_message): Use grub_putcode.
27029 (print_entry): Hanlde diacritics.
27030 * normal/term.c (term_state): New type.
27031 (grub_more_lines): Removed.
27032 (term_states): New variable.
27033 (grub_normal_line_counter): Renamed to ..
27034 (grub_normal_char_counter): ...this. All users updated.
27035 (grub_normal_get_line_counter): Renamed to ...
27036 (grub_normal_get_char_counter): ... this.
27037 (grub_normal_reset_more): New function.
27038 (process_newline): Removed.
27039 (print_more): New function.
27040 (grub_install_newline_hook): Removed.
27041 (map_code): New function.
27042 (grub_puts_terminal): Use grub_print_ucs4.
27043 (putglyph): New function.
27044 (putcode_real): Likewise.
27045 (grub_putcode): Use putcode_real.
27046 (get_maxwidth): New function.
27047 (get_startwidth): Likewise.
27048 (print_ucs4_terminal): Likewise.
27049 (find_term_state): Likewise.
27050 (put_glyphs_terminal): Likewise.
27051 (print_backlog): Likewise.
27052 (print_ucs4_real): Likewise.
27053 (grub_print_ucs4): Likewise.
27054 (grub_xputs_normal): Likewise.
27055 * term/efi/console.c (grub_console_putchar): Output diacritics.
27056 (grub_console_getcharwidth): Removed.
27057 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27058 * term/gfxterm.c (clear_char): Free chars.
27059 (scroll_up): Avoid leaking memory.
27060 (grub_gfxterm_putchar): Support diacritics.
27061 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27062 * term/i386/pc/console.c (grub_console_term_output): Declare as
27063 GRUB_TERM_CODE_TYPE_VGA.
27064 * term/i386/pc/vga.c (grub_vga_term): Declare as
27065 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27066 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27067 GRUB_TERM_CODE_TYPE_VGA.
27068 * term/i386/vga_common.c (map_char): Removed.
27069 (grub_console_putchar): Likewise.
27070 (grub_console_getcharwidth): Likewise.
27071 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27072 (colors): Reordered to match terminfo.
27073 (grub_ofconsole_normal_color): Removed.
27074 (grub_ofconsole_writeesc): Likewise.
27075 (grub_ofconsole_highlight_color): Likewise.
27076 (grub_ofconsole_getcharwidth): Likewise.
27077 (grub_ofconsole_setcolorstate): Likewise.
27078 (grub_ofconsole_setcolor): Likewise.
27079 (grub_ofconsole_getcolor): Likewise.
27080 (grub_ofconsole_readkey): Renamed to ...
27081 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27082 key.
27083 (grub_ofconsole_checkkey): Removed.
27084 (grub_ofconsole_getkey): Likewise.
27085 (grub_ofconsole_getxy): Likewise.
27086 (grub_ofconsole_gotoxy): Likewise.
27087 (grub_ofconsole_cls): Likewise.
27088 (grub_ofconsole_refresh): Likewise.
27089 (grub_ofconsole_terminfo_input): New struct.
27090 (grub_ofconsole_terminfo_output): Likewise.
27091 (grub_ofconsole_term_input): Use terminfo.
27092 (grub_ofconsole_term_output): Likewise.
27093 (grub_console_init): Split into ...
27094 (grub_console_init_early): ...this and ...
27095 (grub_console_init_lately): ...this. Use terminfo.
27096 (grub_ofconsole_putchar): Renamed to ...
27097 (put): ... this. Remove mapping.
27098 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27099 * term/serial.c: Simplify using terminfo.
27100 (xpos): Removed.
27101 (ypos): Likewise.
27102 (keep_track): Likewise.
27103 (registered): Likewise.
27104 (input_buf): Likewise.
27105 (npending): Likewise.
27106 (serial_translate_key_sequence): Likewise.
27107 (fill_input_buf): Likewise.
27108 (grub_serial_checkkey): Likewise.
27109 (grub_serial_getkey): Likewise.
27110 (grub_serial_getxy): Likewise.
27111 (grub_serial_gotoxy): Likewise.
27112 (grub_serial_putchar): Likewise.
27113 (grub_serial_cls): Likewise.
27114 (grub_serial_setcolorstate): Likewise.
27115 (grub_serial_setcursor): Likewise.
27116 (serial_hw_init): Use serial_hw_fetch.
27117 (grub_serial_terminfo_input): New variable.
27118 (grub_serial_terminfo_output): Likewise.
27119 (grub_serial_term_input): Use terminfo.
27120 (grub_serial_term_output): Likewise.
27121 * term/terminfo.c (putstr): Use put.
27122 (grub_terminfo_all_free): New function
27123 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27124 (grub_terminfo_output_register): New function.
27125 (grub_terminfo_output_unregister): Likewise.
27126 (grub_terminfo_getxy): Likewise.
27127 (grub_terminfo_readkey): Likewise.
27128 (grub_terminfo_checkkey): Likewise.
27129 (grub_terminfo_getkey): Likewise.
27130 (grub_terminfo_input_init): Likewise.
27131 (print_terminfo): Likewise.
27132 (grub_cmd_terminfo): Handle encoding.
27133 (grub_terminfo_gotoxy): Track position.
27134 (grub_terminfo_cls): Likewise.
27135 (grub_terminfo_putchar): Likewise.
27136 (grub_terminfo_setcolorstate): Handle colors
27137 (grub_terminfo_cursor_on): This ...
27138 (grub_terminfo_cursor_off): ... and this merged into ...
27139 (grub_terminfo_setcursor): ... this.
27140 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27141 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27142 * unicode/BidiMirroring.txt: Likewise.
27143 * unicode/UnicodeData.txt: Likewise.
27144 * unicode/COPYING: Likewise.
27145 * util/grub-editenv.c (grub_putchar): Removed.
27146 (grub_xputs_real): New function.
27147 (grub_xputs): New variable.
27148 * util/grub-fstest.c (grub_putchar): Removed.
27149 (grub_xputs_real): New function.
27150 (grub_xputs): New variable.
27151 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27152 (grub_xputs_real): New function.
27153 (grub_xputs): New variable.
27154 * util/grub-probe.c (grub_putchar): Removed.
27155 (grub_xputs_real): New function.
27156 (grub_xputs): New variable.
27157 * util/grub-script-check.c (grub_putchar): Removed.
27158 (grub_xputs_real): New function.
27159 (grub_xputs): New variable.
27160 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27161 (grub_xputs_real): New function.
27162 (grub_xputs): New variable.
27163 * util/import_unicode.py: New file.
27164 * util/grub-mkfont.c (ft_errmsgs): New array.
27165 (grub_glyph_info): Make bitmap a pointer.
27166 (file_formats): New type WIDTH_SPEC.
27167 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27168 (options): Add width-spec.
27169 (help): Likewise.
27170 (add_char): Renamed to ...
27171 (add_glyph): ... this.
27172 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27173 (glyph_replace): New type.
27174 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27175 (add_char): New function.
27176 (add_subst): Likewise.
27177 (process_cursive): Likewise.
27178 (add_font): Handle GSUB.
27179 (write_font_width_spec): New function.
27180 (main): Sort glyphs.
27181 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27182 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27183 * kern/term.c (grub_cls): Moved from here...
27184 * normal/term.c (grub_cls): ... here.
27185
27186 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27187
27188 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27189 suitable for using within the format argument of printf when
27190 converting grub_size_t.
27191 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27192 "x" to convert grub_size_t arguments.
27193
27194 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27195
27196 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27197 too long captions.
27198 (list_get_minimal_size): Take selection box into account.
27199
27200 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27201
27202 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27203 NULL font.
27204
27205 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27206
27207 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27208 devices when iterating over /dev/disk/by-id; they will be handled
27209 later if appropriate, which they aren't always (e.g. LVM).
27210
27211 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27212
27213 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27214 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27215 fails.
27216 (grub_halt): Likewise.
27217 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27218 reset-all fails.
27219 (grub_halt): Don't return, even if all of shut-down, power-off, and
27220 poweroff fail.
27221
27222 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27223
27224 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27225 arguments, not three.
27226
27227 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27228
27229 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27230 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27231 LVM-on-RAID is handled correctly.
27232
27233 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27234
27235 * docs/grub.texi (Changes from GRUB Legacy): New section.
27236 (Future): Fix typo.
27237
27238 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27239
27240 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27241 grub.d/README accidentally ends up executable for one reason or
27242 another. Ignore it.
27243
27244 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27245
27246 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27247 (gpt_partition_map_iterate): Support non-512B sectors.
27248
27249 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27250
27251 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27252 Tested by: Seth Goldberg.
27253
27254 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27255
27256 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27257 Properly align mbi.
27258 Reported by: Seth Goldberg.
27259
27260 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27261
27262 * util/grub-mkrescue.in: Avoid module duplication.
27263
27264 2010-07-01 Sean Finney <seanius@seanius.net>
27265
27266 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27267
27268 2010-07-01 Sean Finney <seanius@seanius.net>
27269
27270 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27271
27272 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27273
27274 * disk/lvm.c (grub_lvm_checkvalue): New function.
27275 (grub_lvm_check_flag): Likewise.
27276
27277 2010-07-01 Robert Millan <rmh@gnu.org>
27278
27279 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27280 Support 'p' as partition separator on kernel of FreeBSD (used
27281 with GPT labels).
27282 (grub_util_biosdisk_get_grub_dev): Likewise.
27283
27284 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27285
27286 Yeeloong firmware port.
27287
27288 * boot/mips/yeeloong/fwstart.S: New file.
27289 * bus/cs5536.c (gpiodump): New const.
27290 (set_io_space): New function.
27291 (set_iod): Likewise.
27292 (set_p2d): Likewise.
27293 (grub_cs5536_init_geode): Likewise.
27294 * commands/mips/yeeloong/lsspd.c: New file.
27295 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27296 (serial_mod_SOURCES): New variable.
27297 (serial_mod_CFLAGS): Likewise.
27298 (serial_mod_LDFLAGS): Likewise.
27299 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27300 term/terminfo.c and term/tparm.c.
27301 (pkglib_IMAGES): Add fwstart.img.
27302 (fwstart_img_SOURCES): New variable.
27303 (fwstart_img_CFLAGS): Likewise.
27304 (fwstart_img_ASFLAGS): Likewise.
27305 (fwstart_img_LDFLAGS): Likewise.
27306 (fwstart_img_FORMAT): Likewise.
27307 (pkglib_MODULES): Add lsspd.mod.
27308 (lsspd_mod_SOURCES): New variable.
27309 (lsspd_mod_CFLAGS): Likewise.
27310 (lsspd_mod_LDFLAGS): Likewise.
27311 (pkglib_MODULES): Add halt.mod.
27312 (halt_mod_SOURCES): New variable.
27313 (halt_mod_CFLAGS): Likewise.
27314 (halt_mod_LDFLAGS): Likewise.
27315 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27316 (serial_mod_SOURCES): Removed.
27317 (serial_mod_CFLAGS): Likewise.
27318 (serial_mod_LDFLAGS): Likewise.
27319 * disk/ata.c (check_device): New function.
27320 (grub_ata_device_initialize): Use check_device.
27321 (grub_ata_iterate): Recheck devices.
27322 (grub_ata_open): Likewise.
27323 (grub_atapi_iterate): Likewise.
27324 (grub_atapi_open): Likewise.
27325 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27326 (GRUB_ATA_CH1_PORT1): Likewise.
27327 (GRUB_ATA_CH0_PORT2): Likewise.
27328 (GRUB_ATA_CH1_PORT2): Likewise.
27329 * include/grub/mips/loongson.h: New file.
27330 * include/grub/mips/yeeloong/ec.h: Likewise.
27331 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27332 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27333 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27334 * include/grub/misc.h (grub_halt): Declare as noreturn.
27335 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27336 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27337 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27338 (UART_ENABLE_DTRRTS): Likewise.
27339 (UART_ENABLE_MODEM): Removed.
27340 (UART_ENABLE_OUT2): New const.
27341 * include/grub/term.h (grub_term_register_input_active): New function.
27342 (grub_term_register_output_active): Likewise.
27343 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27344 argument.
27345 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27346 (init_pci): New function.
27347 (grub_machine_init): Execute platform init when firmware. Init serial.
27348 (grub_halt): Implement.
27349 (grub_exit): Likewise.
27350 (grub_reboot): Likewise.
27351 * term/serial.c (serial_hw_init): Update macros.
27352 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27353 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27354 (image_targets): New target mipsel-yeeloong-flash.
27355 (generate_image): Support IMAGE_YEELOONG_FLASH.
27356 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27357 (grub_video_sm712_setup): Init card.
27358 (grub_video_sm712_set_palette): Removed.
27359 * video/sm712_init.c: New file.
27360
27361 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27362
27363 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27364 PATH when running help2man and then run it on the unadorned
27365 executable names, rather than passing $(builddir)/* paths to
27366 help2man. This avoids the build directory ending up in generated
27367 manual pages.
27368
27369 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27370
27371 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27372 to avoid accidents when debugging with 'sh -x'.
27373 * util/grub-mkrescue.in: Likewise.
27374 * util/grub.d/00_header.in: Likewise.
27375 * util/grub.d/10_hurd.in: Likewise.
27376 * util/grub.d/10_kfreebsd.in: Likewise.
27377 * util/grub.d/10_linux.in: Likewise.
27378 * util/grub.d/10_netbsd.in: Likewise.
27379 * util/grub.d/10_windows.in: Likewise.
27380 * util/grub.d/20_linux_xen.in: Likewise.
27381 * util/grub.d/30_os-prober.in: Likewise.
27382 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27383
27384 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27385
27386 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27387 last character in the buffer.
27388 Reported by: Vladimir Serbinenko.
27389
27390 2010-06-29 Robert Millan <rmh@gnu.org>
27391
27392 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27393 (Command-line and menu entry commands): Document `badram' command.
27394
27395 2010-06-28 Robert Millan <rmh@gnu.org>
27396
27397 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27398 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27399 command using ${GRUB_BADRAM} as parameter.
27400
27401 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27402
27403 * docs/grub.texi (Device map): New section.
27404 (Themes): New section (stub).
27405 * Makefile.in (docs/grub.info): The info documentation now builds
27406 without errors. Make sure it stays that way.
27407
27408 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27409
27410 Use normal parser for menu entries.
27411 Reported by: Thomas Frauendorfer
27412
27413 * include/grub/parser.h (grub_parser_execute): Don't export.
27414 * normal/menu.c (grub_menu_execute_entry_real): New function.
27415 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27416
27417 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27418
27419 * docs/grub.texi (Embedded configuration): New section (replacing
27420 old "Preset Menu" stub).
27421 (Images): New section.
27422 (configfile): Note that any menu entries defined in `file' are shown
27423 immediately.
27424
27425 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27426
27427 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27428
27429 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27430
27431 * util/grub-install.in: Add --debug-image= option.
27432
27433 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27434
27435 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27436 possible on Linux.
27437
27438 * util/deviceiter.c (check_device): Rename to ...
27439 (check_device_readable_unique): ... this. Update all callers.
27440 Maintain and check a list of which devices (by canonicalized name)
27441 have already been seen.
27442 (clear_seen_devices): New function.
27443 (compare_file_names) [__linux__]: New function.
27444 (grub_util_iterate_devices): Clear the list of seen devices on exit
27445 and (just in case) on entry.
27446 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27447 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27448 seen-devices list, superseded by general code in check_device.
27449
27450 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27451
27452 * commands/cat.c (options): New variable.
27453 (grub_cmd_cat): Parse options. If the --dos option is given, print
27454 DOS-style "\r\n" line endings as simple newlines (Debian bug
27455 #586358).
27456 (GRUB_MOD_INIT): Use extcmd.
27457 (GRUB_MOD_FINI): Likewise.
27458 * docs/grub.texi (cat): Document --dos.
27459
27460 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 XEN with Linux grub-mkconfig support.
27463
27464 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27465 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27466 GRUB_CMDLINE_XEN_DEFAULT.
27467 * util/grub.d/20_linux_xen.in: New file.
27468
27469 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27470
27471 Initialise VGA video on qemu ourselves.
27472
27473 * boot/i386/qemu/boot.S: Don't call 0xc000.
27474 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27475 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27476 (kernel_img_HEADERS): Add pci.h.
27477 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27478 * configure.ac: Force unifont on qemu and yeeloong.
27479 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27480 (grub_vga_palette_write): Use correct register.
27481 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27482 Call grub_qemu_init_cirrus.
27483 * kern/i386/qemu/init.c: New file.
27484 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27485
27486 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27487
27488 2010-06-26 Pavel Roskin <proski@gnu.org>
27489
27490 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27491 13.
27492
27493 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27494
27495 * docs/grub.texi (Simple configuration): Explain that
27496 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27497 set to `true' to disable their respective recovery entries, not
27498 merely set.
27499
27500 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27501
27502 Make the `source' command slightly faster.
27503
27504 * normal/main.c (grub_normal_execute): Don't re-read list files when
27505 nested.
27506
27507 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27508
27509 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27510 field position and mask size to red fields from mode_info, not
27511 green.
27512 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27513 Remove redundant tag->common.framebuffer_type assignment.
27514 Reported by: Seth Goldberg.
27515
27516 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27517
27518 Sync up other versions of the Linux loader with Robert Millan's
27519 change of 2010-01-09, "Make loader output a bit more user-friendly".
27520
27521 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27522 grub_dprintf().
27523 (grub_cmd_linux): Likewise.
27524 (grub_cmd_initrd): Likewise.
27525 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27526 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27527
27528 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27529
27530 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27531 larger than MEMORY_MAP_SIZE.
27532
27533 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27534
27535 Fix parallel build.
27536
27537 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27538 dependency.
27539 * script/parser.y: #include grub_script.tab.h header.
27540
27541 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27542
27543 Support >3GiB and <16MiB RAM in i386-qemu.
27544
27545 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27546 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27547 (grub_lower_mem): Removed.
27548 (grub_upper_mem): Likewise.
27549 (mem_size): Made static.
27550 (above_4g): New variable.
27551 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27552 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27553 support.
27554
27555 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27556
27557 Cirrus 5446 and Bochs video cards support.
27558
27559 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27560 video_bochs.mod
27561 (video_cirrus_mod_SOURCES): New variable.
27562 (video_cirrus_mod_CFLAGS): Likewise.
27563 (video_cirrus_mod_LDFLAGS): Likewise.
27564 (video_bochs_mod_SOURCES): Likewise.
27565 (video_bochs_mod_CFLAGS): Likewise.
27566 (video_bochs_mod_LDFLAGS): Likewise.
27567 * include/grub/vga.h: New file.
27568 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27569 (grub_video_fb_set_page_t): New type.
27570 (grub_video_fb_setup): New prototype.
27571 (grub_video_fb_swap_buffers): Likewise.
27572 (grub_video_fb_get_info_and_fini): Likewise.
27573 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27574 (CRTC_DATA_PORT): Likewise.
27575 (CRTC_CURSOR): Likewise.
27576 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27577 (CRTC_CURSOR_ADDR_LOW): Likewise.
27578 (CRTC_CURSOR_DISABLE): Likewise.
27579 (update_cursor): Use grub_vga_cr_write.
27580 (grub_vga_text_setcursor): Likewise.
27581 * video/bochs.c: New file.
27582 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27583 (palette): Likewise.
27584 (palette_size): Likewise.
27585 (framebuffer): New variable.
27586 (grub_video_fb_init): Use 'framebuffer'.
27587 (grub_video_fb_fini): Likewise.
27588 (grub_video_fb_get_info): Likewise.
27589 (grub_video_fb_get_palette): Likewise.
27590 (grub_video_fb_set_palette): Likewise.
27591 (grub_video_fb_set_viewport): Likewise.
27592 (grub_video_fb_get_viewport): Likewise.
27593 (grub_video_fb_map_color): Likewise.
27594 (grub_video_fb_map_rgb): Likewise.
27595 (grub_video_fb_map_rgba): Likewise.
27596 (grub_video_fb_unmap_color): Likewise.
27597 (grub_video_fb_unmap_color_int): Likewise.
27598 (grub_video_fb_fill_rect): Likewise.
27599 (grub_video_fb_blit_bitmap): Likewise.
27600 (grub_video_fb_blit_render_target): Likewise.
27601 (grub_video_fb_scroll): Likewise.
27602 (grub_video_fb_create_render_target): Likewise.
27603 (grub_video_fb_doublebuf_blit_init): Likewise.
27604 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27605 (doublebuf_pageflipping_update_screen): New function.
27606 (doublebuf_pageflipping_init): Likewise.
27607 (grub_video_fb_setup): Likewise.
27608 (grub_video_fb_swap_buffers): Likewise.
27609 (grub_video_fb_get_info_and_fini): Likewise.
27610 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27611 All users updated.
27612 (doublebuf_pageflipping_commit): Restructured into ...
27613 (doublebuf_pageflipping_set_page): ... this.
27614 (doublebuf_pageflipping_update_screen): Removed.
27615 (doublebuf_pageflipping_init): Likewise.
27616 (double_buffering_init): Likewise.
27617 (grub_video_vbe_setup): Use grub_video_fb_setup.
27618 (grub_video_vbe_swap_buffers): Removed.
27619 (grub_video_vbe_set_active_render_target): Likewise.
27620 (grub_video_vbe_get_active_render_target): Likewise.
27621 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27622 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27623 grub_video_fb_set_active_render_target and
27624 grub_video_fb_get_active_render_target.
27625 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27626 (SEQUENCER_DATA_PORT): Likewise.
27627 (MAP_MASK_REGISTER): Likewise.
27628 (CRTC_ADDR_PORT): Likewise.
27629 (CRTC_DATA_PORT): Likewise.
27630 (START_ADDR_HIGH_REGISTER): Likewise.
27631 (START_ADDR_LOW_REGISTER): Likewise.
27632 (GRAPHICS_ADDR_PORT): Likewise.
27633 (GRAPHICS_DATA_PORT): Likewise.
27634 (READ_MAP_REGISTER): Likewise.
27635 (INPUT_STATUS1_REGISTER): Likewise.
27636 (INPUT_STATUS1_VERTR_BIT): Likewise.
27637 (get_map_mask): Use grub_vga_sr_read.
27638 (set_map_mask): Use grub_vga_sr_write.
27639 (set_read_map): Use grub_vga_gr_write.
27640 (set_start_address): Use grub_vga_cr_write.
27641 * video/sm712.c (framebuffer): Remove leftover fields.
27642
27643 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27644
27645 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27646 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27647 instead. Replace the gfxterm backend check with a check that
27648 ${GRUB_PREFIX}/video.lst is non-empty.
27649 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27650 again.
27651 (load_video): New generated function. Call it before loading
27652 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27653 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27654 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27655 * docs/grub.texi (Simple configuration): Document
27656 GRUB_VIDEO_BACKEND.
27657
27658 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27659
27660 Use video functions in linux and xnu loaders.
27661
27662 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27663 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27664 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27665 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27666 loader/i386/pc/linux.c.
27667 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27668 (find_line_len): Removed.
27669 (find_framebuf): Likewise.
27670 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27671 * loader/i386/efi/xnu.c: Removed.
27672 * loader/i386/pc/xnu.c: Moved from here...
27673 * loader/i386/xnu.c: ...here.
27674
27675 Enable priorities in video drivers.
27676
27677 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27678 (grub_video_adapter): New field prio.
27679 (grub_video_register): Respect prio when inserting.
27680 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27681 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27682 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27683 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27684 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27685 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27686 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27687
27688 Fix SDL driver ID.
27689
27690 * include/grub/video.h (grub_video_driver_id_t): New value
27691 GRUB_VIDEO_DRIVER_SDL.
27692 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27693
27694 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27695
27696 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27697 argument to printf.
27698 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27699
27700 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27701
27702 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27703 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27704
27705 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27706
27707 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27708 directly, and recommend grub-install instead.
27709 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27710
27711 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27712
27713 Fix i386-pc prefix handling with nested partitions (Debian bug
27714 #585068). Note that the case where the core image is booted using
27715 multiboot and relocated from its original location still requires
27716 more work.
27717
27718 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27719 with "(,", fill the boot drive in between those two characters, but
27720 expect that a full partition specification including partition map
27721 names will follow.
27722 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27723 specified, write a prefix without the drive name but including a
27724 full partition specification.
27725
27726 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27727
27728 * util/grub-mkconfig.in: Ignore non-option arguments, for
27729 compatibility with older versions (before 2010-06-12) which did the
27730 same. In particular, this makes it easier to ship an update-grub
27731 wrapper which is compatible with that used with GRUB Legacy (Debian
27732 bug #586056).
27733
27734 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27735
27736 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27737 for manual page generation.
27738
27739 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27740
27741 * po/POTFILES: Remove leftover commands/handler.c.
27742
27743 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27744
27745 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27746 left this script non-functional.
27747
27748 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27749
27750 * docs/man/grub-emu.h2m: New file.
27751
27752 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27753
27754 * docs/grub.texi (Commands): Document reduced command set in rescue
27755 mode.
27756 (cpuid): New section.
27757
27758 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27759
27760 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27761 new partition naming style.
27762 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27763
27764 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27765
27766 Add "-o grub.iso" like cmdline options support.
27767
27768 * util/grub-install.in: Improve cmdline option parsing.
27769 * util/grub-mkconfig.in: Likewise.
27770 * util/grub-mkrescue.in: Likewise.
27771 * util/grub-reboot.in: Likewise.
27772 * util/grub-set-default.in: Likewise.
27773 * util/i386/efi/grub-install.in: Likewise.
27774 * util/ieee1275/grub-install.in: Likewise.
27775 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27776
27777 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27778
27779 * .bzrignore: Ignore 41_custom.
27780
27781 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27782
27783 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27784
27785 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27786
27787 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27788 prototype declarations.
27789
27790 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27791 generating fs, partmap, and video lists.
27792 * include/grub/fs.h (grub_fs_register): Omit prototype if
27793 GRUB_LST_GENERATOR is defined.
27794 * include/grub/partition.h (grub_partition_map_register): Likewise.
27795 * include/grub/video.h (grub_video_register): Likewise.
27796
27797 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27798
27799 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27800
27801 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27802
27803 * util/grub-mkrescue.in: Support --xorriso argument.
27804
27805 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27806
27807 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27808 Suggested by: Thomas Schmitt.
27809
27810 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27811
27812 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27813 Suggested by: Thomas Schmitt.
27814
27815 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27816
27817 custom.cfg support.
27818
27819 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27820 * util/grub.d/41_custom.in: New file.
27821
27822 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27823
27824 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27825 been merged back into normal.
27826
27827 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27828
27829 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27830 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27831
27832 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27833
27834 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27835 when generating manual pages.
27836 * docs/man/grub-bin2h.h2m: New file.
27837 * docs/man/grub-editenv.h2m: New file.
27838 * docs/man/grub-fstest.h2m: New file.
27839 * docs/man/grub-install.h2m: New file.
27840 * docs/man/grub-macho2img.h2m: New file.
27841 * docs/man/grub-mkconfig.h2m: New file.
27842 * docs/man/grub-mkdevicemap.h2m: New file.
27843 * docs/man/grub-mkfont.h2m: New file.
27844 * docs/man/grub-mkimage.h2m: New file.
27845 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27846 * docs/man/grub-mkrelpath.h2m: New file.
27847 * docs/man/grub-mkrescue.h2m: New file.
27848 * docs/man/grub-ofpathname.h2m: New file.
27849 * docs/man/grub-pe2elf.h2m: New file.
27850 * docs/man/grub-probe.h2m: New file.
27851 * docs/man/grub-reboot.h2m: New file.
27852 * docs/man/grub-script-check.h2m: New file.
27853 * docs/man/grub-set-default.h2m: New file.
27854 * docs/man/grub-setup.h2m: New file.
27855
27856 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27857
27858 Use FOR_* macros instead of *_iterate whenever possible.
27859
27860 * commands/handler.c: Removed.
27861 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27862 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27863 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27864 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27865 (grub_probe_SOURCES): Remove kern/parser.c.
27866 (util/grub-script-check.c_DEPENDENCIES): Removed.
27867 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27868 and grub_script_check_init.c.
27869 (grub_script_check_init.lst): Removed.
27870 (grub_script_check_init.h): Likewise.
27871 (grub_script_check_init.c): Likewise.
27872 (pkglib_MODULES): Remove handler.mod and sh.mod.
27873 (handler_mod_SOURCES): Removed.
27874 (handler_mod_CFLAGS): Likewise.
27875 (handler_mod_LDFLAGS): Likewise.
27876 (normal_mod_SOURCES): Remove normal/handler.c.
27877 Add script/main.c, script/script.c, script/execute.c,
27878 script/function.c, script/lexer.c, grub_script.tab.c
27879 and grub_script.yy.c.
27880 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27881 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27882 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27883 (grub_setup_SOURCES): Remove kern/parser.c.
27884 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27885 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27886 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27887 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27888 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27889 (grub_setup_SOURCES): Remove kern/parser.c.
27890 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27891 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27892 * include/grub/command.h (grub_command_iterate): Removed.
27893 (FOR_COMMANDS): New macro.
27894 * include/grub/dl.h (grub_dl): New member next.
27895 (grub_dl_iterate): Removed.
27896 (grub_dl_head): New variable declaration.
27897 (FOR_DL_MODULES): New macro.
27898 * include/grub/fs.h: Include list.h.
27899 (grub_fs): Make next first element.
27900 (grub_fs_list): New variable declaration.
27901 (grub_fs_register): Make inline.
27902 (grub_fs_unregister): Likewise.
27903 (grub_fs_iterate): Removed.
27904 (FOR_FILESYSTEMS): New macro.
27905 * include/grub/handler.h: Removed.
27906 * include/grub/list.h (grub_list_hook_t): Removed.
27907 (grub_list_test_t): Likewise.
27908 (grub_list_pop): Likewise.
27909 (grub_list_iterate): Likewise.
27910 (grub_list_insert): Likewise.
27911 (FOR_LIST_ELEMENTS): New macro.
27912 * include/grub/parser.h (grub_parser_class): Removed.
27913 (grub_parser_register): Likewise.
27914 (grub_parser_unregister): Likewise.
27915 (grub_parser_get_current): Likewise.
27916 (grub_parser_set_current): Likewise.
27917 (grub_register_rescue_parser): Likewise.
27918 (grub_rescue_parse_line): New function.
27919 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27920 * include/grub/script_sh.h (grub_script_function_list): New variable
27921 declaration.
27922 (FOR_SCRIPT_FUNCTIONS): New macro.
27923 (grub_script_function_iterate): Removed.
27924 (grub_normal_parse_line): New prototype.
27925 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27926 (FOR_DISABLED_TERM_INPUTS): Likewise.
27927 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27928 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27929 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27930 element.
27931 (grub_video_register): Inline.
27932 (grub_video_unregister): Likewise.
27933 (grub_video_adapter_list): New variable declaration.
27934 (grub_video_iterate): Removed.
27935 (FOR_VIDEO_ADAPTERS): New macro.
27936 * kern/dl.c (grub_dl_list): Removed. All users updated.
27937 (grub_dl_iterate): Removed.
27938 * kern/fs.c (grub_fs_list): Make global.
27939 (grub_fs_register): Removed.
27940 (grub_fs_unregister): Likewise.
27941 (grub_fs_iterate): Likewise.
27942 * kern/handler.c: Removed.
27943 * kern/list.c (grub_list_pop): Removed.
27944 (grub_list_iterate): Likewise.
27945 (grub_list_insert): Likewise.
27946 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27947 (grub_prio_list_insert): Don't use grub_list_insert.
27948 * kern/main.c (grub_register_rescue_parser): Don't call
27949 grub_register_rescue_parser.
27950 * kern/parser.c (grub_parser_class): Removed.
27951 (grub_parser_execute): Use grub_rescue_parse_line.
27952 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27953 (grub_rescue_parser): Removed.
27954 (grub_register_rescue_parser): Likewise.
27955 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27956 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27957 (grub_auth_check_authentication): Likewise.
27958 * normal/completion.c (iterate_command): Removed.
27959 (grub_normal_do_completion): Use FOR_COMMANDS.
27960 * normal/handler.c: Removed.
27961 * normal/main.c (read_config_file): Remove parser changing.
27962 (grub_normal_execute): Don't call read_handler_list.
27963 (grub_normal_read_line_real): Statically allocate prompt.
27964 (grub_cmdline_run): Use grub_normal_parse_line.
27965 (GRUB_MOD_FINI): Don't call free_handler_list.
27966 * normal/menu_entry.c (run): Likewise.
27967 * script/function.c (grub_script_function_list): Make global.
27968 (grub_script_function_iterate): Removed.
27969 * script/main.c (grub_normal_parse_line): Make global.
27970 (grub_sh_parser): Removed.
27971 (GRUB_MOD_INIT): Likewise.
27972 (GRUB_MOD_FINI): Likewise.
27973 * tests/lib/functional_test.c (grub_functional_test): Use
27974 FOR_LIST_ELEMENTS.
27975 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27976 (grub_test_run): Use FOR_LIST_ELEMENTS.
27977 * tests/lib/unit_test.c (main): Likewise.
27978 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27979 grub_list_pop.
27980 * util/grub-fstest.c (grub_term_input_class): Removed.
27981 (grub_term_output_class): Likewise.
27982 * util/grub-probe.c: Likewise.
27983 * util/i386/pc/grub-setup.c: Likewise.
27984 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27985 * util/grub-script-check.c (main): Don't call grub_init_all and
27986 grub_fini_all.
27987 * video/video.c (grub_video_adapter_list): Make global.
27988 (grub_video_register): Removed.
27989 (grub_video_unregister): Likewise.
27990 (grub_video_iterate): Likewise.
27991
27992 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27993
27994 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27995 reported by Henrique Ferreiro.
27996
27997 2010-06-09 Robert Millan <rmh@gnu.org>
27998
27999 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28000 ones, when both are available.
28001
28002 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28003
28004 Make --version uniform and avoid hard-coded program name.
28005
28006 * util/grub-mkimage.c (main): Use `program_name' instead of
28007 hard-coded string.
28008 * util/i386/pc/grub-setup.c (main): Likewise.
28009 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28010 * util/grub-install.in: Save the basename of $0 in $self, and use the
28011 latter in informational messages. Use the same format for --version
28012 as the binary programs.
28013 * util/grub-mkconfig.in: Likewise.
28014 * util/grub-mkrescue.in: Likewise.
28015 * util/grub-reboot.in: Likewise.
28016 * util/grub-set-default.in: Likewise.
28017 * util/i386/efi/grub-install.in: Likewise.
28018 * util/ieee1275/grub-install.in: Likewise.
28019 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28020
28021 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28022
28023 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28024 embedding area. Use <= instead of == when checking for non-emptiness.
28025
28026 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
28027
28028 * configure.ac: Add `.' to the directories searched for unifont.
28029
28030 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28031
28032 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28033 grub_script.yy.h.
28034
28035 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28036
28037 * docs/grub.texi (History): Expand to cover GRUB 2.
28038 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28039 commands, not `terminal'.
28040 (serial): Likewise.
28041 (terminal_input): New section.
28042 (terminal_output): New section.
28043 (uppermem): New section (stub).
28044 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28045
28046 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28047
28048 * docs/grub.texi (Security): Menu entries are unrestricted by
28049 default, not restricted to superusers as I had previously thought.
28050 Reword to account for this.
28051
28052 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28053
28054 * kern/emu/misc.c (device_mapper_null_log): New function.
28055 (grub_device_mapper_supported): New function.
28056 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28057 prototype.
28058 * kern/emu/hostdisk.c (find_partition_start): Check whether
28059 device-mapper is supported before trying to use it.
28060 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28061
28062 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28063
28064 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28065 (File name syntax): Likewise.
28066 (help): --all is no longer supported in GRUB 2. Be more precise
28067 about pattern matching.
28068
28069 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28070
28071 * normal/completion.c (grub_normal_do_completion): When completing
28072 arguments to "set" and the current word contains an equals sign,
28073 skip to after the equals sign before starting completion.
28074
28075 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28076
28077 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28078
28079 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28080
28081 * docs/grub.texi (Network): New section.
28082 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28083 `(nd)' as in GRUB Legacy.
28084 (pxe_unload): New section.
28085
28086 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28087
28088 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28089 in the rescue shell, so recommend using `set' instead. Thanks,
28090 Jordan Uggla.
28091
28092 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28093
28094 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28095 (password): New section.
28096 (password_pbkdf2): New section.
28097 (search): New section.
28098 (Security): New section.
28099 (Troubleshooting): New section, currently very incomplete.
28100 (Invoking grub-mkpasswd-pbkdf2): New section.
28101 (Internals): New section, currently very incomplete.
28102
28103 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28104
28105 * util/grub.d/00_header.in: Add some more quoting (of
28106 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28107 work again.
28108 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28109
28110 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28111
28112 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28113 to `count', fixing variable shadowing that broke the -c option.
28114
28115 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28116
28117 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28118 in case they contain spaces.
28119
28120 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28121
28122 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28123 "part_" to partmap module names, in line with grub-install.
28124 Reported by: Jindřich Makovička (Debian bug #584426).
28125
28126 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28127
28128 * util/grub-mkimage.c: Make target-related error messages slightly
28129 more helpful; -O talks about "format". Explicitly point to the use
28130 of -O if no target is specified.
28131 Reported by: Didier Raboud (Debian bug #584415).
28132
28133 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28134
28135 * INSTALL: Document several build requirements for optional features
28136 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28137
28138 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28139
28140 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28141 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28142 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28143
28144 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28145
28146 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28147 Thanks to Jordan Uggla for spotting this.
28148
28149 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28150
28151 Finally make USB usable.
28152
28153 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28154 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28155 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28156 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28157 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28158 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28159 (GRUB_OHCI_FSMPS): Likewise.
28160 (GRUB_OHCI_PERIODIC_START): Likewise.
28161 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28162 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28163 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28164 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28165 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28166 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28167 (grub_ohci_transaction): Likewise.
28168 (grub_ohci_transfer): Improve condition detection algorithms.
28169 Handle toggle property. Program the transactions correctly.
28170 Improve error handling. Various important fixups.
28171 (grub_ohci_portstatus): Put register writes in right order.
28172 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28173 (grub_uhci_transfer): Don't show "failed" message on success.
28174 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28175 array.
28176 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28177 determine its size.
28178 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28179 before initialization is completed. Use IN direction for empty
28180 transfers. Use last_trans and compute toggle.
28181 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28182 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28183 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28184 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28185 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28186 (grub_usb_device): Increase toggle to 256.
28187 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28188 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28189 GRUB_USBMS_SUBCLASS_SFF8070.
28190 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28191 (grub_scsi_inquiry): New member page and alloc_length.
28192 (grub_scsi_request_sense): New structure.
28193 (grub_scsi_request_sense_data): Likewise.
28194 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28195 control.
28196 * disk/scsi.c (grub_scsi_request_sense): New function.
28197 (grub_scsi_test_unit_ready): Likewise.
28198 (grub_scsi_inquiry): Fill new fields.
28199 (grub_scsi_read_capacity): Likewise.
28200 (grub_scsi_read10): Add request sense at the end.
28201 (grub_scsi_read12): Likewise.
28202 (grub_scsi_write10): Likewise.
28203 (grub_scsi_write12): Likewise.
28204 (grub_scsi_open): Add Test Unit Ready.
28205 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28206 Support additional subclasses. Con't clear halt yet. Activate the
28207 proper config. Calculate LUNs correctly.
28208 (grub_usbms_transfer): Various important fixups.
28209
28210 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28211
28212 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28213 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28214 (grub_ohci_fini_hw): New function.
28215 (grub_ohci_restore_hw): Likewise.
28216 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28217 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28218 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28219
28220 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28221
28222 Dedicated DMA allocations.
28223
28224 * bus/pci.c (grub_memalign_dma32): New function
28225 (grub_dma_free): Likewise.
28226 (grub_dma_get_virt): Likewise.
28227 (grub_dma_get_phys): Likewise.
28228 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28229 (grub_ohci_pci_iter): Use dma32_alloc.
28230 (grub_ohci_transfer): Likewise.
28231 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28232 (grub_usb_bulk_readwrite): Likewise.
28233 * include/grub/pci.h: Add declarations.
28234
28235 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28236
28237 CS5536 support.
28238
28239 * bus/cs5536.c: New file.
28240 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28241 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28242 (cs5536_mod_SOURCES): New variable.
28243 (cs5536_mod_CFLAGS): Likewise.
28244 (cs5536_mod_LDFLAGS): Likewise.
28245 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28246 machine/pci.h.
28247 (kernel_img_SOURCES): Add bus/cs5536.c.
28248 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28249 usb_keyboard.mod.
28250 (usb_mod_SOURCES): New variable.
28251 (usb_mod_CFLAGS): New variable.
28252 (usb_mod_LDFLAGS): New variable.
28253 (usbtest_mod_SOURCES): New variable.
28254 (usbtest_mod_CFLAGS): New variable.
28255 (usbtest_mod_LDFLAGS): New variable.
28256 (ohci_mod_SOURCES): New variable.
28257 (ohci_mod_CFLAGS): New variable.
28258 (ohci_mod_LDFLAGS): New variable.
28259 (usbms_mod_SOURCES): New variable.
28260 (usbms_mod_CFLAGS): New variable.
28261 (usbms_mod_LDFLAGS): New variable.
28262 (usb_keyboard_mod_SOURCES): New variable.
28263 (usb_keyboard_mod_CFLAGS): New variable.
28264 (usb_keyboard_mod_LDFLAGS): New variable.
28265 * include/grub/smbus.h: New file.
28266 * include/grub/cs5536.h: New file.
28267
28268 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28269
28270 * util/grub.d/00_header.in: Add safety check to make sure that
28271 ${locale_dir} exists before trying to probe it.
28272
28273 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28274
28275 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28276 per the GNU Coding Standards; this is now too obscure to be worth
28277 documenting.
28278 (QNX): Likewise.
28279 (chainloader): Remove cross-reference to `SCO UnixWare'.
28280
28281 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28282
28283 * docs/grub.texi (Chain-loading): New section.
28284 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28285 adjusted for GRUB 2.
28286 (SCO UnixWare): Likewise.
28287 (QNX): Likewise.
28288 (chainloader): Add reference to `Block list syntax'.
28289 (drivemap): New section.
28290 (parttool): New section.
28291
28292 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28293
28294 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28295 the grub shell'.
28296 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28297 (Installing GRUB using grub-install): Remove reference to the grub
28298 shell; mention `grub-mkimage' and `grub-setup' instead.
28299 (Invoking grub-install): Likewise.
28300 (Interface): Add reference to `Menu entry editor'.
28301 (serial): Remove `--device' option.
28302
28303 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28304
28305 * docs/grub.texi (Configuration): New section, documenting
28306 configuration file generation using grub-mkconfig. I've left a slot
28307 for documenting the full shell scripting format but have not yet
28308 started on writing that up.
28309 (Invoking grub-mkconfig): New section.
28310
28311 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28312
28313 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28314 (GNU GRUB manual): Likewise.
28315 (General commands): Update description of `terminfo' for GRUB 2.
28316
28317 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28318
28319 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28320 (GRUB_MOD_INIT): Fix capitalisation.
28321 * docs/grub.texi (Command-line and menu entry commands): Document
28322 gettext and gptsync commands.
28323
28324 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28325
28326 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28327 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28328
28329 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28330
28331 Add btrfs probing support, currently only in the single-device case.
28332
28333 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28334 function.
28335 (grub_guess_root_device): Call find_root_device_from_mountinfo
28336 before looking in /dev.
28337
28338 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28339
28340 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28341 GRUB_DISK_SIZE_UNKNOWN.
28342 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28343
28344 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28345
28346 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28347 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28348 corrupted or not synced properly.
28349
28350 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28351
28352 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28353 Reported by: Seth Goldberg.
28354
28355 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28356
28357 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28358 addition of dest.
28359 Reported by: Seth Goldberg.
28360
28361 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28362
28363 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28364 Reported by: Seth Goldberg.
28365
28366 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28367
28368 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28369 64-bit address as signed on MIPS.
28370
28371 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28372
28373 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28374 to the empty string.
28375
28376 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28377
28378 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28379
28380 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28381 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28382 * kern/misc.c (__enable_execute_stack): Disable on
28383 GRUB_MACHINE_EMU.
28384
28385 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28386
28387 Make grub-probe work with symbolic links under /dev/mapper as well
28388 as with real block devices. The Linux world seems to be (at best)
28389 in transition here, and GRUB shouldn't get caught in the middle.
28390
28391 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28392 /dev/mapper.
28393
28394 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28395
28396 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28397 input files (in which case exit zero).
28398
28399 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28400
28401 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28402 return NULL for various reasons even if it has a maximum-length
28403 buffer: for example, there might be a symlink loop, or the path
28404 might exceed PATH_MAX. If this happens, return NULL.
28405
28406 2010-05-27 Robert Millan <rmh@gnu.org>
28407
28408 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28409 partmap module to handle cross-partmap setups.
28410 Reported by Orestes Mas. Gràcies!
28411
28412 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28413
28414 * util/grub-mkrescue.in: Initialise override_dir rather than
28415 assuming that it's unset or empty in the environment.
28416
28417 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28418
28419 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28420 variable index into p_index to suppress a warning with -Wshadow.
28421
28422 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28423
28424 * INSTALL: Added flex >= 2.5.35 requirement.
28425
28426 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28427
28428 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28429
28430 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28431
28432 cmostest support.
28433
28434 * commands/i386/cmostest.c: New file.
28435 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28436 (cmostest_mod_SOURCES): New variable.
28437 (cmostest_mod_CFLAGS): Likewise.
28438 (cmostest_mod_LDFLAGS): Likewise.
28439 * conf/i386-pc.rmk: Likewise.
28440 * docs/grub.texi (Vendor power-on keys): New section.
28441 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28442 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28443 and GRUB_BUTTON_CMOS_ADDRESS.
28444 * util/grub.d/00_header.in: Handle powering-on by separate button.
28445
28446 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28447
28448 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28449 Removed drawing_scrollbar argument. All users updated
28450 Fixes #29792.
28451 Reported by Jo Shields
28452
28453 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28454
28455 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28456 buffer since gfxterm handles double repaint.
28457
28458 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28459
28460 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28461 * term/gfxterm.c (real_scroll): Likewise.
28462
28463 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28464
28465 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28466 before calling BIOS.
28467
28468 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28469
28470 * include/grub/i18n.h: Always enable grub_gettext.
28471
28472 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28473
28474 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28475 partition naming style.
28476
28477 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28478
28479 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28480 not the first option.
28481
28482 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28483
28484 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28485
28486 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28487
28488 * util/misc.c: Move inclusion of <limits.h> to ...
28489 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28490
28491 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28492
28493 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28494 Fix merge error in NetBSD code.
28495 (find_partition_start) [__NetBSD__]: Likewise.
28496
28497 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28498
28499 Fix grub-mkrescue usage unit testing.
28500
28501 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28502
28503 2010-05-18 Christian Franke <franke@computer.org>
28504
28505 * util/grub.d/10_windows.in: Use path names instead of
28506 drive letters to prevent warning from Cygwin 1.7.
28507 Add drivemap command to menuentry if needed.
28508
28509 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28510
28511 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28512 gnumach and gnumach.gz.
28513
28514 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28515
28516 * include/grub/i18n.h (gettext): Inline instead of using #define.
28517 (grub_gettext): Likewise.
28518 (_): Likewise.
28519
28520 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28521
28522 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28523 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28524 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28525 (main): Add a slash after pkglibdirroot.
28526
28527 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28528
28529 * util/grub-install.in: Add missing "in" keyword.
28530
28531 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28532
28533 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28534 Reported by: Seth Goldberg.
28535
28536 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28537
28538 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28539
28540 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28541
28542 * configure.ac: Check for Linux device-mapper support.
28543
28544 * util/hostdisk.c (device_is_mapped): New function.
28545 (find_partition_start): New function, partly broken out from
28546 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28547 device-mapper support added.
28548 (linux_find_partition): Use find_partition_start.
28549 (convert_system_partition_to_system_disk): Add `st' argument.
28550 Support Linux /dev/mapper/* devices if device-mapper support is
28551 available; only DM-RAID devices are understood at present.
28552 (find_system_device): Add `st' argument. Pass it to
28553 convert_system_partition_to_system_disk.
28554 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28555 find_system_device and convert_system_partition_to_system_disk. Use
28556 find_partition_start.
28557
28558 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28559 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28560 * util/deviceiter.c [__linux__]: Define MINOR.
28561 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28562 * util/mkdevicemap.c (grub_putchar): New function.
28563 (grub_getkey): New function.
28564 (grub_refresh): New function.
28565 (main): Set debug=all if -v -v is used.
28566
28567 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28568
28569 Fix build with non-GNU libcs.
28570
28571 * util/misc.c (canonicalize_file_name): Move to ...
28572 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28573 grub_make_system_path_relative_to_its_root.
28574
28575 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28576
28577 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28578 we handle finding grub-mkimage. Default to finding grub-mkimage in
28579 ${bindir} with program_transform_name applied, and provide a
28580 --grub-mkimage option to override this.
28581
28582 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28583
28584 Remove grub-mkisofs.
28585
28586 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28587 (grub_mkisofs_SOURCES): Removed.
28588 (grub_mkisofs_CFLAGS): Removed.
28589 * util/mkisofs/defaults.h: Removed.
28590 * util/mkisofs/eltorito.c: Likewise.
28591 * util/mkisofs/exclude.h: Likewise.
28592 * util/mkisofs/hash.c: Likewise.
28593 * util/mkisofs/include/: Likewise.
28594 * util/mkisofs/include/fctldefs.h: Likewise.
28595 * util/mkisofs/include/mconfig.h: Likewise.
28596 * util/mkisofs/include/prototyp.h: Likewise.
28597 * util/mkisofs/include/statdefs.h: Likewise.
28598 * util/mkisofs/iso9660.h: Likewise.
28599 * util/mkisofs/joliet.c: Likewise.
28600 * util/mkisofs/match.c: Likewise.
28601 * util/mkisofs/match.h: Likewise.
28602 * util/mkisofs/mkisofs.c: Likewise.
28603 * util/mkisofs/mkisofs.h: Likewise.
28604 * util/mkisofs/msdos_partition.h: Likewise.
28605 * util/mkisofs/multi.c: Likewise.
28606 * util/mkisofs/name.c: Likewise.
28607 * util/mkisofs/rock.c: Likewise.
28608 * util/mkisofs/tree.c: Likewise.
28609 * util/mkisofs/write.c: Likewise.
28610
28611 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28612
28613 Unify grub-mkimage accross platforms.
28614
28615 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28616 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28617 (grub_mkelfimage_SOURCES): Removed.
28618 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28619 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28620 (bin_UTILITIES): Add grub-mkimage.
28621 (grub_mkimage_SOURCES): New variable.
28622 (kernel_img_HEADERS): Remove machine/kernel.h.
28623 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28624 (pkglib_PROGRAMS): Add kernel.img.
28625 (kernel_img_HEADERS): Add machine/kernel.h.
28626 (kernel_img_FORMAT): Removed.
28627 (bin_UTILITIES): Remove grub-mkimage.
28628 (grub_mkimage_SOURCES): Removed.
28629 (grub_mkimage_CFLAGS): Likewise.
28630 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28631 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28632 (pkglib_PROGRAMS): Add kernel.img.
28633 (bin_UTILITIES): Remove grub-mkimage.
28634 (grub_mkimage_SOURCES): Removed.
28635 (grub_mkimage_CFLAGS): Likewise.
28636 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28637 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28638 (pkglib_PROGRAMS): Add kernel.img.
28639 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28640 (pkglib_PROGRAMS): Add kernel.img.
28641 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28642 (grub_mkimage_SOURCES): Removed.
28643 (grub_mkimage_CFLAGS): Likewise.
28644 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28645 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28646 (pkglib_PROGRAMS): Add kernel.img.
28647 (bin_UTILITIES): Remove grub-mkimage.
28648 (grub_mkimage_SOURCES): Removed.
28649 (grub_mkimage_CFLAGS): Likewise.
28650 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28651 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28652 (grub_mkimage_SOURCES): Removed.
28653 (grub_mkimage_CFLAGS): Likewise.
28654 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28655 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28656 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28657 (grub_pe32_optional_header): ... this.
28658 (grub_pe64_optional_header): ... and this. All users updated.
28659 (GRUB_PE32_PE32_MAGIC): Split into ..
28660 (GRUB_PE32_PE32_MAGIC): .. this.
28661 (GRUB_PE32_PE64_MAGIC): .. and this.
28662 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28663 * include/grub/elf.h (PT_GNU_STACK): New definition.
28664 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28665 * include/grub/i386/efi/kernel.h: Likewise.
28666 * include/grub/i386/kernel.h: Likewise.
28667 * include/grub/i386/pc/kernel.h: Likewise.
28668 * include/grub/i386/qemu/boot.h: Likewise.
28669 * include/grub/mips/kernel.h: Likewise.
28670 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28671 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28672 * include/grub/powerpc/kernel.h: Likewise.
28673 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28674 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28675 * include/grub/sparc64/kernel.h: Likewise.
28676 * include/grub/x86_64/efi/kernel.h: Likewise.
28677 * include/grub/x86_64/kernel.h: Likewise.
28678 * include/grub/offsets.h: New file.
28679 * include/grub/kernel.h (grub_module_info): Split into ...
28680 (grub_module_info32): ... this.
28681 (grub_module_info64): ... and this.
28682 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28683 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28684 (grub_boot_blocklist): Moved from here ...
28685 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28686 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28687 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28688 * include/grub/types.h (grub_target_to_host16): Removed.
28689 (grub_target_to_host32): Likewise.
28690 (grub_target_to_host64): Likewise.
28691 (grub_host_to_target16): Likewise.
28692 (grub_host_to_target32): Likewise.
28693 (grub_host_to_target64): Likewise.
28694 (grub_host_to_target_addr): Likewise.
28695
28696 Support grub-mkrescue for efi, coreboot and qemu.
28697
28698 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28699 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28700 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28701 * util/grub-mkrawimage.c: Moved from here ...
28702 * util/grub-mkimage.c: ... here. All users updated.
28703 (ALIGN_ADDR): Use image_target.
28704 (TARGET_NO_FIELD): New const.
28705 (image_target_desc): New type.
28706 (image_targets): New array.
28707 (grub_target_to_host64): Use image_target.
28708 (grub_target_to_host32): Likewise.
28709 (grub_target_to_host16): Likewise.
28710 (grub_host_to_target64): Likewise.
28711 (grub_host_to_target32): Likewise.
28712 (grub_host_to_target16): Likewise.
28713 (grub_host_to_target_addr): Likewise.
28714 (generate_image): Handle multiimage.
28715 (main): Require -O parameter. All users updated.
28716 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28717 util/efi/grub-mkimage.c
28718 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28719 New option --rom-directory.
28720 Use xorriso.
28721 * util/i386/efi/grub-mkimage.c: Removed.
28722 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28723 (grub_target_to_host32): Likewise.
28724 (grub_target_to_host64): Likewise.
28725 (grub_host_to_target16): Likewise.
28726 (grub_host_to_target32): Likewise.
28727 (grub_host_to_target64): Likewise.
28728 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28729 (grub_target_to_host32): Likewise.
28730 (grub_target_to_host64): Likewise.
28731 (grub_host_to_target16): Likewise.
28732 (grub_host_to_target32): Likewise.
28733 (grub_host_to_target64): Likewise.
28734
28735 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28736
28737 Source tree is reorganized for emu build.
28738
28739 * include/grub/util/console.h: Move from here...
28740 * include/grub/emu/console.h: ...to here.
28741 * include/grub/util/getroot.h: Move from here...
28742 * include/grub/emu/getroot.h: ...to here.
28743 * include/grub/util/hostdisk.h: Move from here...
28744 * include/grub/emu/hostdisk.h: ...to here.
28745 * util/console.c: Move from here...
28746 * kern/emu/console.c: ...to here.
28747 * util/getroot.c: Move from here...
28748 * kern/emu/getroot.c: ...to here.
28749 * util/grub-emu.c: Move from here...
28750 * kern/emu/main.c: ...to here.
28751 * util/hostdisk.c: Move from here...
28752 * kern/emu/hostdisk.c: ...to here.
28753 * util/hostfs.c: Move from here...
28754 * kern/emu/hostfs.c: ...to here.
28755 * util/mm.c: Move from here...
28756 * kern/emu/mm.c: ...to here.
28757 * util/pci.c: Move from here...
28758 * bus/emu/pci.c: ...to here.
28759 * util/sdl.c: Move from here...
28760 * video/emu/sdl.c: ...to here.
28761 * util/time.c: Move from here...
28762 * kern/emu/time.c: ...to here.
28763 * util/usb.c: Move from here...
28764 * bus/usb/emu/usb.c: ...to here.
28765
28766 * include/grub/emu/misc.h: New header for grub-emu functions.
28767 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28768
28769 * conf/any-emu.rmk: Rule updates for above renames.
28770 * conf/common.rmk: Likewise.
28771 * conf/i386-pc.rmk: Likewise.
28772 * conf/i386-qemu.rmk: Likewise.
28773 * conf/mips.rmk: Likewise.
28774 * conf/sparc64-ieee1275.rmk: Likewise.
28775 * conf/x86-efi.rmk: Likewise.
28776
28777 * disk/lvm.h: #include updates for above renames.
28778 * util/grub-mkrelpath.c: Likewise.
28779 * util/grub-probe.c: Likewise.
28780 * util/i386/pc/grub-setup.c: Likewise.
28781 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28782 * kern/emu/console.c: Likewise.
28783 * kern/emu/getroot.c: Likewise.
28784 * kern/emu/hostdisk.c: Likewise.
28785 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28786
28787 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28788 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28789 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28790 * util/misc.c: Remove grub-emu functions.
28791
28792 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28793
28794 Fix gfxmenu crash.
28795 Reported by: Thorsten Grützmacher.
28796
28797 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28798 timeout hook.
28799 (circprog_set_property): Register and unregister timeout hook.
28800 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28801 (label_destroy): Free template. and unregister hook.
28802 (label_set_state): New function.
28803 (label_set_property): Handle templates and hooks.
28804 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28805 timeout hook.
28806 (progress_bar_set_property): Register and unregister timeout hook.
28807 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28808 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28809 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28810 (update_timeout_visit): Removed.
28811 (update_timeouts): New function.
28812 (redraw_timeouts): Likewise.
28813 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28814 (grub_gfxmenu_clear_timeout): Likewise.
28815 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28816 (grub_gfxmenu_timeout_notify): Likewise.
28817 (grub_gfxmenu_timeout_notifications): New external variable.
28818 (grub_gfxmenu_timeout_register): New function.
28819 (grub_gfxmenu_timeout_unregister): Likewise.
28820
28821 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28822
28823 Transform (broken) vga terminal into (working) vga video driver.
28824
28825 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28826 video/i386/pc/vga.c.
28827 * include/grub/video.h (grub_video_driver_id):
28828 Add GRUB_VIDEO_DRIVER_VGA.
28829 * term/i386/pc/vga.c: Renamed to ...
28830 * video/i386/pc/vga.c: ...this
28831 (DEBUG_VGA): Removed.
28832 (CHAR_WIDTH): Likewise.
28833 (CHAR_HEIGHT): Likewise.
28834 (TEXT_WIDTH): Likewise.
28835 (TEXT_HEIGHT): Likewise.
28836 (DEFAULT_FG_COLOR): Likewise.
28837 (DEFAULT_BG_COLOR): Likewise.
28838 (colored_char): Likewise.
28839 (xpos): Likewise.
28840 (ypos): Likewise.
28841 (cursor_state): Likewise.
28842 (fg_color): Likewise.
28843 (bg_color): Likewise.
28844 (text_buf): Likewise.
28845 (page): Likewise.
28846 (font): Likewise.
28847 (framebuffer): New variable.
28848 (set_read_map): Disabled.
28849 (setup): New variable.
28850 (is_target): Likewise.
28851 (grub_vga_mod_init): Likewise.
28852 (grub_vga_mod_fini): Likewise.
28853 (check_vga_mem): Likewise.
28854 (write_char): Likewise.
28855 (write_cursor): Likewise.
28856 (scroll_up): Likewise.
28857 (grub_vga_putchar): Likewise.
28858 (grub_vga_getcharwidth): Likewise.
28859 (grub_vga_getwh): Likewise.
28860 (grub_vga_getxy): Likewise.
28861 (grub_vga_gotoxy): Likewise.
28862 (grub_vga_cls): Likewise.
28863 (grub_vga_setcolorstate): Likewise.
28864 (grub_vga_setcursor): Likewise.
28865 (grub_video_vga_init): New function.
28866 (grub_video_vga_setup): Likewise.
28867 (grub_video_vga_fini): Likewise.
28868 (update_target): Likewise.
28869 (grub_video_vga_blit_bitmap): Likewise.
28870 (grub_video_vga_blit_render_target): Likewise.
28871 (grub_video_vga_set_active_render_target): Likewise.
28872 (grub_video_vga_get_active_render_target): Likewise.
28873 (grub_video_vga_swap_buffers): Likewise.
28874 (grub_video_vga_set_palette): Likewise.
28875 (grub_video_vga_get_info_and_fini): Likewise.
28876 (grub_vga_term): Removed.
28877 (grub_video_vga_adapter): New variable.
28878 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28879 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28880
28881 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * video/readers/jpeg.c: Indented.
28884
28885 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28886
28887 Various jpeg cleanups.
28888
28889 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28890 (grub_jpeg_decode_quan_table): Use sizeof.
28891 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28892
28893 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28894
28895 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28896 tables. Ignore non-last ac bit.
28897 (grub_jpeg_decode_quan_table): Likewise.
28898
28899 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28900
28901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28902 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28903 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28904 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28905 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28906 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28907
28908 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28909
28910 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28911 error.
28912
28913 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28914
28915 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28916
28917 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28918
28919 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28920 condition.
28921
28922 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28923
28924 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28925 part.
28926
28927 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28928
28929 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28930 pointers.
28931
28932 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28935
28936 2010-05-01 Christian Franke <franke@computer.org>
28937
28938 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28939 Remove broken Cygwin path conversion.
28940 * util/misc.c: [__CYGWIN__] Add include and define.
28941 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28942 for Cygwin 1.7.
28943 (make_system_path_relative_to_its_root): Simplify loop, replace early
28944 return by break.
28945 [__CYGWIN__] Add conversion to win32 path.
28946 Include "/" case in trailing slash removal.
28947
28948 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28949
28950 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28951 Reported by: Seth Goldberg
28952
28953 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28954
28955 * commands/help.c (grub_cmd_help): Fix a typo.
28956 Reported by: Seth Goldberg
28957
28958 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28959
28960 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28961 name and add N_.
28962 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28963 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28964 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28965 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28966 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28967 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28968 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28969 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28970 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28971 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28972 * normal/context.c (GRUB_MOD_INIT): Likewise.
28973 * normal/main.c (GRUB_MOD_INIT): Likewise.
28974 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28975 * term/serial.c (GRUB_MOD_INIT): Likewise.
28976 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28977
28978 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28979
28980 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28981 extra == 0.
28982
28983 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28984
28985 * commands/iorw.c: New file.
28986 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28987 (iorw_mod_SOURCES): New variable.
28988 (iorw_mod_CFLAGS): Likewise.
28989 (iorw_mod_LDFLAGS): Likewise.
28990
28991 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28992
28993 Hotkey support
28994
28995 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28996 * normal/main.c (hotkey_aliases): New variable.
28997 (grub_normal_add_menu_entry): Parse "--hotkey".
28998 * normal/menu_text.c (run_menu): Handle hotkeys.
28999
29000 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29001
29002 * kern/i386/coreboot/init.c (grub_machine_init): Call
29003 grub_machine_mmap_init on qemu.
29004
29005 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29006
29007 * boot/i386/qemu/boot.S: Add a missing .code16.
29008
29009 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29010
29011 Use LBIO on coreboot.
29012
29013 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29014 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29015 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29016 New declaration.
29017 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29018 grub_machine_mmap_init on coreboot.
29019 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29020 GRUB_LINUXBIOS_MEMBER_LINK.
29021 (grub_machine_mmap_iterate): Fix declaration.
29022 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29023
29024 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29025
29026 Split coreboot and multiboot ports.
29027
29028 * conf/i386-multiboot.rmk: New file.
29029 * configure.ac: Add multiboot port.
29030 * include/grub/i386/multiboot/boot.h: New file.
29031 * include/grub/i386/multiboot/console.h: Likewise.
29032 * include/grub/i386/multiboot/init.h: Likewise.
29033 * include/grub/i386/multiboot/kernel.h: Likewise.
29034 * include/grub/i386/multiboot/loader.h: Likewise.
29035 * include/grub/i386/multiboot/memory.h: Likewise.
29036 * include/grub/i386/multiboot/serial.h: Likewise.
29037 * include/grub/i386/multiboot/time.h: Likewise.
29038 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29039 * loader/multiboot.c: Likewise.
29040 * loader/multiboot_mbi2.c: Likewise.
29041 * util/grub-mkrescue.in: Generate multiboot rescue.
29042
29043 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29044
29045 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29046
29047 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29048
29049 Merge handling of input and output terminals. Fix a hang.
29050
29051 * commands/terminal.c (abstract_terminal): New struct.
29052 (handle_command): New function. Based on grub_cmd_terminal_input.
29053 (grub_cmd_terminal_input): Use handle_command.
29054 (grub_cmd_terminal_output): Use handle_command.
29055
29056 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29057
29058 Fix comment handling.
29059
29060 * tests/grub_script_comments.in: New testcase.
29061 * conf/tests.rmk: Rules for new testcase.
29062 * script/yylex.l: Updated flex rules.
29063
29064 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29065
29066 * docs/grub.texi (play): Document that zero pitches produce rests.
29067 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29068 if argc is 1.
29069
29070 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29071
29072 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29073 autogen issues.
29074
29075 2010-04-26 Christian Franke <franke@computer.org>
29076
29077 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29078 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29079 (grub_get_prefix): Remove function.
29080 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29081 make_system_path_relative_to_its_root ().
29082 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29083
29084 2010-04-24 Christian Franke <franke@computer.org>
29085
29086 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29087 (kernel_img_LDFLAGS): Remove -static-libgcc.
29088
29089 2010-04-24 Christian Franke <franke@computer.org>
29090
29091 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29092 and CHECK_END_SYMBOL if grub-emu is built.
29093 Unset TARGET_OBJ2ELF if grub-emu is built
29094 without module support.
29095
29096 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29097
29098 Nilfs2 support.
29099
29100 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29101 (grub_fstest_SOURCES): Likewise.
29102 (pkglib_MODULES): Add nilfs2.mod.
29103 (nilfs2_mod_SOURCES): New variable.
29104 (nilfs2_mod_CFLAGS): Likewise.
29105 (nilfs2_mod_LDFLAGS): Likewise.
29106 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29107 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29108 * fs/nilfs2.c: New file.
29109
29110 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29111
29112 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29113 is not supported.
29114
29115 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29116
29117 Add grub-mkconfig support for NetBSD.
29118
29119 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29120 * util/grub-mkconfig.in: export new NetBSD specific variables.
29121 * po/POTFILES-shell: added 10_netbsd.in.
29122 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29123
29124 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29125
29126 Fix emu build with grub-emu-pci and grub-emu-modules.
29127
29128 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29129 functions.
29130 * include/grub/libpciaccess.h: New file.
29131 * conf/any-emu.rmk: Update kernel headers for emu build.
29132
29133 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29134
29135 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29136
29137 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29138
29139 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29140
29141 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29142
29143 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29144 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29145 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29146 util/ieee1275/ofpath.c.
29147 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29148 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29149 * include/grub/sparc64/ieee1275/boot.h
29150 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29151 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29152 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29153 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29154 const char *.
29155 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29156 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29157 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29158 install.
29159
29160 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29161
29162 * util/grub-mkconfig.in: Corrected two == equality tests.
29163 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29164 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29165 expect a number appended to it.
29166 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29167 expects a number appended to it.
29168
29169 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29170
29171 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29172
29173 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29174
29175 * util/hostdisk.c (make_device_name): Change to new partition naming.
29176
29177 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29178
29179 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29180
29181 2010-04-17 Christian Franke <franke@computer.org>
29182
29183 * Makefile.in: Add missing localedir setting.
29184
29185 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29186
29187 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29188 mistake in r2156. Noticed by Anthony Fok.
29189
29190 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29191 @localedir@.
29192 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29193
29194 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29195
29196 Fix a spurious, uninitialized variable warning.
29197
29198 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29199 Initialize variable, shdr.
29200 (grub_freebsd_load_elfmodule): Likewise.
29201 (grub_freebsd_load_elf_meta): Likewise.
29202
29203 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29204
29205 Fix for escaped dollar in double quoted strings.
29206
29207 * script/yylex.l: Updated flex rules.
29208 * conf/tests.rmk: Rule for new testcase.
29209 * tests/grub_script_dollar.in: New testcase.
29210
29211 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29212 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29213
29214 Enclose all translated strings in grub.cfg in single quotes, and
29215 escape them appropriately (Ubuntu bug #552921).
29216
29217 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29218 * util/grub.d/10_hurd.in: Use it.
29219 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29220 * util/grub.d/10_linux.in (linux_entry): Likewise.
29221
29222 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29223
29224 Fix cygwin compilation.
29225
29226 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29227 * include/grub/misc.h (__register_frame_info)
29228 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29229 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29230 * kern/misc.c (__register_frame_info)
29231 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29232 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29233
29234 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29235
29236 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29237
29238 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29239
29240 Unify libgcc processing.
29241
29242 * Makefile.in (kernel_img_LDFLAGS): New variable.
29243 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29244 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29245 overwriting.
29246 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29247 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29248 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29249 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29250 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29251 overwriting. Remove -lgcc and -static-libgcc
29252 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29253 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29254 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29255 (kernel_img_LDFLAGS): Append instead of overwriting.
29256 Remove -lgcc and -static-libgcc
29257 * conf/sparc64-ieee1275.rmk: Likewise.
29258 * include/grub/powerpc/libgcc.h: Move to ...
29259 * include/grub/libgcc.h: .. this.
29260 * include/grub/libgcc.h: Don't export most of the function on x86.
29261 (__bswapsi2): New export.
29262 (__bswapdi2): Likewise.
29263 * include/grub/mips/libgcc.h: Removed.
29264 * include/grub/sparc64/libgcc.h: Likewise.
29265
29266 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29267
29268 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29269 disk_info_msg (conflicts with gettexting into languages with cases).
29270
29271 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29272
29273 Add grub-probe support for NetBSD.
29274
29275 * util/getroot.c (find_root_device): Convert block device to
29276 character device on NetBSD.
29277 * util/probe.c (probe): Require character device on NetBSD.
29278 * util/hostdisk.c: NetBSD specific headers.
29279 (configure_device_driver): new function to tune device driver
29280 parameters (currently only for NetBSD floppy driver).
29281 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29282 via disklabel ioctl).
29283 (open_device): call configure_device_driver on NetBSD.
29284 (convert_system_partition_to_system_disk): NetBSD specific code.
29285 (device_is_wholedisk): Likewise.
29286 (grub_util_biosdisk_get_grub_dev): Likewise.
29287 (make_device_name): Fixed a typo in bsd_part_str.
29288 * configure.ac: check for opendisk() and getrawpartition() on
29289 NetBSD and set LIBUTIL.
29290 * Makefile.in: add LIBUTIL to LIBS.
29291
29292 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29293
29294 Documentation fix.
29295
29296 * util/grub-script-check.c: Better help message.
29297
29298 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29299
29300 Fix FreeBSD build.
29301
29302 * configure.ac: Flex version check.
29303 * conf/common.rmk: Add -Wno-error to sh.mod.
29304 * script/yylex.l: Remove all #pragma.
29305
29306 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29307
29308 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29309 prototype.
29310 Reported by: Seth Goldberg.
29311
29312 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29313
29314 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29315 Rename "module" to "module2".
29316 Reported by: Seth Goldberg.
29317
29318 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29319
29320 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29321 EXPORT_FUNC.
29322 Reported by: Seth Goldberg.
29323
29324 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29325
29326 * lib/posix_wrap/locale.h: Add missing file.
29327 Reported by: Seth Goldberg.
29328
29329 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29330
29331 grub-emu module load support.
29332
29333 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29334 NO_DYNAMIC_MODULES switched to this.
29335 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29336 (CFLAGS): Likewise.
29337 * conf/any-emu.rmk: Generate symlist.
29338 (kernel_img_HEADERS): Add util/datetime.h.
29339 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29340 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29341 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29342 kern/$(target_cpu)/cache.S.
29343 * configure.ac (grub-emu-modules): New option.
29344 * genmk.rb: Handle multiple source lists.
29345 * include/grub/sdl.h: New file.
29346 * include/grub/libusb.h: Likewise.
29347 * util/grub-emu.c (main): Hanle (host) root.
29348 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29349 GRUB_ERR_UNKNOWN_DEVICE.
29350 * util/misc.c: Move mm functions to ...
29351 * util/mm.c: ... here. All users updated.
29352
29353 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29354
29355 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29356 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29357 missing files.
29358 (maintainer-clean): Remove libgcrypt-grub.
29359
29360 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29361
29362 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29363
29364 2010-04-09 EFI Coder <eficoder@hotmail.com>
29365
29366 * normal/menu_text.c (print_message): Clean up the message and show
29367 the Fn information when on EFI
29368 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29369
29370 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29371
29372 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29373 All users updated.
29374 * normal/crypto.c (read_crypto_list): Likewise.
29375 * normal/dyncmd.c (read_command_list): Likewise.
29376 * normal/term.c (read_terminal_list): Likewise.
29377 * normal/main.c (read_lists): Use explicit prefix.
29378 (read_lists_hook): Use read_lists.
29379 (grub_normal_execute): Likewise.
29380
29381 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29382
29383 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29384 Reported by: Thomas Schmitt.
29385 Add -no-emul-boot to grub-mkisofs parameters.
29386
29387 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29388
29389 * font/font.c: Indented.
29390
29391 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29392
29393 Elif support to GRUB script (by Deepak Vankadaru).
29394
29395 * tests/grub_script_if.in: New testcase.
29396 * conf/tests.rmk: Rule for new testcase.
29397 * script/parser.y: Grammar rules for elif.
29398
29399 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29400
29401 While and until loops support to GRUB script.
29402
29403 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29404 (grub_script_create_cmdwhile): New function prototype.
29405 (grub_script_execute_cmdwhile): New function prototype.
29406 * script/execute.c (grub_script_execute_cmdwhile): New function.
29407 * script/parser.y (command): New commands.
29408 (whilecmd): New grammar rule.
29409 (untilcmd): New grammar rule.
29410 * script/script.c (grub_script_create_cmdwhile): New function.
29411 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29412 function.
29413
29414 * tests/grub_script_while1.in: New testcase.
29415 * conf/tests.rmk: Rule for new testcase.
29416
29417 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29418
29419 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29420 as *.jpg.
29421
29422 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29423
29424 GRUB_BACKGROUND support.
29425
29426 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29427 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29428
29429 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29430
29431 Load fonts and modules for gfxmenu in grub-mkconfig.
29432 Idea by: Mario Vazquez
29433
29434 * util/grub.d/00_header.in: Load pf2 and image modules.
29435
29436 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29437
29438 grub-mkconfig multiple terminal support.
29439
29440 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29441 * util/grub.d/00_header.in: Likewise.
29442
29443 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29444
29445 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29446 we use cd $(srcdir).
29447
29448 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29449
29450 * util/grub.d/10_linux.in: Only use the first word of
29451 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29452 spaces in GRUB_DISTRIBUTOR.
29453 * util/grub.d/10_kfreebsd.in: Likewise.
29454 * util/grub.d/10_hurd.in: Likewise.
29455
29456 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29457
29458 Fix unit testing framework for Qemu 0.12.
29459
29460 * tests/util/grub-shell.in: Remove -serial stdio option.
29461
29462 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29463
29464 POSIX header file wrappers.
29465
29466 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29467 equivalents.
29468 * lib/posix_wrap/ctype.h: Likewise.
29469 * lib/posix_wrap/errno.h: Likewise.
29470 * lib/posix_wrap/langinfo.h: Likewise.
29471 * lib/posix_wrap/limits.h: Likewise.
29472 * lib/posix_wrap/localcharset.h: Likewise.
29473 * lib/posix_wrap/stdint.h: Likewise.
29474 * lib/posix_wrap/stdio.h: Likewise.
29475 * lib/posix_wrap/stdlib.h: Likewise.
29476 * lib/posix_wrap/string.h: Likewise.
29477 * lib/posix_wrap/sys/types.h: Likewise.
29478 * lib/posix_wrap/unistd.h: Likewise.
29479 * lib/posix_wrap/wchar.h: Likewise.
29480 * lib/posix_wrap/wctype.h: Likewise.
29481 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29482 (grub_script.yy.h): Likewise.
29483 * script/yylex.l: Remove POSIX emulation #defines.
29484 * Makefile.in (POSIX_CFLAGS): New variable.
29485 (GNULIB_UTIL_CFLAGS): Likewise.
29486
29487 Regexp support.
29488
29489 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29490 (regexp_mod_SOURCES): New variable.
29491 (regexp_mod_CFLAGS): Likewise.
29492 (regexp_mod_LDFLAGS): Likewise.
29493 * commands/regexp.c: New file.
29494 * gnulib/regcomp.c: New file. Imported from gnulib.
29495 * gnulib/regex.c: Likewise.
29496 * gnulib/regex_internal.c: Likewise.
29497 * gnulib/regex_internal.h: Likewise.
29498 * gnulib/regexec.c: Likewise.
29499 * gnulib/regex.h: Likewise.
29500
29501 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29502
29503 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29504 unsupported video mode types.
29505
29506 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29507
29508 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29509
29510 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29511
29512 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29513 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29514
29515 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29516
29517 Remove unused grub_vga_get_font.
29518
29519 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29520 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29521
29522 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29523
29524 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29525 * include/grub/misc.h: Likewise.
29526
29527 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29528
29529 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29530 for which failure is fatal.
29531
29532 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29533
29534 * util/grub-install.in: Use mkdir -p to create grub directory.
29535 * util/i386/efi/grub-install.in: Likewise.
29536 * util/ieee1275/grub-install.in: Likewise.
29537
29538 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29539
29540 * Makefile.in (LEX): new variable.
29541
29542 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29543
29544 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29545 `=' and added double quotes on operands of this equality test.
29546
29547 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29548
29549 * Makefile.in (uninstall): Remove a leftover debug echo.
29550 Reported by: Grégoire Sutre
29551
29552 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29553
29554 MIPS multiboot2 support.
29555
29556 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29557 (multiboot2_mod_SOURCES): New variable.
29558 (multiboot2_mod_CFLAGS): Likewise.
29559 (multiboot2_mod_LDFLAGS): Likewise.
29560 (multiboot2_mod_ASFLAGS): Likewise.
29561 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29562 definition.
29563 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29564 (MULTIBOOT_MBI_REGISTER): Likewise.
29565 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29566 (MULTIBOOT_ELF32_MACHINE): Likewise.
29567 (MULTIBOOT_ELF64_MACHINE): Likewise.
29568 * include/grub/mips/multiboot.h: New file.
29569 * include/grub/video.h (grub_video_driver_id): New type
29570 GRUB_VIDEO_DRIVER_SM712.
29571 (grub_video_get_info_and_fini): Export.
29572 (grub_video_get_palette): Likewise.
29573 (grub_video_get_driver_id): Likewise.
29574 * include/multiboot2.h: Resynced with spec.
29575 * loader/i386/multiboot.c: Moved from here ...
29576 * loader/multiboot.c: ... here. All users updated.
29577 (grub_multiboot_boot): Use platform-specific macros.
29578 * loader/i386/multiboot_elfxx.c: Moved from here ...
29579 * loader/multiboot_elfxx.c: ... here. All users updated.
29580 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29581 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29582 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29583
29584 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29585
29586 Import gnulib argp module.
29587
29588 * gnulib/argp-ba.c: New file.
29589 * gnulib/argp-eexst.c: Likewise.
29590 * gnulib/argp-fmtstream.c: Likewise.
29591 * gnulib/argp-fmtstream.h: Likewise.
29592 * gnulib/argp-fs-xinl.c: Likewise.
29593 * gnulib/argp-help.c: Likewise.
29594 * gnulib/argp-namefrob.h: Likewise.
29595 * gnulib/argp-parse.c: Likewise.
29596 * gnulib/argp-pin.c: Likewise.
29597 * gnulib/argp-pv.c: Likewise.
29598 * gnulib/argp-pvh.c: Likewise.
29599 * gnulib/argp-version-etc.c: Likewise.
29600 * gnulib/argp-version-etc.h: Likewise.
29601 * gnulib/argp-xinl.c: Likewise.
29602 * gnulib/argp.h: Likewise.
29603
29604 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29605
29606 * kern/device.c (grub_device_iterate): Clear errors after failed
29607 opening device.
29608
29609 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29610
29611 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29612 returned by firmware.
29613
29614 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29615
29616 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29617 compilation on coreboot and qemu
29618
29619 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29620
29621 * include/multiboot2.h: Resync with spec.
29622
29623 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29624
29625 Multiboot2 tag support
29626
29627 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29628 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29629 Remove loader/multiboot_loader.c.
29630 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29631 (grub_multiboot2_real_boot): Likewise.
29632 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29633 (grub_get_multiboot_mmap_count): New proto.
29634 (grub_fill_multiboot_mmap): Likewise.
29635 (grub_multiboot_set_video_mode): Likewise.
29636 (grub_multiboot_set_console): Likewise.
29637 (grub_multiboot_load): Likewise.
29638 (grub_multiboot_load_elf): Likewise.
29639 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29640 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29641 * include/multiboot.h: Resynced with specification.
29642 * include/multiboot2.h: Resynced with specification.
29643 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29644 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29645 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29646 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29647 users updated.
29648 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29649 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29650 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29651 Removed.
29652 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29653 Moved from here...
29654 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29655 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29656 Moved from here...
29657 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29658 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29659 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29660 All users updated.
29661 * loader/i386/multiboot_mbi2.c: New file.
29662
29663 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29664
29665 Resync with gnulib.
29666
29667 * Makefile.in (GNULIB_CFLAGS): New variable.
29668 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29669 (grub_script_check_CFLAGS): New variable.
29670 * gnulib/alloca.h: Resync with gnulib.
29671 * gnulib/error.c: Likewise.
29672 * gnulib/error.h: Likewise.
29673 * gnulib/fnmatch.c: Likewise.
29674 * gnulib/fnmatch_loop.c: Likewise.
29675 * gnulib/getdelim.c: Likewise.
29676 * gnulib/getline.c: Likewise.
29677 * gnulib/getopt.c: Likewise.
29678 * gnulib/getopt1.c: Likewise.
29679 * gnulib/getopt_int.h: Likewise.
29680 * gnulib/gettext.h: Likewise.
29681 * gnulib/progname.c: Likewise.
29682 * gnulib/progname.h: Likewise.
29683
29684 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29685
29686 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29687 which is the case with --disabled-nls.
29688
29689 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29690 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29691 * util/misc.c: Likewise.
29692 * util/mkisofs/mkisofs.c: Likewise.
29693 * util/mkisofs/mkisofs.h: Likewise.
29694
29695 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29696
29697 Simplify Apple CC support.
29698
29699 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29700 Add 0 byte at the end not to have a symbol with empty target.
29701 * mmap/i386/pc/mmap_helper.S: Likewise.
29702 * genmk.rb: Ignore errors 2030 and 2050.
29703 * kern/i386/pc/startup.S: Use LOCAL when possible.
29704
29705 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29706
29707 Testcase and the fix for final semicolon on cmdline.
29708
29709 * tests/grub_script_final_semicolon.in: New testcase.
29710 * conf/tests.rmk: Rules for the new testcase.
29711 * script/parser.y: Grammar fix.
29712
29713 2010-03-26 BVK Chaitanya <bvk@localhost>
29714
29715 Blank lines testcase for GRUB script.
29716
29717 * tests/grub_script_blanklines.in: New testcase.
29718 * conf/tests.rmk: Rules for the new testcase.
29719
29720 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29721
29722 Don't use __FILE__.
29723
29724 * genmk.rb: Add -DGRUB_FILE to all C targets.
29725 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29726 * include/grub/list.h: Likewise.
29727 * include/grub/misc.h: Likewise.
29728 * include/grub/mm.h: Likewise.
29729 * include/grub/test.h: Likewise.
29730 * kern/mm.c: Likewise.
29731 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29732
29733 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29734
29735 Sunpc partitions support.
29736
29737 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29738 (grub_fstest_SOURCES): Likewise.
29739 (pkglib_MODULES): Add part_sunpc.mod.
29740 (part_sunpc_mod_SOURCES): New variable.
29741 (part_sunpc_mod_CFLAGS): Likewise.
29742 (part_sunpc_mod_LDFLAGS): Likewise.
29743 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29744 * partmap/sunpc.c: New file.
29745
29746 2010-03-26 BVK Chaitanya <bvk@localhost>
29747
29748 For loop support to GRUB script.
29749
29750 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29751 (grub_script_create_cmdfor): New function prototype.
29752 (grub_script_execute_cmdfor): New function prototype.
29753 * script/execute.c (grub_script_execute_cmdfor): New function.
29754 * script/parser.y (command): New for command.
29755 (forcmd): New grammar rule.
29756 * script/script.c (grub_script_create_cmdfor): New function.
29757 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29758 function.
29759 * tests/grub_script_for1.in: New testcase.
29760 * conf/tests.rmk: Rules for new testcase.
29761
29762 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29763
29764 Nested partitions
29765
29766 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29767 'partition' is NULL, grub_partition_get_start already does that.
29768 * commands/loadenv.c (check_blocklists): Likewise.
29769 (write_blocklists): Likewise.
29770 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29771 (grub_fstest_SOURCES): Likewise.
29772 (pkglib_MODULES): Add part_bsd.mod.
29773 (part_bsd_mod_SOURCES): New variable.
29774 (part_bsd_mod_CFLAGS): Likewise.
29775 (part_bsd_mod_LDFLAGS): Likewise.
29776 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29777 (grub_emu_SOURCES): Likewise.
29778 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29779 * include/grub/bsdlabel.h: New file.
29780 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29781 'get_name'.
29782 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29783 (grub_partition_map_list): New variable.
29784 (grub_partition_map_register): Inline.
29785 (grub_partition_map_unregister): Likewise.
29786 (FOR_PARTITION_MAPS): New macro.
29787 (grub_partition_map_iterate): Removed.
29788 (grub_partition_get_start): Handle nested partitions.
29789 * include/grub/msdos_partition.h: Remove bsd-related entries.
29790 (grub_pc_partition): Remove.
29791 * kern/disk.c (grub_disk_close): Free partition data.
29792 (grub_disk_adjust_range): Handle nested partitions.
29793 * kern/partition.c (grub_partition_map_probe): New function.
29794 (grub_partition_probe): Parse name to number, handle subpartitions.
29795 (get_partmap): New function.
29796 (grub_partition_iterate): Handle subpartitions.
29797 (grub_partition_get_name): Likewise.
29798 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29799 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29800 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29801 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29802 Set 'number'.
29803 (acorn_partition_map_probe): Remove.
29804 (acorn_partition_map_get_name): Likewise.
29805 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29806 Set 'number'.
29807 Set 'index' to 0 since there can be only one partition entry per sector.
29808 (amiga_partition_map_probe): Remove.
29809 (amiga_partition_map_get_name): Likewise.
29810 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29811 Set 'number'.
29812 Set 'offset' and 'index' to real positions of partitions.
29813 (apple_partition_map_probe): Remove.
29814 (apple_partition_map_get_name): Likewise.
29815 * partmap/bsdlabel.c: New file.
29816 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29817 Set 'number'.
29818 Allocate 'data' so it can be correctly freed.
29819 Set 'index' to offset inside sector.
29820 (gpt_partition_map_probe): Remove.
29821 (gpt_partition_map_get_name): Likewise.
29822 * partmap/msdos.c (grub_partition_parse): Remove.
29823 (pc_partition_map_iterate): Don't force raw access.
29824 Set 'number'.
29825 Make 'ext_offset' a local variable.
29826 (pc_partition_map_probe): Remove.
29827 (pc_partition_map_get_name): Remove.
29828 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29829 Set 'number'.
29830 (sun_partition_map_probe): Remove.
29831 (sun_partition_map_get_name): Likewise.
29832 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29833 (grub_pcpart_type): Likewise.
29834 * util/hostdisk.c (open_device): Handle new numbering scheme.
29835 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29836 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29837 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29838 * util/grub-install.in: Insert all subpartition modules.
29839 * util/ieee1275/grub-install.in: Likewise.
29840
29841 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29842
29843 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29844 grammar.
29845
29846 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29847
29848 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29849
29850 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29851
29852 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29853 match where 'make install' puts them.
29854 * util/i386/efi/grub-install.in: Likewise.
29855
29856 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29857
29858 * .bzrignore: Add gentrigtables, grub-script-check,
29859 grub_script_check_init.c, grub_script_check_init.h, and
29860 trigtables.c.
29861
29862 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29863
29864 * kern/parser.c: Indented.
29865
29866 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29867
29868 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29869
29870 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29871
29872 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29873 alpha_mask_size == 0 case.
29874
29875 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29876
29877 GRUB shell lexer and parser improvements.
29878
29879 * conf/any-emu.rmk: Build rule updates.
29880 * conf/common.rmk: Likewise.
29881 * conf/i386-coreboot.rmk: Likewise.
29882 * conf/i386-efi.rmk: Likewise.
29883 * conf/i386-ieee1275.rmk: Likewise.
29884 * conf/i386-pc.rmk: Likewise.
29885 * conf/powerpc-ieee1275.rmk: Likewise.
29886 * conf/x86_64-efi.rmk: Likewise.
29887
29888 * configure.ac: Configure check for flex.
29889
29890 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29891 types.
29892 (grub_lexer_param): Struct member updates.
29893 (grub_parser_param): Likewise.
29894 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29895 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29896 (grub_script_lexer_init): Prototype update.
29897 (grub_script_lexer_record_start): Likewise.
29898 (grub_script_lexer_record_stop): Likewise.
29899 (grub_script_lexer_yywrap): New function prototype.
29900 (grub_script_lexer_fini): Likewise.
29901 (grub_script_execute_argument_to_string): Removed by...
29902 (grub_script_execute_argument_to_argv): ...better version.
29903
29904 * script/execute.c (ROUND_UPTO): New macro.
29905 (grub_script_execute_cmdline): Out of memory fixes.
29906 (grub_script_execute_menuentry): Likewise.
29907 (grub_script_execute_argument_to_string): Removed. Update all
29908 users by...
29909 (grub_script_execute_argument_to_argv): ...better version.
29910 * script/function.c (grub_script_function_create): Use
29911 grub_script_execute_argument_to_argv instead of
29912 grub_script_execute_argument_to_string.
29913
29914 * script/lexer.c (check_varstate): Removed.
29915 (check_textstate): Removed.
29916 (grub_script_lexer_record_start): Likewise.
29917 (grub_script_lexer_record_stop): Likewise.
29918 (recordchar): Replaced with...
29919 (grub_script_lexer_record): ...new function.
29920 (nextchar): Removed.
29921 (grub_script_lexer_init): Rewritten.
29922 (grub_script_yylex): Rewritten.
29923 (append_newline): New function.
29924 (grub_script_lexer_yywrap): New function.
29925 (grub_script_lexer_fini): New function.
29926 (grub_script_yyerror): Sets error flag.
29927
29928 * script/yylex.l: New file.
29929 (grub_lexer_yyfree): Wrapper for flex yyffre.
29930 (grub_lexer_yyalloc): Likewise.
29931 (grub_lexer_yyrealloc): Likewise.
29932 * script/parser.y: Refactored.
29933
29934 * script/script.c (grub_script_arg_add): Out of memory fixes.
29935 (grub_script_add_arglist): Likewise.
29936 (grub_script_create_cmdline): Likewise.
29937 (grub_script_create_cmdmenu): Likewise.
29938 (grub_script_add_cmd): Likewise.
29939 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29940 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29941 unnecessary code.
29942
29943 * tests/grub_script_echo1.in: New testcase.
29944 * tests/grub_script_vars1.in: New testcase.
29945 * tests/grub_script_echo_keywords.in: New testcase.
29946
29947 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29948
29949 Remove some redundancy in build system.
29950
29951 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29952 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29953 (TARGET_LDFLAGS): Add -nostdlib.
29954 (TARGET_IMG_LDFLAGS): Likewise.
29955 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29956 anything since mmap isn't available.
29957 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29958 Add util/time.c.
29959 (pkglib_MODULES): Remove reboot.mod.
29960 (reboot_mod_SOURCES): Removed.
29961 (reboot_mod_CFLAGS): Likewise.
29962 (reboot_mod_LDFLAGS): Likewise.
29963 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29964 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29965 (DEFSYMFILES): Add kernel_syms.lst.
29966 (kernel_img_HEADERS): Add common headers.
29967 (symlist.c): New target.
29968 (kernel_syms.lst): Likewise.
29969 (pkglib_MODULES): Add memdisk.mod.
29970 (memdisk_mod_SOURCES): New variable.
29971 (memdisk_mod_CFLAGS): Likewise.
29972 (memdisk_mod_LDFLAGS): Likewise.
29973 (pkglib_MODULES): Add reboot.mod.
29974 (reboot_mod_SOURCES): New variable.
29975 (reboot_mod_CFLAGS): Likewise.
29976 (reboot_mod_LDFLAGS): Likewise.
29977 (pkglib_MODULES): Add date.mod.
29978 (date_mod_SOURCES): New variable.
29979 (date_mod_CFLAGS): Likewise.
29980 (date_mod_LDFLAGS): Likewise.
29981 (pkglib_MODULES): Add datehook.mod.
29982 (datehook_mod_SOURCES): New variable.
29983 (datehook_mod_CFLAGS): Likewise.
29984 (datehook_mod_LDFLAGS): Likewise.
29985 (pkglib_MODULES): Add lsmmap.mod.
29986 (lsmmap_mod_SOURCES): New variable.
29987 (lsmmap_mod_CFLAGS): Likewise.
29988 (lsmmap_mod_LDFLAGS): Likewise.
29989 (pkglib_MODULES): Add boot.mod.
29990 (boot_mod_SOURCES): New variable.
29991 (boot_mod_CFLAGS): Likewise.
29992 (boot_mod_LDFLAGS): Likewise.
29993 * conf/i386-coreboot.rmk: Removed redundant parts.
29994 * conf/i386-ieee1275.rmk: Likewise.
29995 * conf/i386-pc.rmk: Likewise.
29996 * conf/mips-yeeloong.rmk: Likewise.
29997 * conf/mips.rmk: Likewise.
29998 * conf/powerpc-ieee1275.rmk: Likewise.
29999 * conf/sparc64-ieee1275.rmk: Likewise.
30000 * conf/x86_64-efi.rmk: Likewise.
30001 * conf/i386-coreboot.rmk: Moved qemu parts ..
30002 * conf/i386-qemu.rmk: ... here
30003 * conf/i386-efi.rmk: Moved common parts to...
30004 * conf/x86-efi.rmk: ... here.
30005 * conf/i386.rmk: Added modules common to all x86 variants.
30006 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30007 * disk/memdisk.c: Remove grub/machine/kernel.h.
30008 * gensymlist.sh.in: Include symbol.h.
30009 * hook/datehook.c: Correct module name.
30010 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30011 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30012 * include/grub/i386/efi/serial.h: New file.
30013 * include/grub/x86_64/efi/serial.h: Likewise.
30014 * util/time.c: Likewise.
30015 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30016
30017 2010-03-14 Colin King <colin.king@ubuntu.com>
30018 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30019
30020 Shrink the pre-partition-table part of boot.img by eight bytes.
30021
30022 * boot/i386/pc/boot.S (ERR): New macro.
30023 (chs_mode): Use ERR.
30024 (geometry_error): Likewise.
30025 (hd_probe_error): Remove. This is only used once, so we wrwite
30026 it inline instead.
30027 (read_error): Instead of printing read_error_string, just set up
30028 %si and fall through to ...
30029 (error_message): ... this new function, also used by ERR.
30030
30031 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30032
30033 Speed up consecutive hostdisk operations on the same device.
30034
30035 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30036 (grub_util_biosdisk_open): Initialise disk->data.
30037 (struct linux_partition_cache): New structure.
30038 (linux_find_partition): Cache partition start positions; these are
30039 expensive to compute on every read and write.
30040 (open_device): Cache open file descriptor in disk->data, so that we
30041 don't have to reopen it and flush the buffer cache for consecutive
30042 operations on the same device.
30043 (grub_util_biosdisk_close): New function.
30044 (grub_util_biosdisk_dev): Set `close' member.
30045
30046 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30047 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30048 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30049 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30050 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30051
30052 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30053
30054 Compile parts of grub-emu as modules.
30055
30056 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30057 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30058 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30059 (all-local): Add $(GRUB_EMU).
30060 (install-local): Install $(GRUB_EMU).
30061 (uninstall): Uninstall $(GRUB_EMU).
30062 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30063 * kern/dl.c: Likewise.
30064 * commands/sleep.c: Not include machine/time.h.
30065 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30066 (COMMON_CFLAGS): Likewise.
30067 (sbin_UTILITIES): Remove grub-emu.
30068 (grub_emu_SOURCES): Removed.
30069 (kernel_img_RELOCATABLE): New variable.
30070 (pkglib_PROGRAMS): Add kernel.img.
30071 (kernel_img_SOURCES): New variable
30072 (kernel_img_CFLAGS): Likewise.
30073 (kernel_img_LDFLAGS): Likewise.
30074 (TARGET_NO_STRIP): Likewise.
30075 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30076 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30077 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30078 (grub-emu): New target.
30079 (GRUB_EMU): New variable.
30080 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30081 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30082 * loader/xnu.c: Likewise.
30083 * include/grub/pci.h: Likewise.
30084 * genemuinit.sh: New file.
30085 * genemuinitheader.sh: Likewise.
30086 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30087 Support TARGET_NO_DYNAMIC_MODULES.
30088 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30089 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30090 * disk/loopback.c: Likewise.
30091 * font/font_cmd.c: Likewise.
30092 * partmap/acorn.c: Likewise.
30093 * partmap/amiga.c: Likewise.
30094 * partmap/apple.c: Likewise.
30095 * partmap/gpt.c: Likewise.
30096 * partmap/msdos.c: Likewise.
30097 * partmap/sun.c: Likewise.
30098 * parttool/msdospart.c: Likewise.
30099 * term/gfxterm.c: Likewise.
30100 * video/bitmap.c: Likewise.
30101 * video/readers/jpeg.c: Likewise.
30102 * video/readers/png.c: Likewise.
30103 * video/readers/tga.c: Likewise.
30104 * video/video.c: Likewise.
30105 * util/grub-emu.c (read_command_list): Removed.
30106 (main): Don't call util_init_nls.
30107 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30108 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30109
30110 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30111
30112 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30113 date.mod, datehook.mod.
30114 (datetime_mod_SOURCES): New variable.
30115 (datetime_mod_CFLAGS): Likewise.
30116 (datetime_mod_LDFLAGS): Likewise.
30117 (date_mod_SOURCES): Likewise.
30118 (date_mod_CFLAGS): Likewise.
30119 (date_mod_LDFLAGS): Likewise.
30120 (datehook_mod_SOURCES): Likewise.
30121 (datehook_mod_CFLAGS): Likewise.
30122 (datehook_mod_LDFLAGS): Likewise.
30123 * conf/sparc64-ieee1275.rmk: Likewise.
30124 * lib/ieee1275/datetime.c: New file.
30125
30126 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30127
30128 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30129 (ieee1275_fb_mod_SOURCES): New variable.
30130 (ieee1275_fb_mod_CFLAGS): Likewise.
30131 (ieee1275_fb_mod_LDFLAGS): Likewise.
30132 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30133 New proto.
30134 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30135 (HEAP_MAX_ADDR): Likewise.
30136 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30137 type.
30138 Correct stop condition.
30139 (grub_ieee1275_devices_iterate): New function.
30140 * video/ieee1275.c: New file.
30141
30142 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30145
30146 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30147 as scratch.
30148 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30149 SCRATCH_PAD_DISKBOOT as scratch.
30150 (bootit): Pass Openfirmware pointer in %o4.
30151 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30152 of 0x200000.
30153 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30154 with util/grub-mkrawimage.c.
30155 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30156 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30157 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30158 (grub_aout_load) [GRUB_UTIL]: Likewise.
30159 * include/grub/kernel.h (grub_modules_get_end): New proto.
30160 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30161 (SCRATCH_PAD_BOOT): New definition.
30162 (SCRATCH_PAD_DISKBOOT): Likewise.
30163 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30164 * include/grub/sparc64/ieee1275/ieee1275.h
30165 (grub_ieee1275_original_stack): New variable
30166 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30167 New definition
30168 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30169 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30170 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30171 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30172 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30173 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30174 (grub_platform_image_format_t): New type.
30175 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30176 * kern/main.c (grub_modules_get_end)
30177 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30178 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30179 (codestart): Switch stacks.
30180 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30181 variable.
30182 (grub_heap_init): Use grub_modules_get_end.
30183 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30184 stack.
30185 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30186 (main): Likewise.
30187 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30188
30189 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30190
30191 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30192
30193 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30194
30195 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30196 bug #559005).
30197
30198 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30199
30200 * genmoddep.awk: Output all missing symbols and not only first.
30201
30202 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30203
30204 * NEWS: Put the date of 1.98 release.
30205
30206 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30207
30208 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30209 ft2build.h.
30210
30211 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30214 completition in the middle of string.
30215
30216 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30217
30218 * util/grub-mkrescue.in: Use mktemp with explicit template.
30219
30220 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30221
30222 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30223
30224 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30225
30226 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30227 right pointer.
30228
30229 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30230
30231 Fix FreeBSD compilation.
30232
30233 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30234 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30235
30236 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30237
30238 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30239
30240 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30241
30242 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30243
30244 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30247
30248 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30249
30250 Support relative image path in theme file.
30251
30252 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30253 (image_set_property): Handle theme_dir and relative path.
30254
30255 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30256
30257 * configure.ac: Alias amd64 to x86_64.
30258
30259 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30260
30261 * NEWS: mention multiboot on EFI.
30262
30263 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30264
30265 * kern/main.c (grub_load_modules): Handle errors from init functions of
30266 embeded modules.
30267
30268 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30269
30270 * normal/autofs.c (autoload_fs_module): Handle errors.
30271
30272 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30273
30274 Disable linux.mod on qemu-mips since it's not functional and leads
30275 to compilation failure.
30276
30277 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30278 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30279 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30280 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30281 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30282 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30283 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30284 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30285 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30286 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30287 Reported by: BVK Chaitanya
30288
30289 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30290
30291 * INSTALL: Add gettext as a dependency and add qemu to a new section
30292 "Prerequisites for make-check".
30293
30294 2010-03-04 Christian Franke <franke@computer.org>
30295
30296 * util/grub-pe2elf.c: Add missing include "progname.h".
30297
30298 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30299
30300 * normal/crypto.c (read_crypto_list): Fix a typo.
30301 Reported by: Seth Goldberg.
30302
30303 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30306 Reported by: Seth Goldberg.
30307
30308 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30309
30310 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30311 ascii.bitmaps.
30312
30313 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30314
30315 * genmk.rb: Remove terminal*.lst in make clean.
30316 Reported by: Seth Goldberg.
30317
30318 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30319
30320 * util/i386/efi/grub-install.in: Copy gettext files.
30321
30322 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30325
30326 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30327
30328 Wait for user entry basing on presence of output rather than on errors.
30329
30330 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30331 (grub_install_newline_hook): Likewise.
30332 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30333 * normal/menu.c (show_menu): Check line_counter to determine presence
30334 of output.
30335 * normal/term.c (grub_normal_line_counter): New variable.
30336 (grub_normal_get_line_counter): New function.
30337 (grub_install_newline_hook): Likewise.
30338
30339 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30340
30341 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30342
30343 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30344
30345 * configure.ac: Update version to 1.98.
30346
30347 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30348
30349 * util/grub.d/10_linux.in (linux_entry): Don't default to
30350 gfxpayload=keep if Linux doesn't support video handover.
30351
30352 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30353
30354 Don't compile video modules on yeeloong since video subsystem is part
30355 of kernel.
30356
30357 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30358 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30359 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30360 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30361 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30362 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30363 * include/grub/bitmap_scale.h: Likewise.
30364 * include/grub/bufio.h: Likewise.
30365 * include/grub/font.h: Likewise.
30366 * include/grub/gfxterm.h: Likewise.
30367 * include/grub/video.h: Likewise.
30368 * include/grub/vbe.h: Don't include video_fb.h.
30369 * video/i386/pc/vbe.c: Include video_fb.h.
30370 * commands/i386/pc/vbetest.c: Include video.h.
30371
30372 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30373
30374 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30375 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30376 default entry if GRUB_SAVEDEFAULT=true. This allows using
30377 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30378 saving a new default on every boot.
30379
30380 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30381
30382 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30383 * normal/term.c (read_terminal_list): Likewise.
30384 * normal/main.c (grub_normal_init_page): Likewise.
30385 (grub_normal_read_line_real): Likewise.
30386
30387 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30388
30389 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30390 memory leak.
30391 Reported by: Seth Goldberg.
30392
30393 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30394
30395 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30396 duplicate declaration of `start'.
30397
30398 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30399
30400 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30401 filename.
30402 Reported by: Georgy Buranov
30403
30404 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30405
30406 * util/grub-mkrawimage.c (usage): Change string formatting to
30407 improve gettext.
30408
30409 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30410
30411 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30412 backspace keys.
30413
30414 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30415
30416 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30417 Reported by: Michael Suchanek.
30418
30419 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30420
30421 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30422 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30423
30424 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30425
30426 Remove any reference to non-free fonts.
30427
30428 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30429 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30430 uses non-free components.
30431 * font/font.c (grub_font_get_name): Remove example name.
30432 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30433 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30434 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30435 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30436
30437 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30438
30439 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30440
30441 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30442
30443 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30444 Double divisor.
30445 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30446 features.
30447 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30448
30449 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30450
30451 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30452
30453 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30454
30455 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30456 * docs/grub.texi (Command-line and menu entry commands): Document play
30457 command.
30458
30459 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30460
30461 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30462 parse arguments as inline tempo and notes. Move code for playing notes
30463 to...
30464 (play): ... new function.
30465
30466 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30467
30468 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30469 grub_uint16_t instead of short.
30470 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30471 disk from little endian to cpu endianness.
30472
30473 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30474
30475 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30476 GRUB_TICKS_PER_SECOND instead of 120.
30477
30478 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30479
30480 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30481 escape sequence after \e.
30482
30483 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30484
30485 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30486 non-ASCII characters.
30487
30488 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30489
30490 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30491 set root in single quotes to prevent \, from being unescaped.
30492
30493 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30494
30495 Prevent unknown commands from stopping menuentry execution.
30496
30497 * script/execute.c (grub_script_execute_cmdline): Print error after
30498 unknown command.
30499
30500 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30501
30502 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30503 Reported by: Pavel Pisa.
30504
30505 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30506
30507 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30508
30509 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30510
30511 Merge grub_ieee1275_map_physical into grub_map and rename to
30512 grub_ieee1275_map
30513
30514 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30515 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30516 Remove.
30517 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30518 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30519 necessary.
30520 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30521
30522 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30523
30524 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30525 opening and not after.
30526
30527 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30528
30529 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30530 constants.
30531
30532 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30533
30534 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30535 (alloc_phys): Use ALIGN_UP instead of align_addr.
30536
30537 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30538
30539 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30540
30541 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30542
30543 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30544
30545 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30546
30547 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30548 verbose dprintf.
30549
30550 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30551
30552 Fix over-4GiB seek on sparc64.
30553
30554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30555 Replace pos_i and pos_lo with pos. All users updated.
30556 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30557 New constant.
30558 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30559 Likewise.
30560 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30561 and pos_lo.
30562
30563 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30564
30565 * util/grub-mkrawimage.c (main): Call set_program_name.
30566
30567 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30568
30569 Properly align 64-bit targets.
30570
30571 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30572 (generate_image): Use ALIGN_ADDR.
30573
30574 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30575
30576 Properly create cross-endian images.
30577
30578 * include/grub/types.h (grub_host_to_target_addr): New macro
30579 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30580
30581 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30582
30583 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30584
30585 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30586
30587 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30588
30589 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30590 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30591 (grub_linux_boot): Divide by 64K when on VESA.
30592
30593 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30594
30595 Support GRUB_GFXPAYLOAD_LINUX.
30596
30597 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30598 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30599
30600 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30601
30602 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30603 to show messages instead of discarding them.
30604 Process errors after executing command and not before. Keep old method
30605 too as precaution.
30606
30607 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30608
30609 * configure.ac: Check for ft2build.h.
30610
30611 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30612
30613 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30614
30615 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 * genkernsyms.sh.in: Use TARGET_CC.
30618
30619 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30620
30621 * NEWS: Update.
30622
30623 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30624
30625 * include/grub/multiboot2.h: Remove leftover file.
30626 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30627 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30628
30629 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30630
30631 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30632
30633 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30634
30635 Fix warnings in grub-emu when compiling with maximum warning options.
30636
30637 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30638 (grub_arch_modules_addr): Return 0 and not NULL.
30639 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30640 (xstrdup): Use newstr instead of dup.
30641 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30642 of disk to dsk to avoid shadowing.
30643 (find_free_slot): Fix prototype.
30644 * util/getroot.c (grub_util_is_dmraid): Make static.
30645 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30646 Add missing prototype.
30647 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30648
30649 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30650
30651 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30652 appropriately.
30653
30654 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30655
30656 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30657 code out.
30658
30659 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30660
30661 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30662 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30663 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30664 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30665 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30666 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30667
30668 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30669
30670 * include/grub/err.h (grub_err_printf): Don't export.
30671
30672 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30673
30674 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30675
30676 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30677
30678 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30679 * kern/misc.c (grub_gettext_dummy): Make static.
30680
30681 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30682
30683 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30684 by non-valid ones.
30685 * kern/term.c (grub_putchar): Likewise.
30686
30687 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30688
30689 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30690 buggy hook call and memory leak.
30691
30692 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30693
30694 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30695
30696 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30697
30698 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30699
30700 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30701
30702 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30703 modevar.
30704 Return grub_errno on allocation error.
30705
30706 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30707
30708 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30709
30710 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30711
30712 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30713 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30714
30715 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30716
30717 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30718 non-pxe disk.
30719 (grub_pxefs_open): Likewise.
30720
30721 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30722
30723 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30724 * util/grub.d/10_kfreebsd.in: Likewise.
30725 * util/grub.d/10_linux.in: Likewise.
30726
30727 2010-02-06 Colin D Bennett <colin@gibibit.com>
30728
30729 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30730 (gfxmenu_mod_SOURCES): New variable.
30731 (gfxmenu_mod_CFLAGS): Likewise.
30732 (gfxmenu_mod_LDFLAGS): Likewise.
30733 * include/grub/term.h (grub_term_set_current_output): Declare
30734 argument as const.
30735 * docs/gfxmenu-theme-example.txt: New file.
30736 * gfxmenu/gfxmenu.c: Likewise.
30737 * gfxmenu/gui_box.c: Likewise.
30738 * gfxmenu/gui_canvas.c: Likewise.
30739 * gfxmenu/gui_circular_progress.c: Likewise.
30740 * gfxmenu/gui_image.c: Likewise.
30741 * gfxmenu/gui_label.c: Likewise.
30742 * gfxmenu/gui_list.c: Likewise.
30743 * gfxmenu/gui_progress_bar.c: Likewise.
30744 * gfxmenu/gui_string_util.c: Likewise.
30745 * gfxmenu/gui_util.c: Likewise.
30746 * gfxmenu/icon_manager.c: Likewise.
30747 * gfxmenu/model.c: Likewise.
30748 * gfxmenu/named_colors.c: Likewise.
30749 * gfxmenu/theme_loader.c: Likewise.
30750 * gfxmenu/view.c: Likewise.
30751 * gfxmenu/widget-box.c: Likewise.
30752 * include/grub/gfxmenu_model.h: Likewise.
30753 * include/grub/gfxmenu_view.h: Likewise.
30754 * include/grub/gfxwidgets.h: Likewise.
30755 * include/grub/gui.h: Likewise.
30756 * include/grub/gui_string_util.h: Likewise.
30757 * include/grub/icon_manager.h: Likewise.
30758
30759 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30760
30761 Agglomerate scrolling in gfxterm.
30762
30763 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30764 (grub_virtual_screen_setup): Initialise 'total_screen'.
30765 (write_char): Split to ...
30766 (paint_char): ... this ...
30767 (write_char): ... and this.
30768 (paint_char): Handle delayed scrolling.
30769 (draw_cursor): Likewise.
30770 (scroll_up): Split to ...
30771 (real_scroll): ... this ...
30772 (scroll_up): ... and this.
30773 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30774 characters.
30775 (grub_gfxterm_refresh): Call real_scroll.
30776
30777 2010-02-06 Colin D Bennett <colin@gibibit.com>
30778
30779 * include/grub/misc.h (grub_iscntrl): New inline function.
30780 (grub_isalnum): Likewise.
30781 (grub_strtol): Likewise.
30782
30783 2010-02-06 Colin D Bennett <colin@gibibit.com>
30784
30785 * normal/menu_text.c (get_entry_number): Move from here ...
30786 * normal/menu.c (get_entry_number): ... moved here.
30787 * include/grub/menu.h (grub_menu_get_default_entry_index):
30788 New prototype.
30789 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30790 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30791 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30792 (grub_menu_viewer_should_return): Likewise.
30793 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30794 * normal/menu_text.c (run_menu): Enable menu switching.
30795 * normal/menu_viewer.c (should_return): New variable.
30796 (menu_viewer_changed): Likewise.
30797 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30798 (grub_menu_viewer_should_return): New function.
30799 (menuviewer_write_hook): Likewise.
30800 (grub_menu_viewer_init): Likewise.
30801
30802 2010-02-06 Colin D Bennet <colin@gibibit.com>
30803 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30804
30805 Support for gfxterm in a window.
30806
30807 * include/grub/gfxterm.h: New file.
30808 * include/grub/video.h (struct grub_video_rect): New declaration.
30809 (grub_video_rect_t): Likewise.
30810 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30811 (refcount): New variable.
30812 (render_target): Likewise.
30813 (window): Likewise.
30814 (repaint_callback): Likewise.
30815 (grub_virtual_screen_setup): Use 'render_target'.
30816 (init_window): New function.
30817 (grub_gfxterm_init_window): Likewise.
30818 (grub_gfxterm_init): Check reference counter.
30819 Use init_window.
30820 (destroy_window): New function.
30821 (grub_gfxterm_destroy_window): Likewise.
30822 (grub_gfxterm_fini): Check reference counter.
30823 Use destroy_window.
30824 (redraw_screen_rect): Restore viewport.
30825 Use 'render_target' and 'window'.
30826 Call 'repaint_callback'.
30827 (write_char): Use 'render_target'.
30828 (draw_cursor): Likewise.
30829 (scroll_up): Restore viewport.
30830 Use 'render_target' and 'window'.
30831 Call 'repaint_callback'.
30832 (grub_gfxterm_cls): Likewise.
30833 (grub_gfxterm_refresh): Use 'window'.
30834 (grub_gfxterm_set_repaint_callback): New function.
30835 (grub_gfxterm_background_image_cmd): Use 'window'.
30836 (grub_gfxterm_get_term): New function.
30837 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30838
30839 2010-02-06 Colin D Bennett <colin@gibibit.com>
30840
30841 Bitmap scaling support.
30842
30843 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30844 (bitmap_scale_mod_SOURCES): New variable.
30845 (bitmap_scale_mod_CFLAGS): Likewise.
30846 (bitmap_scale_mod_LDFLAGS): Likewise.
30847 * include/grub/bitmap_scale.h: New file.
30848 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30849 (background_image_cmd_options): New variable.
30850 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30851 (cmd): Rename and change type to ...
30852 (background_image_cmd_handle): ... this. All users updated.
30853 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30854 * video/bitmap_scale.c: New file.
30855
30856 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30857
30858 SDL support.
30859
30860 * Makefile.in (LIBSDL): New variable.
30861 (enable_grub_emu_sdl): Likewise.
30862 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30863 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30864 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30865 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30866 * util/sdl.c: New file.
30867
30868 2010-02-06 Colin D Bennett <colin@gibibit.com>
30869 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30870
30871 Double buffering support.
30872
30873 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30874 * include/grub/video.h: Update comment.
30875 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30876 New type.
30877 (grub_video_fb_doublebuf_blit_init): New prototype.
30878 * term/gfxterm.c (scroll_up): Support double buffering.
30879 (grub_gfxterm_refresh): Likewise.
30880 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30881 (grub_video_fb_doublebuf_blit_init): Likewise.
30882 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30883 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30884 'displayed_page', 'render_page' and 'update_screen'.
30885 (grub_video_vbe_fini): Free offscreen buffer.
30886 (doublebuf_pageflipping_commit): New function.
30887 (doublebuf_pageflipping_update_screen): Likewise.
30888 (doublebuf_pageflipping_init): Likewise.
30889 (double_buffering_init): Likewise.
30890 (grub_video_vbe_setup): Enable doublebuffering.
30891 (grub_video_vbe_swap_buffers): Implement.
30892 (grub_video_vbe_set_active_render_target): Handle double buffering.
30893 (grub_video_vbe_get_active_render_target): Likewise.
30894 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30895 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30896 (grub_video_vbe_enable_double_buffering): Likewise.
30897 (grub_video_vbe_swap_buffers): Use update_screen.
30898 (grub_video_set_mode): Use double buffering.
30899
30900 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30901
30902 * maintainance/gentrigtables.py: Remove.
30903 * lib/trig.c: Likewise.
30904
30905 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30906
30907 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30908 `trigtables.c'.
30909 (trigtables.c): New rule.
30910 (gentrigtables): Likewise.
30911 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30912
30913 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30914
30915 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30916 integer constants.
30917
30918 2010-02-06 Colin D Bennet <colin@gibibit.com>
30919
30920 Trigonometry support.
30921
30922 * include/grub/trig.h: New file.
30923 * lib/trig.c: Likewise.
30924 * maintainance/gentrigtables.py: Likewise.
30925 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30926 (trig_mod_SOURCES): New variable.
30927 (trig_mod_CFLAGS): Likewise.
30928 (trig_mod_LDFLAGS): Likewise.
30929
30930 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30931
30932 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30933 disk devices.
30934
30935 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30936
30937 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30938 error.
30939
30940 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30941
30942 * util/hostdisk.c (open_device): Don't use partition device when reading
30943 before the partition.
30944 (grub_util_biosdisk_read): Don't read from partition and before the
30945 partition in single operation.
30946 (grub_util_biosdisk_write): Don't write to partition and before the
30947 partition in single operation.
30948
30949 2010-02-03 Torsten Landschoff <torsten@debian.org>
30950
30951 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30952 last sectors.
30953
30954 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30955
30956 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30957 CDROM reads.
30958 (grub_biosdisk_write): Refuse to write to CDROM.
30959
30960 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30961
30962 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30963
30964 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30965
30966 * font/font.c (find_glyph): Check that bmp_idx is available before
30967 using it.
30968 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30969 with (font == NULL).
30970
30971 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30972
30973 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30974
30975 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30976
30977 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30978 * util/grub-script-check.c (getline): Fix empty lines case.
30979
30980 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30981
30982 * Makefile.in (check): Exit with fail status when one of the tests
30983 fails.
30984 * tests/example_functional_test.c (example_test): Fix reversed assert.
30985 * tests/example_unit_test.c (example_test): Likewise.
30986
30987 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30988
30989 * util/grub.d/10_linux.in: This script does not use any of the
30990 contents of gettext.sh, only the external command `gettext', so stop
30991 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30992 the same prefix as GRUB.)
30993 * util/grub.d/10_kfreebsd.in: Likewise.
30994
30995 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30996
30997 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30998 of the line.
30999
31000 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31001
31002 * kern/disk.c (grub_disk_read): Fix offset computation when reading
31003 last sectors.
31004
31005 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
31006
31007 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31008 having a 4KiB and not 32KiB buffer size.
31009
31010 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31011
31012 * util/hostfs.c: Include `<errno.h>'.
31013 (grub_hostfs_read): Handle errors from fseeko() and fread().
31014
31015 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31016
31017 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31018 loop when using read hooks on files whose size isn't sector-aligned.
31019
31020 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31021
31022 Remove unused parameter.
31023
31024 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31025 (grub_iso9660_open): Remove initialization of `data->length'.
31026
31027 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
31028
31029 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31030 memleak conditions.
31031
31032 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31033
31034 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31035 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31036
31037 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31038
31039 * util/bin2h.c (usage): Fix warning (space after backslash).
31040
31041 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31042
31043 * font/font.c: Include `grub/fontformat.h.
31044 Remove font file format constants.
31045 (grub_font_load): Use the new macros.
31046 * include/grub/fontformat.h: New file.
31047 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31048 (write_font_pf2): Use the new macros.
31049
31050 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31051
31052 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31053 does.
31054
31055 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31056
31057 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31058
31059 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31060 (_start): Macroify `0x7F'.
31061
31062 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31063 (make_install_device): Use "(pxe)" as fallback prefix when booting
31064 via PXE.
31065
31066 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31067
31068 * configure.ac: Reset LIBS after check for libgcc symbols.
31069
31070 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31071
31072 * util/hostdisk.c (open_device): Add trailing newline to debug
31073 message.
31074
31075 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31076
31077 * configure.ac: Check for `limits.h'.
31078 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31079
31080 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31081
31082 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31083 capitalize error strings.
31084
31085 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31086
31087 * util/grub.d/10_hurd.in: Add a recovery mode.
31088
31089 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31090
31091 * configure.ac: Check for libgcc symbols with -nostdlib.
31092
31093 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31094
31095 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31096
31097 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31098
31099 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31100 stack since heap may be unavailable at that point.
31101 (grub_ofconsole_gotoxy): Likewise.
31102
31103 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31104
31105 * configure.ac: Check for _restgpr_14_x.
31106 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31107 and _savegpr_* prototypes.
31108
31109 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31110
31111 Use generic grub_reboot() for i386-efi.
31112
31113 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31114 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31115 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31116
31117 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31118
31119 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31120 presence of "prefix" variable as it breaks when normal.mod is
31121 embedded.
31122
31123 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31124
31125 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31126 stack since heap is unavailable at that point.
31127
31128 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31129
31130 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31131 (grub_freebsd_bootinfo): Rewritten.
31132 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31133
31134 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31135
31136 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31137
31138 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31139
31140 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31141 domain now.
31142
31143 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31144
31145 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31146 around for handling "/" to the correct fix. Fix a memory leak. Use
31147 xstrdup instead of strdup.
31148
31149 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31150
31151 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31152
31153 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31154
31155 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31156
31157 * font/font.c (struct grub_font): New member 'bmp_idx'.
31158 (font_init): Initialise 'bmp_idx'.
31159 (load_font_index): Fill 'bmp_idx'.
31160 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31161
31162 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31163
31164 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31165 unnecessary calls.
31166
31167 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31168
31169 Move context handling out of the kernel.
31170
31171 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31172 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31173 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31174 * conf/i386-efi.rmk: Likewise.
31175 * conf/i386-ieee1275.rmk: Likewise.
31176 * conf/i386-pc.rmk: Likewise.
31177 * conf/powerpc-ieee1275.rmk: Likewise.
31178 * conf/sparc64-ieee1275.rmk: Likewise.
31179 * conf/x86_64-efi.rmk: Likewise.
31180 * include/grub/env.h: Include grub/menu.h.
31181 (grub_env_var_type): Removed.
31182 (grub_env_var): Replaced field 'type' with 'global'.
31183 (grub_env_find): New prototype.
31184 (grub_env_context_open): Remove EXPORT_FUNC.
31185 (grub_env_context_close): Likewise.
31186 (grub_env_export): Likewise.
31187 (grub_env_set_data_slot): Removed.
31188 (grub_env_get_data_slot): Likewise.
31189 (grub_env_unset_data_slot): Likewise.
31190 (grub_env_unset_menu): New prototype.
31191 (grub_env_set_menu): Likewise.
31192 (grub_env_get_menu): Likewise.
31193 * include/grub/env_private.h: New file.
31194 * include/grub/normal.h (grub_context_init): New prototype.
31195 (grub_context_fini): Likewise.
31196 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31197 * normal/context.c (grub_cmd_export): ... to here.
31198 * kern/env.c: Include env_private.h.
31199 (HASHSZ): Moved to include/grub/env_private.h.
31200 (grub_env_context): Likewise.
31201 (grub_env_sorted_var): Likewise.
31202 (current_context): Renamed from this ...
31203 (grub_current_context): ...to this. 'static' removed. All users updated.
31204 (grub_env_find): Removed 'static'.
31205 (grub_env_context_open): Moved to normal/context.c.
31206 (grub_env_context_close): Likewise.
31207 (grub_env_export): Likewise.
31208 (mangle_data_slot_name): Removed.
31209 (grub_env_set_data_slot): Likewise.
31210 (grub_env_get_data_slot): Likewise.
31211 (grub_env_unset_data_slot): Likewise.
31212 * kern/main.c (grub_set_root_dev): Don't export root.
31213 It will be done later.
31214 (grub_main): Don't export prefix.
31215 It will be done later.
31216 * normal/context.c: New file.
31217 * normal/main.c (free_menu): Use grub_env_unset_menu.
31218 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31219 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31220 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31221 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31222
31223 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31224
31225 setpci support.
31226
31227 * commands/setpci.c: New file.
31228 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31229 (setpci_mod_SOURCES): New variable.
31230 (setpci_mod_CFLAGS): Likewise.
31231 (setpci_mod_LDFLAGS): Likewise.
31232
31233 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31234
31235 Byte-addressable PCI configuration space.
31236
31237 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31238 dword address.
31239 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31240 GRUB_PCI_REG_CACHELINE.
31241 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31242 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31243 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31244 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31245 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31246 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31247 grub_pci_make_address.
31248 (lock_rom_area): Likewise.
31249 * commands/lspci.c (grub_lspci_iter): Use macroses
31250 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31251 of grub_pci_make_address.
31252 * disk/ata.c (grub_ata_pciinit): Likewise.
31253 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31254 (GRUB_PCI_REG_VENDOR): Likewise.
31255 (GRUB_PCI_REG_DEVICE): Likewise.
31256 (GRUB_PCI_REG_COMMAND): Likewise.
31257 (GRUB_PCI_REG_STATUS): Likewise.
31258 (GRUB_PCI_REG_REVISION): Likewise.
31259 (GRUB_PCI_REG_CLASS): Likewise.
31260 (GRUB_PCI_REG_CACHELINE): Likewise.
31261 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31262 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31263 (GRUB_PCI_REG_BIST): Likewise.
31264 (GRUB_PCI_REG_ADDRESSES): Likewise.
31265 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31266 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31267 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31268 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31269 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31270 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31271 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31272 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31273 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31274 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31275 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31276 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31277 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31278 (GRUB_PCI_REG_MIN_GNT): Likewise.
31279 (GRUB_PCI_REG_MAX_LAT): Likewise.
31280 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31281 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31282 * video/efi_uga.c (find_framebuf): Likewise.
31283 * video/sm712.c (grub_video_sm712_setup): Likewise.
31284 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31285 space.
31286
31287 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31288
31289 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31290 can be reliably determined to be supported.
31291
31292 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31295 that VESA is supported.
31296 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31297 supported.
31298
31299 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31300
31301 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31302
31303 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31304
31305 * util/misc.c (make_system_path_relative_to_its_root): Work around
31306 special-casing of "/", as previous incarnation of this routine did.
31307
31308 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31309
31310 Fix any-emu compilation.
31311
31312 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31313 * grub_bin2h_SOURCES: New variable.
31314
31315 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31316
31317 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31318
31319 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31320
31321 * util/grub.d/00_header.in: Fix handling of locale_dir.
31322
31323 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31324
31325 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31326 as possible unifont location (Gentoo).
31327 Reported by: Alexander Brüning
31328
31329 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31330
31331 Don't try to generate lists for kernel.img.
31332
31333 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31334 (pkglib_MODULES): Remove kernel.img.
31335 (kernel_img_EXPORTS): Removed.
31336 (kernel_img_RELOCATABLE): New variable.
31337 * conf/x86_64-efi.rmk: Likewise.
31338 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31339
31340 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31341
31342 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31343 grub_xasprintf or grub_snprintf.
31344 (grub_vsprintf): Likewise.
31345 (grub_snprintf): New proto.
31346 (grub_vsnprintf): Likewise.
31347 (grub_xasprintf): Likewise.
31348 (grub_xvasprintf): Likewise.
31349 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31350 (grub_sprintf): Removed.
31351 (grub_vsnprintf): New function.
31352 (grub_snprintf): Likewise.
31353 (grub_xvasprintf): Likewise.
31354 (grub_xasprintf): Likewise.
31355 (grub_vsprintf): Renamed to ...
31356 (grub_vsnprintf_real): ...this. New argument max_len.
31357
31358 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31359
31360 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31361 fix grub-script-check warning.
31362
31363 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31364
31365 * include/grub/font.h (grub_font_load): Fix prototype.
31366
31367 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31368
31369 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31370
31371 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31372
31373 * include/grub/x86_64/at_keyboard.h: New file.
31374
31375 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31376
31377 * loader/mips/linux.c: Include missing grub/i18n.h.
31378
31379 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31380
31381 * normal/menu.c (notify_execution_failure): Clarify error message.
31382
31383 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31384
31385 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31386 return value (and revert all return statements). Update users.
31387
31388 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31389
31390 * kern/device.c (grub_device_iterate): Allocate new part_ent
31391 structure based on sizeof (*p) rather than sizeof (p->next), to
31392 account for structure padding.
31393
31394 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31395 disk is NULL, which might happen for LVM physical volumes with no
31396 LVM signature.
31397
31398 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31399
31400 * loader/mips/linux.c (grub_cmd_initrd)
31401 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31402
31403 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31404
31405 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31406 (grub_video_video_init, grub_video_bitmap_init)
31407 (grub_font_manager_init, grub_term_gfxterm_init)
31408 (grub_at_keyboard_init): New extern declarations.
31409 (grub_machine_init): Initialize gfxterm and at_keyboard.
31410
31411 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31412
31413 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31414 `gfxterm.mod' into core image.
31415
31416 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31417 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31418 (kernel_img_FORMAT): Copy to ...
31419
31420 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31421 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31422 (kernel_img_FORMAT): ... here, and ...
31423
31424 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31425 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31426 (kernel_img_FORMAT): ... here.
31427
31428 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31429 and input (at_keyboard) terminals in kernel.
31430 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31431
31432 (pkglib_MODULES): Remove `pci.mod'.
31433 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31434 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31435 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31436 (at_keyboard_mod_LDFLAGS): Remove variables.
31437
31438 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31439
31440 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31441
31442 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31443
31444 * include/grub/mips/libgcc.h: Only export symbols for functions
31445 that libgcc provides.
31446
31447 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31448
31449 MIPS support.
31450
31451 * bus/bonito.c: New file.
31452 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31453 GRUB_PCI_NUM_DEVICES.
31454 * term/i386/pc/serial.c: Move to ...
31455 * term/serial.c: ... here. All users updated.
31456 * util/i386/pc/grub-mkimage.c: Move to ...
31457 * util/grub-mkrawimage.c: ... here. All users updated.
31458 * term/i386/pc/at_keyboard.c: Move to ...
31459 * term/at_keyboard.c: ... here. All users updated.
31460 * conf/mips-qemu-mips.rmk: New file.
31461 * conf/mips-yeeloong.rmk: Likewise.
31462 * conf/mips.rmk: Likewise.
31463 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31464 mipsel-qemu-mips.
31465 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31466 to port addresses.
31467 (grub_ata_pciinit): Support CS5536.
31468 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31469 * font/font_cmd.c (loadfont_command): Open file before passing it to
31470 grub_font_load.
31471 (pseudo_file_read): New function.
31472 (pseudo_file_close): Likewise.
31473 (pseudo_fs): New structure.
31474 (load_font_module): New function.
31475 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31476 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31477 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31478 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31479 * include/grub/i386/at_keyboard.h: Split into ...
31480 * include/grub/at_keyboard.h: ... this ...
31481 * include/grub/i386/at_keyboard.h: ... and this.
31482 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31483 New prototype.
31484 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31485 updated.
31486 (grub_elf64_size): Likewise.
31487 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31488 filename.
31489 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31490 * include/grub/i386/coreboot/serial.h: Rewritten.
31491 * include/grub/i386/ieee1275/serial.h: Include
31492 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31493 * include/grub/i386/pc/serial.h: Moved from here ...
31494 * include/grub/serial.h: ... to here. All users updated.
31495 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31496 (GRUB_PCI_NUM_BUS): Likewise.
31497 (GRUB_PCI_NUM_DEVICES): Likewise.
31498 (grub_pci_device_map_range): Add missing volatile keyword.
31499 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31500 * include/grub/mips/at_keyboard.h: New file.
31501 * include/grub/mips/cache.h: Likewise.
31502 * include/grub/mips/io.h: Likewise.
31503 * include/grub/mips/kernel.h: Likewise.
31504 * include/grub/mips/libgcc.h: Likewise.
31505 * include/grub/mips/pci.h: Likewise.
31506 * include/grub/mips/qemu-mips/boot.h: Likewise.
31507 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31508 * include/grub/mips/qemu-mips/loader.h: Likewise.
31509 * include/grub/mips/qemu-mips/memory.h: Likewise.
31510 * include/grub/mips/qemu-mips/serial.h: Likewise.
31511 * include/grub/mips/qemu-mips/time.h: Likewise.
31512 * include/grub/mips/relocator.h: Likewise.
31513 * include/grub/mips/time.h: Likewise.
31514 * include/grub/mips/types.h: Likewise.
31515 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31516 * include/grub/mips/yeeloong/boot.h: Likewise.
31517 * include/grub/mips/yeeloong/kernel.h: Likewise.
31518 * include/grub/mips/yeeloong/loader.h: Likewise.
31519 * include/grub/mips/yeeloong/memory.h: Likewise.
31520 * include/grub/mips/yeeloong/pci.h: Likewise.
31521 * include/grub/mips/yeeloong/serial.h: Likewise.
31522 * include/grub/mips/yeeloong/time.h: Likewise.
31523 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31524 * kern/elf.c (grub_elf32_size): New parameter. All users
31525 updated.
31526 (grub_elf64_size): Likewise.
31527 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31528 Load modules before saying "Welcome to GRUB!".
31529 Call grub_refresh after saying "Welcome to GRUB!".
31530 * kern/mips/cache.S: New file.
31531 * kern/mips/cache_flush.S: Likewise.
31532 * kern/mips/dl.c: Likewise.
31533 * kern/mips/init.c: Likewise.
31534 * kern/mips/qemu-mips/init.c: Likewise.
31535 * kern/mips/startup.S: Likewise.
31536 * kern/mips/yeeloong/init.c: Likewise.
31537 * kern/term.c (grub_putcode): Handle NULL terminal.
31538 (grub_getcharwidth): Likewise.
31539 (grub_getkey): Likewise.
31540 (grub_checkkey): Likewise.
31541 (grub_getkeystatus): Likewise.
31542 (grub_getxy): Likewise.
31543 (grub_getwh): Likewise.
31544 (grub_gotoxy): Likewise.
31545 (grub_cls): Likewise.
31546 (grub_setcolorstate): Likewise.
31547 (grub_setcolor): Likewise.
31548 (grub_getcolor): Likewise.
31549 (grub_refresh): Likewise.
31550 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31551 (write_jump): Add hatch nop.
31552 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31553 * lib/mips/setjmp.S: New file.
31554 * loader/mips/linux.c: Likewise.
31555 * term/i386/pc/at_keyboard.c: Move from here ...
31556 * term/at_keyboard.c: ... to here.
31557 * term/i386/pc/serial.c: Moved from here ...
31558 * term/serial.c: ... to here. All users updated.
31559 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31560 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31561 (serial_translate_key_sequence): Avoid deadlock.
31562 (grub_serial_getkey): Handle backspace.
31563 (grub_serial_putchar): Fix newline handling.
31564 * util/i386/pc/grub-mkimage.c: Move from here ...
31565 * util/grub-mkrawimage.c: ... to here. All users updated.
31566 (generate_image): New parameters 'font_path' and 'format'.
31567 Support embedding font.
31568 Use grub_host_to_target* instead of grub_cpu_to_le*.
31569 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31570 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31571 (options): New option "--font".
31572 (usage): Likewise.
31573 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31574 (main): Handle "--font".
31575 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31576 (grub_virtual_screen_setup): Set bg_color_display.
31577 (redraw_screen_rect): Use bg_color_display instead of incorrect
31578 bg_color.
31579 (grub_gfxterm_cls): Likewise.
31580 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31581 Support embedding config file.
31582 (add_segments): Likewise.
31583 (options): New option "--config".
31584 (main): Handle "--config".
31585 * video/sm712.c: New file.
31586
31587 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31588
31589 Fix parallel builds.
31590
31591 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31592 font.c depend on ascii.h).
31593
31594 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31595
31596 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31597
31598 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31599
31600 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31601 By default: disabled.
31602 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31603 parameter.
31604
31605 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31606
31607 * font/font.c: Update copyright years.
31608 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31609
31610 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31611
31612 * font/font.c: Include `ascii.h'.
31613 (ASCII_BITMAP_SIZE): New macro.
31614 (ascii_font_glyph): Define.
31615 (ascii_glyph_lookup): New function.
31616 (grub_font_get_string_width): Change comment. If glyph not found, use
31617 ascii_glyph_lookup.
31618 (grub_font_get_glyph_with_fallback): If glyph not available returns
31619 ascii_glyph_lookup.
31620 * util/grub-mkfont.c (file_formats): New enum.
31621 (options): Add `ascii-bitmaps' new option.
31622 (usage): Add `asii-bitmaps' new option.
31623 (write_font_ascii_bitmap): New function.
31624 (write_font): Rename to ...
31625 (write_font_p2): ... this. Remove print_glyphs call.
31626 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31627 used. Call print_glyphs.
31628 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31629
31630 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31631
31632 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31633 (grub_bin2h_SOURCES): New variable.
31634 * util/bin2h.c: New file.
31635
31636 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31637
31638 * include/multiboot.h: Resynced with spec.
31639 * include/multiboot2.h: Likewise.
31640 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31641 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31642
31643 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31644
31645 * include/grub/term.h (grub_term_register_input,
31646 grub_term_register_output): Check return of terminal init()
31647 routines, and abort if errors are raised.
31648
31649 * commands/terminal.c: Update copyright year.
31650
31651 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31652
31653 * commands/terminal.c (grub_cmd_terminal_input)
31654 (grub_cmd_terminal_output): Check return of terminal init()
31655 routines, and abort if errors are raised.
31656
31657 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31658
31659 * include/grub/i386/bsd.h: Fix include pathes.
31660
31661 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31662
31663 Add missing *BSD copyright headers.
31664
31665 * include/grub/aout.h: Add BSD licence.
31666 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31667 * include/grub/i386/freebsd_linker.h: ... here,
31668 * include/grub/i386/freebsd_reboot.h: ... here,
31669 * include/grub/i386/netbsd_bootinfo.h: ... here,
31670 * include/grub/i386/netbsd_reboot.h: ... here,
31671 * include/grub/i386/openbsd_bootarg.h: ... here,
31672 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31673 licence to each file.
31674
31675 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31676
31677 * acinclude.m4: Remove `nop' assembly instruction; it's not
31678 implemented by all architectures.
31679
31680 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31681
31682 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31683 ELILO. This is no longer necessary.
31684
31685 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31686
31687 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31688
31689 * util/grub-script-check.c: grub-script-check tool.
31690 * conf/common.rmk: Make rules for grub-script-check.
31691
31692 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31693
31694 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31695 spotting it back in 2008. Shame on me for forgetting he did.
31696
31697 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31698
31699 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31700
31701 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31702 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31703 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31704 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31705 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31706 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31707
31708 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31709
31710 * include/grub/test.h: Add license header.
31711 * tests/example_functional_test.c: Likewise.
31712 * tests/example_unit_test.c: Likewise.
31713 * tests/lib/functional_test.c: Likewise.
31714 * tests/lib/test.c: Likewise.
31715 * tests/lib/unit_test.c: Likewise.
31716
31717 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31718
31719 Use flag-based instead of hook-based video mode selection and "auto"
31720 keyword.
31721
31722 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31723 (grub_video_set_mode): Changed prototype. All users updated.
31724 (grub_video_check_mode_flag): New inline function.
31725 * video/video.c (parse_modespec): New function.
31726 (grub_video_set_mode): Parse flags and keywords.
31727
31728 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31729
31730 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31731 fprintf call.
31732
31733 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31734
31735 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31736
31737 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31738
31739 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31740 string.
31741 * util/grub-emu.c (usage): Likewise.
31742 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31743 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31744 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31745 * util/i386/pc/grub-setup.c (usage): Likewise.
31746
31747 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31748
31749 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31750 the message.
31751 (grub_util_info): Likewise.
31752 (grub_util_error): Likewise.
31753 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31754 and/or new lines in `grub_util_warna', `grub_util_info',
31755 `grub_util_error' calls.
31756 * util/getroot.c: Likewise.
31757 * util/grub-editenv.c: Likewise.
31758 * util/grub-emu.c: Likewise.
31759 * util/grub-fstest.c: Likewise.
31760 * util/grub-mkdevicemap.c: Likewise.
31761 * util/grub-mkfont.c: Likewise.
31762 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31763 * util/grub-mkrelpath.c: Likewise.
31764 * util/grub-pe2elf.c: Likewise.
31765 * util/grub-probe.c: Likewise.
31766 * util/hostdisk.c: Likewise.
31767 * util/i386/efi/grub-mkimage.c: Likewise.
31768 * util/i386/pc/grub-mkimage.c: Likewise.
31769 * util/i386/pc/grub-setup.c: Likewise.
31770 * util/ieee1275/ofpath.c: Likewise.
31771 * util/mkisofs/eltorito.c: Likewise.
31772 * util/mkisofs/rock.c: Likewise.
31773 * util/mkisofs/write.c: Likewise.
31774 * util/raid.c: Likewise.
31775 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31776 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31777
31778 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31779
31780 Enable multiboot on non-pc.
31781
31782 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31783 multiboot.mod and multiboot2.mod to ...
31784 * conf/i386.rmk (pkglib_MODULES): ... here.
31785 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31786 Moved to ...
31787 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31788 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31789 Moved to ...
31790 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31791 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31792 Moved to ...
31793 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31794 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31795 Moved to ...
31796 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31797 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31798 relocator.mod.
31799 (ata_mod_SOURCES): Removed.
31800 (ata_mod_CFLAGS): Likewise.
31801 (ata_mod_LDFLAGS): Likewise.
31802 (relocator_mod_SOURCES): Removed.
31803 (relocator_mod_CFLAGS): Likewise.
31804 (relocator_mod_ASFLAGS): Likewise.
31805 (relocator_mod_LDFLAGS): Likewise.
31806 Include i386.mk.
31807 * include/grub/x86_64/multiboot.h: New file.
31808 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31809 Terminate EFI.
31810
31811 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31812
31813 Video multiboot support.
31814
31815 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31816 New prototype.
31817 * include/multiboot.h: Resynced with multiboot specification.
31818 * include/multiboot2.h: Likewise.
31819 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31820 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31821 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31822 (HAS_VGA_TEXT): Likewise.
31823 (accepts_video): New variable.
31824 (grub_multiboot_set_accepts_video): New function.
31825 (grub_multiboot_get_mbi_size): Account for video structures.
31826 (set_video_mode): New function.
31827 (retrieve_video_parameters): Likewise.
31828 (grub_multiboot_make_mbi): Fill video fields.
31829
31830 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31831
31832 Video driver ids.
31833
31834 * include/grub/video.h (grub_video_driver_id): New type.
31835 (grub_video_adapter): New member 'id'. All users updated.
31836 (grub_video_get_driver_id): New proto.
31837 * video/video.c (grub_video_get_driver_id): New function.
31838
31839 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31840
31841 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31842 `var=val'.
31843
31844 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31845
31846 * normal/cmdline.c (print_completion): Gettextizze.
31847
31848 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31849
31850 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31851
31852 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31853
31854 * gettext/gettext.c (grub_gettext_translate): Push and pop
31855 grub_errno.
31856 (grub_gettext_delete_list): Change comment style.
31857 * kern/err.c (grub_error): Gettextizze.
31858 (grub_fatal): Gettextizze.
31859
31860 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31861
31862 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31863 (grub_linux16_real_boot): ... this.
31864 * kern/i386/loader.S: Likewise.
31865 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31866 (grub_linux16_boot): New function. Switches to text mode and calls
31867 grub_linux16_real_boot().
31868
31869 * loader/i386/bsd.c: Include `<grub/video.h>'.
31870 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31871 text mode before calling grub_unix_real_boot().
31872
31873 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31874 (grub_multiboot_boot): Switch to text mode before calling
31875 grub_relocator32_boot().
31876
31877 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31878 (grub_chainloader_boot): Switch to text mode before calling
31879 grub_chainloader_real_boot().
31880
31881 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31882 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31883
31884 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31885 non-empty value.
31886
31887 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31888 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31889
31890 * util/grub.d/00_header.in: Define a "savedefault" function for use
31891 in menu entries.
31892 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31893
31894 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31895 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31896
31897 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31898 saved_entry if boot_once is unset.
31899 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31900 previous saved entry (i.e. grub-reboot).
31901
31902 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31903
31904 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31905
31906 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31907
31908 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31909 `var=val'.
31910 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31911
31912 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31913
31914 * util/grub-reboot.in: Fix --version output.
31915 * util/grub-set-default.in: Likewise.
31916
31917 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31918
31919 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31920 blocks.
31921
31922 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31923
31924 * util/grub.d/00_header.in: Quote the value assigned to `default',
31925 in case it contains spaces.
31926
31927 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31928
31929 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31930 `save_default_entry' call from the macosx case to the linux case.
31931
31932 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31933 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31934
31935 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31936 in `chosen' environment variable.
31937 * normal/menu_text.c (get_entry_number): Check if the variable
31938 matches the title of a menu entry.
31939 (run_menu): Pass menu to get_entry_number.
31940
31941 * util/grub-reboot.in: New file.
31942 * util/grub-set-default.in: New file.
31943 * conf/common.rmk (grub-reboot): New utility.
31944 (grub-set-default): New utility.
31945
31946 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31947 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31948 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31949 move it to `saved_entry' for the next boot. Load environment on
31950 initialisation.
31951 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31952 * util/grub.d/10_hurd.in: Likewise.
31953 * util/grub.d/10_linux.in (linux_entry): Likewise.
31954 * util/grub.d/10_windows.in: Likewise.
31955 * util/grub.d/30_os-prober.in: Likewise.
31956
31957 * util/grub-install.in: Create environment block.
31958 * util/i386/efi/grub-install.in: Likewise.
31959 * util/ieee1275/grub-install.in: Likewise.
31960 * util/sparc64/ieee1275/grub-install.in: Likewise.
31961
31962 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31963
31964 Unit testing framework for GRUB.
31965
31966 * Makefile.in: Test framework build rules for 'make check'.
31967 * conf/tests.rmk: Build rules for individual tests and framework.
31968
31969 * include/grub/test.h: Header file for whitebox tests.
31970 * tests/lib/functional_test.c: Framework support for whitebox
31971 functional tests.
31972 * tests/lib/test.c: Common whitebox testing code for unit and
31973 functional tests.
31974 * tests/lib/unit_test.c: Framework support for whitebox unit
31975 tests.
31976
31977 * tests/util/grub-shell-tester.in: Support utility for grub-script
31978 tests.
31979 * tests/util/grub-shell.in: Utility to execute grub-script
31980 commands in a Qemu instance.
31981
31982 * tests/example_functional_test.c: Example whitebox functional
31983 test.
31984 * tests/example_grub_script_test.in: Example grub-script test.
31985 * tests/example_scripted_test.in: Example scripted test.
31986 * tests/example_unit_test.c: Example whitebox unit test.
31987
31988 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31989
31990 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31991 Add loader/i386/multiboot_mbi.c.
31992 (multiboot2_mod_SOURCES): Likewise.
31993 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31994 (multiboot2_mod_SOURCES): Likewise.
31995 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31996 (grub_multiboot_make_mbi): Likewise.
31997 (grub_multiboot_free_mbi): Likewise.
31998 (grub_multiboot_init_mbi): Likewise.
31999 (grub_multiboot_add_module): Likewise.
32000 (grub_multiboot_set_bootdev): Likewise.
32001 * loader/i386/multiboot.c (mbi): Removed.
32002 (mbi_dest): Likewise.
32003 (alloc_mbi): New variable.
32004 (grub_multiboot_payload_size): Removed. All users updated.
32005 (grub_multiboot_pure_size): New variable.
32006 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32007 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32008 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32009 (grub_fill_multiboot_mmap): Likewise.
32010 (grub_multiboot_get_bootdev): Likewise.
32011 (grub_multiboot): Use multiboot_mbi functions.
32012 * loader/i386/multiboot_mbi.c: New file.
32013
32014 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32015
32016 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32017 it would result in module crash.
32018
32019 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
32020
32021 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32022 (grub_ofconsole_getwh): Split to ...
32023 (grub_ofconsole_getwh): ... this.
32024 (grub_ofconsole_dimensions): ...and this.
32025 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32026
32027 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
32028
32029 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32030
32031 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32032
32033 * loader/i386/pc/multiboot2.c: Removed stalled file.
32034
32035 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32036
32037 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32038 Reported by: Grégoire Sutre
32039
32040 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32041
32042 * util/misc.c (canonicalize_file_name): New function.
32043 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32044 instead of realpath().
32045
32046 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32047
32048 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32049 and make it clearer that it's optional. Based on confusion
32050 witnessed on IRC.
32051
32052 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32053
32054 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32055 in premature implicit newline.
32056
32057 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32058
32059 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32060 which resulted in garbled command line at the end of screen.
32061
32062 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32063
32064 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32065 initialization with similar approach as with other Linux loaders.
32066
32067 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32068
32069 Fix i386-ieee1275 build.
32070
32071 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32072 and grub_term_height() for video_{width,height} initialization.
32073
32074 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32075
32076 Fix grub-emu build.
32077
32078 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32079
32080 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32081 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32082
32083 Support for multiple terminals.
32084
32085 * Makefile.in (pkglib_DATA): terminal.lst.
32086 (terminal.lst): New target.
32087 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32088 (GRUB_MOD_INIT(handler)): Likewise.
32089 (GRUB_MOD_FINI(handler)): Likewise.
32090 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32091 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32092 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32093 (grub_cmd_sleep): Use grub_term_save_pos.
32094 * commands/terminal.c: New file.
32095 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32096 commands/terminal.c and lib/charset.c.
32097 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32098 (pkglib_MODULES): Add terminal.mod.
32099 (terminal_mod_SOURCES): New variable.
32100 (terminal_mod_CFLAGS): Likewise.
32101 (terminal_mod_LDFLAGS): Likewise.
32102 * genhandlerlist.sh: Don't handle terminals.
32103 * genmk.rb: Generate terminal-*.lst.
32104 * genterminallist.sh: New file.
32105 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32106 (grub_is_valid_utf8): Likewise.
32107 (grub_utf8_to_ucs4_alloc): Likewise.
32108 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32109 (grub_menu_register_viewer): Changed argument.
32110 (grub_menu_try_text): New proto.
32111 (grub_gfxmenu_try_hook): New declaration.
32112 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32113 (grub_menu_init_page): Additional argument term.
32114 (grub_normal_init_page): Likewise.
32115 (grub_cmdline_get): Arguments simplified.
32116 (grub_utf8_to_ucs4_alloc): Removed.
32117 (grub_print_ucs4): Additional argument term.
32118 (grub_getstringwidth): Likewise.
32119 (grub_print_message_indented): Likewise.
32120 (grub_menu_text_register_instances): New proto.
32121 (grub_show_menu): Likewise.
32122 (read_terminal_list): Likewise.
32123 (grub_set_more): Likewise.
32124 * include/grub/parser.h: Include handler.h.
32125 * include/grub/reader.h: Rewritten.
32126 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32127 (GRUB_TERM_WIDTH): Changed to function.
32128 (GRUB_TERM_HEIGHT): Likewise.
32129 (GRUB_TERM_BORDER_WIDTH): Likewise.
32130 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32131 (GRUB_TERM_NUM_ENTRIES): Likewise.
32132 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32133 (GRUB_TERM_CURSOR_X): Likewise.
32134 (grub_term_input_class): Likewise.
32135 (grub_term_output_class): Likewise.
32136 (grub_term_outputs_disabled): New declaration.
32137 (grub_term_inputs_disabled): Likewise.
32138 (grub_term_outputs): Likewise.
32139 (grub_term_inputs): Likewise.
32140 (grub_term_register_input): Rewritten.
32141 (grub_term_register_output): Likewise.
32142 (grub_term_unregister_input): Likewise.
32143 (grub_term_unregister_output): Likewise.
32144 (FOR_ACTIVE_TERM_INPUTS): New macro.
32145 (FOR_DISABLED_TERM_INPUTS): Likewise.
32146 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32147 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32148 * include/grub/terminfo.h: Add oterm argument to all protypes.
32149 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32150 Use grub_rescue_run.
32151 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32152 All users updated.
32153 * kern/reader.c: Removed. All users updated.
32154 * kern/rescue_reader.c (grub_rescue_init): Removed.
32155 (grub_rescue_reader): Likewise.
32156 (grub_register_rescue_reader): Likewise.
32157 (grub_rescue_run): New function based on kern/reader.c.
32158 * kern/term.c: Adapted for multiterm.
32159 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32160 (grub_is_valid_utf8): Likewise.
32161 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32162 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32163 right terminal.
32164 * loader/i386/linux.c (grub_linux_boot): Likewise.
32165 * normal/auth.c (grub_username_get): New function.
32166 (grub_auth_check_authentication): Use grub_username_get.
32167 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32168 * normal/color.c: Adapt for multiterm.
32169 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32170 (grub_normal_init_page): Additional argument term.
32171 (read_lists): Call read_terminal_lists.
32172 (grub_enter_normal_mode): Call grub_cmdline_run.
32173 Handle grub_normal_exit_level.
32174 (grub_cmd_normal): Make reentrant.
32175 (grub_cmd_normal_exit): New function.
32176 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32177 * normal/menu.c: Adapt for multiterm.
32178 * normal/menu_entry.c: Likewise.
32179 * normal/menu_text.c: Likewise.
32180 * normal/menu_viewer.c: Removed. All users updated.
32181 * normal/term.c: New file.
32182 * util/console.c: Change order of includes to workaround a bug in
32183 ncurses headers.
32184 * term/terminfo.c: New argument oterm on all exported functions.
32185 All users updated.
32186 * util/grub-editenv.c (grub_term_input_class): Removed.
32187 (grub_term_output_class): Likewise.
32188
32189 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32190
32191 Make loader output a bit more user-friendly.
32192
32193 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32194 is being loaded. Likewise for the Hurd.
32195
32196 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32197 that kernel of FreeBSD ${version} is being loaded.
32198
32199 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32200 grub_dprintf().
32201 (grub_cmd_initrd): Likewise.
32202 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32203 that Linux ${version} is being loaded. Likewise for initrd.
32204
32205 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32206
32207 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32208
32209 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32210
32211 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32212 (GRUB_MOD_INIT): Gettextizze.
32213 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32214 (GRUB_MOD_INIT): Gettextizze.
32215 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32216 (grub_cmd_linux): Capitalise Linux.
32217 (GRUB_MOD_INIT): Gettextizze.
32218 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32219 (grub_cmd_linux): Capitalise Linux.
32220 (GRUB_MOD_INIT): Gettextizze.
32221 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32222 (grub_cmd_linux): Capitalise Linux.
32223 (GRUB_MOD_INIT): Gettextizze.
32224 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32225 (GRUB_MOD_INIT): Gettextizze.
32226 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32227 (grub_cmd_linux): Capitalise Linux.
32228 (GRUB_MOD_INIT): Gettextizze.
32229 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32230 (grub_cpu_xnu_init): Gettextizze.
32231 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32232 (GRUB_MOD_INIT): Gettextizze.
32233 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32234 (GRUB_MOD_INIT): Gettextizze.
32235 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32236 (grub_linux_load64): Capitalise Linux.
32237 (GRUB_MOD_INIT): Gettextizze.
32238 * loader/xnu.c: Include `<grub/i18n.h>'.
32239 (GRUB_MOD_INIT): Gettextizze.
32240 * po/POTFILES: Add `loader/efi/appleloader.c',
32241 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32242 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32243 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32244 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32245 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32246 and `loader/xnu.c'.
32247
32248 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32249
32250 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32251
32252 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32253
32254 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32255 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32256 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32257
32258 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32259
32260 Reset Multiboot 2 support. New loader implements the draft in
32261 /branches/multiboot2 and shares as much code as possible with the
32262 production Multiboot 1 implementation.
32263
32264 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32265 * loader/multiboot2.c: Likewise.
32266 * loader/i386/multiboot_helper.S: Likewise.
32267 * include/multiboot2.h: Replace with latest version from the draft
32268 in /branches/multiboot2.
32269
32270 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32271 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32272 and `loader/multiboot2.c'.
32273 (pkglib_MODULES): Add `multiboot2.mod'.
32274 (multiboot2_mod_SOURCES): New variable.
32275 (multiboot2_mod_LDFLAGS): Likewise.
32276 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32277
32278 * conf/i386-pc.rmk: Likewise.
32279
32280 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32281 (multiboot_mod_SOURCES): Remove variable.
32282 (multiboot_mod_LDFLAGS): Likewise.
32283 (multiboot_mod_CFLAGS): Likewise.
32284
32285 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32286 `<multiboot2.h>' instead of `<multiboot.h>'.
32287 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32288 (MULTIBOOT_HEADER_MAGIC): New macros.
32289
32290 * loader/multiboot_loader.c (module_version_status): Remove variable.
32291 (find_multi_boot2_header): Remove function.
32292 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32293 logic. Always check for the Multiboot version we're compiling for.
32294 (grub_cmd_module_loader): Likewise.
32295 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32296 command instead of `multiboot'.
32297
32298 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32299
32300 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32301 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32302 all users.
32303
32304 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32305 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32306
32307 Fix breakage introduced with previous commit.
32308
32309 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32310 commands.
32311 * normal/handler.c (read_handler_list): Revert part of previous commit
32312 affecting this file.
32313 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32314 (grub_normal_execute): ... here.
32315
32316 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32317
32318 Merge prefix-redefinition-fix branch.
32319
32320 * normal/autofs.c (read_fs_list): Make function capable of being
32321 run multiple times, gracefuly replacing the previous data
32322 structures.
32323 * normal/dyncmd.c (read_command_list): Likewise.
32324 * normal/handler.c (read_handler_list): Likewise.
32325 * normal/main.c (read_lists): New function. Calls all the
32326 list reading functions.
32327 (grub_normal_execute): Use read_lists() instead of calling all
32328 list reading functions explicitly. Register read_lists() as a
32329 variable hook attached to ${prefix}.
32330
32331 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32332
32333 Merge crypto branch.
32334
32335 * Makefile.in (pkglib_DATA): Add crypto.lst.
32336 (crypto.lst): New target.
32337 * commands/hashsum.c: New file.
32338 * commands/password.c (check_password): Use grub_crypto_memcmp.
32339 * commands/password_pbkdf2.c: New file.
32340 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32341 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32342 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32343 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32344 -I$(srcdir)/lib/libgcrypt_wrap.
32345 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32346 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32347 password_pbkdf2.mod.
32348 (crypto_mod_SOURCES): New variable.
32349 (crypto_mod_CFLAGS): Likewise.
32350 (crypto_mod_LDFLAGS): Likewise.
32351 (hashsum_mod_SOURCES): New variable.
32352 (hashsum_mod_CFLAGS): Likewise.
32353 (hashsum_mod_LDFLAGS): Likewise.
32354 (pbkdf2_mod_SOURCES): New variable.
32355 (pbkdf2_mod_CFLAGS): Likewise.
32356 (pbkdf2_mod_LDFLAGS): Likewise.
32357 (password_pbkdf2_mod_SOURCES): New variable.
32358 (password_pbkdf2_mod_CFLAGS): Likewise.
32359 (password_pbkdf2_mod_LDFLAGS): Likewise.
32360 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32361 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32362 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32363 Include conf/gcry.rmk.
32364 * include/grub/auth.h: Rewritten.
32365 * include/grub/crypto.h: New file.
32366 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32367 * include/grub/normal.h (read_crypto_list): New prototype.
32368 * lib/crypto.c: New file.
32369 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32370 * lib/pbkdf2.c: Likewise.
32371 * normal/auth.c (grub_auth_strcmp): Removed.
32372 (grub_iswordseparator): Likewise.
32373 (grub_auth_strword): Likewise.
32374 (is_authenticated): Use grub_strword.
32375 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32376 and grub_strword. Pass entered password to authentication callback.
32377 * normal/crypto.c: New file.
32378 * normal/main.c: Call read_crypto_list.
32379 * util/grub-mkpasswd-pbkdf2.c: New file.
32380 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32381
32382 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32383
32384 Fix descent and ascent calculation.
32385
32386 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32387 (options): New option "asce".
32388 (usage): Likewise.
32389 (add_char): Ignore invalid glyphs for descent calculation.
32390 Calculate ascent from actual content.
32391 (print_glyphs): Use 'asce'.
32392 (write_font): Likewise. Allow ascent override.
32393 (main): Handle "asce" option.
32394
32395 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32396
32397 * kern/err.c: Include `<grub/i18n.h>'.
32398 (grub_print_error): Add full stop. Gettextizze.
32399 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32400 (grub_bsd_load_elf): Capitalise ELF.
32401 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32402 (grub_cmd_freebsd_module): Likewise.
32403 (grub_cmd_freebsd_module_elf): Likewise.
32404 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32405
32406 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32407
32408 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32409 * commands/search_file.c (HELP_MESSAGE): New macro.
32410 * commands/search_label.c (HELP_MESSAGE): Likewise.
32411 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32412 * po/POTFILES: Add `commands/search_file.c',
32413 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32414 `commands/search.c'.
32415
32416 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32417
32418 * config.rpath: Update from Gnulib.
32419
32420 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32421
32422 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32423
32424 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32425
32426 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32427
32428 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32429
32430 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32431 arguments to fread so that we get a return value in bytes, rather
32432 than something that will normally be rounded down to 0.
32433 Adjust error handling to avoid producing garbage when size_t is not
32434 the same size as long long.
32435
32436 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32437
32438 * util/mkisofs/write.c (padblock_write): Check return value of
32439 fread.
32440
32441 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32442
32443 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32444 floppy images now.
32445
32446 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32447
32448 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32449
32450 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32451 instead of manual alignment.
32452 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32453 verbose). Avoid attempts to read past end of the device
32454 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32455 but GRUB_DISK_CACHE_SIZE may exceed that).
32456
32457 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32458
32459 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32460 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32461 it to upper layer.
32462
32463 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32464
32465 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32466 New constant.
32467 (grub_efi_piwg_device_path): New structure
32468 (grub_efi_piwg_device_path_t): New type.
32469 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32470 (devpath_1): Transform to a structure. All users updated.
32471 (devpath_2): Likewise.
32472 (devpath_3): Likewise.
32473 (devpath_4): Likewise.
32474 (devpath_5): Likewise.
32475
32476 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32477
32478 * loader/efi/appleloader.c: Restored. Update all users.
32479
32480 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32481
32482 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32483
32484 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32485 (struct boot_blocklist): Move from here ...
32486 * include/grub/i386/pc/boot.h [ASM_FILE]
32487 (struct grub_boot_blocklist): ... to here. Update all users.
32488 (setup): Only initialize `start' member of `first_block'
32489 structure. Add assert() calls to verify the other members.
32490
32491 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32492 (generate_image): Fix broken blocklist length initialization.
32493 Add assert() call to verify blocklist `segment' field.
32494
32495 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32496
32497 * loader/efi/appleloader.c: Remove. Update all users.
32498
32499 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32500
32501 * boot/i386/pc/boot.S: Update copyright year.
32502 * boot/i386/pc/cdboot.S: Likewise.
32503 * boot/i386/pc/diskboot.S: Likewise.
32504 * boot/i386/pc/lnxboot.S: Likewise.
32505 * boot/i386/pc/pxeboot.S: Likewise.
32506 * bus/pci.c: Likewise.
32507 * commands/cmp.c: Likewise.
32508 * commands/help.c: Likewise.
32509 * commands/hexdump.c: Likewise.
32510 * commands/i386/pc/halt.c: Likewise.
32511 * commands/i386/pc/play.c: Likewise.
32512 * commands/i386/pc/vbeinfo.c: Likewise.
32513 * commands/ls.c: Likewise.
32514 * commands/test.c: Likewise.
32515 * disk/dmraid_nvidia.c: Likewise.
32516 * disk/i386/pc/biosdisk.c: Likewise.
32517 * disk/ieee1275/nand.c: Likewise.
32518 * disk/ieee1275/ofdisk.c: Likewise.
32519 * disk/lvm.c: Likewise.
32520 * disk/raid.c: Likewise.
32521 * disk/raid6_recover.c: Likewise.
32522 * disk/scsi.c: Likewise.
32523 * fs/affs.c: Likewise.
32524 * fs/cpio.c: Likewise.
32525 * fs/ext2.c: Likewise.
32526 * fs/hfs.c: Likewise.
32527 * fs/iso9660.c: Likewise.
32528 * fs/ntfs.c: Likewise.
32529 * fs/sfs.c: Likewise.
32530 * fs/udf.c: Likewise.
32531 * fs/ufs.c: Likewise.
32532 * fs/xfs.c: Likewise.
32533 * gencmdlist.sh: Likewise.
32534 * genmk.rb: Likewise.
32535 * include/grub/disk.h: Likewise.
32536 * include/grub/efi/api.h: Likewise.
32537 * include/grub/efi/efi.h: Likewise.
32538 * include/grub/efi/pe32.h: Likewise.
32539 * include/grub/elf.h: Likewise.
32540 * include/grub/fs.h: Likewise.
32541 * include/grub/i386/at_keyboard.h: Likewise.
32542 * include/grub/i386/pc/memory.h: Likewise.
32543 * include/grub/i386/pc/vbe.h: Likewise.
32544 * include/grub/i386/pci.h: Likewise.
32545 * include/grub/i386/tsc.h: Likewise.
32546 * include/grub/ieee1275/ieee1275.h: Likewise.
32547 * include/grub/ntfs.h: Likewise.
32548 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32549 * include/grub/sparc64/libgcc.h: Likewise.
32550 * include/grub/symbol.h: Likewise.
32551 * include/grub/types.h: Likewise.
32552 * include/multiboot2.h: Likewise.
32553 * io/gzio.c: Likewise.
32554 * kern/device.c: Likewise.
32555 * kern/disk.c: Likewise.
32556 * kern/efi/efi.c: Likewise.
32557 * kern/efi/mm.c: Likewise.
32558 * kern/elf.c: Likewise.
32559 * kern/file.c: Likewise.
32560 * kern/i386/dl.c: Likewise.
32561 * kern/i386/pc/init.c: Likewise.
32562 * kern/i386/pc/startup.S: Likewise.
32563 * kern/ieee1275/ieee1275.c: Likewise.
32564 * kern/ieee1275/init.c: Likewise.
32565 * kern/main.c: Likewise.
32566 * kern/mm.c: Likewise.
32567 * kern/powerpc/dl.c: Likewise.
32568 * kern/sparc64/dl.c: Likewise.
32569 * kern/x86_64/dl.c: Likewise.
32570 * lib/hexdump.c: Likewise.
32571 * loader/efi/appleloader.c: Likewise.
32572 * loader/i386/ieee1275/linux.c: Likewise.
32573 * loader/i386/pc/chainloader.c: Likewise.
32574 * loader/i386/pc/linux.c: Likewise.
32575 * loader/i386/pc/multiboot2.c: Likewise.
32576 * loader/ieee1275/multiboot2.c: Likewise.
32577 * loader/multiboot2.c: Likewise.
32578 * loader/multiboot_loader.c: Likewise.
32579 * loader/powerpc/ieee1275/linux.c: Likewise.
32580 * normal/completion.c: Likewise.
32581 * normal/menu_entry.c: Likewise.
32582 * partmap/apple.c: Likewise.
32583 * util/grub.d/10_hurd.in: Likewise.
32584 * util/hostfs.c: Likewise.
32585 * video/readers/png.c: Likewise.
32586
32587 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32588
32589 * include/grub/misc.h (GNUC_PREREQ): New macro.
32590 (ATTRIBUTE_ERROR): New macro.
32591 * include/grub/list.h (grub_bad_type_cast_real): Use
32592 ATTRIBUTE_ERROR.
32593
32594 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32595
32596 * normal/menu_text.c (print_message): Change messages.
32597
32598 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32599
32600 * normal/menu_entry.c (store_completion): Gettextizze.
32601
32602 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32603
32604 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32605
32606 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32607
32608 * po/POTFILES: Sort correctly.
32609
32610 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32611
32612 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32613 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32614 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32615 full stop.
32616 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32617 summary. Gettextizze the strings.
32618 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32619 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32620 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32621 full stop.
32622 (GRUB_MOD_INIT): Remove command name from summary.
32623 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32624 summary.
32625 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32626 * term/i386/pc/serial.c (options): Add full stops.
32627 (GRUB_MOD_INIT): Remove command name from the summary.
32628
32629 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32630
32631 * commands/acpi.c: Gettextizze help strings and/or options. Include
32632 `grub/i18n.h' if needed.
32633 * commands/blocklist.c: Likewise.
32634 * commands/boot.c: Likewise.
32635 * commands/cat.c: Likewise.
32636 * commands/cmp.c: Likewise.
32637 * commands/configfile.c: Likewise.
32638 * commands/crc.c: Likewise.
32639 * commands/date.c: Likewise.
32640 * commands/echo.c: Likewise.
32641 * commands/efi/fixvideo.c: Likewise.
32642 * commands/efi/loadbios.c: Likewise.
32643 * commands/gptsync.c: Likewise.
32644 * commands/halt.c: Likewise.
32645 * commands/handler.c: Likewise.
32646 * commands/hdparm.c: Likewise.
32647 * commands/hexdump.c: Likewise.
32648 * commands/i386/cpuid.c: Likewise.
32649 * commands/i386/pc/drivemap.c: Likewise.
32650 * commands/i386/pc/halt.c: Likewise.
32651 * commands/i386/pc/pxecmd.c: Likewise.
32652 * commands/i386/pc/vbeinfo.c: Likewise.
32653 * commands/i386/pc/vbetest.c: Likewise.
32654 * commands/ieee1275/suspend.c: Likewise.
32655 * commands/keystatus.c: Likewise.
32656 * commands/loadenv.c: Likewise.
32657 * commands/ls.c: Likewise.
32658 * commands/lsmmap.c: Likewise.
32659 * commands/lspci.c: Likewise.
32660 * commands/memrw.c: Likewise.
32661 * commands/minicmd.c: Likewise.
32662 * commands/parttool.c: Likewise.
32663 * commands/password.c: Likewise.
32664 * commands/probe.c: Likewise.
32665 * commands/read.c: Likewise.
32666 * commands/reboot.c: Likewise.
32667 * commands/search.c: Likewise.
32668 * commands/sleep.c: Likewise.
32669 * commands/test.c: Likewise.
32670 * commands/true.c: Likewise.
32671 * commands/usbtest.c: Likewise.
32672 * commands/videotest.c: Likewise.
32673 * commands/xnu_uuid.c: Likewise.
32674 * disk/loopback.c: Likewise.
32675 * hello/hello.c: Likewise.
32676 * loader/i386/bsd.c: Likewise.
32677 * term/i386/pc/serial.c: Likewise.
32678 * po/POTFILES: Add new files.
32679
32680 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32681
32682 * term/i386/pc/at_keyboard.c
32683 (keyboard_controller_wait_untill_ready): Rename to ...
32684 (keyboard_controller_wait_until_ready): ... this. Update all users.
32685
32686 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32687
32688 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32689 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32690 string using string width.
32691 * normal/menu_text.c (grub_print_message_indented): Use
32692 grub_print_spaces and not print_spaces.
32693 (print_timeout): Likewise.
32694 (print_spaces): Move to...
32695 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32696
32697 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32698
32699 Import from Gnulib.
32700
32701 * gnulib/getdelim.c: New file.
32702 * gnulib/getline.c: Likewise.
32703
32704 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32705
32706 * include/grub/list.h (grub_assert_fail): Removed.
32707 (grub_bad_type_cast_real): New function.
32708 (grub_bad_type_cast): New macro.
32709 (GRUB_AS_LIST): Use grub_bad_type_cast.
32710 (GRUB_AS_LIST_P): Likewise.
32711 (GRUB_AS_NAMED_LIST): Likewise.
32712 (GRUB_AS_NAMED_LIST_P): Likewise.
32713 (GRUB_AS_PRIO_LIST): Likewise.
32714 (GRUB_AS_PRIO_LIST_P): Likewise.
32715 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32716
32717 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32718
32719 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32720 Fix syntax error.
32721
32722 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32723
32724 * configure.ac: Check for TARGET_CFLAGS initialization before we
32725 initialize it ourselves (sigh).
32726 Move a few modifications to TARGET_CFLAGS to be unconditional
32727 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32728 eh_frame)
32729
32730 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32731 * term/i386/pc/at_keyboard.c
32732 (keyboard_controller_wait_untill_ready): Likewise.
32733 (keyboard_controller_led): Rename `led_status' paramter to avoid
32734 name conflict.
32735
32736 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32737
32738 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32739 quotes.
32740
32741 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32742
32743 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32744
32745 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32746
32747 * normal/menu_text.c (grub_print_message_indented): Prevent
32748 past-the-end-of-array dereference.
32749
32750 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32751
32752 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32753 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32754
32755 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32756
32757 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32758 * normal/main.c (grub_normal_read_line): Remove a space from the
32759 default prompt.
32760
32761 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32762
32763 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32764 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32765 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32766 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32767 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32768 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32769 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32770
32771 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32772
32773 * video/readers/jpeg.c (cmd): Declare.
32774 (grub_cmd_jpegtest): Use `grub_command_t' type.
32775 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32776 Assign to `cmd'.
32777 (GRUB_MOD_FINI): Use `cmd' to unregister.
32778 * video/readers/png.c (cmd): Declare.
32779 (grub_cmd_pngtest): Use `grub_command_t' type.
32780 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32781 Assign to `cmd'.
32782 (GRUB_MOD_FINI): Use `cmd' to unregister.
32783 * video/readers/tga.c (cmd): Declare.
32784 (grub_cmd_tgatest): Use `grub_command_t' type.
32785 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32786 Assign to `cmd'.
32787 (GRUB_MOD_FINI): Use `cmd' to unregister.
32788
32789 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32790
32791 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32792 stops.
32793 * kern/corecmd.c (grub_register_core_commands): Likewise.
32794 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32795 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32796 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32797 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32798 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32799 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32800 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32801 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32802 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32803 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32804 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32805 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32806 * normal/handler.c (insert_handler): Likewise.
32807 * normal/main.c (GRUB_MOD_INIT): Likewise.
32808 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32809
32810 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32811
32812 * commands/help.c (grub_cmd_help): Print the command name before the
32813 summary.
32814 (GRUB_MOD_INIT): Remove command name from the summary.
32815 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32816 string as summary.
32817 * lib/arg.c (find_long): Print the command name before the summary.
32818 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32819 summary.
32820 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32821 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32822 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32823 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32824 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32825 * commands/date.c (GRUB_MOD_INIT): Likewise.
32826 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32827 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32828 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32829 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32830 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32831 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32832 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32833 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32834 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32835 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32836 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32837 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32838 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32839 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32840 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32841 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32842 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32843 * commands/password.c (GRUB_MOD_INIT): Likewise.
32844 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32845 * commands/read.c (GRUB_MOD_INIT): Likewise.
32846 * commands/search.c (GRUB_MOD_INIT): Likewise.
32847 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32848 * commands/test.c (GRUB_MOD_INIT): Likewise.
32849 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32850 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32851 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32852 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32853 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32854 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32855 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32856 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32857 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32858 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32859 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32860 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32861 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32862 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32863
32864 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32865
32866 Use search command for preliminar UUID search.
32867
32868 * commands/search.c: Split into ...
32869 * commands/search_wrap.c: ...this
32870 * commands/search.c: ...and this.
32871 * commands/search_file.c: New file.
32872 * commands/search_label.c: New file.
32873 * commands/search_uuid.c: New file.
32874 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32875 Add commands/search_wrap.c, commands/search_file.c,
32876 commands/search_label.c and commands/search_uuid.c.
32877 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32878 (search_mod_SOURCES): Set to commands/search_wrap.c.
32879 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32880 search_label.mod.
32881 (search_fs_file_mod_SOURCES): New variable.
32882 (search_fs_file_mod_CFLAGS): Likewise.
32883 (search_fs_file_mod_LDFLAGS): Likewise.
32884 (search_label_mod_SOURCES): Likewise.
32885 (search_label_mod_CFLAGS): Likewise.
32886 (search_label_mod_LDFLAGS): Likewise.
32887 (search_fs_uuid_mod_SOURCES): New variable.
32888 (search_fs_uuid_mod_CFLAGS): Likewise.
32889 (search_fs_uuid_mod_LDFLAGS): Likewise.
32890 (fs_file_mod_SOURCES): Removed.
32891 (fs_file_mod_CFLAGS): Likewise.
32892 (fs_file_mod_LDFLAGS): Likewise.
32893 (fs_uuid_mod_SOURCES): Removed.
32894 (fs_uuid_mod_CFLAGS): Likewise.
32895 (fs_uuid_mod_LDFLAGS): Likewise.
32896 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32897 Set to util/grub-install.in.
32898 * disk/fs_file.c: Removed.
32899 * disk/fs_uuid.c: Likewise.
32900 * include/grub/search.h: New file.
32901 * util/grub-install.in: Handle sparc64.
32902 Create and use load.cfg.
32903 * util/sparc64/ieee1275/grub-install.in: Removed.
32904
32905 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32906
32907 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32908 Ignore return status if CF is cleared.
32909 (grub_biosdisk_get_diskinfo_standard): Likewise.
32910
32911 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32912
32913 * term/i386/pc/at_keyboard.c
32914 (keyboard_controller_wait_untill_ready): New function.
32915 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32916 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32917 for keyboard polling, rather than duplicate the same loop. This
32918 saves a few bytes in code size.
32919
32920 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32921
32922 Support for (pxe[:server[:gateway]]) syntax and
32923 use environment variable for PXE.
32924
32925 * commands/i386/pc/pxecmd.c (options): Removed.
32926 (print_ip): Removed.
32927 (grub_cmd_pxe): Removed
32928 (grub_cmd_pxe_unload): New function.
32929 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32930 (grub_pxe_your_ip): Made static.
32931 (grub_pxe_default_server_ip): Likewise.
32932 (grub_pxe_default_gateway_ip): Likewise.
32933 (grub_pxe_blksize): Likewise.
32934 (parse_ip): New function.
32935 (grub_pxe_open): Support server and gateway specification.
32936 (grub_pxe_close): Free disk->data.
32937 (grub_pxefs_open): Use disk->data.
32938 (grub_pxefs_read): Likewise.
32939 (grub_env_write_readonly): New function.
32940 (set_mac_env): Likewise.
32941 (set_env_limn_ro): Likewise.
32942 (parse_dhcp_vendor): Likewise.
32943 (grub_pxe_detect): Set the environment variables.
32944 (set_ip_env): New function.
32945 (write_ip_env): Likewise.
32946 (grub_env_write_pxe_default_server): Likewise.
32947 (grub_env_write_pxe_default_gateway): Likewise.
32948 (grub_env_write_pxe_blocksize): Likewise.
32949 (GRUB_MOD_INIT(pxe)): Set environment variables.
32950 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32951 (grub_pxe_mac_addr_t): ... this. All users updated.
32952 (grub_pxe_your_ip): Removed.
32953 (grub_pxe_server_ip): Likewise.
32954 (grub_pxe_gateway_ip): Likewise.
32955 (grub_pxe_blksize): Likewise.
32956
32957 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32958
32959 * commands/help.c: Include `<grub/i18n.h>'.
32960 (grub_cmd_help): Gettextizze.
32961 (GRUB_MOD_INIT): Likewise.
32962 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32963 (GRUB_MOD_INIT): Gettextizze.
32964 * commands/search.c: Include `<grub/i18n.h>'.
32965 (options): Gettextizze.
32966 (GRUB_MOD_INIT): Gettextizze.
32967 * lib/arg.c: Include `<grub/i18n.h>'.
32968 (help_options): Gettextizze.
32969 (find_long): Likewise.
32970 (grub_arg_show_help): Likewise.
32971 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32972 (read_command_list): Gettextizze.
32973 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32974 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32975
32976 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32977
32978 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32979 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32980 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32981 (led_status): New variable.
32982 (keyboard_controller_led): New function.
32983 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32984 update led status for caps lock, num lock and scroll lock.
32985
32986 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32987
32988 * util/hostdisk.c (open_device): Fix a comment.
32989
32990 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32991
32992 * util/grub-install.in (host_os): New variable.
32993 * util/i386/efi/grub-install.in (host_os): Likewise.
32994
32995 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32996
32997 * util/mkisofs/write.c (padblock_write): Abort when given an
32998 excedingly large embed image, instead of silently truncating it.
32999
33000 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33001
33002 * include/multiboot.h: Indentation fixes.
33003
33004 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33005
33006 * include/multiboot.h (struct multiboot_aout_symbol_table)
33007 (struct multiboot_elf_section_header_table): New structure
33008 declarations (stolen from GRUB Legacy).
33009 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33010 table information.
33011
33012 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33013 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33014 type aliases.
33015
33016 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33017
33018 * include/multiboot.h: Make comments src2texi-friendly.
33019
33020 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33021
33022 For consistency with [multiboot]/docs/boot.S.
33023
33024 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33025 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
33026 (MULTIBOOT_MAGIC2): Rename from this ...
33027 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
33028
33029 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33030
33031 * include/multiboot.h: Remove `<grub/types.h>'.
33032 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33033 types. Update all users.
33034
33035 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33036
33037 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33038 `couldn't' and `can not' by `cannot'.
33039 * commands/i386/pc/drivemap.c: Likewise.
33040 * disk/ata.c: Likewise.
33041 * disk/ieee1275/nand.c: Likewise.
33042 * fs/affs.c: Likewise.
33043 * fs/fat.c: Likewise.
33044 * fs/hfs.c: Likewise.
33045 * fs/hfsplus.c: Likewise.
33046 * fs/iso9660.c: Likewise.
33047 * fs/jfs.c: Likewise.
33048 * fs/minix.c: Likewise.
33049 * fs/reiserfs.c: Likewise.
33050 * fs/sfs.c: Likewise.
33051 * fs/udf.c: Likewise.
33052 * fs/ufs.c: Likewise.
33053 * fs/xfs.c: Likewise.
33054 * loader/powerpc/ieee1275/linux.c: Likewise.
33055 * loader/sparc64/ieee1275/linux.c: Likewise.
33056 * util/grub-probe.c: Likewise.
33057 * util/misc.c: Likewise.
33058
33059 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33060
33061 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33062 grub_errno calls.
33063 * commands/acpi.c: Likewise.
33064 * commands/blocklist.c: Likewise.
33065 * commands/efi/loadbios.c: Likewise.
33066 * commands/i386/pc/drivemap.c: Likewise.
33067 * commands/loadenv.c: Likewise.
33068 * commands/memrw.c: Likewise.
33069 * commands/password.c: Likewise.
33070 * commands/videotest.c: Likewise.
33071 * disk/ata.c: Likewise.
33072 * disk/ata_pthru.c: Likewise.
33073 * disk/dmraid_nvidia.c: Likewise.
33074 * disk/ieee1275/nand.c: Likewise.
33075 * disk/ieee1275/ofdisk.c: Likewise.
33076 * disk/loopback.c: Likewise.
33077 * disk/lvm.c: Likewise.
33078 * disk/mdraid_linux.c: Likewise.
33079 * disk/raid.c: Likewise.
33080 * disk/raid6_recover.c: Likewise.
33081 * disk/scsi.c: Likewise.
33082 * efiemu/main.c: Likewise.
33083 * efiemu/mm.c: Likewise.
33084 * efiemu/pnvram.c: Likewise.
33085 * efiemu/symbols.c: Likewise.
33086 * font/font.c: Likewise.
33087 * fs/cpio.c: Likewise.
33088 * fs/hfsplus.c: Likewise.
33089 * fs/iso9660.c: Likewise.
33090 * fs/jfs.c: Likewise.
33091 * fs/minix.c: Likewise.
33092 * fs/ntfs.c: Likewise.
33093 * fs/ntfscomp.c: Likewise.
33094 * fs/reiserfs.c: Likewise.
33095 * fs/ufs.c: Likewise.
33096 * fs/xfs.c: Likewise.
33097 * gettext/gettext.c: Likewise.
33098 * include/grub/auth.h: Likewise.
33099 * kern/elf.c: Likewise.
33100 * kern/file.c: Likewise.
33101 * kern/ieee1275/init.c: Likewise.
33102 * kern/ieee1275/mmap.c: Likewise.
33103 * kern/ieee1275/openfw.c: Likewise.
33104 * kern/powerpc/dl.c: Likewise.
33105 * kern/sparc64/dl.c: Likewise.
33106 * lib/arg.c: Likewise.
33107 * loader/i386/bsd.c: Likewise.
33108 * loader/i386/bsdXX.c: Likewise.
33109 * loader/i386/efi/linux.c: Likewise.
33110 * loader/i386/efi/xnu.c: Likewise.
33111 * loader/i386/ieee1275/linux.c: Likewise.
33112 * loader/i386/linux.c: Likewise.
33113 * loader/i386/multiboot.c: Likewise.
33114 * loader/i386/pc/linux.c: Likewise.
33115 * loader/i386/pc/multiboot2.c: Likewise.
33116 * loader/i386/xnu.c: Likewise.
33117 * loader/ieee1275/multiboot2.c: Likewise.
33118 * loader/macho.c: Likewise.
33119 * loader/machoXX.c: Likewise.
33120 * loader/multiboot2.c: Likewise.
33121 * loader/multiboot_loader.c: Likewise.
33122 * loader/powerpc/ieee1275/linux.c: Likewise.
33123 * loader/sparc64/ieee1275/linux.c: Likewise.
33124 * loader/xnu.c: Likewise.
33125 * loader/xnu_resume.c: Likewise.
33126 * mmap/i386/pc/mmap.c: Likewise.
33127 * normal/menu_viewer.c: Likewise.
33128 * partmap/acorn.c: Likewise.
33129 * partmap/amiga.c: Likewise.
33130 * partmap/apple.c: Likewise.
33131 * script/lexer.c: Likewise.
33132 * term/gfxterm.c: Likewise.
33133 * term/i386/pc/serial.c: Likewise.
33134 * term/i386/pc/vga.c: Likewise.
33135 * term/ieee1275/ofconsole.c: Likewise.
33136 * term/terminfo.c: Likewise.
33137 * video/bitmap.c: Likewise.
33138 * video/efi_gop.c: Likewise.
33139 * video/efi_uga.c: Likewise.
33140 * video/fb/video_fb.c: Likewise.
33141 * video/i386/pc/vbe.c: Likewise.
33142 * video/readers/tga.c: Likewise.
33143 * video/video.c: Likewise.
33144
33145 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33146
33147 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33148 * commands/lspci.c: Likewise.
33149 * commands/probe.c: Likewise.
33150 * commands/xnu_uuid.c: Likewise.
33151 * conf/i386-coreboot.rmk: Likewise.
33152 * conf/i386-efi.rmk: Likewise.
33153 * conf/i386-ieee1275.rmk: Likewise.
33154 * conf/i386-pc.rmk: Likewise.
33155 * conf/powerpc-ieee1275.rmk: Likewise.
33156 * conf/sparc64-ieee1275.rmk: Likewise.
33157 * conf/x86_64-efi.rmk: Likewise.
33158 * fs/i386/pc/pxe.c: Likewise.
33159 * gettext/gettext.c: Likewise.
33160 * include/grub/efi/graphics_output.h: Likewise.
33161 * include/grub/i386/pc/memory.h: Likewise.
33162 * kern/env.c: Likewise.
33163 * kern/i386/qemu/startup.S: Likewise.
33164 * lib/i386/pc/biosnum.c: Likewise.
33165 * lib/i386/relocator.c: Likewise.
33166 * lib/i386/relocator_asm.S: Likewise.
33167 * lib/relocator.c: Likewise.
33168 * loader/i386/bsd.c: Likewise.
33169 * loader/i386/multiboot.c: Likewise.
33170 * loader/i386/pc/chainloader.c: Likewise.
33171 * loader/i386/xnu.c: Likewise.
33172 * loader/xnu.c: Likewise.
33173 * normal/main.c: Likewise.
33174 * normal/menu_text.c: Likewise.
33175 * util/getroot.c: Likewise.
33176 * util/grub-mkconfig_lib.in: Likewise.
33177 * util/grub.d/00_header.in: Likewise.
33178 * util/i386/pc/grub-mkimage.c: Likewise.
33179 * util/mkisofs/eltorito.c: Likewise.
33180 * util/mkisofs/exclude.h: Likewise.
33181 * util/mkisofs/hash.c: Likewise.
33182 * util/mkisofs/iso9660.h: Likewise.
33183 * util/mkisofs/joliet.c: Likewise.
33184 * util/mkisofs/mkisofs.c: Likewise.
33185 * util/mkisofs/mkisofs.h: Likewise.
33186 * util/mkisofs/multi.c: Likewise.
33187 * util/mkisofs/name.c: Likewise.
33188 * util/mkisofs/rock.c: Likewise.
33189 * util/mkisofs/tree.c: Likewise.
33190 * util/mkisofs/write.c: Likewise.
33191 * video/efi_gop.c: Likewise.
33192
33193 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33194
33195 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33196 size counting.
33197
33198 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33199
33200 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33201 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33202
33203 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33204
33205 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33206 (GRUB_MOD_INIT(memrw)): Update help line.
33207
33208 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33209
33210 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33211 Use grub_extcmd_t. All users updated.
33212 (options): New variable.
33213 (grub_cmd_read): Restructure for readability. Support "-v" option.
33214 (grub_cmd_write): Restructure for readability.
33215
33216 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33217
33218 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33219
33220 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33221
33222 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33223 with the actual contents of the correspondending make variable.
33224 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33225 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33226 specifying `*.lst' and `efiemu??.o'
33227
33228 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33229
33230 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33231 after function name.
33232 Noticed by Rene Engelhard <rene@debian.org>.
33233
33234 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33235
33236 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33237 (options): New variable.
33238 (iospace): Likewise.
33239 (grub_lspci_iter): List IO spaces if "-i" was given.
33240 (grub_cmd_lspci): Parse options.
33241 (GRUB_MOD_INIT(lspci)): Use extcmd.
33242 (GRUB_MOD_FINI(lspci)): Likewise.
33243
33244 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33245
33246 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33247 `function' keyword.
33248 Patch by Tony Mancill <tmancill@debian.org>.
33249
33250 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33251
33252 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33253 (grub_uhci_portstatus): Likewise.
33254 (grub_uhci_portstatus): Add necessary delay.
33255 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33256
33257 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33258
33259 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33260 (GRUB_MOD_INIT): Likewise.
33261 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33262 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33263 * commands/echo.c (options): Fix capitalizations and/or full stops.
33264 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33265 (enable_rom_area): Likewise.
33266 (GRUB_MOD_INIT): Likewise.
33267 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33268 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33269 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33270 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33271 * commands/hexdump.c (options): Likewise.
33272 * commands/i386/cpuid.c (options): Likewise.
33273 (GRUB_MOD_INIT): Likewise.
33274 * commands/i386/pc/drivemap.c (options): Likewise.
33275 (GRUB_MOD_INIT): Likewise.
33276 * commands/i386/pc/halt (options): Likewise.
33277 (GRUB_MOD_INIT): Likewise.
33278 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33279 * commands/i386/pc/pxecmd.c (options): Likewise.
33280 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33281 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33282 * commands/keystatus.c (options): Likewise.
33283 (GRUB_MOD_INIT): Likewise.
33284 * commands/loadenv.c (options): Likewise.
33285 * commands/ls.c (options): Likewise.
33286 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33287 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33288 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33289 * commands/parttool.c (helpmsg): Likewise.
33290 * commands/probe.c (options): Likewise.
33291 * commands/read.c (GRUB_MOD_INIT): Likewise.
33292 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33293 * commands/search.c (options): Likewise.
33294 * commands/sleep.c (options): Likewise.
33295 * commands/test.c (GRUB_MOD_INIT): Likewise.
33296 * commands/true.c (GRUB_MOD_INIT): Likewise.
33297 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33298 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33299 * lib/arg.c (help_options): Likewise.
33300 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33301 `$(XGETTEXT)'.
33302 * po/POTFILES: Add `commands/loadenv.c'.
33303
33304 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33305
33306 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33307 instead of specifying them explicit.
33308
33309 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33310
33311 * NEWS: Add grub-probe support for GNU/Hurd.
33312
33313 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33314
33315 * NEWS: gettext was added after 1.97.
33316
33317 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33318
33319 * util/mkisofs/msdos_partition.h: New file (based on
33320 include/grub/msdos_partition.h).
33321 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33322 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33323 (ld_options, main): Recognize --protective-msdos-label.
33324 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33325 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33326 (padblock_write): If `use_protective_msdos_label' is set, patch a
33327 protective DOS-style label in the output image.
33328
33329 * util/grub-mkrescue.in: Use --protective-msdos-label.
33330
33331 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33332
33333 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33334 boot.
33335
33336 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33337
33338 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33339 variables.
33340 (ld_options, main): Recognize `--embedded-boot'.
33341 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33342 declarations.
33343 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33344 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33345 (padblock_write): Likewise. Rewrite to support embedded boot image.
33346
33347 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33348 for BIOS-based disk boot instead of only ElTorito.
33349
33350 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33351
33352 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33353 build (not needed for bootstrap).
33354
33355 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33356
33357 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33358 from i386-pc build (not needed for bootstrap).
33359 Rewrite a pair of strings.
33360
33361 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33362
33363 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33364
33365 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33366
33367 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33368
33369 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33370
33371 * kern/env.c (grub_env_context_open): Mark exported variable for
33372 reexport.
33373
33374 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33375
33376 * kern/env.c (grub_env_export): Create nonexistent variables before
33377 exporting.
33378
33379 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33380
33381 * include/grub/auth.h: Include `<grub/i18n.h>'.
33382 (GRUB_GET_PASSWORD): Gettextizze string.
33383 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33384 menu_text.c.
33385 (grub_utf8_to_ucs4_alloc): Fix indentation.
33386 (grub_print_ucs4): Likewise.
33387 (grub_getstringwidth): Likewise.
33388 (print_message_indented): New declaration.
33389 * normal/auth.c: Include `<grub/i18n.h>'.
33390 (grub_auth_check_authentication): Gettexttize string.
33391 * normal/cmdline.c: Include `<grub/i18n.h>'.
33392 (grub_cmdline_get): Gettextizze.
33393 * normal/color.c: Include `<grub/i18n.h>'.
33394 (grub_parse_color_name_pair): Gettexttize strings.
33395 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33396 string (use `print_message_indented').
33397 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33398 `include/grub/normal.h'.
33399 (print_message_indented): Renamed to ...
33400 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33401 used in normal/main.c).
33402 (print_message): Use `grub_print_message_indented' instead of
33403 `print_message_indented'.
33404 (print_timeout): Likewise.
33405 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33406 (grub_normal_print_device_info): Gettexttize strings.
33407 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33408
33409 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33410
33411 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33412 of arguments. Return number of tokens and not arguments. All users
33413 updated.
33414
33415 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33416
33417 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33418 non-MSDOS paritions.
33419
33420 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33421
33422 * include/grub/types.h (UNUSED): Removed since it conflicts with
33423 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33424 Reported by Grégoire Sutre.
33425
33426 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33427
33428 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33429 (grub_print_ucs4_alloc): Likewise.
33430 (grub_getstringwidth): Likewise.
33431 * normal/main.c (grub_normal_init_page): Gettextize version string.
33432 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33433 (getstringwidth): Renamed to ...
33434 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33435 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33436 (grub_print_ucs4): Remove `static' qualifer (now used in
33437 normal/main.c).
33438 * po/POTFILES: Add normal/main.c.
33439
33440 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33441
33442 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33443 (print_message_indented): Add `margin_left' and `margin_right'
33444 parameters.
33445 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33446 strings.
33447 (print_timeout): Use `print_message_indented' to print the message.
33448 Deletes `second_stage' parameter.
33449 (run_menu): Update `print_timeout' calls.
33450
33451 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33452
33453 Fix console palette on OpenFirmware.
33454
33455 * term/ieee1275/ofconsole.c (MAX): Removed.
33456 (colors): Redone based on VGA palette.
33457 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33458 colors are supported.
33459 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33460
33461 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33462
33463 Fix potential EfiEmu double prepare.
33464
33465 * efiemu/main.c (prepared): New variable
33466 (grub_efiemu_unload): Set prepare to '0'.
33467 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33468
33469 set_virtual_address_map support.
33470
33471 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33472 prototype.
33473 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33474 prototype.
33475 (grub_efiemu_crc32): Likewise.
33476 (grub_efiemu_crc64): Likewise.
33477 (grub_efiemu_set_virtual_address_map): Likewise.
33478 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33479 New definition.
33480 (grub_autoefi_set_virtual_address_map): Likewise.
33481 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33482 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33483 Restructure flow to accomodate it.
33484 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33485 (grub_efiemu_crc): Recompute CRC32.
33486 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33487 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33488 * efiemu/symbols.c (relocated_handle): New variable.
33489 (grub_efiemu_free_syms): Free relocated_handle.
33490 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33491 (grub_efiemu_write_sym_markers): New function.
33492 (grub_efiemu_set_virtual_address_map): Likewise.
33493
33494 Newer XNU parameters.
33495
33496 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33497 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33498 (grub_xnu_fill_devicetree): New prototype.
33499 (grub_xnu_heap_real_start): New variable.
33500 * loader/xnu.c (get_name_ptr): New function.
33501 (grub_xnu_load_driver): Fill namelen and name.
33502
33503 64-bit xnu support.
33504
33505 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33506 and 'loader/macho64.c'.
33507 * conf/i386-pc.rmk: Likewise.
33508 * conf/x86_64-efi.rmk: Likewise.
33509 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33510 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33511 * include/grub/macho.h (grub_macho_segment64): New structure.
33512 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33513 (grub_macho_size32): ... to this.
33514 (grub_macho32_get_entry_point): Renamed from ...
33515 (grub_macho_get_entry_point32): ... to this.
33516 (grub_macho_contains_macho64): New prototype.
33517 (grub_macho_size64): Likewise.
33518 (grub_macho_get_entry_point64): Likewise.
33519 (grub_macho32_load): Renamed from ...
33520 (grub_macho_load32): ... to this.
33521 (grub_macho32_filesize): Renamed from ...
33522 (grub_macho_filesize32): ... to this.
33523 (grub_macho32_readfile): Renamed from ...
33524 (grub_macho_readfile32): ... to this.
33525 (grub_macho_filesize64): New prototype.
33526 (grub_macho_readfile64): Likewise.
33527 (grub_macho_parse32): Likewise.
33528 (grub_macho_parse64): Likewise.
33529 * loader/macho.c: Split into ...
33530 * loader/machoXX.c: ... and this. Replace 32 with XX.
33531 * loader/macho32.c: New file.
33532 * loader/macho64.c: Likewise.
33533 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33534 (grub_cmd_xnu_kernel): Make 32-bit only.
33535 (grub_cmd_xnu_kernel64): New function.
33536 (grub_xnu_load_driver): Support Mach-O 64.
33537 (grub_cmd_xnu_mkext): Likewise.
33538 * util/grub.d/30_os-prober.in (osx_entry): New function.
33539 Generate entries for 64-bit boot too.
33540
33541 Eliminate ad-hoc tree format in XNU and EfiEmu.
33542
33543 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33544 * efiemu/pnvram.c: Rewritten to use environment variables.
33545 All users updated.
33546
33547 Inline utf16_to_utf8.
33548
33549 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33550 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33551 All users updated.
33552 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33553
33554 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33555 * commands/usbtest.c (grub_usb_get_string): ... move here.
33556 (usb_print_str): Fix error handling.
33557 * include/grub/usb.h (grub_usb_get_string): Remove.
33558
33559 UTF-8 to UTF-16 transformation.
33560
33561 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33562 (charset_mod_SOURCES): New variable.
33563 (charset_mod_CFLAGS): Likewise.
33564 (charset_mod_LDFLAGS): Likewise.
33565 * include/grub/utf.h: New file.
33566 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33567
33568 Support for device properties.
33569
33570 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33571 (grub_xnu_devprop_device_header): Likewise.
33572 (grub_xnu_devprop_device_descriptor): Likewise.
33573 (grub_xnu_devprop_add_device): New prototype.
33574 (grub_xnu_devprop_remove_device): Likewise.
33575 (grub_xnu_devprop_remove_property): Likewise.
33576 (grub_xnu_devprop_add_property_utf8): Likewise.
33577 (grub_xnu_devprop_add_property_utf16): Likewise.
33578 (grub_cpu_xnu_init): Likewise.
33579 (grub_cpu_xnu_fini): Likewise.
33580 (grub_cpu_xnu_unload): Likewise.
33581 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33582 (property_descriptor): Likewise.
33583 (devices): New variable.
33584 (grub_xnu_devprop_remove_property): New function.
33585 (grub_xnu_devprop_add_device): Likewise.
33586 (grub_xnu_devprop_remove_device): Likewise.
33587 (grub_xnu_devprop_add_property): Likewise.
33588 (grub_xnu_devprop_add_property_utf8): Likewise.
33589 (grub_xnu_devprop_add_property_utf16): Likewise.
33590 (hextoval): Likewise.
33591 (grub_cpu_xnu_fill_devprop): Likewise.
33592 (grub_cmd_devprop_load): Likewise.
33593 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33594 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33595 (cmd_devprop_load): New variable.
33596 (grub_cpu_xnu_init): New function.
33597 (grub_cpu_xnu_fini): Likewise.
33598 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33599 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33600 (grub_cmd_xnu_devtree): Likewise.
33601 (hextoval): New function.
33602 (unescape): Likewise.
33603 (grub_xnu_fill_devicetree): Likewise.
33604
33605 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33606 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33607
33608 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33609
33610 Workaround for broken ATI VBE.
33611
33612 * video/i386/pc/vbe.c (last_set_mode): New variable.
33613 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33614 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33615 (grub_video_vbe_setup): Don't check for reserved flag.
33616
33617 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33618
33619 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33620 the `find' command.
33621
33622 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33623
33624 UUID support for HFS.
33625
33626 * fs/hfs.c (grub_hfs_uuid): New function.
33627 (grub_hfs_fs): New value .uuid.
33628 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33629
33630 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33631
33632 Fix a segfault with parsing unknown long options.
33633
33634 * util/grub-mkrelpath.c (options): Zero terminate it.
33635
33636 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33637
33638 * include/grub/misc.h (grub_puts): New declaration.
33639 (grub_puts_): Likewise.
33640 * kern/misc.c (grub_puts): New definition.
33641 (grub_puts_): Likewise.
33642
33643 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33644
33645 * util/grub-probe.c (probe): Improve error message.
33646
33647 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33648
33649 * loader/i386/multiboot_elfxx.c
33650 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33651 initialization.
33652
33653 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33654
33655 Relocator framework
33656
33657 * loader/i386/xnu_helper.S: Removed. All users updated.
33658 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33659 (relocator_mod_SOURCES): New variable.
33660 (relocator_mod_CFLAGS): Likewise.
33661 (relocator_mod_LDFLAGS): Likewise.
33662 (relocator_mod_ASFLAGS): Likewise.
33663 * conf/x86_64.rmk: Likewise.
33664 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33665 (grub_multiboot_payload_entry_offset): Likewise.
33666 (grub_multiboot_forward_relocator): Likewise.
33667 (grub_multiboot_forward_relocator_end): Likewise.
33668 (grub_multiboot_backward_relocator): Likewise.
33669 (grub_multiboot_backward_relocator_end): Likewise.
33670 (grub_multiboot_payload_eip): New variable.
33671 (grub_multiboot_payload_orig): Likewise.
33672 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33673 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33674 * include/grub/i386/memory.h
33675 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33676 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33677 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33678 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33679 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33680 * include/grub/i386/relocator.h: New file.
33681 * include/grub/x86_64/relocator.h: Likewise.
33682 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33683 (XNU_RELOCATOR): New macro.
33684 (grub_xnu_launcher_start): Remove.
33685 (grub_xnu_launcher_end): Likewise.
33686 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33687 (grub_xnu_heap_real_start): Remove.
33688 (grub_xnu_heap_start): Change to void *. All users updated.
33689 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33690 * lib/i386/relocator.c: New file.
33691 * lib/i386/relocator_asm.S: Likewise.
33692 * lib/i386/relocator_backward.S: Likewise.
33693 * lib/mips/relocator.c: Likewise.
33694 * lib/mips/relocator_asm.S: Likewise.
33695 * lib/relocator.c: Likewise.
33696 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33697 (entry): Removed.
33698 (playground): Likewise.
33699 (grub_multiboot_payload_orig): New variable.
33700 (grub_multiboot_payload_dest): Likewise.
33701 (grub_multiboot_payload_size): Likewise.
33702 (grub_multiboot_payload_eip): Likewise.
33703 (grub_multiboot_payload_esp): Likewise.
33704 (grub_multiboot_boot): Use grub_relocator32_boot.
33705 (grub_multiboot_unload): Free relocators.
33706 (grub_multiboot): Setup stack. Use relocators.
33707 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33708 (grub_multiboot_load_elfXX): Use relocators.
33709 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33710 (grub_multiboot_payload_size): Likewise.
33711 (grub_multiboot_payload_dest): Likewise.
33712 (grub_multiboot_payload_entry_offset): Likewise.
33713 (grub_multiboot_forward_relocator): Likewise.
33714 (grub_multiboot_backward_relocator): Likewise.
33715 (grub_multiboot_real_boot): Likewise.
33716 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33717 (grub_xnu_entry_point): Likewise.
33718 (grub_xnu_arg1): Likewise.
33719 (grub_xnu_stack): Likewise.
33720 (grub_xnu_launch): Removed.
33721 (grub_xnu_boot_resume): New function.
33722 (grub_xnu_boot): Use relocators.
33723 * loader/i386/xnu_helper.S: Removed.
33724 * loader/xnu.c (grub_xnu_heap_start): New variable.
33725 (grub_xnu_heap_size): Likewise.
33726 (grub_xnu_heap_malloc): Use relocators.
33727 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33728
33729 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33730
33731 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33732 anything.
33733
33734 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33735
33736 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33737 GRUB_ERR_NONE before calling grub_env_set.
33738
33739 2009-12-12 Robert Millan <rmh@aybabtu.com>
33740
33741 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33742 * genmk.rb (video): New variable.
33743 (CLEANFILES, VIDEOFILES): Add #{video}.
33744 (#{video}): New target rule.
33745 * genvideolist.sh: New file.
33746 * Makefile.in (pkglib_DATA): Add video.lst.
33747 (video.lst): New target rule.
33748 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33749 `video.lst'.
33750 * util/grub.d/30_os-prober.in: Replace `vbe' with
33751 ${GRUB_VIDEO_BACKEND}.
33752
33753 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33754
33755 * THANKS: Add David Miller.
33756
33757 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33758
33759 libpciaccess support.
33760
33761 * Makefile.in (LIBPCIACCESS): New variable.
33762 (enable_grub_emu_pci): Likewise.
33763 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33764 util/pci.c and commands/lspci.c.
33765 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33766 * configure.ac (grub-emu-pci): New option.
33767 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33768 (grub_pci_device_unmap_range): Likewise.
33769 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33770 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33771 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33772 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33773 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33774 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33775 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33776 * include/grub/pciutils.h: New file.
33777 * util/pci.c: Likewise.
33778
33779 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33780
33781 * util/misc.c: Don't include <errno.h> twice.
33782
33783 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33784
33785 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33786 name in an error message.
33787 (grub_biosdisk_rw): Likewise.
33788
33789 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33790
33791 Eliminate NTFS 4Gib barrier.
33792
33793 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33794 (read_run_data): Likewise.
33795 (grub_ntfs_read_run_list): Likewise.
33796 (grub_ntfs_read_block): Likewise.
33797 (grub_ntfs_iterate_dir): Likewise.
33798 (read_mft): Likewise.
33799 (read_data): Likewise.
33800 Use COM_LOG_LEN.
33801 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33802 to avoid 64-bit division
33803 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33804 (grub_ntfs_rlst): Use grub_disk_addr_t.
33805
33806 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33807
33808 Eliminate grub-fstest 4Gib barrier.
33809
33810 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33811 (read_file): Fix error reporting.
33812
33813 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33814
33815 Eliminate hexdump 4Gib barrier.
33816
33817 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33818 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33819
33820 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33821
33822 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33823 Fixes amarsh bug.
33824
33825 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33826
33827 Remove miscellaneous files in distclean target.
33828
33829 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33830
33831 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33832
33833 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33834 if they're already set. This resolves the conflict between my
33835 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33836 fixing the --grub-probe option again.
33837 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33838 change on 2009-10-06, so that we now once again source
33839 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33840
33841 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33842
33843 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33844 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33845 `util/devicemap.c'.
33846
33847 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33848
33849 * include/grub/misc.h (grub_printf_): New declaration.
33850 * kern/misc.c (grub_printf_): New definition.
33851 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33852 instead of `grub_printf' and `_'.
33853 * normal/menu_entry.c (store_completion): Likewise.
33854 (run): Likewise.
33855 (grub_menu_entry_run): Likewise.
33856 * normal/menu_text.c (grub_wait_after_message): Likewise.
33857 (notify_booting): Likewise.
33858 (notify_fallback): Likewise.
33859 (notify_execution_failure): Likewise.
33860
33861 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33862
33863 * configure.ac: Check for vasprintf.
33864 * util/misc.c (asprintf): Move allocation from here ...
33865 (vasprintf): ... to here. New function.
33866 (xasprintf): New function.
33867 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33868 prototypes.
33869 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33870 * util/grub-mkfont.c (write_font): Likewise.
33871 * util/grub-probe.c (probe): Likewise.
33872 * util/hostdisk.c (make_device_name): Likewise.
33873
33874 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33875
33876 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33877 anything even prefixed with 'cdrom' as a cdrom.
33878
33879 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33880
33881 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33882 mount points.
33883
33884 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33885
33886 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33887 grub_gettext_msg_list.
33888 (grub_gettext_gettranslation_from_position): Return const char *
33889 and not char *.
33890 (grub_gettext_translate): Add the translated strings into a list,
33891 returns from the list if existing there.
33892 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33893 (grub_gettext_delete_list): Delete the list.
33894 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33895 lang environment variable is changed.
33896 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33897
33898 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33899
33900 Rename kernel.mod to kernel.img.
33901
33902 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33903 (kernel_mod_EXPORTS): Rename to ...
33904 (kernel_img_EXPORTS): ... this.
33905 (kernel_mod_SOURCES): Rename to ...
33906 (kernel_img_SOURCES): ... this.
33907 (kernel_mod_HEADERS): Rename to ...
33908 (kernel_img_HEADERS): ... this. All users updated.
33909 (kernel_mod_CFLAGS): Rename to ...
33910 (kernel_img_CFLAGS): ... this.
33911 (kernel_mod_ASFLAGS): Rename to ...
33912 (kernel_img_ASFLAGS): ... this.
33913 (kernel_mod_LDFLAGS): Rename to ...
33914 (kernel_img_LDFLAGS): ... this.
33915 * conf/x86_64-efi.rmk: Likewise.
33916 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33917 (read_kernel_image): ... this. All users updated.
33918 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33919
33920 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33921
33922 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33923 (print_spaces): New function.
33924 (grub_print_ucs4): New function.
33925 (getstringwidth): New function.
33926 (print_message_indented): New function.
33927 (print_message): Gettexttize strings using print_message_indented.
33928 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33929 width.
33930 (get_entry_number): Gettextize and uses dynamic terminal width.
33931 (notify_booting, notify_fallback, notify_execution_failure):
33932 Gettextize.
33933 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33934 string.
33935 (run): Likewise.
33936 (grub_menu_entry_run): Likewise.
33937 * PO/POTFILES: Add normal/menu_entry.c.
33938
33939 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33940
33941 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33942
33943 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33944
33945 * util/grub-install.in: Install gettext .mo files.
33946 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33947
33948 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33949
33950 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33951 grub_dprintf.
33952
33953 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33954
33955 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33956 non-firmware-dependant one in realmode.S takes precedence.
33957
33958 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33959
33960 * commands/halt.c: Replace misc arch-specific headers with
33961 `<grub/misc.h>'.
33962 * commands/reboot.c: Likewise.
33963 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33964 `<grub/misc.h>'.
33965 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33966 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33967 (kernel_img_SOURCES): ... to here.
33968
33969 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33970 * include/grub/i386/pc/init.h: Likewise.
33971 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33972 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33973
33974 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33975
33976 * include/grub/i386/halt.h: Remove.
33977 * include/grub/i386/reboot.h: Likewise.
33978
33979 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33980
33981 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33982
33983 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33984 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33985 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33986 "progname.h"
33987 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33988 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33989 (usage): Add missing comma in printf.
33990
33991 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33992
33993 Use the same reboot approach on i386 coreboot and qemu as we do on
33994 BIOS.
33995
33996 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33997 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33998 * kern/i386/reboot.c: Remove.
33999 * include/grub/i386/reboot.h (grub_reboot): Export function.
34000 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34001 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
34002 0xf000:0xfff0 instead of 0xffff:0x0000.
34003 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34004 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34005
34006 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
34007
34008 Fix $srcdir != $objdir build.
34009
34010 * Makefile.in (po/%.po): Rewrite as ...
34011 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34012
34013 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
34014
34015 Fix GNU/Hurd grub-install crash.
34016 * util/grub-probe.c (probe): Try to access `path' only when it is not
34017 NULL.
34018
34019 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34020
34021 Correct module naming.
34022
34023 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34024 (GRUB_MOD_INIT(efi_uga)): ... to this
34025 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34026 (GRUB_MOD_FINI(efi_uga)): ... to this
34027 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34028 (GRUB_MOD_INIT(efi_gop)): ... to this
34029 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34030 (GRUB_MOD_FINI(efi_gop)): ... to this
34031
34032 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34033
34034 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34035 translatable.
34036 (usage): Translate `arg' strings using gettext().
34037 Thanks to Jordi Mallach for the suggestion.
34038
34039 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34040
34041 GOP support. Based on patch from Bean
34042 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34043
34044 * video/efi_gop.c: New file.
34045 * include/grub/efi/graphics_output.h: Likewise.
34046 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34047 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34048 variables.
34049 * conf/x86_64-efi.rmk: Likewise.
34050
34051 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34052
34053 Rename efi_fb to efi_uga.
34054
34055 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34056 'efi_uga.mod'.
34057 (efi_fb_mod_SOURCES): Rename this ...
34058 (efi_uga_mod_SOURCES): ... to this.
34059 (efi_fb_mod_CFLAGS): Rename this ...
34060 (efi_uga_mod_CFLAGS): ... to this.
34061 (efi_fb_mod_LDFLAGS): Rename this ...
34062 (efi_uga_mod_LDFLAGS): ... to this.
34063 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34064 'efi_uga.mod'.
34065 (efi_fb_mod_SOURCES): Rename this ...
34066 (efi_uga_mod_SOURCES): ... to this.
34067 (efi_fb_mod_CFLAGS): Rename this ...
34068 (efi_uga_mod_CFLAGS): ... to this.
34069 (efi_fb_mod_LDFLAGS): Rename this ...
34070 (efi_uga_mod_LDFLAGS): ... to this.
34071 * video/efi_fb.c: Move this ...
34072 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34073
34074 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34075
34076 * po/README: New file. Explain our PO file workflow.
34077
34078 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34079
34080 * po/ChangeLog: Remove. Move relevant entries back to ...
34081 * ChangeLog: ... here.
34082 * po/ca.po: Remove (now handled by TLP).
34083 * po/id.po: Likewise.
34084 * po/zh_CN.po: Likewise.
34085 * Makefile.in (LINGUAS): Initialize in a way that supports
34086 empty set.
34087
34088 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34089
34090 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34091 reliing on po/LINGUAS.
34092 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34093 (po/%.po): ... this.
34094
34095 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34096
34097 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34098 (main): Use `program_name' instead of nonexistent `progname'.
34099
34100 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34101
34102 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34103 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34104
34105 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34106
34107 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34108 commit.
34109 * conf/i386-efi.rmk: Likewise.
34110 * conf/i386-ieee1275.rmk: Likewise.
34111 * conf/powerpc-ieee1275.rmk: Likewise.
34112 * conf/sparc64-ieee1275.rmk: Likewise.
34113 * conf/x86_64-efi.rmk: Likewise.
34114
34115 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34116
34117 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34118
34119 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34120
34121 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34122
34123 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34124
34125 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34126 (grub_mkdevicemap_SOURCES): New variable.
34127 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34128 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34129 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34130 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34131 (grub_mkdevicemap_SOURCES): Remove.
34132 * conf/i386-efi.rmk: Likewise.
34133 * conf/i386-ieee1275.rmk: Likewise.
34134 * conf/i386-pc.rmk: Likewise.
34135 * conf/powerpc-ieee1275.rmk: Likewise.
34136 * conf/sparc64-ieee1275.rmk: Likewise.
34137 * conf/x86_64-efi.rmk: Likewise.
34138 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34139 (usage): Fix strings to use `program_name'.
34140 (main): Initialize gettext.
34141 * util/grub-editenv.c: Likewise.
34142 * util/grub-emu.c: Likewise.
34143 * util/grub-fstest.c: Likewise.
34144 * util/grub-mkdevicemap.c: Likewise.
34145 * util/grub-mkfont.c: Likewise.
34146 * util/grub-mkrelpath.c: Likewise.
34147 * util/grub-pe2elf.c: Likewise.
34148 * util/grub-probe.c: Likewise.
34149 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34150 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34151 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34152
34153 * util/misc.c: Include `"progname.h"'.
34154 (progname): Remove variable.
34155 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34156
34157 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34158
34159 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34160 printf and print a newline after the menuentry header line.
34161 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34162
34163 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34164
34165 autoconf >= 2.60 support $(localedir).
34166
34167 * INSTALL: Note that autoconf 2.60 is required.
34168 * configure.ac (AC_PREREQ): Bump to 2.60.
34169 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34170 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34171
34172 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34173
34174 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34175 aclocal is run.
34176
34177 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34178
34179 * normal/main.c (grub_normal_read_line): Fix off-by-one
34180 buffer overflow.
34181
34182 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34183
34184 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34185 "parser.grub" in grub_command_execute() call.
34186
34187 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34188
34189 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34190 * conf/i386-efi.rmk: Likewise.
34191 * conf/i386-ieee1275.rmk: Likewise.
34192 * conf/i386-pc.rmk: Likewise.
34193 * conf/powerpc-ieee1275.rmk: Likewise.
34194 * conf/sparc64-ieee1275.rmk: Likewise.
34195 * conf/x86_64-efi.rmk: Likewise.
34196 * gettext/gettex.c: Include <grub/i18n.h>.
34197 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34198 here ...
34199 * include/grub/i18n.h: ... to here
34200 * include/grub/i18n.h: ... to here.
34201 * kern/misc.c: Include <grub/i18n.h>
34202 (grub_gettext_dummy): Move above user.
34203
34204 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34205
34206 * util/Makefile.in (install-local): Convert a `for' into a normal
34207 shell expansion.
34208
34209 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34210
34211 * autogen.sh: Add automake call.
34212 * config.guess: Remove.
34213 * config.sub: Likewise.
34214 * install-sh: Likewise.
34215
34216 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34217
34218 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34219
34220 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34221
34222 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34223 function to a normal shell `for'.
34224
34225 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34226
34227 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34228
34229 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34230
34231 * util/grub-mkrelpath.c: New file.
34232 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34233 (grub_mkrelpath_SOURCES): New variable.
34234 * include/grub/util/misc.h: New function prototype.
34235 * util/misc.c (make_system_path_relative_to_its_root): New function.
34236
34237 * util/grub-mkconfig_lib.in (bindir): New variable.
34238 (grub_mkrelpath): Likewise.
34239 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34240
34241 * util/probe.c (probe): Make the file path relative to its root.
34242 Change a info message to use the GRUB path. Enable again the
34243 check if we can read the file with GRUB facilities.
34244
34245 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34246 to its root.
34247
34248 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34249
34250 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34251 platform.
34252
34253 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34254
34255 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34256 strncmp().
34257
34258 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34259
34260 * util/getroot.c (grub_util_is_dmraid): New function.
34261 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34262 devices as normal ones, not as LVM.
34263
34264 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34265
34266 * conf/common.rmk: Add grub-gettext_lib target and updates
34267 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34268 LDFLAGS.
34269 * gettext/gettext.c: New file. (Reads mo files).
34270 * include/grub/file.h (grub_file_pread): New prototype.
34271 * include/grub/i18n.h (_): New prototype.
34272 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34273 prototypes.
34274 * kern/misc.c (grub_gettext_dummy): New function.
34275 * normal/menu_text.c: Include <grub/i18n.h>.
34276 * normal/menu_text.c (print_timeout): Gettexttize string.
34277 * normal/menu_text.c (print_message): Gettexttize string.
34278 * po/POTFILES: Add `normal/menu_text.c'.
34279 * po/ca.po: Add new translations.
34280 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34281 gettext module and defines locale_dir and lang in grub.cfg.
34282 * NEWS: Add gettext support.
34283
34284 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34285
34286 * util/hostdisk.c: Include `<grub/i18n.h>'.
34287 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34288 (make_device_name): Rewrite using asprintf.
34289 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34290 (find_system_device): If a device is not found, generate one just
34291 by reusing the OS path name.
34292 (read_device_map): Make it permissible for device.map not to exist.
34293
34294 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34295
34296 * script/sh/execute.c: Move from here ...
34297 * script/execute.c: ... to here. Update all users.
34298 * script/sh/function.c: Move from here ...
34299 * script/function.c: ... to here. Update all users.
34300 * script/sh/lexer.c: Move from here ...
34301 * script/lexer.c: ... to here. Update all users.
34302 * script/sh/main.c: Move from here ...
34303 * script/main.c: ... to here. Update all users.
34304 * script/sh/parser.y: Move from here ...
34305 * script/parser.y: ... to here. Update all users.
34306 * script/sh/script.c: Move from here ...
34307 * script/script.c: ... to here. Update all users.
34308
34309 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34310
34311 * configure.ac: Detect all `emu' platforms. Define
34312 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34313 --enable-grub-emu logic. Disable include/grub/machine
34314 symlink on `emu' platforms.
34315
34316 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34317 * gensymlist.sh.in: Likewise.
34318
34319 * include/grub/i386/coreboot/machine.h: Remove file.
34320 * include/grub/i386/efi/machine.h: Likewise.
34321 * include/grub/i386/ieee1275/machine.h: Likewise.
34322 * include/grub/i386/pc/machine.h: Likewise.
34323 * include/grub/i386/qemu/machine.h: Likewise.
34324 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34325 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34326 * include/grub/x86_64/efi/machine.h: Likewise.
34327
34328 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34329 * commands/halt.c: Likewise.
34330 * commands/reboot.c: Likewise.
34331 * include/grub/autoefi.h: Likewise.
34332 * include/grub/i386/at_keyboard.h: Likewise.
34333 * include/grub/i386/kernel.h: Likewise.
34334 * include/grub/i386/loader.h: Likewise.
34335 * include/grub/i386/pc/memory.h: Likewise.
34336 * kern/dl.c: Likewise.
34337 * kern/i386/coreboot/init.c: Likewise.
34338 * loader/i386/bsd.c: Likewise.
34339 * loader/i386/linux.c: Likewise.
34340 * loader/multiboot_loader.c: Likewise.
34341 * term/i386/pc/serial.c: Likewise.
34342 * term/usb_keyboard.c: Likewise.
34343
34344 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34345 `<grub/machine/machine.h>'
34346 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34347 * util/misc.c: Remove `<grub/machine/machine.h>' and
34348 `<grub/machine/time.h>'.
34349
34350 * Makefile.in (enable_grub_emu): Remove variable.
34351 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34352
34353 * conf/any-emu.rmk: New file.
34354 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34355 (grub_emu_init.c): Move from here ...
34356 * conf/any-emu.rmk: ... to here.
34357
34358 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34359 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34360 * conf/any-emu.rmk: ... to here.
34361
34362 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34363
34364 * include/grub/parser.h (grub_parser_register): Document need
34365 of `name' parameter.
34366 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34367 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34368 "sh" to "grub".
34369
34370 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34371
34372 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34373 `$(XGETTEXT)'.
34374 * include/grub/i18n.h (N_): New macro.
34375 * util/mkisofs/mkisofs.h: Likewise.
34376 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34377 around N_().
34378 (usage): Use gettext() to translate help strings when printing them.
34379
34380 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34381
34382 Based on patch from Bean
34383 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34384
34385 * video/efi_fb.c: New file.
34386 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34387 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34388 variables.
34389 * conf/x86_64-efi.rmk: Likewise.
34390
34391 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34392
34393 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34394 * util/i386/pc/grub-setup.c: Likewise.
34395
34396 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34397
34398 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34399 <hurd/fs.h>
34400 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34401 file_get_storage_info to implement grub_guess_root_device.
34402
34403 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34404
34405 * Makefile.in (target): Use make's builtin $(shell) function
34406 instead of calling directly $(SHELL) to create the locale directories,
34407 inside the $(foreach) function.
34408
34409 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34410
34411 * util/grub-mkrescue.in: Print an error and usage if output option
34412 has not been given.
34413
34414 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34415
34416 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34417 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34418 root and /boot are on different devices.
34419
34420 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34421
34422 Fix build for srcdir != objdir.
34423
34424 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34425 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34426 $(srcdir).
34427 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34428 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34429 reference for input.
34430
34431 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34432
34433 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34434 or hardlinking it). Remove -J option, Joliet is not compatible with
34435 multiple source directories.
34436
34437 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34438 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34439
34440 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34441 (process_input_dir): New function. Process an arbitrary input
34442 directory.
34443 Misc adjustments to support both "override mode" and system-wide mode.
34444
34445 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34446
34447 * configure.ac (UNIFONT_BDF): Rename to ...
34448 (FONT_SOURCE): ... this. Update all users.
34449
34450 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34451
34452 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34453 to the list of unifont files to look for.
34454
34455 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34456
34457 Patch from Joe Auricchio <jauricchio@gmail.com>
34458 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34459 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34460 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34461
34462 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34463
34464 * Makefile.in (install-local): Add a missing backslash.
34465
34466 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34467
34468 * include/grub/x86_64/io.h: New file.
34469
34470 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34471
34472 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34473 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34474 Include `"progname.h"'.
34475 (main): Initialize gettext.
34476 * util/i386/pc/grub-setup.c: Gettexttize.
34477 * util/i386/pc/grub-mkimage.c: Likewise.
34478
34479 * Makefile.in (po/*.po): Redefine as ...
34480 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34481
34482 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34483
34484 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34485
34486 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34487 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34488 (program_name): Remove.
34489 (main): Initialize gettext support.
34490 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34491 Include `<libintl.h>'.
34492 (_): New macro.
34493
34494 * util/mkisofs/eltorito.c: Gettexttize.
34495 * util/mkisofs/joliet.c: Likewise.
34496 * util/mkisofs/mkisofs.c: Likewise.
34497 * util/mkisofs/multi.c: Likewise.
34498 * util/mkisofs/rock.c: Likewise.
34499 * util/mkisofs/tree.c: Likewise.
34500 * util/mkisofs/write.c: Likewise.
34501
34502 * po/POTFILES: Update with new files.
34503
34504 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34505
34506 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34507 * util/mkisofs/iso9660.h: Likewise.
34508 * util/mkisofs/joliet.c: Likewise.
34509 * util/mkisofs/mkisofs.c: Likewise.
34510 * util/mkisofs/mkisofs.h: Likewise.
34511 * util/mkisofs/rock.c: Likewise.
34512 * util/mkisofs/tree.c: Likewise.
34513 * util/mkisofs/write.c: Likewise.
34514
34515 * util/mkisofs/eltorito.c (rcsid): Remove.
34516 * util/mkisofs/hash.c: Likewise.
34517 * util/mkisofs/joliet.c: Likewise.
34518 * util/mkisofs/name.c: Likewise.
34519 * util/mkisofs/rock.c: Likewise.
34520 * util/mkisofs/tree.c: Likewise.
34521 * util/mkisofs/write.c: Likewise.
34522
34523 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34524
34525 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34526 instead of static allocation.
34527 * util/mkisofs/match.h: Likewise.
34528
34529 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34530
34531 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34532 and `util/grub.d/10_linux.in'.
34533 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34534 translatable Shell files.
34535
34536 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34537
34538 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34539
34540 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34541
34542 * INSTALL: Document Automake is needed for bootstrap.
34543 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34544 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34545 Add gettext initialization.
34546 (kfreebsd_entry): Make menuentry output translatable.
34547
34548 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34549
34550 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34551 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34552 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34553 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34554 (LINGUAS): Auto-generate using `po/LINGUAS'.
34555 * po/LINGUAS: New file.
34556
34557 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34558
34559 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34560 other things).
34561 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34562 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34563 bindtextdomain() calls for gettext initialization.
34564
34565 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34566
34567 * gnulib/progname.c: New file (imported from Gnulib).
34568 * gnulib/progname.h: Likewise.
34569 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34570 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34571 (usage): Replace `progname' with `program_name'.
34572 (main): Use set_program_name() for program name initialization.
34573
34574 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34575
34576 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34577 from here ...
34578 * Makefile.in (CPPFLAGS): ... to here.
34579
34580 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34581
34582 * aclocal.m4: Move from here ...
34583 * acinclude.m4: ... to here.
34584 * autogen.sh: Add call to `aclocal'.
34585 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34586
34587 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34588
34589 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34590 (LINGUAS): New variable.
34591 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34592 (install-local): Install MO files.
34593 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34594 * include/grub/i18n.h: New file.
34595 * po/POTFILES: New file.
34596 * po/ca.po: New file.
34597 * util/grub.d/10_linux.in (bindir): New variable.
34598 Add gettext initialization.
34599 (linux_entry): Make menuentry output translatable.
34600 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34601 (usage): Make --help output translatable.
34602 (main): Initialize gettext.
34603
34604 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34605
34606 * import_gcry.py: New file (written by Vladimir with minor
34607 adjustments).
34608 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34609 ciphers.
34610 * INSTALL: Document that Python is required for bootstrap.
34611
34612 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34613
34614 Import ciphers from libgcrypt 1.4.4.
34615
34616 * lib/libgcrypt/cipher/ChangeLog
34617 * lib/libgcrypt/cipher/ac.c
34618 * lib/libgcrypt/cipher/arcfour.c
34619 * lib/libgcrypt/cipher/bithelp.h
34620 * lib/libgcrypt/cipher/blowfish.c
34621 * lib/libgcrypt/cipher/camellia-glue.c
34622 * lib/libgcrypt/cipher/camellia.c
34623 * lib/libgcrypt/cipher/camellia.h
34624 * lib/libgcrypt/cipher/cast5.c
34625 * lib/libgcrypt/cipher/cipher.c
34626 * lib/libgcrypt/cipher/crc.c
34627 * lib/libgcrypt/cipher/des.c
34628 * lib/libgcrypt/cipher/dsa.c
34629 * lib/libgcrypt/cipher/ecc.c
34630 * lib/libgcrypt/cipher/elgamal.c
34631 * lib/libgcrypt/cipher/hash-common.c
34632 * lib/libgcrypt/cipher/hash-common.h
34633 * lib/libgcrypt/cipher/hmac-tests.c
34634 * lib/libgcrypt/cipher/md.c
34635 * lib/libgcrypt/cipher/md4.c
34636 * lib/libgcrypt/cipher/md5.c
34637 * lib/libgcrypt/cipher/primegen.c
34638 * lib/libgcrypt/cipher/pubkey.c
34639 * lib/libgcrypt/cipher/rfc2268.c
34640 * lib/libgcrypt/cipher/rijndael-tables.h
34641 * lib/libgcrypt/cipher/rijndael.c
34642 * lib/libgcrypt/cipher/rmd.h
34643 * lib/libgcrypt/cipher/rmd160.c
34644 * lib/libgcrypt/cipher/rsa.c
34645 * lib/libgcrypt/cipher/seed.c
34646 * lib/libgcrypt/cipher/serpent.c
34647 * lib/libgcrypt/cipher/sha1.c
34648 * lib/libgcrypt/cipher/sha256.c
34649 * lib/libgcrypt/cipher/sha512.c
34650 * lib/libgcrypt/cipher/tiger.c
34651 * lib/libgcrypt/cipher/twofish.c
34652 * lib/libgcrypt/cipher/whirlpool.c
34653
34654 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34655
34656 Fix build for systems without error().
34657
34658 * gnulib/error.c: New file (imported from Gnulib).
34659 * gnulib/error.h: Likewise.
34660 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34661 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34662 (this variable is now used by error()).
34663
34664 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34665
34666 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34667 instead of relying that char is signed.
34668
34669 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34670
34671 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34672 blocksize different from specified.
34673 (grub_pxefs_read): Likewise.
34674
34675 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34676
34677 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34678
34679 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34680 (grub_ata_readwrite): Likewise. Update 2 format strings.
34681 (grub_atapi_read): Likewise.
34682
34683 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34684 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34685 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34686 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34687 (ata_mod_LDFLAGS): Move from here ...
34688 * conf/i386.rmk: ... to here ...
34689 * conf/x86_64-efi.rmk: ... and here.
34690 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34691 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34692
34693 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34694
34695 Relicense multiboot.h, with RMS' blessing.
34696
34697 * include/multiboot.h: Change to X11 license.
34698
34699 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34700
34701 Support --version in grub-mkisofs.
34702
34703 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34704 (OPTION_VERSION): New macro.
34705 (ld_options): Recognize --version.
34706 (usage): Move `program_name' from here ...
34707 (program_name): ... to here. Add `static' qualifier.
34708 (main): Recognize `OPTION_VERSION'.
34709
34710 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34711
34712 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34713 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34714
34715 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34716
34717 Fix help2man generation for mkisofs.
34718
34719 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34720 (usage): Send output to stdout (rather than stderr).
34721
34722 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34723
34724 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34725 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34726 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34727 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34728 (bin_SCRIPTS): Add `grub-mkfloppy'.
34729 (grub_mkfloppy_SOURCES): New variable.
34730
34731 * util/grub-mkrescue.in: New file.
34732 * util/i386/pc/grub-mkfloppy.in: New file.
34733
34734 * util/i386/coreboot/grub-mkrescue.in: Remove.
34735 * util/i386/pc/grub-mkrescue.in: Remove.
34736
34737 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34738
34739 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34740 from here ...
34741 * include/multiboot.h (struct multiboot_header): ... to here. Update
34742 all users.
34743 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34744 from here ...
34745 * include/multiboot.h (struct multiboot_info): ... to here. Update
34746 all users.
34747 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34748 from here ...
34749 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34750 Update all users.
34751 * include/grub/multiboot.h (struct grub_mod_list): Move
34752 from here ...
34753 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34754 Update all users.
34755
34756 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34757
34758 * include/multiboot2.h (multiboot_word): Rename from this ...
34759 (multiboot2_word): ... to this. Update all users.
34760 (multiboot_header): Rename from this ...
34761 (multiboot2_header): ... to this. Update all users.
34762 (multiboot_tag_header): Rename from this ...
34763 (multiboot2_tag_header): ... to this. Update all users.
34764 (multiboot_tag_start): Rename from this ...
34765 (multiboot2_tag_start): ... to this. Update all users.
34766 (multiboot_tag_name): Rename from this ...
34767 (multiboot2_tag_name): ... to this. Update all users.
34768 (multiboot_tag_module): Rename from this ...
34769 (multiboot2_tag_module): ... to this. Update all users.
34770 (multiboot_tag_memory): Rename from this ...
34771 (multiboot2_tag_memory): ... to this. Update all users.
34772 (multiboot_tag_unused): Rename from this ...
34773 (multiboot2_tag_unused): ... to this. Update all users.
34774 (multiboot_tag_end): Rename from this ...
34775 (multiboot2_tag_end): ... to this. Update all users.
34776
34777 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34778
34779 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34780 this platform we should support Multiboot1 first.
34781
34782 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34783 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34784 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34785
34786 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34787
34788 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34789 of write calls (converting them to fwrite() if they aren't already).
34790 (get_torito_desc): Likewise.
34791 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34792
34793 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34794
34795 * util/i386/pc/grub-install.in: Move from here ...
34796 * util/grub-install.in: ... to here. Update all users.
34797
34798 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34799
34800 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34801
34802 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34803
34804 Support for El Torito without floppy emulation.
34805
34806 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34807 (init_boot_catalog): Improve error handling.
34808 (get_torito_desc): Don't use floppy emulation unless requested by
34809 user. Patch boot information table when requested via
34810 `-boot-info-table'.
34811 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34812 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34813 (use_boot_info_table): New variables.
34814 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34815 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34816 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34817 `--eltorito-emul-floppy'.
34818 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34819 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34820 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34821 (use_boot_info_table, get_731): New prototypes.
34822 * util/mkisofs/write.c (get_731): New function.
34823
34824 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34825
34826 Fix the generation of the man page.
34827
34828 * util/pc/i386/grub-install.in: Source
34829 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34830
34831 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34832
34833 Large file support for grub-mkisofs.
34834
34835 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34836 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34837 (session_start): Upgrade type to `uint64_t'. Update all users.
34838 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34839 (struct directory_entry): Upgrade type of `starting_block' and
34840 `size' to `uint64_t'. Update all users.
34841 (struct deferred): Remove unused structure.
34842 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34843 Update all users.
34844 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34845 file is larger than `UINT32_MAX'.
34846 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34847 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34848 return value.
34849 (struct deferred_write): Upgrade type of `extent' and `size' to
34850 `uint64_t'. Update all users.
34851 (last_extent_written): Upgrade type to `uint64_t'. Update all
34852 users.
34853 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34854 Update all users. Upgrade type of `remain' to `int64_t' and
34855 `use' to `size_t'. Use error() to handle fread() errors.
34856 (write_files): Rely on write_one_file() rather than calling
34857 xfwrite() directly.
34858
34859 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34860
34861 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34862
34863 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34864
34865 * util/mkisofs/fnmatch.c: Remove.
34866 * util/mkisofs/getopt1.c: Likewise.
34867 * util/mkisofs/getopt.c: Likewise.
34868 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34869 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34870 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34871 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34872 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34873
34874 * configure.ac: Detect `mingw32msvc' host_os.
34875 Check for lstat(), getuid() and getgid().
34876
34877 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34878 instances of `u_char' with `uint8_t'.
34879
34880 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34881 [!HAVE_GETUID] (getuid): New function (stub).
34882 [!HAVE_GETGID] (getgid): Likewise.
34883 [!HAVE_LSTAT] (lstat): Likewise.
34884 [!S_IROTH] (S_IROTH): New macro (dummy).
34885 [!S_IRGRP] (S_IRGRP): Likewise.
34886
34887 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34888
34889 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34890 conditional expression).
34891
34892 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34893
34894 Import from Gnulib.
34895
34896 * gnulib/fnmatch.c: New file.
34897 * gnulib/fnmatch.h: Likewise.
34898 * gnulib/fnmatch_loop.c: Likewise.
34899 * gnulib/getopt.c: Likewise.
34900 * gnulib/getopt.h: Likewise.
34901 * gnulib/getopt1.c: Likewise.
34902 * gnulib/getopt_int.h: Likewise.
34903 * gnulib/gettext.h: Likewise.
34904
34905 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34906
34907 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34908 * normal/handler.c (read_handler_list): Likewise.
34909
34910 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34911
34912 Misc cleanup.
34913
34914 * kern/command.c (grub_register_command_prio): Use
34915 grub_zalloc() instead of explicitly zeroing data.
34916 * kern/list.c: Include `<grub/mm.h>'.
34917 (grub_named_list_find): Replace `0' with `NULL'.
34918 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34919 (fs_module_list): Change type to `grub_named_list_t'. Update all
34920 users.
34921 * normal/dyncmd.c (read_command_list): Add space between function
34922 call and parenthesis.
34923 * normal/handler.c (read_handler_list): Likewise.
34924
34925 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34926
34927 * normal/auth.c (punishment_delay): Moved from here ...
34928 (grub_auth_strcmp): ... to here (inside function).
34929
34930 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34931
34932 * include/grub/list.h (struct grub_named_list): Remove `const'
34933 qualifier from `name'.
34934 (struct grub_prio_list): Likewise.
34935
34936 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34937
34938 * normal/auth.c: Include `<grub/time.h>'.
34939 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34940
34941 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34942
34943 * normal/auth.c (punishment_delay): New variable.
34944 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34945 (grub_auth_check_authentication): Punish failed login attempts with
34946 an incremental (2^N) delay.
34947
34948 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34949
34950 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34951 path with $(srcdir).
34952
34953 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34954
34955 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34956
34957 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34958
34959 * util/i386/coreboot/grub-mkrescue.in: New file.
34960 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34961 variables.
34962
34963 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34964 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34965 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34966 requirements.
34967 * util/mkisofs/defaults.h: New file.
34968 * util/mkisofs/eltorito.c: Likewise.
34969 * util/mkisofs/exclude.h: Likewise.
34970 * util/mkisofs/fnmatch.c: Likewise.
34971 * util/mkisofs/getopt.c: Likewise.
34972 * util/mkisofs/getopt1.c: Likewise.
34973 * util/mkisofs/hash.c: Likewise.
34974 * util/mkisofs/include/fctldefs.h: Likewise.
34975 * util/mkisofs/include/mconfig.h: Likewise.
34976 * util/mkisofs/include/prototyp.h: Likewise.
34977 * util/mkisofs/include/statdefs.h: Likewise.
34978 * util/mkisofs/iso9660.h: Likewise.
34979 * util/mkisofs/joliet.c: Likewise.
34980 * util/mkisofs/match.c: Likewise.
34981 * util/mkisofs/match.h: Likewise.
34982 * util/mkisofs/mkisofs.c: Likewise.
34983 * util/mkisofs/mkisofs.h: Likewise.
34984 * util/mkisofs/multi.c: Likewise.
34985 * util/mkisofs/name.c: Likewise.
34986 * util/mkisofs/rock.c: Likewise.
34987 * util/mkisofs/tree.c: Likewise.
34988 * util/mkisofs/write.c: Likewise.
34989
34990 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34991
34992 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34993 being insecure.
34994
34995 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34996
34997 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34998 `grub-mkimage' (and use $0 when possible).
34999
35000 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35001
35002 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35003 error message for excessively large memory map.
35004
35005 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35006
35007 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35008 executable bit.
35009
35010 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
35011
35012 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35013 message for coreboot users.
35014
35015 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
35016
35017 Fix build with GNU gold.
35018
35019 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35020 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35021 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35022 link addresses.
35023 * aclocal.m4: Likewise.
35024
35025 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
35026
35027 * configure.ac (AC_PREREQ): Bump to 2.59d.
35028 * INSTALL: Make it more clear when Autoconf and Ruby are
35029 needed and when to run `./autogen.sh'.
35030
35031 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35032
35033 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35034 OSes.
35035
35036 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35037
35038 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35039
35040 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35041
35042 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35043 giving it to GNU Mach.
35044
35045 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35046
35047 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35048 GNU partition number to get internal GRUB partition number.
35049
35050 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35051
35052 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35053 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35054
35055 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35056
35057 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35058 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35059 case.
35060
35061 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35062
35063 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35064
35065 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35066
35067 Fix build problem.
35068
35069 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35070 `-isystem=$(srcdir)/include'.
35071
35072 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35073
35074 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35075 checked (grub-install doesn't currently rely on it).
35076
35077 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35078
35079 Revert SVN r2660.
35080
35081 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35082 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35083 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35084 * conf/i386-ieee1275.rmk: Likewise.
35085 * conf/i386-pc.rmk: Likewise.
35086 * conf/powerpc-ieee1275.rmk: Likewise.
35087 * conf/sparc64-ieee1275.rmk: Likewise.
35088 * conf/x86_64-efi.rmk: Likewise.
35089
35090 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35091
35092 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35093
35094 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35095
35096 * include/grub/misc.h: Stop checking for APPLE_CC.
35097
35098 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35099
35100 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35101 doesn't cause an infinite call loop.
35102
35103 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35104
35105 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35106 strings.
35107
35108 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35109
35110 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35111 variable.
35112 * Makefile.in: Likewise.
35113
35114 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35115
35116 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35117
35118 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35119
35120 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35121
35122 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35123
35124 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35125
35126 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35127
35128 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35129 from here ...
35130 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35131
35132 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35133
35134 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35135 in $(MAKEINFO) invocation. This makes it clear in output that
35136 errors are being ignored.
35137
35138 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35139
35140 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35141 from here ...
35142 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35143 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35144 * conf/i386-ieee1275.rmk: Likewise.
35145 * conf/i386-pc.rmk: Likewise.
35146 * conf/powerpc-ieee1275.rmk: Likewise.
35147 * conf/sparc64-ieee1275.rmk: Likewise.
35148 * conf/x86_64-efi.rmk: Likewise.
35149
35150 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35151
35152 * util/grub-editenv.c (main): If only a command is given, use
35153 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35154 (usage): FILENAME is now optional and has a default.
35155
35156 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35157
35158 Improve grub-mkconfig performance when there are several menu
35159 entries on a single filesystem.
35160
35161 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35162 prepare_grub_to_access_device.
35163 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35164 * util/grub.d/30_os-prober.in: Likewise.
35165
35166 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35167
35168 * util/grub.d/10_freebsd.in: Remove.
35169 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35170 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35171
35172 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35173
35174 * docs/grub.cfg: Fix example usage of *BSD loaders.
35175
35176 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35177
35178 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35179 grub_util_error() call.
35180
35181 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35182
35183 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35184 `reserved_first_sector' member.
35185 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35186 `reserved_first_sector' to 1.
35187 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35188 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35189 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35190 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35191 filesystems which begin at first sector.
35192 (options): New option --skip-fs-probe.
35193 (main): Handle --skip-fs-probe and pass it to setup().
35194
35195 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35196
35197 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35198 (memset): Fix function prototype.
35199
35200 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35201 2009-10-25 Vasily Averin <vvs@parallels.com>
35202
35203 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35204 `dirent.direntlen == 0'.
35205
35206 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35207
35208 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35209 `cpio'.
35210 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35211
35212 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35213
35214 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35215 `__trampoline_setup' and `__ucmpdi2'.
35216 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35217 that libgcc provides.
35218
35219 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35220
35221 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35222 * include/grub/sparc64/libgcc.h (memset): Likewise.
35223 * include/grub/misc.h (memset, memcmp): New function prototypes.
35224
35225 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35226
35227 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35228 `cpio'.
35229 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35230
35231 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35232
35233 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35234 * docs/grub.cfg: Compensate for recent change in multiboot
35235 loader (since 2009-08-14 it won't pass filename to payload).
35236 * util/grub.d/10_hurd.in: Likewise.
35237
35238 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35239
35240 * config.guess: Update to latest version from config git
35241 repository.
35242 * config.sub: Likewise.
35243
35244 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35245
35246 Fix build on sparc64.
35247
35248 * configure.ac: Perform checks for libgcc symbols before
35249 adding `-nostdlib' to LDFLAGS.
35250
35251 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35252
35253 Let user specify OpenBSD root device.
35254
35255 * loader/i386/bsd.c (openbsd_root): New variable.
35256 (openbsd_opts): New option 'root'.
35257 (OPENBSD_ROOT_ARG): New macro.
35258 (grub_openbsd_boot): Use 'openbsd_root'.
35259 (grub_cmd_openbsd): Fill 'openbsd_root'.
35260
35261 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35262
35263 * NEWS: Misc adjustments.
35264
35265 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35266
35267 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35268
35269 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35270
35271 * configure.ac: Bump version to 1.97.
35272
35273 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35274
35275 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35276 -mno-3dnow on x86 architectures. Some toolchains enable these
35277 features by default, but they rely on registers that aren't enabled
35278 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35279
35280 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35281
35282 Make entry text a bit more readable.
35283
35284 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35285
35286 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35287
35288 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35289
35290 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35291
35292 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35293 operations.
35294
35295 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35296
35297 * configure.ac: Add missing dollar.
35298
35299 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35300
35301 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35302
35303 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35304 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35305 exports.
35306 * include/grub/sparc64/libgcc.h: Likewise. Use
35307 preprocessor conditionals.
35308
35309 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35310
35311 * conf/common.rmk (grub-dumpbios): Remove rule.
35312 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35313 * util/grub-dumpbios.in: Remove file.
35314
35315 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35316
35317 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35318 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35319
35320 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35321 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35322 users.
35323
35324 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35325 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35326 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35327 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35328 users.
35329
35330 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35331
35332 * term/tparm.c: Switch to GPLv3.
35333
35334 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35335
35336 * include/grub/i386/cpuid.h: Add header protection.
35337
35338 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35339
35340 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35341
35342 * include/grub/i386/cpuid.h: New file.
35343 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35344 (has_longmode): Rename to ...
35345 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35346 `static' attribute.
35347 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35348 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35349 on a CPU that doesn't implement AMD64 instruction set.
35350
35351 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35352
35353 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35354 that version.texi is rebuilt on version number changes.
35355
35356 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35357
35358 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35359 Fixes bug #27602.
35360
35361 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35362
35363 * util/i386/pc/grub-install.in: Source
35364 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35365 that the --grub-probe option will work.
35366 * util/sparc64/ieee1275/grub-install.in: Likewise.
35367
35368 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35369
35370 * configure.ac: Bump version to 1.97~beta4.
35371
35372 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35373
35374 Resync grub-mkdevicemap in x86_64-efi.
35375
35376 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35377 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35378 `util/devicemap.c'.
35379
35380 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35381
35382 * util/grub-editenv.c (create_envblk_file): Write new block with a
35383 .new suffix and then rename it into place, to ensure atomic
35384 creation.
35385
35386 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35387
35388 Do not automatically install headers.
35389
35390 * Makefile.in (include_DATA): Remove. Update all users.
35391
35392 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35393
35394 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35395 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35396
35397 * util/osdetect.lua: Remove.
35398 * script/lua/lauxlib.c: Likewise.
35399 * script/lua/ldebug.c: Likewise.
35400 * script/lua/grub_main.c: Likewise.
35401 * script/lua/lauxlib.h: Likewise.
35402 * script/lua/ldebug.h: Likewise.
35403 * script/lua/ltablib.c: Likewise.
35404 * script/lua/liolib.c: Likewise.
35405 * script/lua/lstrlib.c: Likewise.
35406 * script/lua/lualib.h: Likewise.
35407 * script/lua/ldo.c: Likewise.
35408 * script/lua/ldump.c: Likewise.
35409 * script/lua/ldo.h: Likewise.
35410 * script/lua/loslib.c: Likewise.
35411 * script/lua/lundump.c: Likewise.
35412 * script/lua/grub_lib.c: Likewise.
35413 * script/lua/ldblib.c: Likewise.
35414 * script/lua/lundump.h: Likewise.
35415 * script/lua/lmem.c: Likewise.
35416 * script/lua/grub_lib.h: Likewise.
35417 * script/lua/lmathlib.c: Likewise.
35418 * script/lua/lstate.c: Likewise.
35419 * script/lua/ltm.c: Likewise.
35420 * script/lua/lvm.c: Likewise.
35421 * script/lua/lmem.h: Likewise.
35422 * script/lua/lstate.h: Likewise.
35423 * script/lua/ltm.h: Likewise.
35424 * script/lua/ltable.c: Likewise.
35425 * script/lua/lvm.h: Likewise.
35426 * script/lua/llex.c: Likewise.
35427 * script/lua/lgc.c: Likewise.
35428 * script/lua/grub_lua.h: Likewise.
35429 * script/lua/loadlib.c: Likewise.
35430 * script/lua/lfunc.c: Likewise.
35431 * script/lua/lopcodes.c: Likewise.
35432 * script/lua/lparser.c: Likewise.
35433 * script/lua/ltable.h: Likewise.
35434 * script/lua/llex.h: Likewise.
35435 * script/lua/lgc.h: Likewise.
35436 * script/lua/lfunc.h: Likewise.
35437 * script/lua/lbaselib.c: Likewise.
35438 * script/lua/lopcodes.h: Likewise.
35439 * script/lua/lparser.h: Likewise.
35440 * script/lua/lzio.c: Likewise.
35441 * script/lua/linit.c: Likewise.
35442 * script/lua/lobject.c: Likewise.
35443 * script/lua/llimits.h: Likewise.
35444 * script/lua/lstring.c: Likewise.
35445 * script/lua/lzio.h: Likewise.
35446 * script/lua/lapi.c: Likewise.
35447 * script/lua/lcode.c: Likewise.
35448 * script/lua/lua.h: Likewise.
35449 * script/lua/lobject.h: Likewise.
35450 * script/lua/lstring.h: Likewise.
35451 * script/lua/lapi.h: Likewise.
35452 * script/lua/lcode.h: Likewise.
35453 * script/lua/luaconf.h: Likewise.
35454
35455 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35456
35457 * docs/grub.texi (Command-line and menu entry commands): Document
35458 date and echo commands.
35459
35460 2009-09-24 Pavel Roskin <proski@gnu.org>
35461
35462 * include/grub/kernel.h (struct grub_module_header): Remove
35463 `grub_module_header_types'. Make `type' unsigned. Make `size'
35464 32-bit on all platforms.
35465 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35466 8-bit field. Use grub_host_to_target32() for `size'.
35467 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35468 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35469 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35470
35471 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35472
35473 Fix "lost keypress" bug in at_keyboard.
35474
35475 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35476 Checks for readyness of input buffer (without flushing it).
35477 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35478 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35479
35480 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35481
35482 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35483 size check within GRUB_MACHINE_PCBIOS section.
35484
35485 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35486
35487 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35488 return value.
35489 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35490 KEYBOARD_ISREADY check.
35491 (grub_at_keyboard_checkkey): Rename to ...
35492 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35493 Remove gratuitous cast.
35494
35495 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35496
35497 * configure.ac: Call AC_PROG_MKDIR_P.
35498 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35499 version.texi in $(builddir) rather than $(srcdir).
35500 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35501 to makeinfo's @include search path.
35502
35503 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35504
35505 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35506
35507 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35508
35509 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35510 for `*.dpkg-new'.
35511
35512 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35513
35514 Build info documentation. Some code borrowed from Automake.
35515
35516 * configure.ac: Check for makeinfo.
35517 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35518 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35519 docs/version.texi.
35520 (MOSTLYCLEANFILES): Add vti.tmp.
35521 (docs/version.texi, docs/stamp-vti): Update automatically.
35522 (docs/grub.info): Build info documentation. Use --force and ignore
35523 errors for now.
35524 (all-local): Add $(INFOS).
35525 (install-local): Install info files.
35526 (uninstall): Uninstall info files.
35527 * docs/version.texi: Remove from revision control. This file is
35528 automatically generated on build now.
35529 * gendistlist.sh: Add `*.info'.
35530
35531 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35532
35533 * kern/term.c: Fix indentation.
35534
35535 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35536
35537 * util/hostdisk.c: Fix a comment.
35538
35539 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35540
35541 Fix regression introduced in r2539.
35542
35543 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35544 to 0xA1.
35545
35546 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35547
35548 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35549 os-prober. Under normal operation, it does not print anything to
35550 stderr; if it does, we need to debug it, and throwing away stderr
35551 makes that excessively difficult.
35552
35553 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35554
35555 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35556
35557 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35558
35559 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35560 AC_LANG_PROGRAM from autoconf.
35561 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35562 prototypes (fixes warning).
35563
35564 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35565 `--disable-werror' was used.
35566
35567 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35568
35569 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35570 uninitialized `lastaddr'.
35571
35572 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35573
35574 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35575
35576 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35577
35578 * commands/test.c (get_fileinfo): Return immediately if
35579 grub_fs_probe fails.
35580
35581 2009-09-14 José Martínez <xosemp@gmail.com>
35582
35583 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35584
35585 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35586
35587 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35588 output.
35589
35590 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35591
35592 * configure.ac: Remove --enable-grub-pe2elf. Only build
35593 grub-pe2elf when needed by the build system itself.
35594 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35595
35596 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35597
35598 * configure.ac: Bump version to 1.97~beta3.
35599 * docs/version.texi: Likewise.
35600
35601 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35602
35603 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35604 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35605 from here ...
35606 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35607 (grub_linux_setup_video): ... to here (with some adjustments).
35608
35609 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35610
35611 Fix memory corruption issue (spotted by Colin Watson).
35612
35613 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35614 causing returned size to be stored in an incorrect memory location.
35615 Fix use of uninitialized value when storing the returned size.
35616
35617 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35618
35619 Change clean rules to properly remove files
35620
35621 * genmk.rb: add new clean rules
35622 * Makefile.in (clean): add the new targets
35623 (mostlyclean): likewise
35624
35625 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35626
35627 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35628 to grub_uint64_t.
35629 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35630 non-resident files.
35631
35632 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35633
35634 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35635 part of bug #27349.
35636
35637 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35638
35639 * util/grub-mkconfig.in: Make the created config mode 400 and
35640 print a warning if it fails.
35641
35642 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35643
35644 * util/grub.d/40_custom.in: Ask user to type custom entries below
35645 comment, rather than below 'exec tail' line.
35646
35647 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35648
35649 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35650 visible in grub.cfg.
35651
35652 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35653
35654 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35655 file.
35656
35657 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35658
35659 * docs/grub.cfg: Add an example menu entry for memtest86+.
35660
35661 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35662
35663 * config.guess: Update to latest version from config git.
35664 * config.sub: Likewise.
35665
35666 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35667
35668 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35669 unknown-command case. Fixes bug #27320.
35670
35671 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35672
35673 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35674 `help' if the command exists.
35675
35676 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35677
35678 * INSTALL: Require GCC 4.1.3 or later.
35679
35680 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35681
35682 * Makefile.in (RMKFILES): add i386-qemu.rmk
35683 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35684 $(srcdir)/stamp-h.in
35685
35686 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35687
35688 * util/grub-probe.c (probe): Comment out buggy codepath, which
35689 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35690 should be re-enabled after 1.97.
35691
35692 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35693
35694 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35695 find searches for.
35696
35697 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35698
35699 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35700 unnecessary calls to grub_error.
35701
35702 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35703
35704 * NEWS: Mention `keystatus' and Unicode fonts.
35705
35706 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35707
35708 * configure.ac: Bump version to 1.97~beta2.
35709 * docs/version.texi: Likewise.
35710
35711 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35712
35713 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35714 containing unwind information in some cases where it previously did
35715 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35716 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35717 discussion.
35718
35719 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35720
35721 Embedding loadenv module into grub-emu
35722
35723 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35724 commands/loadenv.c
35725 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35726 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35727 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35729 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35730 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35731
35732 2009-09-03 Magnus Granberg <zorry@ume.nu>
35733
35734 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35735 include -fPIE in the default specs.
35736 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35737 to TARGET_CFLAGS.
35738
35739 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35740
35741 * INSTALL: Note that GNU Bison 2.3 or later is required.
35742
35743 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35744
35745 * kern/i386/pc/startup.S: Fix typo.
35746
35747 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35748
35749 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35750 according to GCS.
35751
35752 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35753
35754 * docs/grub.texi (Naming convention): Describe one-based partition
35755 numbering.
35756 (Device syntax): Likewise.
35757 (File name syntax): Likewise.
35758 (Block list syntax): Likewise.
35759 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35760 menu.lst.
35761 (File name syntax): Likewise.
35762 (Command-line and menu entry commands): Document acpi, blocklist,
35763 crc, export, insmod, keystatus, ls, set, and unset commands.
35764
35765 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35766
35767 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35768 to avoid implying that only one of --shift, --ctrl, or --alt may be
35769 used.
35770
35771 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35772
35773 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35774 rather than comparing against S_IFREG, which will almost never work.
35775
35776 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35777
35778 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35779 (write_blocklists): Likewise.
35780
35781 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35782
35783 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35784 argument to grub_printf.
35785
35786 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35787
35788 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35789 non GNU test.
35790
35791 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35792
35793 * kern/file.c (grub_file_read): Spelling fix
35794
35795 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35796
35797 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35798 loading of headers in some cases.
35799
35800 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35801
35802 * configure.ac: Bump version to 1.97~beta1.
35803 * docs/version.texi: Likewise.
35804
35805 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35806
35807 * include/grub/i386/xnu.h: Add license header.
35808 include grub/err.h explicitly.
35809
35810 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35811
35812 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35813 to `ufs' in the vfs.root.mountfrom kernel parameter.
35814
35815 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35816
35817 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35818
35819 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35820 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35821
35822 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35823 `ARRAY_SIZE' macro.
35824
35825 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35826
35827 * kern/file.c (grub_file_read): Check offset.
35828 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35829 * fs/jfs.c (grub_jfs_read_file): Likewise.
35830 * fs/ntfs.c (grub_ntfs_read): Likewise.
35831 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35832 * fs/minix.c (grub_minix_read_file): Correct offset check.
35833 * fs/ufs.c (grub_ufs_read_file): Likewise.
35834
35835 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35836
35837 * term/i386/pc/console.c (bios_data_area): Cast
35838 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35839
35840 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35841
35842 1-bit optimised blitters.
35843
35844 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35845 prototype.
35846 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35847 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35848 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35849 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35850 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35851 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35852 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35853 function.
35854 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35855 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35856 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35857 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35858 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35859 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35860 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35861 when possible.
35862 * video/video.c (grub_video_get_blit_format): Return
35863 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35864
35865 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35866
35867 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35868 the first argument to grub_printf.
35869
35870 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35871 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35872
35873 Add `getkeystatus' terminal method. Add a new `keystatus' command
35874 to query it.
35875
35876 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35877 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35878 modifier key bitmasks.
35879 (struct grub_term_input): Add `getkeystatus' member.
35880 (grub_getkeystatus): Add prototype.
35881 * kern/term.c (grub_getkeystatus): New function.
35882
35883 * include/grub/i386/pc/memory.h
35884 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35885 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35886 Data Area layout.
35887 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35888 (grub_console_term_input): Set `getkeystatus' member.
35889 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35890 constants.
35891 (grub_usb_keyboard_getreport): Likewise.
35892 (grub_usb_keyboard_checkkey): Likewise.
35893 (grub_usb_keyboard_getkeystatus): New function.
35894 (grub_usb_keyboard_term): Set `getkeystatus' member.
35895
35896 * commands/keystatus.c: New file.
35897 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35898 (keystatus_mod_SOURCES): New variable.
35899 (keystatus_mod_CFLAGS): Likewise.
35900 (keystatus_mod_LDFLAGS): Likewise.
35901 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35902 commands/keystatus.c.
35903 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35904 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35905 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35906 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35907 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35908 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35909
35910 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35911
35912 Split befs.mod and afs.mod into *_be.mod and *.mod
35913
35914 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35915 (grub_fstest_SOURCES): Likewise.
35916 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35917 (afs_be_mod_SOURCES): New variable.
35918 (afs_be_mod_CFLAGS): Likewise.
35919 (afs_be_mod_LDFLAGS): Likewise.
35920 (befs_be_mod_SOURCES): Likewise.
35921 (befs_be_mod_CFLAGS): Likewise.
35922 (befs_be_mod_LDFLAGS): Likewise.
35923 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35924 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35925 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35926 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35927 (grub_emu_SOURCES): Likewise.
35928 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35929 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35930 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35931 * fs/afs_be.c: New file.
35932 * fs/befs_be.c: New file.
35933 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35934 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35935 (U16): Replaced with ...
35936 (grub_afs_to_cpu16): ...this. All users updated.
35937 (U32): Replaced with ...
35938 (grub_afs_to_cpu32): ...this. All users updated.
35939 (U64): Replaced with ...
35940 (grub_afs_to_cpu64): ...this. All users updated.
35941 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35942 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35943 (grub_afs_validate_sblock): Check only one endianness.
35944 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35945 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35946 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35947 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35948 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35949 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35950 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35951 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35952
35953 2009-08-26 Bean <bean123ch@gmail.com>
35954
35955 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35956 64-bit number.
35957 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35958 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35959 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35960
35961 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35962
35963 NetBSD memory map support.
35964
35965 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35966 (grub_netbsd_btinfo_mmap_header): New structure.
35967 (grub_netbsd_btinfo_mmap_entry): Likewise.
35968 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35969
35970 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35971
35972 Enable bsd.mod on coreboot.
35973
35974 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35975 (bsd_mod_SOURCES): New variable.
35976 (bsd_mod_CFLAGS): Likewise.
35977 (bsd_mod_LDFLAGS): Likewise.
35978 (bsd_mod_ASFLAGS): Likewise.
35979 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35980 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35981
35982 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35983
35984 Cleanup NetBSD root support.
35985
35986 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35987 grub_bsd_get_device.
35988 Fix typo.
35989
35990 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35991
35992 * util/grub.d/00_header.in: Move check for the video backend of
35993 gfxterm from here ...
35994 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35995 a suitable video backend.
35996
35997 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35998
35999 Fix breakage in grub-setup.
36000
36001 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36002 "msdos_partition_map".
36003
36004 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36005
36006 Fix breakage in normal/auth.c.
36007
36008 * normal/auth.c (grub_iswordseparator): New function.
36009
36010 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
36011
36012 Authentication support.
36013
36014 * commands/password.c: New file.
36015 * conf/common.rmk (pkglib_MODULES): Add password.mod.
36016 (password_mod_SOURCES): New variable.
36017 (password_mod_CFLAGS): Likewise.
36018 (password_mod_LDFLAGS): Likewise.
36019 (normal_mod_SOURCES): Add normal/auth.c.
36020 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36021 normal/auth.c.
36022 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36023 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36024 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36025 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36026 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36027 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36028 * include/grub/auth.h: New file.
36029 * include/grub/err.h (grub_err_t): New enum value
36030 GRUB_ERR_ACCESS_DENIED.
36031 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36032 'users'.
36033 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36034 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36035 users updated.
36036 * normal/auth.c: New file.
36037 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36038 (grub_cmdline_run): Don't allow to go to command line without
36039 authentication.
36040 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36041 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36042 menuentry without superuser rights.
36043 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36044 user isn't a superuser.
36045
36046 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36047
36048 Save space by inlining misc.c functions.
36049
36050 * kern/misc.c (grub_iswordseparator): Made static.
36051 * kern/misc.c (grub_strcat): Moved from here ...
36052 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36053 * kern/misc.c (grub_strncat): Moved from here ...
36054 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36055 * kern/misc.c (grub_strcasecmp): Moved from here ...
36056 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36057 * kern/misc.c (grub_strncasecmp): Moved from here ...
36058 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36059 * kern/misc.c (grub_isalpha): Moved from here ...
36060 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36061 * kern/misc.c (grub_isdigit): Moved from here ...
36062 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36063 * kern/misc.c (grub_isgraph): Moved from here ...
36064 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36065 * kern/misc.c (grub_tolower): Moved from here ...
36066 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36067
36068 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36069
36070 * script/sh/function.c (grub_script_function_find): Cut error message
36071 not to flood terminal.
36072 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36073 limit.
36074 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36075
36076 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36077
36078 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36079 `report' grub_uint8_t *.
36080 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36081 Use a 50-millisecond timeout rather than just repeating
36082 grub_usb_keyboard_getreport 50 times.
36083 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36084
36085 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36086
36087 Rename *_partition_map to part_*
36088
36089 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36090 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36091 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36092 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36093 All users updated.
36094 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36095 All users updated.
36096 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36097 * util/grub-probe.c (probe_partmap): Don't transform partition name
36098 to get module name.
36099
36100 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36101
36102 Fix OpenBSD and NetBSD support.
36103
36104 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36105 memory address conflict.
36106 (OPENBSD_MMAP_ACPI): New definition.
36107 (OPENBSD_MMAP_NVS): Likewise.
36108 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36109 and OPENBSD_MMAP_NVS.
36110 Add memory map terminator
36111 Explicit cast when calling grub_unix_real_boot.
36112 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36113
36114 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36115
36116 Let user specify NetBSD root device.
36117
36118 * loader/i386/bsd.c (netbsd_root): New variable.
36119 (netbsd_opts): New option 'root'.
36120 (NETBSD_ROOT_ARG): New macro.
36121 (grub_netbsd_boot): Use 'netbsd_root'.
36122 (grub_bsd_unload): Free 'netbsd_root'.
36123 (grub_cmd_netbsd): Fill 'netbsd_root'.
36124
36125 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36126
36127 Support for 64-bit NetBSD.
36128
36129 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36130 point when booting non-FreeBSD.
36131
36132 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36133
36134 Support --no-smp and --no-acpi for NetBSD.
36135
36136 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36137 (NETBSD_AB_NOACPI): Likewise.
36138 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36139 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36140
36141 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36142
36143 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36144 errors.
36145 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36146 errors. Call grub_error when needed.
36147
36148 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36149
36150 * commands/search.c (search_fs): Try searching without autoload first.
36151 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36152 filesystem module explicitly for faster booting.
36153
36154 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36155
36156 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36157
36158 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36159
36160 * util/grub.d/30_os-prober.in: Disable os-prober if
36161 `GRUB_DISABLE_OS_PROBER' was set to true.
36162
36163 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36164
36165 * partmap/pc.c: Rename to ...
36166 * partmap/msdos.c: ... this. Update all users.
36167 (grub_pc_partition_map): Rename to ...
36168 (grub_msdos_partition_map): ... this. Update all users.
36169
36170 * parttool/pcpart.c: Rename to ...
36171 * parttool/msdospart.c: ... this. Update all users.
36172
36173 * include/grub/pc_partition.h: Rename to ...
36174 * include/grub/msdos_partition.h: ... this. Update all users.
36175 (grub_pc_partition_bsd_entry): Rename to ...
36176 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36177 (grub_pc_partition_disk_label): Rename to ...
36178 (grub_msdos_partition_disk_label): ... this. Update all users.
36179 (grub_pc_partition_entry): Rename to ...
36180 (grub_msdos_partition_entry): ... this. Update all users.
36181 (grub_pc_partition_mbr): Rename to ...
36182 (grub_msdos_partition_mbr): ... this. Update all users.
36183 (grub_pc_partition): Rename to ...
36184 (grub_msdos_partition): ... this. Update all users.
36185 (grub_pc_partition_is_empty): Rename to ...
36186 (grub_msdos_partition_is_empty): ... this. Update all users.
36187 (grub_pc_partition_is_extended): Rename to ...
36188 (grub_msdos_partition_is_extended): ... this. Update all users.
36189 (grub_pc_partition_is_bsd): Rename to ...
36190 (grub_msdos_partition_is_bsd): ... this. Update all users.
36191
36192 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36193 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36194 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36195 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36196 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36197 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36198 (gpt_mod_LDFLAGS): Rename to ...
36199 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36200 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36201 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36202 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36203 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36204 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36205 (part_gpt_mod_LDFLAGS): ... this.
36206 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36207 `pcpart.mod' to `msdospart.mod'.
36208 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36209 to ...
36210 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36211 (msdospart_mod_LDFLAGS): ... this.
36212
36213 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36214
36215 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36216 (openbsd_opts): Likewise.
36217 (netbsd_opts): Likewise.
36218 (freebsd_flags): Added 0 terminator.
36219 (openbsd_flags): Likewise.
36220 (netbsd_flags): Likewise.
36221 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36222 (grub_cmd_freebsd): Transformed into extended command.
36223 (grub_cmd_openbsd): Likewise.
36224 (grub_cmd_netbsd): Likewise.
36225 (cmd_freebsd): Changed type to grub_extcmd_t.
36226 (cmd_openbsd): Likewise.
36227 (cmd_netbsd): Likewise.
36228 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36229 grub_cmd_openbsd as extended commands.
36230 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36231 cmd_netbsd and cmd_openbsd
36232
36233 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36234
36235 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36236
36237 2009-08-21 Pavel Roskin <proski@gnu.org>
36238
36239 * Makefile.in (install-local): When checking if a file is in the
36240 build directory, use "test -e" to detect symlinks.
36241
36242 * Makefile.in (install-local): Remove all files in
36243 $(DESTDIR)$(pkglibdir) before installing new files there.
36244
36245 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36246
36247 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36248 grub-mkelfimage.
36249
36250 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36251
36252 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36253 explicitly specified by the user.
36254
36255 2009-08-18 Pavel Roskin <proski@gnu.org>
36256
36257 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36258 grub_uint8_t pointer for data.
36259 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36260 Likewise.
36261 * video/fb/fbutil.c: Remove unnecessary casts.
36262
36263 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36264
36265 VBE cleanup.
36266
36267 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36268 (grub_vbe_set_video_mode): Save active mode info
36269 only after setting the mode.
36270 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36271 second argument.
36272
36273 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36274
36275 Rename variables for clarity.
36276
36277 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36278 (active_vbe_mode_info): ... this. All users updated.
36279 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36280 All users updated.
36281 (initial_mode): Rename to ...
36282 (initial_vbe_mode): ... this. All users updated.
36283 (mode_in_use): Rename to ..
36284 (vbe_mode_in_use): ... this. All users updated.
36285 (mode_list): Rename to ..
36286 (vbe_mode_list): ... this. All users updated.
36287 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36288 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36289 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36290 'mode_list_size' to 'vbe_mode_list_size'.
36291 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36292 'best_mode_info' to 'best_vbe_mode_info' and
36293 'best_mode' to 'best_vbe_mode'
36294
36295 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36296
36297 Remove duplicate grub_video_fb_get_video_ptr.
36298
36299 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36300 (grub_video_fb_get_video_ptr): ... this.
36301 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36302 * video/fb/fbutil.c: Add comment about addressing.
36303 (get_data_ptr): Rename to ...
36304 (grub_video_fb_get_video_ptr): ... this. All users updated.
36305 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36306
36307 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36308
36309 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36310 grub_dprintf() that was just added.
36311
36312 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36313
36314 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36315 (DEFAULT_VIDEO_MODE): Remove macros.
36316 (grub_linux_boot): Remove assumption that Linux has FB support,
36317 and use "text" as default video mode.
36318
36319 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36320
36321 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36322 grub_dprintf.
36323 * fs/fat.c (grub_fat_read_data): Likewise.
36324
36325 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36326
36327 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36328 payload.
36329 (grub_module): Likewise.
36330
36331 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36332
36333 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36334 mbi->cmdline but free playground.
36335
36336 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36337
36338 Handle group offset on UFS1.
36339
36340 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36341 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36342
36343 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36344
36345 Split ufs.mod into ufs1.mod and ufs2.mod.
36346
36347 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36348 (grub_fstest_SOURCES): Likewise.
36349 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36350 (ufs_mod_SOURCES): Remove.
36351 (ufs_mod_CFLAGS): Likewise.
36352 (ufs_mod_LDFLAGS): Likewise.
36353 (ufs1_mod_SOURCES): New variable.
36354 (ufs1_mod_CFLAGS): Likewise.
36355 (ufs1_mod_LDFLAGS): Likewise.
36356 (ufs2_mod_SOURCES): New variable.
36357 (ufs2_mod_CFLAGS): Likewise.
36358 (ufs2_mod_LDFLAGS): Likewise.
36359 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36360 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36361 Likewise.
36362 (grub_emu_SOURCES): Likewise.
36363 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36364 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36365 (grub_setup_SOURCES): Likewise.
36366 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36367 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36368 (grub_setup_SOURCES): Likewise.
36369 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36370 Likewise.
36371 * fs/ufs2.c: New file.
36372 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36373
36374 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36375
36376 Framebuffer split.
36377
36378 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36379 subsystem at the end.
36380 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36381 (video_fb_mod_SOURCES): New variable.
36382 (video_fb_mod_CFLAGS): Likewise.
36383 (video_fb_mod_LDFLAGS): Likewise.
36384 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36385 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36386 * video/i386/pc/vbeblit.c: Moved from here ...
36387 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36388 * video/i386/pc/vbefill.c: Moved from here ...
36389 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36390 * video/i386/pc/vbeutil.c: Moved from here ...
36391 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36392 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36393 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36394 * include/grub/i386/pc/vbefill.h: Moved from here ...
36395 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36396 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36397 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36398 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36399 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36400 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36401 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36402 (grub_video_adapter): Added 'get_info_and_fini'.
36403 (grub_video_get_info_and_fini): New prototype.
36404 (grub_video_set_mode): make modestring const char *.
36405 * loader/i386/linux.c (grub_linux_setup_video): Use
36406 grub_video_get_info_and_fini.
36407 (grub_linux_boot): Move modesetting just before booting.
36408 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36409 grub_video_get_info_and_fini.
36410 * video/i386/pc/vbe.c: Moved framebuffer part ...
36411 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36412 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36413 grub_video_fbstd_colors and grub_video_fb_set_palette.
36414 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36415 grub_video_fb_init.
36416 (grub_video_vbe_fini): Use grub_video_fb_fini.
36417 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36418 render_target and use grub_video_fb_set_active_render_target and
36419 grub_video_fb_set_palette.
36420 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36421 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36422 (grub_video_vbe_adapter): Use framebuffer.
36423 * video/video.c (grub_video_get_info_and_fini): New function.
36424 (grub_video_set_mode): Make modestring const char *.
36425 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36426 values are already initialised.
36427
36428 2009-08-14 Pavel Roskin <proski@gnu.org>
36429
36430 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36431 ABS and APPLE_CC.
36432 * boot/i386/pc/diskboot.S: Likewise.
36433 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36434 sectors allow compilation on MacOSX.
36435 * conf/i386-pc.rmk: Enable unconditional compilation of
36436 lnxboot.img.
36437
36438 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36439
36440 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36441 * util/grub.d/00_header.in: Enter interruptible sleep if
36442 GRUB_HIDDEN_TIMEOUT is set.
36443
36444 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36445
36446 * include/grub/symbol.h: Add the LOCAL macro.
36447 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36448 starting with "L_".
36449
36450 2009-08-13 Pavel Roskin <proski@gnu.org>
36451
36452 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36453 any modern compilers we support.
36454
36455 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36456 Use local labels starting with "L_" so that Apple assembler
36457 knows they are local.
36458
36459 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36460
36461 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36462 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36463 (bsd_kernel_types): ... this enum.
36464
36465 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36466 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36467 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36468
36469 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36470 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36471 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36472 messages.
36473
36474 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36475
36476 * util/grub-dumpdevtree: Moved from here ...
36477 * util/i386/efi/grub-dumpdevtree: ... to here.
36478 (hexify): New function. Converts a string to its hex version.
36479 Generate hex versions of "efi" and "device-properties" by calling
36480 hexify() on the ASCII strings rather than by hardcoding numbers.
36481
36482 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36483
36484 * fs/jfs.c: Update copyright year.
36485
36486 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36487
36488 * util/grub.d/00_header.in: Fix a comment.
36489 * util/grub.d/10_linux.in: Likewise.
36490 * util/grub.d/10_windows.in: Likewise.
36491 * util/grub.d/10_hurd.in: Likewise.
36492
36493 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36494
36495 * util/grub-mkconfig.in: Allow the user to specify the used font
36496 with GRUB_FONT.
36497
36498 2009-08-08 Pavel Roskin <proski@gnu.org>
36499
36500 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36501 available, xfs.mod needs it now.
36502
36503 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36504 the "g" modifier in sed when the intention is to strip something
36505 once. This fixes comparison of kernels with multiple dashes.
36506
36507 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36508 on it. Add missing space before closing bracket. Fix
36509 misleading formatting.
36510
36511 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36512
36513 * docs/grub.texi: Major overhaul. Remove all sections that are
36514 specific to GRUB Legacy, or mostly composed of Legacy-specific
36515 information.
36516
36517 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36518
36519 * docs/version.texi: New file. Provides version information for
36520 grub.texi.
36521
36522 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36523
36524 * docs/grub.texi: Update CVS information to SVN.
36525 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36526
36527 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36528
36529 * util/grub-mkconfig.in: Remove a wrong `fi'.
36530
36531 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36532
36533 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36534 (grub_jfs_uuid): New function.
36535 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36536
36537 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36538
36539 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36540 of it to ...
36541 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36542 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36543
36544 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36545
36546 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36547 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36548 Update all users.
36549
36550 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36551 not just "vmlinu[zx]".
36552 Moved from here ...
36553 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36554 all users.
36555
36556 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36557 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36558 all users.
36559
36560 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36561
36562 * util/grub.d/10_freebsd.in: Use an absolute device path for
36563 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36564
36565 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36566
36567 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36568 handling of multiple abstraction modules.
36569
36570 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36571
36572 Fix a bug resulting in black screen when loading Linux using a
36573 packed video mode.
36574
36575 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36576 function.
36577
36578 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36579 (grub_vbe_bios_getset_dac_palette_width): New function.
36580 (grub_vbe_bios_get_dac_palette_width)
36581 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36582 grub_vbe_bios_getset_dac_palette_width()).
36583
36584 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36585 check for return status.
36586 (grub_vbe_get_video_mode_info): When getting information for a packed
36587 mode (<= 8 bpp), obtain DAC palette width using
36588 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36589 {red,green,blue}_mark_size.
36590
36591 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36592
36593 * commands/search.c (options): Fix help output to match actual code.
36594
36595 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36596
36597 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36598 of homegrown code.
36599
36600 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36601
36602 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36603 on XFS or ReiserFS.
36604
36605 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36606
36607 Support Apple partition map with sector size different from 512 bytes.
36608
36609 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36610 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36611 and 'apart.partmap_size'.
36612
36613 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36614 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36615
36616 Fix cpuid command.
36617
36618 * commands/i386/cpuid.c (options): New variable.
36619 (grub_cmd_cpuid): Return real error.
36620 (GRUB_MOD_INIT(cpuid)): Declare options.
36621
36622 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36623
36624 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36625 valid.
36626
36627 2009-07-31 Bean <bean123ch@gmail.com>
36628
36629 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36630 log2_inode.
36631 (grub_fshelp_node): Move inode field to the end.
36632 (grub_xfs_data): Remove inode field.
36633 (grub_xfs_inode_block): Calculate inode size using sblock.
36634 (grub_xfs_inode_offset): Likewise.
36635 (grub_xfs_read_inode): Calculate inode size using sblock.
36636 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36637 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36638 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36639 to match inode size.
36640 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36641 not accessible when data is null.
36642 (grub_xfs_open): Likewise.
36643
36644 2009-07-31 Bean <bean123ch@gmail.com>
36645
36646 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36647 Don't change pv->disk if it's already set.
36648
36649 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36650 (grub_raid_register): ... here.
36651 (grub_raid_rescan): Removed.
36652
36653 * include/grub/raid.h (grub_raid_rescan): Removed.
36654
36655 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36656 (fstest): Replace grub_raid_rescan with module fini function followed
36657 by init function.
36658
36659 * util/grub-probe.c: Add include file <grub/raid.h>.
36660 (probe_raid_level): New function.
36661 (probe): Detect abstraction by walking the disk device, support two
36662 level of abstraction (LVM on RAID) when detecting partition map.
36663
36664 2009-07-31 Pavel Roskin <proski@gnu.org>
36665
36666 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36667 to grub_zalloc(), it was erroneous.
36668 Reported by Bean <bean123ch@gmail.com>
36669
36670 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36671
36672 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36673 embedding zone, not only the first one.
36674
36675 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36676
36677 * term/gfxterm.c (clear_char): New function.
36678 (grub_virtual_screen_setup): Use clear_char.
36679 (scroll_up): Likewise.
36680 (grub_virtual_screen_cls): Likewise.
36681
36682 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36683
36684 * util/deviceiter.c (get_acceleraid_disk_name): New static
36685 function.
36686 (grub_util_iterate_devices): Handle Accelraid devices.
36687 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36688
36689 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36690
36691 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36692 separator for the suggested gfxpayload string (';' collides with the
36693 parser and needs escaping).
36694
36695 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36696
36697 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36698 Clear direction flag before jumping to OS.
36699 (grub_multiboot2_real_boot): Likewise.
36700
36701 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36702
36703 * util/i386/pc/grub-install: Fix parsing of --disk-module
36704 option.
36705
36706 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36707
36708 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36709 when embedding.
36710
36711 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36712
36713 * util/grub-mkconfig.in (package_version): New variable.
36714 Use it do display the version.
36715
36716 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36717
36718 * kern/file.c (grub_file_open): Revert to previous check with
36719 grub_errno.
36720
36721 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36722
36723 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36724 from help line. It's out of sync with code.
36725
36726 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36727
36728 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36729 entries on failed boot.
36730
36731 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36732
36733 * kern/file.c (grub_file_open): Fix an error check.
36734
36735 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36736
36737 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36738 partition map couldn't be identified.
36739
36740 2009-07-23 Pavel Roskin <proski@gnu.org>
36741
36742 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36743 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36744 case of little endian words becomes just an optimization.
36745 Respect const modifier.
36746 (md5_final): Use code that doesn't depend on endianness.
36747
36748 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36749 to avoid loss of upper bits if align is unsigned and shorter
36750 than addr.
36751
36752 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36753
36754 UUID support for UFS
36755
36756 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36757 (grub_ufs_uuid): New function.
36758 (grub_ufs_fs): add .uuid
36759
36760 2009-07-21 Pavel Roskin <proski@gnu.org>
36761
36762 * kern/dl.c (grub_dl_check_header): Make static.
36763
36764 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36765
36766 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36767 add drivemap for Vista. It breaks Windows 7.
36768
36769 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36770
36771 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36772 128 bytes
36773
36774 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36775
36776 Add BFS support
36777
36778 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36779 (grub_fstest_SOURCES): Likewise.
36780 (pkglib_MODULES): Add befs.mod.
36781 (befs_mod_SOURCES): New variable.
36782 (befs_mod_CFLAGS): Likewise.
36783 (befs_mod_LDFLAGS): Likewise.
36784 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36785 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36786 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36787 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36788 (grub_setup_SOURCES): Likewise.
36789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36790 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36791 (grub_setup_SOURCES): Likewise.
36792 * fs/befs.c: New file.
36793 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36794 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36795 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36796 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36797 (B_KEY_INDEX_ALIGN): New declaration.
36798 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36799 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36800 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36801 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36802 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36803 (grub_afs_mount) [MODE_BFS]: Likewise.
36804 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36805 (grub_afs_fs): Use GRUB_AFS_FSNAME
36806 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36807 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36808 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36809 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36810
36811 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36812
36813 * util/getroot.c (find_root_device): Add support for MacOSX.
36814 * util/hostdisk.c: Likewise.
36815
36816 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36817
36818 * font/font.c (find_glyph): Check whether a font is present to avoid
36819 segmentation fault.
36820
36821 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36822
36823 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36824
36825 2009-07-20 Pavel Roskin <proski@gnu.org>
36826
36827 * configure.ac: Trim excessively wordy excuses.
36828
36829 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36830
36831 Add symlink, mtime and label support to AtheFS.
36832
36833 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36834 (grub_afs_iterate_dir): Handle symlinks.
36835 (grub_afs_open): Use grub_afs_read_symlink.
36836 (grub_afs_dir): Likewise.
36837 Pass mtime.
36838 (grub_afs_label): New function.
36839 (grub_afs_fs): Add grub_afs_label.
36840 (grub_afs_read_symlink): New function.
36841
36842 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36843
36844 Fix AtheFS support.
36845
36846 * fs/afs.c: Fix comments style.
36847 (grub_afs_blockrun): Declare as packed.
36848 (grub_afs_datastream): Likewise.
36849 (grub_afs_bnode): Likewise.
36850 (grub_afs_btree): Likewise.
36851 (grub_afs_sblock): Likewise.
36852 Declare `name' as char.
36853 (grub_afs_inode): Declare as packed.
36854 Change void *vnode to grub_uint32_t unused.
36855 (grub_afs_iterate_dir): Check that key_size is positive.
36856 (grub_afs_mount): Don't read superblock twice.
36857 (grub_afs_dir): Don't free node in case of error,
36858 grub_fshelp_find_file already handles this.
36859 (grub_afs_open): Likewise.
36860
36861 2009-07-19 Pavel Roskin <proski@gnu.org>
36862
36863 * Makefile.in: Remove LIBLZO and enable_lzo.
36864 * conf/i386-pc.rmk: Remove lzo support.
36865 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36866 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36867 support.
36868 * kern/i386/pc/lzo1x.S: Remove.
36869 * kern/i386/pc/startup.S: Remove lzo support.
36870 * util/i386/pc/grub-mkimage.c: Likewise.
36871
36872 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36873
36874 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36875 * fs/xfs.c (grub_xfs_dir): Likewise.
36876 * fs/afs.c (grub_afs_dir): Likewise.
36877 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36878 (grub_iso9660_open): Likewise.
36879 * fs/jfs.c (grub_jfs_open): Likewise.
36880 * fs/ext2.c (grub_ext2_dir): Likewise.
36881 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36882 * script/sh/lexer.c (grub_script_yylex): Likewise.
36883
36884 2009-07-16 Pavel Roskin <proski@gnu.org>
36885
36886 * configure.ac: Never add "-c" to CFLAGS.
36887
36888 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36889
36890 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36891 grub_cv_cc_efiemu should be used.
36892
36893 * configure.ac: Typo fixes.
36894
36895 * kern/mm.c (grub_zalloc): New function.
36896 (grub_debug_zalloc): Likewise.
36897 * include/grub/mm.h: Declare grub_zalloc() and
36898 grub_debug_zalloc().
36899 * util/misc.c (grub_zalloc): New function.
36900 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36901 instead of grub_malloc(), remove unneeded initializations.
36902 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36903 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36904 * commands/parttool.c (grub_cmd_parttool): Likewise.
36905 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36906 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36907 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36908 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36909 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36910 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36911 (grub_cmd_efiemu_pnvram): Likewise.
36912 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36913 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36914 (grub_iso9660_iterate_dir): Likewise.
36915 * fs/jfs.c (grub_jfs_opendir): Likewise.
36916 * fs/ntfs.c (list_file): Likewise.
36917 (grub_ntfs_mount): Likewise.
36918 * kern/disk.c (grub_disk_open): Likewise.
36919 * kern/dl.c (grub_dl_load_core): Likewise.
36920 * kern/elf.c (grub_elf_file): Likewise.
36921 * kern/env.c (grub_env_context_open): Likewise.
36922 (grub_env_set): Likewise.
36923 (grub_env_set_data_slot): Likewise.
36924 * kern/file.c (grub_file_open): Likewise.
36925 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36926 * loader/i386/multiboot.c (grub_module): Likewise.
36927 * loader/xnu.c (grub_xnu_create_key): Likewise.
36928 (grub_xnu_create_value): Likewise.
36929 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36930 (read_config_file): Likewise.
36931 * normal/menu_entry.c (make_screen): Likewise.
36932 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36933 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36934 * script/sh/script.c (grub_script_parse): Likewise.
36935 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36936 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36937 * video/readers/png.c (grub_png_output_byte): Likewise.
36938 (grub_video_reader_png): Likewise.
36939
36940 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36941
36942 Enable all targets that can be built by default
36943
36944 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36945 grub-mkfont and grub-fstest if they can be built
36946
36947 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36948
36949 Fix hang and segmentation fault in grub-emu-usb
36950
36951 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36952 * util/usb.c (grub_libusb_devices): likewise
36953 (grub_libusb_init): rename to ...
36954 (GRUB_MOD_INIT (libusb)):...this
36955 (grub_libusb_fini): rename to ..
36956 (GRUB_MOD_FINI (libusb)):...this
36957 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36958 * include/grub/disk.h (grub_raid_init): removed, it's useless
36959 (grub_raid_fini): likewise
36960 (grub_lvm_init): likewise
36961 (grub_lvm_fini): likewise
36962 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36963 by grub_init_all
36964
36965 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36966
36967 Fix libusb
36968
36969 * Makefile.in (LIBUSB): new macro
36970 * genmk.rb (Utility/print_tail): new method
36971 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36972 (top level): call util.print_tail at the end.
36973
36974 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36975
36976 Make FreeBSD accept zpool.cache
36977
36978 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36979 type is /boot/zfs/zpool.cache
36980
36981 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36982
36983 Fix 64-bit efiemu
36984
36985 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36986 correct wrong typedef
36987 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36988
36989 2009-07-15 Pavel Roskin <proski@gnu.org>
36990
36991 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36992 * kern/disk.c (struct grub_disk_cache): Likewise.
36993
36994 * commands/probe.c (options): Typo fix.
36995
36996 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36997 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36998 accordingly.
36999 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37000
37001 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37002 the end of "Error" to make the message more readable.
37003
37004 * boot/i386/pc/boot.S (kernel_segment): Remove.
37005 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37006 for destination.
37007
37008 * boot/i386/pc/boot.S (boot_version): Remove.
37009 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37010 Remove.
37011
37012 * include/grub/i386/pc/boot.h: Sort all offsets.
37013 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37014 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37015 * boot/i386/pc/boot.S: Assert location of every offset listed in
37016 include/grub/i386/pc/boot.h.
37017
37018 2009-07-13 Pavel Roskin <proski@gnu.org>
37019
37020 * include/grub/i386/coreboot/machine.h: Rename
37021 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37022 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37023 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37024
37025 * kern/dl.c: Force native word size to suppress warnings when
37026 compiling grub-emu.
37027
37028 * kern/device.c (grub_device_iterate): Change struct part_ent to
37029 hold the name, not a pointer to it. Use one grub_malloc() per
37030 partition, not two. Free partition_name if grub_malloc() fails.
37031 Set ents to NULL only before grub_partition_iterate() is called.
37032
37033 2009-07-11 Bean <bean123ch@gmail.com>
37034
37035 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37036 childname.
37037
37038 2009-07-10 Bean <bean123ch@gmail.com>
37039 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37040
37041 * kern/ieee1275/openfw.c (grub_children_iterate)
37042 (grub_devalias_iterate): Fix size evaluation for property or path
37043 strings, which was broken since r2132.
37044
37045 2009-07-07 Pavel Roskin <proski@gnu.org>
37046
37047 * commands/search.c (search_file): Merge into ...
37048 (search_fs): ... this. Accept search type as argument.
37049 (grub_cmd_search): Pass search type to search_fs().
37050
37051 * include/grub/util/console.h: New file.
37052 * util/console.c: Use it instead of grub/machine/console.h.
37053 * util/grub-emu.c: Likewise.
37054
37055 * lib/arg.c (find_long_option): Remove.
37056 (find_long): Add `len' argument, make `s' const char *.
37057 (grub_arg_parse): Parse long options in place, not in a
37058 temporary buffer.
37059
37060 2009-07-06 Pavel Roskin <proski@gnu.org>
37061
37062 * commands/search.c (search_fs): Fix potential NULL pointer
37063 dereference.
37064
37065 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37066 function pointer.
37067
37068 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37069
37070 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37071 comparison.
37072
37073 2009-07-05 Pavel Roskin <proski@gnu.org>
37074
37075 * include/grub/i386/linux.h (struct linux_kernel_params):
37076 Restore padding3, it's still needed.
37077
37078 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37079 FreeBSD.
37080 * util/osdetect.lua: Likewise.
37081
37082 2009-07-05 Bean <bean123ch@gmail.com>
37083
37084 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37085
37086 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37087 (grub_lua_getenv): Likewise.
37088 (grub_lua_setenv): Likewise.
37089 (save_errno): New function.
37090 (push_result): Likewise.
37091 (grub_lua_enum_device): Likewise.
37092 (grub_lua_enum_file): Likewise.
37093 (grub_lua_file_open): Likewise.
37094 (grub_lua_file_close): Likewise.
37095 (grub_lua_file_seek): Likewise.
37096 (grub_lua_file_read): Likewise.
37097 (grub_lua_file_getline): Likewise.
37098 (grub_lua_file_getsize): Likewise.
37099 (grub_lua_file_getpos): Likewise.
37100 (grub_lua_file_eof): Likewise.
37101 (grub_lua_file_exist): Likewise.
37102 (grub_lua_add_menu): Likewise.
37103
37104 * script/lua/grub_lua.h (isupper): New inline function.
37105 (islower): Likewise.
37106 (ispunct): Likewise.
37107 (isxdigit): Likewise.
37108 (strcspn): Change to normal function.
37109 (strpbkr): New function declaration.
37110 (memchr): Likewise.
37111
37112 * script/lua/grub_main.c (scan_str): New function.
37113 (strcspn): Likewise.
37114 (strpbrk): Likewise.
37115 (memchr): Likewise.
37116
37117 * script/lua/linit.c (lualibs): Enable the string library.
37118
37119 * util/osdetect.lua: New file.
37120
37121 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37122
37123 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37124 `capabilities' member.
37125
37126 2009-07-02 Pavel Roskin <proski@gnu.org>
37127
37128 * genparttoollist.sh: Add missing newline at the end.
37129
37130 2009-07-01 Pavel Roskin <proski@gnu.org>
37131
37132 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37133
37134 * util/hostdisk.c (open_device): Remove `const' from
37135 `sysctl_size', as sysctlbyname() can change it (in this case it
37136 doesn't actually happen).
37137
37138 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37139 using signed long int constants.
37140
37141 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37142 constant to avoid a warning on FreeBSD.
37143
37144 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37145 where it's needed.
37146
37147 * Makefile.in: Install include/grub/machine symlink.
37148
37149 * Makefile.in: When installing symlinks, use "cp -fR", which
37150 works on FreeBSD and MacOSX.
37151 From Yves Blusseau <cl7m42e02@sneakemail.com>
37152
37153 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37154 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37155
37156 * util/misc.c: Move grub_reboot() and grub_halt() ...
37157 * util/grub-emu.c: ... here. Make main_env static.
37158 * include/grub/util/misc.h: Remove main_env.
37159
37160 * kern/mm.c: Use correct format to print size_t.
37161
37162 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37163 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37164 * kern/powerpc/dl.c: Likewise.
37165 * kern/sparc64/dl.c: Likewise.
37166 * kern/x86_64/dl.c: Likewise.
37167
37168 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37169
37170 Fix grub-emu build on sparc64-ieee1275.
37171
37172 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37173 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37174
37175 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37176
37177 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37178 (grub_reboot, grub_halt): New functions.
37179
37180 * util/i386/pc/misc.c: Delete. Update all users.
37181 * util/sparc64/ieee1275/misc.c: Likewise.
37182 * util/powerpc/ieee1275/misc.c: Likewise.
37183
37184 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37185
37186 * conf/i386.rmk (setjmp_mod_SOURCES)
37187 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37188 * conf/common.rmk (setjmp_mod_SOURCES)
37189 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37190 to use $(target_cpu).
37191 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37192 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37193 * conf/powerpc-ieee1275.rmk: Likewise.
37194 * conf/sparc64-ieee1275.rmk: Likewise.
37195
37196 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37197 $(target_cpu) for kern/$(target_cpu)/dl.c.
37198 * conf/i386-efi.rmk: Likewise.
37199 * conf/i386-ieee1275.rmk: Likewise.
37200 * conf/x86_64-efi.rmk: Likewise.
37201 * conf/i386-coreboot.rmk: Likewise.
37202 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37203 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37204 kern/$(target_cpu)/cache.S.
37205 * conf/sparc64-ieee1275.rmk: Likewise.
37206
37207 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37208
37209 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37210 type to `grub_uint8_t', and adjust `padding9' accordingly.
37211
37212 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37213
37214 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37215
37216 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37217 assembly in final jump, using register constraints.
37218
37219 (grub_linux_boot): For text mode, initialize `have_vga' using
37220 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37221
37222 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37223 right before the final jump.
37224
37225 Set `video_mode' to 0x3.
37226
37227 Document initialization of `video_page', `video_mode' and
37228 `video_ega_bx'.
37229
37230 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37231
37232 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37233 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37234 and set GRUB_LINUX_FLAG_QUIET appropriately.
37235
37236 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37237
37238 Fix build on Debian / sparc.
37239
37240 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37241
37242 2009-06-28 Pavel Roskin <proski@gnu.org>
37243
37244 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37245 fix a warning.
37246
37247 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37248
37249 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37250
37251 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37252 `err'.
37253
37254 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37255
37256 Revert r2338.
37257
37258 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37259 file can't be opened. grub_file_open() is already supposed to set
37260 grub_errno / grub_errmsg appropriately.
37261 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37262
37263 2009-06-27 Pavel Roskin <proski@gnu.org>
37264 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37265
37266 * include/grub/dl.h: Include grub/elf.h.
37267 (struct grub_dl): Add symtab field.
37268 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37269 GRUB_MODULES_MACHINE_READONLY.
37270 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37271 of the header for read-only modules.
37272 (grub_dl_unload): Free mod->symtab for read-only modules.
37273 * kern/i386/dl.c: Use mod->symtab.
37274 * kern/powerpc/dl.c: Likewise.
37275 * kern/sparc64/dl.c: Likewise.
37276 * kern/x86_64/dl.c: Likewise.
37277
37278 * conf/i386-qemu.rmk: New file.
37279 * kern/i386/qemu/startup.S: Likewise.
37280 * kern/i386/qemu/mmap.c: Likewise.
37281 * boot/i386/qemu/boot.S: Likewise.
37282 * include/grub/i386/qemu/time.h: Likewise.
37283 * include/grub/i386/qemu/serial.h: Likewise.
37284 * include/grub/i386/qemu/kernel.h: Likewise.
37285 * include/grub/i386/qemu/console.h: Likewise.
37286 * include/grub/i386/qemu/boot.h: Likewise.
37287 * include/grub/i386/qemu/init.h: Likewise.
37288 * include/grub/i386/qemu/machine.h: Likewise.
37289 * include/grub/i386/qemu/loader.h: Likewise.
37290 * include/grub/i386/qemu/memory.h: Likewise.
37291
37292 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37293 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37294 [qemu] (pkglib_IMAGES): Add `boot.img'.
37295 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37296 [qemu] (boot_img_FORMAT): New variables.
37297 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37298 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37299 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37300 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37301 [qemu] (kernel_img_FORMAT): New variables.
37302
37303 * configure.ac: Recognise `i386-qemu'.
37304
37305 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37306 (for no compression).
37307 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37308 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37309 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37310 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37311 ifdefs).
37312
37313 2009-06-27 Pavel Roskin <proski@gnu.org>
37314
37315 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37316 read.
37317 * efiemu/prepare32.c: Likewise.
37318 * efiemu/prepare64.c: Likewise.
37319
37320 2009-06-26 Pavel Roskin <proski@gnu.org>
37321
37322 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37323 * include/grub/elf.h: Define symbols without "32" or "64" based
37324 on GRUB_TARGET_WORDSIZE.
37325 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37326 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37327 ELF definitions.
37328 * efiemu/loadcore64.c: Likewise.
37329 * loader/i386/bsd32.c: Likewise.
37330 * loader/i386/bsd64.c: Likewise.
37331 * kern/dl.c: Remove own ELF definitions.
37332 * util/i386/efi/grub-mkimage.c: Likewise.
37333
37334 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37335
37336 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37337 segment 0x0 unconditionally, because the reference generated by
37338 GAS is an absolute address.
37339
37340 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37341
37342 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37343 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37344
37345 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37346
37347 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37348 indexes. Check for -f explicitly.
37349 (search_file): Improve error message.
37350 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37351
37352 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37353
37354 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37355 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37356
37357 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37358
37359 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37360 * conf/i386-ieee1275.rmk: Likewise.
37361 * conf/i386-coreboot.rmk: Likewise.
37362
37363 * kern/i386/pc/startup.S (grub_stop): Remove function.
37364 * kern/i386/ieee1275/startup.S: Likewise.
37365 * kern/i386/coreboot/startup.S: Likewise.
37366 * kern/i386/misc.S (grub_stop): New function.
37367
37368 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37369
37370 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37371 * kern/i386/realmode.S (real_to_prot): ... to here.
37372
37373 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37374
37375 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37376 with `kernel.img'.
37377 (kernel_elf_SOURCES): Rename to ...
37378 (kernel_img_SOURCES): ... this.
37379 (kernel_elf_HEADERS): Rename to ...
37380 (kernel_img_HEADERS): ... this. Update all users.
37381 (kernel_elf_ASFLAGS): Rename to ...
37382 (kernel_img_ASFLAGS): ... this.
37383 (kernel_elf_CFLAGS): Rename to ...
37384 (kernel_img_CFLAGS): ... this.
37385 (kernel_elf_LDFLAGS): Rename to ...
37386 (kernel_img_LDFLAGS): ... this.
37387 * conf/i386-coreboot.rmk: Likewise.
37388 * conf/powerpc-ieee1275.rmk: Likewise.
37389
37390 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37391 with "kernel.img".
37392
37393 2009-06-21 Pavel Roskin <proski@gnu.org>
37394
37395 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37396 to match nested functions.
37397 * loader/sparc64/ieee1275/linux.c: Likewise.
37398
37399 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37400
37401 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37402
37403 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37404 all i386 platforms.
37405
37406 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37407
37408 Fix asm file handling on ELF, and remove workarounds.
37409
37410 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37411 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37412 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37413 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37414
37415 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37416
37417 Load BSD ELF modules
37418
37419 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37420 and loader/i386/bsd64.c
37421 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37422 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37423 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37424 (grub_freebsd_load_elfmodule32): New declaration
37425 (grub_freebsd_load_elfmoduleobj64): Likewise
37426 (grub_freebsd_load_elf_meta32): Likewise
37427 (grub_freebsd_load_elf_meta64): Likewise
37428 (grub_freebsd_add_meta): Likewise
37429 (grub_freebsd_add_meta_module): Likewise
37430 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37431 (grub_freebsd_add_meta_module): Likewise and move module-specific
37432 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37433 (grub_cmd_freebsd): Add elf-kernel specific parts
37434 based on grub_freebsd_add_meta_module
37435 (grub_cmd_freebsd_module): Add type parsing moved from
37436 grub_freebsd_add_meta_module
37437 (grub_cmd_freebsd_module_elf): New function
37438 (cmd_freebsd_module_elf): New variable
37439 (GRUB_MOD_INIT): Register freebsd_module_elf
37440 * loader/i386/bsd32.c: New file
37441 * loader/i386/bsd64.c: Likewise
37442 * loader/i386/bsdXX.c: Likewise
37443 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37444 (grub_elf64_load): Likewise
37445 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37446 All users updated
37447 (grub_elf64_load_hook_t): Likewise
37448
37449 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37450
37451 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37452 variable.
37453 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37454 don't write a menu entry for recovery mode.
37455
37456 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37457
37458 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37459 after it's no longer needed.
37460
37461 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37462
37463 * include/grub/i386/loader.h (grub_linux_prot_size)
37464 (grub_linux_tmp_addr, grub_linux_real_addr)
37465 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37466 GRUB_MACHINE_PCBIOS.
37467 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37468 common grub_util_info() call to ...
37469 (generate_image): ... here.
37470 Fix use of uninitialized memory, comparison of signed with
37471 unsigned integers and memory leak.
37472 Remove bogus module address message.
37473
37474 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37475
37476 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37477 grub_raid_register
37478 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37479
37480 2009-06-19 Pavel Roskin <proski@gnu.org>
37481
37482 * configure.ac: Remove stray AC_MSG_CHECKING.
37483
37484 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37485
37486 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37487
37488 2009-06-18 Pavel Roskin <proski@gnu.org>
37489
37490 * conf/common.rmk: Add fs_file.mod.
37491 * disk/fs_file.c: New file.
37492 * include/grub/disk.h (enum grub_disk_dev_id): Add
37493 GRUB_DISK_DEVICE_FILE_ID.
37494
37495 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37496
37497 Fix build with Apple's toolchain. Part 2
37498
37499 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37500 a fake start
37501
37502 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37503
37504 Fix build with Apple's toolchain. Part 1
37505
37506 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37507 for long calls
37508 * configure.ac: remove a leftover AC_MSG_RESULT
37509 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37510 Apple's toolchain
37511
37512 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37513
37514 Fix warnings
37515
37516 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37517 (decomp_block): initialize ch
37518 use grub_memcpy instead of memcpy
37519
37520 2009-06-17 Pavel Roskin <proski@gnu.org>
37521
37522 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37523 version, use declarations needed to use vga_text as the startup
37524 console.
37525
37526 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37527 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37528 the kernel.
37529 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37530 and grub_at_keyboard_fini(), it's done on module load and
37531 unload.
37532
37533 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37534
37535 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37536 file can't be found.
37537 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37538
37539 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37540
37541 Fix newline handling
37542
37543 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37544 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37545 (grub_script_yylex): don't segfault on unterminated script
37546 newline terminates command and variable
37547
37548 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37549
37550 avoid double grub_adjust_range call. Bug reported by David Simner
37551
37552 * kern/disk.c (grub_disk_write): change to raw disk access before
37553 calling disk_read
37554
37555 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37556
37557 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37558 spaces, for the benefit of help2man.
37559 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37560
37561 2009-06-16 Pavel Roskin <proski@gnu.org>
37562
37563 * kern/i386/halt.c: Include grub/machine/init.h.
37564 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37565
37566 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37567
37568 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37569 drivemap menuentry.
37570
37571 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37572
37573 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37574 `echo' command.
37575
37576 2009-06-16 Pavel Roskin <proski@gnu.org>
37577
37578 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37579 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37580 save %dx, we only need %dl and we never change it.
37581 * boot/i386/pc/cdboot.S: Don't set the root drive.
37582 * boot/i386/pc/pxeboot.S: Likewise.
37583 * include/grub/i386/pc/boot.h: Remove
37584 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37585 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37586 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37587 * kern/i386/pc/init.c (make_install_device): Remove references
37588 to grub_root_drive.
37589 * kern/i386/pc/startup.S: Likewise.
37590 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37591
37592 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37593
37594 xnu_uuid command
37595
37596 * commands/xnu_uuid.c: new file
37597 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37598 (xnu_uuid_mod_SOURCES): new variable
37599 (xnu_uuid_mod_CFLAGS): likewise
37600 (xnu_uuid_mod_LDFLAGS): likewise
37601 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37602 * conf/i386-ieee1275.rmk: likewise
37603 * conf/i386-pc.rmk: likewise
37604 * conf/powerpc-ieee1275.rmk: likewise
37605 * conf/sparc64-ieee1275.rmk: likewise
37606 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37607
37608 2009-06-16 Pavel Roskin <proski@gnu.org>
37609
37610 * configure.ac: Avoid '==' in test command, it's not portable.
37611
37612 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37613
37614 Probe command
37615
37616 * commands/probe.c: new file
37617 * conf/common.rmk (pkglib_MODULES): add probe.mod
37618 (probe_mod_SOURCES): new variable
37619 (probe_mod_CFLAGS): likewise
37620 (probe_mod_LDFLAGS): likewise
37621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37622 * conf/i386-ieee1275.rmk: likewise
37623 * conf/i386-pc.rmk: likewise
37624 * conf/powerpc-ieee1275.rmk: likewise
37625 * conf/sparc64-ieee1275.rmk: likewise
37626
37627 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37628
37629 Fix handling of string like \"hello\" and "a
37630 b"
37631
37632 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37633 (grub_script_yylex): fix parsing of quoting, escaping and newline
37634
37635 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37636
37637 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37638 handling
37639
37640 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37641
37642 * util/grub-mkconfig.in: Fix parsing of --output option.
37643
37644 2009-06-12 Pavel Roskin <proski@gnu.org>
37645
37646 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37647 genmk.rb don't need to be generated or installed.
37648
37649 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37650
37651 * commands/i386/pc/drivemap_int13h.S: add more comments
37652
37653 2009-06-11 Pavel Roskin <proski@gnu.org>
37654
37655 * Makefile.in (uninstall): Uninstall manuals.
37656
37657 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37658 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37659 and update-grub_lib in two places.
37660 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37661
37662 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37663 a compiler warning.
37664
37665 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37666 `entry_lo' to fix variable shadowing.
37667
37668 2009-06-11 Christian Franke <franke@computer.org>
37669
37670 * kern/misc.c (__enable_execute_stack): Add missing return type
37671 to prevent gcc warning.
37672
37673 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37674
37675 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37676
37677 2009-06-11 Pavel Roskin <proski@gnu.org>
37678
37679 * Makefile.in: Don't rely on any scripts being executable.
37680 Always use $(SHELL) to run shell scripts.
37681
37682 * configure.ac: Always define ___main if using -nostdlib. This
37683 fixes tests on Cygwin.
37684
37685 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37686
37687 UDF fix
37688
37689 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37690 is in bytes and not in blocks
37691
37692 2009-06-11 Pavel Roskin <proski@gnu.org>
37693
37694 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37695 warning.
37696
37697 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37698
37699 * util/grub.d/30_os-prober.in: Fix a comment. Source
37700 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37701 to set the root device. Place drivemap command in the generated
37702 chain entry.
37703
37704 2009-06-11 Pavel Roskin <proski@gnu.org>
37705
37706 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37707 have long been resolved.
37708
37709 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37710
37711 * util/grub.d/10_linux.in: Capitalise "Linux".
37712
37713 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37714
37715 2009-06-11 Pavel Roskin <proski@gnu.org>
37716
37717 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37718 fix a gcc warning and ensure that the function won't ever exit.
37719
37720 * kern/i386/ieee1275/init.c: Add missing prototype for
37721 grub_stop_floppy().
37722
37723 * loader/ieee1275/multiboot2.c [__i386__]: Include
37724 grub/cpu/multiboot.h.
37725
37726 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37727 casts to short - they are not portable and cause warnings. Fix
37728 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37729
37730 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37731
37732 Drivemap fixes
37733
37734 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37735 new function
37736 (grub_get_root_biosnumber_saved): new variable
37737 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37738 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37739 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37740 %dx after the call if necessary
37741 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37742 (boot_mod_SOURCES): remove
37743 (boot_mod_CFLAGS): remove
37744 (boot_mod_LDFLAGS): remove
37745 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37746 (boot_mod_SOURCES): new variable
37747 (boot_mod_CFLAGS): likewise
37748 (boot_mod_LDFLAGS): likewise
37749 * conf/i386-efi.rmk: likewise
37750 * conf/i386-ieee1275.rmk: likewise
37751 * conf/i386-pc.rmk: likewise
37752 * conf/powerpc-ieee1275.rmk: likewise
37753 * conf/sparc64-ieee1275.rmk: likewise
37754 * conf/x86_64-efi.rmk: likewise
37755 * include/grub/i386/pc/biosnum.h: new file
37756 * lib/i386/pc/biosnum.c: likewise
37757 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37758 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37759 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37760
37761 2009-06-10 Pavel Roskin <proski@gnu.org>
37762
37763 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37764 Use separate variables. Read only the file size at the end, but
37765 not the checksum that we don't use.
37766
37767 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37768 Adjust all callers.
37769
37770 * kern/ieee1275/openfw.c: Remove libc includes.
37771 * kern/ieee1275/cmain.c: Likewise.
37772 * include/grub/ieee1275/ieee1275.h: Likewise.
37773
37774 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37775 compiler warnings.
37776
37777 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37778
37779 * Makefile.in: Remove all trailing whitespace.
37780 * conf/i386-pc.rmk: Likewise.
37781 * conf/powerpc-ieee1275.rmk: Likewise.
37782 * conf/sparc64-ieee1275.rmk: Likewise.
37783 * docs/grub.texi: Likewise.
37784 * docs/texinfo.tex: Likewise.
37785 * disk/fs_uuid.c: Likewise.
37786 * disk/lvm.c: Likewise.
37787 * disk/scsi.c: Likewise.
37788 * disk/ata.c: Likewise.
37789 * disk/ieee1275/ofdisk.c: Likewise.
37790 * disk/i386/pc/biosdisk.c: Likewise.
37791 * disk/host.c: Likewise.
37792 * disk/raid.c: Likewise.
37793 * disk/efi/efidisk.c: Likewise.
37794 * disk/usbms.c: Likewise.
37795 * disk/memdisk.c: Likewise.
37796 * disk/loopback.c: Likewise.
37797 * kern/powerpc/dl.c: Likewise.
37798 * kern/device.c: Likewise.
37799 * kern/dl.c: Likewise.
37800 * kern/sparc64/dl.c: Likewise.
37801 * kern/ieee1275/ieee1275.c: Likewise.
37802 * kern/term.c: Likewise.
37803 * kern/fs.c: Likewise.
37804 * kern/i386/dl.c: Likewise.
37805 * kern/i386/pc/startup.S: Likewise.
37806 * kern/i386/pc/init.c: Likewise.
37807 * kern/i386/pc/mmap.c: Likewise.
37808 * kern/i386/pc/lzo1x.S: Likewise.
37809 * kern/i386/ieee1275/init.c: Likewise.
37810 * kern/i386/realmode.S: Likewise.
37811 * kern/i386/tsc.c: Likewise.
37812 * kern/partition.c: Likewise.
37813 * kern/corecmd.c: Likewise.
37814 * kern/file.c: Likewise.
37815 * kern/efi/efi.c: Likewise.
37816 * kern/efi/init.c: Likewise.
37817 * kern/efi/mm.c: Likewise.
37818 * kern/main.c: Likewise.
37819 * kern/err.c: Likewise.
37820 * kern/env.c: Likewise.
37821 * kern/disk.c: Likewise.
37822 * kern/generic/millisleep.c: Likewise.
37823 * kern/generic/rtc_get_time_ms.c: Likewise.
37824 * kern/misc.c: Likewise.
37825 * kern/parser.c: Likewise.
37826 * genmk.rb: Likewise.
37827 * configure.ac: Likewise.
37828 * boot/i386/pc/diskboot.S: Likewise.
37829 * boot/i386/pc/pxeboot.S: Likewise.
37830 * boot/i386/pc/boot.S: Likewise.
37831 * boot/i386/pc/lnxboot.S: Likewise.
37832 * boot/i386/pc/cdboot.S: Likewise.
37833 * parttool/pcpart.c: Likewise.
37834 * video/readers/tga.c: Likewise.
37835 * video/video.c: Likewise.
37836 * video/bitmap.c: Likewise.
37837 * lib/envblk.c: Likewise.
37838 * lib/i386/setjmp.S: Likewise.
37839 * fs/xfs.c: Likewise.
37840 * fs/afs.c: Likewise.
37841 * fs/fat.c: Likewise.
37842 * fs/ntfs.c: Likewise.
37843 * fs/udf.c: Likewise.
37844 * fs/affs.c: Likewise.
37845 * fs/iso9660.c: Likewise.
37846 * fs/hfs.c: Likewise.
37847 * fs/fshelp.c: Likewise.
37848 * fs/ext2.c: Likewise.
37849 * fs/jfs.c: Likewise.
37850 * fs/reiserfs.c: Likewise.
37851 * fs/hfsplus.c: Likewise.
37852 * fs/minix.c: Likewise.
37853 * fs/cpio.c: Likewise.
37854 * fs/sfs.c: Likewise.
37855 * fs/ufs.c: Likewise.
37856 * efiemu/prepare.c: Likewise.
37857 * efiemu/loadcore_common.c: Likewise.
37858 * efiemu/runtime/efiemu.sh: Likewise.
37859 * efiemu/runtime/efiemu.S: Likewise.
37860 * efiemu/runtime/efiemu.c: Likewise.
37861 * efiemu/pnvram.c: Likewise.
37862 * efiemu/main.c: Likewise.
37863 * efiemu/i386/pc/cfgtables.c: Likewise.
37864 * efiemu/i386/loadcore64.c: Likewise.
37865 * efiemu/i386/loadcore32.c: Likewise.
37866 * efiemu/loadcore.c: Likewise.
37867 * efiemu/symbols.c: Likewise.
37868 * efiemu/mm.c: Likewise.
37869 * include/grub/autoefi.h: Likewise.
37870 * include/grub/datetime.h: Likewise.
37871 * include/grub/term.h: Likewise.
37872 * include/grub/hfs.h: Likewise.
37873 * include/grub/lvm.h: Likewise.
37874 * include/grub/i386/tsc.h: Likewise.
37875 * include/grub/i386/linux.h: Likewise.
37876 * include/grub/i386/xnu.h: Likewise.
37877 * include/grub/i386/efiemu.h: Likewise.
37878 * include/grub/i386/pc/biosdisk.h: Likewise.
37879 * include/grub/i386/pc/memory.h: Likewise.
37880 * include/grub/i386/pc/vbe.h: Likewise.
37881 * include/grub/parttool.h: Likewise.
37882 * include/grub/video.h: Likewise.
37883 * include/grub/memory.h: Likewise.
37884 * include/grub/fs.h: Likewise.
37885 * include/grub/partition.h: Likewise.
37886 * include/grub/xnu.h: Likewise.
37887 * include/grub/efi/api.h: Likewise.
37888 * include/grub/efi/pe32.h: Likewise.
37889 * include/grub/efi/memory.h: Likewise.
37890 * include/grub/multiboot.h: Likewise.
37891 * include/grub/usbdesc.h: Likewise.
37892 * include/grub/multiboot2.h: Likewise.
37893 * include/grub/acpi.h: Likewise.
37894 * include/grub/efiemu/efiemu.h: Likewise.
37895 * include/grub/disk.h: Likewise.
37896 * include/grub/ieee1275/ieee1275.h: Likewise.
37897 * include/grub/net.h: Likewise.
37898 * include/grub/machoload.h: Likewise.
37899 * include/grub/macho.h: Likewise.
37900 * include/multiboot.h: Likewise.
37901 * genmoddep.awk: Likewise.
37902 * normal/main.c: Likewise.
37903 * normal/menu_entry.c: Likewise.
37904 * normal/menu_viewer.c: Likewise.
37905 * normal/completion.c: Likewise.
37906 * normal/cmdline.c: Likewise.
37907 * normal/misc.c: Likewise.
37908 * normal/datetime.c: Likewise.
37909 * bus/usb/usbtrans.c: Likewise.
37910 * bus/usb/ohci.c: Likewise.
37911 * bus/usb/uhci.c: Likewise.
37912 * bus/usb/usb.c: Likewise.
37913 * mmap/efi/mmap.c: Likewise.
37914 * mmap/i386/pc/mmap_helper.S: Likewise.
37915 * mmap/i386/pc/mmap.c: Likewise.
37916 * mmap/i386/mmap.c: Likewise.
37917 * mmap/i386/uppermem.c: Likewise.
37918 * mmap/mmap.c: Likewise.
37919 * commands/acpi.c: Likewise.
37920 * commands/echo.c: Likewise.
37921 * commands/blocklist.c: Likewise.
37922 * commands/loadenv.c: Likewise.
37923 * commands/usbtest.c: Likewise.
37924 * commands/boot.c: Likewise.
37925 * commands/parttool.c: Likewise.
37926 * commands/search.c: Likewise.
37927 * commands/cat.c: Likewise.
37928 * commands/i386/pc/play.c: Likewise.
37929 * commands/i386/pc/drivemap.c: Likewise.
37930 * commands/i386/pc/vbeinfo.c: Likewise.
37931 * commands/i386/pc/acpi.c: Likewise.
37932 * commands/i386/pc/vbetest.c: Likewise.
37933 * commands/ls.c: Likewise.
37934 * commands/cmp.c: Likewise.
37935 * commands/test.c: Likewise.
37936 * commands/efi/acpi.c: Likewise.
37937 * commands/gptsync.c: Likewise.
37938 * commands/help.c: Likewise.
37939 * partmap/amiga.c: Likewise.
37940 * partmap/apple.c: Likewise.
37941 * partmap/acorn.c: Likewise.
37942 * partmap/pc.c: Likewise.
37943 * partmap/sun.c: Likewise.
37944 * partmap/gpt.c: Likewise.
37945 * script/sh/lexer.c: Likewise.
37946 * script/sh/function.c: Likewise.
37947 * font/font.c: Likewise.
37948 * font/font_cmd.c: Likewise.
37949 * loader/powerpc/ieee1275/linux.c: Likewise.
37950 * loader/efi/chainloader.c: Likewise.
37951 * loader/multiboot_loader.c: Likewise.
37952 * loader/macho.c: Likewise.
37953 * loader/i386/multiboot.c: Likewise.
37954 * loader/i386/linux.c: Likewise.
37955 * loader/i386/pc/linux.c: Likewise.
37956 * loader/i386/pc/multiboot2.c: Likewise.
37957 * loader/i386/pc/chainloader.c: Likewise.
37958 * loader/i386/pc/xnu.c: Likewise.
37959 * loader/i386/bsd_trampoline.S: Likewise.
37960 * loader/i386/efi/linux.c: Likewise.
37961 * loader/i386/multiboot_elfxx.c: Likewise.
37962 * loader/i386/bsd_helper.S: Likewise.
37963 * loader/i386/bsd.c: Likewise.
37964 * loader/i386/linux_trampoline.S: Likewise.
37965 * loader/i386/xnu_helper.S: Likewise.
37966 * loader/i386/xnu.c: Likewise.
37967 * loader/i386/bsd_pagetable.c: Likewise.
37968 * loader/i386/multiboot_helper.S: Likewise.
37969 * loader/xnu.c: Likewise.
37970 * loader/xnu_resume.c: Likewise.
37971 * io/gzio.c: Likewise.
37972 * term/efi/console.c: Likewise.
37973 * term/terminfo.c: Likewise.
37974 * term/ieee1275/ofconsole.c: Likewise.
37975 * term/i386/pc/serial.c: Likewise.
37976 * term/i386/pc/vesafb.c: Likewise.
37977 * term/i386/pc/vga.c: Likewise.
37978 * term/usb_keyboard.c: Likewise.
37979 * term/gfxterm.c: Likewise.
37980 * aclocal.m4: Likewise.
37981 * util/lvm.c: Likewise.
37982 * util/grub.d/30_os-prober.in: Likewise.
37983 * util/grub.d/10_hurd.in: Likewise.
37984 * util/console.c: Likewise.
37985 * util/grub-macho2img.c: Likewise.
37986 * util/grub-probe.c: Likewise.
37987 * util/hostfs.c: Likewise.
37988 * util/i386/pc/grub-mkimage.c: Likewise.
37989 * util/i386/pc/grub-setup.c: Likewise.
37990 * util/i386/efi/grub-mkimage.c: Likewise.
37991 * util/grub-mkconfig.in: Likewise.
37992 * util/raid.c: Likewise.
37993 * util/resolve.c: Likewise.
37994 * util/grub-mkdevicemap.c: Likewise.
37995 * util/grub-emu.c: Likewise.
37996 * util/getroot.c: Likewise.
37997 * util/hostdisk.c: Likewise.
37998 * util/usb.c: Likewise.
37999 * util/grub-editenv.c: Likewise.
38000 * util/misc.c: Likewise.
38001
38002 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
38003
38004 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38005 `genparttoollist.sh'.
38006 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38007 Add `*.sh' to the list find searches for and change `mdate.sh'
38008 to `mdate-sh'.
38009
38010 2009-06-10 Pavel Roskin <proski@gnu.org>
38011
38012 * include/grub/multiboot2.h: Provide compatibility defines for
38013 multiboot2.h.
38014 * include/multiboot2.h: Include stdint.h only if needed, using
38015 angle brackets.
38016 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38017 grub/multiboot2.h.
38018 * loader/ieee1275/multiboot2.c: Likewise.
38019 * loader/multiboot2.c: Likewise.
38020 * loader/multiboot_loader.c: Likewise.
38021
38022 * configure.ac: Use -nostdlib when probing for the target. It
38023 should not be required to have libc for the target.
38024
38025 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38026 they fail without libc headers for the target.
38027 * include/grub/powerpc/libgcc.h: Use weak attribute for all
38028 exports.
38029 * include/grub/sparc64/libgcc.h: Likewise. Don't use
38030 preprocessor conditionals.
38031
38032 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38033 build system doesn't need to be aware of the tar.c internals.
38034
38035 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38036
38037 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38038
38039 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38040
38041 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38042 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38043
38044 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38045
38046 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38047 aren't available if ata.mod gets used.
38048
38049 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38050
38051 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38052 initialising controller.
38053 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38054
38055 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38056
38057 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38058 to choose between ata and biosdisk module on i386-pc.
38059
38060 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38061
38062 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38063 Subclass and Programming Interface fields in terms of the 3 byte
38064 Class Code register.
38065 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38066
38067 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38068 interface is OHCI. Add grub_dprintf for symmetry with
38069 bus/usb/uhci.c.
38070 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38071 interface is UHCI. Add interf variable for programming
38072 interface. Print interface with class/subclass.
38073
38074 * bus/usb/ohci.c: Set interf with correct field.
38075
38076 * bus/usb/uhci.c: Remove unneeded doubled lines.
38077 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38078 Remove whitespace inside comment.
38079
38080 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38081
38082 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38083 as fallback an equivalent option without depth.
38084
38085 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38086
38087 Not fail if unable to retrieve C/H/S on LBA disks
38088
38089 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38090 if unable to retrieve C/H/S on LBA disks
38091
38092 2009-06-08 Pavel Roskin <proski@gnu.org>
38093
38094 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38095 about aliasing.
38096
38097 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38098
38099 * Makefile.in (uninstall): Remove all $lib_DATA files.
38100
38101 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38102
38103 Bugfix: install on partitionless device
38104
38105 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38106 is a whole disk
38107
38108 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38109
38110 * Makefile.in (uninstall): Remove all $include_DATA files.
38111
38112 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38113
38114 * commands/true.c: New file. Implement the true and false commands.
38115 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38116 (true_mod_SOURCES): New variable.
38117 (true_mod_CFLAGS): Likewise.
38118 (true_mod_LDFLAGS): Likewise.
38119
38120 2009-06-05 Colin D Bennett <colin@gibibit.com>
38121
38122 Optimized font character lookup using binary search instead of linear
38123 search. Fonts now are required to have the character index ordered by
38124 code point.
38125
38126 * font/font.c (load_font_index): Verify that fonts have ordered
38127 character indices.
38128 (find_glyph): Use binary search instead of linear search to find a
38129 character in a font.
38130
38131 2009-06-05 Michael Scherer <misc@mandriva.org>
38132
38133 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38134 uses case sensitive btree.
38135 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38136 only for case insensitive filesystems.
38137
38138 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38139
38140 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38141 * conf/common.rmk (search_mod_CFLAGS): likewise
38142
38143 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38144
38145 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38146 compensate a compiler bug
38147
38148 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38149
38150 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38151 instead of '\b'
38152
38153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38154
38155 Definitions for creating asm symbols with Apple's CC
38156
38157 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38158 [APPLE_CC] (VARIABLE): likewise
38159
38160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38161
38162 Disable lnxboot.img when compiled
38163 with Apple's CC
38164
38165 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38166 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38167 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38168 [! APPLE_CC] (CODE_LENG): skip
38169 [! APPLE_CC] (setup_sects): likewise
38170 [! APPLE_CC]: skip filling
38171
38172 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38173
38174 Address in trampolines based on 32-bit registers when compiled
38175 with Apple's CC
38176
38177 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38178 for addresses
38179 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38180
38181 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38182
38183 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38184
38185 * kern/misc.c [APPLE_CC] (memcpy): new function
38186 [APPLE_CC] (memmove): likewise
38187 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38188 (memcpy): define alias conditionally on !APPLE_CC
38189 (memset): likewise
38190 (abort): likewise
38191 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38192 APPLE_CC are defined
38193 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38194 (grub_assert_fail): make prototype conditional
38195
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38197
38198 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38199
38200 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38201 grub-macho2img
38202 (CLEANFILES): add grub-macho2img
38203 (grub_macho2img_SOURCES): new variable
38204 * kern/i386/pc/startup.S (bss_start): new variable
38205 (bss_end): likewise
38206 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38207 * util/grub-macho2img.c: new file
38208
38209 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38210
38211 Use objconv when compiling with Apple's CC
38212
38213 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38214 (efiemu64.o): likewise
38215 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38216 when compiling with Apple's CC
38217 (efiemu64_s.o): likewise
38218 * configure.ac: check for objconv when compiling with Apple's CC
38219 * genmk.rb: use objconv for modules when compiled with Apple's CC
38220
38221 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38222
38223 Define segment as well as section when compiling with
38224 Apple's CC
38225
38226 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38227 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38228 (efiemu_convert_pointer): likewise
38229 (efiemu_set_virtual_address_map): likewise
38230 (efiemu_convert_pointer): likewise
38231 (efiemu_getcrc32): likewise
38232 (init_crc32_table): likewise
38233 (reflect): likewise
38234 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38235 (GRUB_MOD_DEP): likewise
38236
38237 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38238
38239 Allow a compilation without -mcmodel=large
38240
38241 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38242 when compiled without -mcmodel=large
38243 (filter_memory_map): remove memory post 4 GiB when compiled
38244 without -mcmodel=large
38245 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38246 TARGET_CFLAGS when -mcmodel=large isn't supported
38247
38248 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38249
38250 Remove nested functions in efiemu core
38251
38252 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38253
38254 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38255
38256 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38257
38258 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38259 temporary storage
38260 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38261 using Apple's CC
38262 (grub_cpu_is_tsc_supported): likewise
38263 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38264
38265 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38266
38267 Absolute addressing through constant with Apple's cc
38268
38269 * kern/i386/pc/startup.S: Define necessary constants
38270 and address through it when using ABS with Apple's CC
38271 * boot/i386/pc/diskboot.S: likewise
38272 * boot/i386/pc/boot.S: likewise
38273 * boot/i386/pc/lnxboot.S: likewise
38274 * boot/i386/pc/cdboot.S: likewise
38275 * mmap/i386/pc/mmap_helper.S: likewise
38276 * commands/i386/pc/drivemap_int13h.S: likewise
38277
38278 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38279
38280 Check if compiler is apple cc
38281
38282 * Makefile.in (ASFLAGS): new variable
38283 (TARGET_ASFLAGS): likewise
38284 (TARGET_MODULE_FORMAT): likewise
38285 (TARGET_APPLE_CC): likewise
38286 (OBJCONV): likewise
38287 (TARGET_IMG_CFLAGS): likewise
38288 (TARGET_CPPFLAGS): add includedir
38289 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38290 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38291 Check for linker script only if compiler isn't Apple's CC
38292 (TARGET_MODULE_FORMAT): set
38293 (TARGET_APPLE_CC): likewise
38294 (TARGET_ASFLAGS): likewise
38295 (ASFLAGS): likewise
38296 Check for objcopy only if compiler isn't Apple's CC
38297 Check for BSS symbol only if compiler isn't Apple's CC
38298 * genmk.rb: adapt nm options if we use Apple's utils
38299 * aclocal.m4 (grub_apple_cc): new test
38300 (grub_apple_target_cc): likewise
38301
38302 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38303
38304 Simplify sed expressions and improve awk
38305
38306 * Makefile.in (install-local): simplify sed expression
38307 * gencmdlist.sh: likewise
38308 * genmoddep.awk: avoid adding module as a dependency of itself
38309
38310 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38311
38312 Add missing start symbols
38313
38314 * boot/i386/pc/boot.S: add start
38315 * boot/i386/pc/pxeboot.S: likewise
38316
38317 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38318
38319 Fix wrong assumptions with grub-mkimage on EFI
38320
38321 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38322 (relocate_addresses): consider both r_addend and value at offset
38323 (make_mods_section): zerofill modinfo and header
38324 (convert_elf): write prefix here
38325
38326 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38327
38328 Use .asciz instead of .string
38329
38330 * i386/pc/diskboot.S: use .asciz instead of .string
38331 * i386/pc/boot.S: likewise
38332 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38333 (GRUB_MOD_NAME): likewise
38334
38335 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38336
38337 gfxpayload support
38338
38339 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38340 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38341 (grub_video_setup): remove
38342 (grub_video_set_mode): new prototype
38343 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38344 (vid_mode): remove
38345 (linux_vesafb_res): compile only on PCBIOS
38346 (grub_linux_boot): support gfxpayload
38347 * loader/i386/pc/xnu.c (video_hook): new function
38348 (grub_xnu_set_video): support gfxpayload
38349 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38350 (DEFAULT_VIDEO_HEIGHT): likewise
38351 (DEFAULT_VIDEO_FLAGS): likewise
38352 (DEFAULT_VIDEO_MODE): new definition
38353 (video_hook): new function
38354 (grub_gfxterm_init): use grub_video_set_mode
38355 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38356 loading xnu
38357 * video/video.c (grub_video_setup): removed
38358 (grub_video_set_mode): new function based on grub_gfxterm_init and
38359 grub_video_setup
38360
38361 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38362
38363 Avoid calling biosdisk in drivemap
38364
38365 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38366 (revparse_biosdisk): likewise
38367 (list_mappings): derive name from id directly
38368 (grub_cmd_drivemap): use tryparse_diskstring
38369
38370 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38371
38372 Script fixes
38373
38374 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38375 (grub_lexer_param): add tokenonhold
38376 (grub_script_create_cmdline): remove cmdline. All callers updated
38377 (grub_script_function_create): make functionname
38378 grub_script_arg. All callers updated
38379 (grub_script_execute_argument_to_string): new prototype
38380 * kern/parser.c (state_transitions): reorder
38381 (grub_parser_cmdline_state): fix a bug and make more compact
38382 * script/sh/execute.c (grub_script_execute_argument_to_string):
38383 make global
38384 (grub_script_execute_cmdline): use new format
38385 * script/sh/function.c (grub_script_function_create): make functionname
38386 grub_script_arg. All callers updated
38387 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38388 (grub_script_yylex): remove
38389 (grub_script_yylex2): renamed to ...
38390 (grub_script_yylex): ...renamed
38391 parse the expressions like a${b}c
38392 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38393 (GRUB_PARSER_TOKEN_VAR): remove
38394 (GRUB_PARSER_TOKEN_NAME): likewise
38395 ("if"): declare as typeless
38396 ("while"): likewise
38397 ("function"): likewise
38398 ("else"): likewise
38399 ("then"): likewise
38400 ("fi"): likewise
38401 (text): remove
38402 (argument): likewise
38403 (script): accept empty scripts and make exit on error
38404 (arguments): use GRUB_PARSER_TOKEN_ARG
38405 (function): likewise
38406 (command): move error handling to script
38407 (menuentry): move grub_script_lexer_ref before
38408 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38409 argument. All callers updated
38410
38411 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38412
38413 Prevent GRUB from probing floppies during boot.
38414
38415 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38416 * commands/search.c (options): Add --no-floppy.
38417 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38418 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38419 --no-floppy when searching for UUIDs.
38420
38421 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38422
38423 Simplify the code duplication in commands/search.c.
38424
38425 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38426 (search_fs): ... this. Update all users.
38427
38428 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38429
38430 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38431
38432 2009-05-28 Pavel Roskin <proski@gnu.org>
38433
38434 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38435 Remove the original symlink explicitly.
38436
38437 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38438 just one slash. That's how grub_fshelp_find_file() does it.
38439
38440 2009-05-26 Pavel Roskin <proski@gnu.org>
38441
38442 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38443 to `str'.
38444
38445 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38446 possibly unused.
38447
38448 2009-05-25 Christian Franke <franke@computer.org>
38449
38450 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38451 register.
38452 (grub_atapi_identify): Add wait after drive select.
38453 (grub_ata_identify): Do more strict status register check before
38454 calling grub_atapi_identify (). Suppress error message if status
38455 register is 0x00 after command failure. Add status register
38456 check after PIO read to avoid bogus identify due to stuck DRQ.
38457 Thanks to Pavel Roskin for testing.
38458 (grub_device_initialize): Remove unsafe status register check.
38459 Thanks to 'phcoder' for problem report and patch.
38460 Prevent sign extension in debug message.
38461
38462 2009-05-23 Colin D Bennett <colin@gibibit.com>
38463
38464 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38465 definition file, and functions defined in `normal/menu.c' have had
38466 their prototypes moved to `include/grub/menu.h' for consistency.
38467
38468 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38469 from normal.h.
38470 (grub_menu_get_entry): Likewise.
38471 (grub_menu_get_timeout): Likewise.
38472 (grub_menu_set_timeout): Likewise.
38473 (grub_menu_execute_entry): Likewise.
38474 (grub_menu_execute_with_fallback): Likewise.
38475 (grub_menu_entry_run): Likewise.
38476
38477 * include/grub/normal.h: Re-ordered and grouped function
38478 prototypes by file that the function is defined in.
38479 (grub_menu_execute_callback): Removed; moved to menu.h.
38480 (grub_menu_get_entry): Likewise.
38481 (grub_menu_get_timeout): Likewise.
38482 (grub_menu_set_timeout): Likewise.
38483 (grub_menu_execute_entry): Likewise.
38484 (grub_menu_execute_with_fallback): Likewise.
38485 (grub_menu_entry_run): Likewise.
38486 (grub_menu_addentry): Renamed from this ...
38487 (grub_normal_add_menu_entry): ... to this.
38488
38489 * normal/main.c (grub_menu_addentry): Renamed from this ...
38490 (grub_normal_add_menu_entry): ... to this.
38491
38492 * script/sh/execute.c (grub_script_execute_menuentry): Update
38493 reference to renamed grub_menu_addentry function.
38494
38495 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38496
38497 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38498
38499 2009-05-22 Pavel Roskin <proski@gnu.org>
38500
38501 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38502 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38503 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38504 compiling for the i386 targets, but not for the utilities.
38505
38506 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38507 to grub_uint8_t.
38508 (grub_root_drive): Likewise.
38509 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38510 remove alignment.
38511 (grub_root_drive): Change size to byte.
38512 (grub_start_addr): Remove.
38513 (grub_end_addr): Likewise.
38514 (grub_apm_bios_info): Likewise.
38515
38516 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38517
38518 * normal/i386: Remove.
38519 * normal/powerpc: Likewise.
38520 * normal/sparc64: Likewise.
38521 * normal/x86_64: Likewise.
38522
38523 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38524
38525 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38526 * loader/i386/linux_trampoline.S: Fix indentation
38527 * loader/i386/xnu_helper.S: Likewise
38528
38529 2009-05-18 Colin D Bennett <colin@gibibit.com>
38530
38531 Display error messages when parsing a Lua statement fails.
38532 Previously, executing a syntactically invalid statement like
38533 ")foo" or "bar;" would silently fail.
38534
38535 * script/lua/grub_main.c (handle_lua_error): New function.
38536 (grub_lua_parse_line): Improved reporting of Lua parser and
38537 execution errors.
38538
38539 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38540
38541 Remove -Werror which causes build to fail on some systems
38542
38543 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38544 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38545 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38546
38547 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38548
38549 trampoline for linux on 64-bit platform
38550
38551 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38552 loader/i386/efi/linux_trampoline.S
38553 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38554 declaration
38555 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38556 here
38557 * loader/i386/linux_trampoline.S: moved here
38558 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38559 trampoline
38560 (jumpvector): removed
38561 (grub_linux_trampoline_start): new declaration
38562 (grub_linux_trampoline_end): likewise
38563 (grub_linux_boot): use trampoline when on 64-bit platform
38564 * loader/i386/linux.c: likewise
38565
38566 2009-05-16 Pavel Roskin <proski@gnu.org>
38567
38568 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38569 const to avoid a warning.
38570 (grub_lua_setenv): Likewise.
38571 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38572 lmsg to fix a warning.
38573
38574 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38575
38576 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38577 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38578 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38579 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38580 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38581 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38582 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38583 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38584
38585 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38586
38587 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38588
38589 2009-05-16 Bean <bean123ch@gmail.com>
38590
38591 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38592 (lua_mod_SOURCES): New variable.
38593 (lua_mod_CFLAGS): Likewise.
38594 (lua_mod_LDFLAGS): Likewise.
38595
38596 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38597 (setjmp_mod_SOURCES): New variable.
38598 (setjmp_mod_CFLAGS): Likewise.
38599 (setjmp_LDFLAGS): Likewise.
38600
38601 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38602 (setjmp_mod_SOURCES): New variable.
38603 (setjmp_mod_CFLAGS): Likewise.
38604 (setjmp_LDFLAGS): Likewise.
38605
38606 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38607 (setjmp_mod_SOURCES): New variable.
38608 (setjmp_mod_CFLAGS): Likewise.
38609 (setjmp_LDFLAGS): Likewise.
38610
38611 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38612 (setjmp_mod_SOURCES): New variable.
38613 (setjmp_mod_CFLAGS): Likewise.
38614 (setjmp_LDFLAGS): Likewise.
38615
38616 * normal/i386/setjmp.S: Moved from here ...
38617 * lib/i386/setjmp.S: ... Moved here
38618 * normal/x86_64/setjmp.S: Moved from here ...
38619 * lib/x86_64/setjmp.S: ... Moved here
38620 * normal/powerpc/setjmp.S: Moved from here ...
38621 * lib/powerpc/setjmp.S: ... Moved here
38622 * normal/sparc64/setjmp.S: Moved from here ...
38623 * lib/sparc64/setjmp.S: ... Moved here
38624
38625 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38626 returns_twice in mingw.
38627
38628 * script/lua/grub_lib.c: New file.
38629 * script/lua/grub_lib.h: Likewise.
38630 * script/lua/grub_lua.h: Likewise.
38631 * script/lua/grub_main.c: Likewise.
38632 * script/lua/lapi.c: Likewise.
38633 * script/lua/lapi.h: Likewise.
38634 * script/lua/lauxlib.c: Likewise.
38635 * script/lua/lauxlib.h: Likewise.
38636 * script/lua/lbaselib.c: Likewise.
38637 * script/lua/lcode.c: Likewise.
38638 * script/lua/lcode.h: Likewise.
38639 * script/lua/ldblib.c: Likewise.
38640 * script/lua/ldebug.c: Likewise.
38641 * script/lua/ldebug.h: Likewise.
38642 * script/lua/ldo.c: Likewise.
38643 * script/lua/ldo.h: Likewise.
38644 * script/lua/ldump.c: Likewise.
38645 * script/lua/lfunc.c: Likewise.
38646 * script/lua/lfunc.h: Likewise.
38647 * script/lua/lgc.c: Likewise.
38648 * script/lua/lgc.h: Likewise.
38649 * script/lua/linit.c: Likewise.
38650 * script/lua/liolib.c: Likewise.
38651 * script/lua/llex.c: Likewise.
38652 * script/lua/llex.h: Likewise.
38653 * script/lua/llimits.h: Likewise.
38654 * script/lua/lmathlib.c: Likewise.
38655 * script/lua/lmem.c: Likewise.
38656 * script/lua/lmem.h: Likewise.
38657 * script/lua/loadlib.c: Likewise.
38658 * script/lua/lobject.c: Likewise.
38659 * script/lua/lobject.h: Likewise.
38660 * script/lua/lopcodes.c: Likewise.
38661 * script/lua/lopcodes.h: Likewise.
38662 * script/lua/loslib.c: Likewise.
38663 * script/lua/lparser.c: Likewise.
38664 * script/lua/lparser.h: Likewise.
38665 * script/lua/lstate.c: Likewise.
38666 * script/lua/lstate.h: Likewise.
38667 * script/lua/lstring.c: Likewise.
38668 * script/lua/lstring.h: Likewise.
38669 * script/lua/lstrlib.c: Likewise.
38670 * script/lua/ltable.c: Likewise.
38671 * script/lua/ltable.h: Likewise.
38672 * script/lua/ltablib.c: Likewise.
38673 * script/lua/ltm.c: Likewise.
38674 * script/lua/ltm.h: Likewise.
38675 * script/lua/lua.h: Likewise.
38676 * script/lua/luaconf.h: Likewise.
38677 * script/lua/lualib.h: Likewise.
38678 * script/lua/lundump.c: Likewise.
38679 * script/lua/lundump.h: Likewise.
38680 * script/lua/lvm.c: Likewise.
38681 * script/lua/lvm.h: Likewise.
38682 * script/lua/lzio.c: Likewise.
38683 * script/lua/lzio.h: Likewise.
38684
38685 2009-05-16 Bean <bean123ch@gmail.com>
38686
38687 * include/grub/kernel.h (grub_module_header_types): Add type
38688 OBJ_TYPE_CONFIG.
38689
38690 * kern/main.c (grub_load_config): New function.
38691 (grub_main): Call grub_load_config to read boot config.
38692
38693 * grub-mkimage (generate_image): New parameter config_path.
38694 (options): New option --config.
38695 (main): Parse --config option, and pass it to generate_image.
38696
38697 2009-05-14 Christian Franke <franke@computer.org>
38698
38699 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38700 This fixes build on Cygwin.
38701
38702 2009-05-14 Pavel Roskin <proski@gnu.org>
38703
38704 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38705 jump. This saves two bytes, so the typical case of 2 swapped
38706 drives would fit 32 bytes.
38707
38708 2009-05-13 Pavel Roskin <proski@gnu.org>
38709
38710 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38711 grub_uint32_t to avoid a warning.
38712
38713 * loader/i386/linux.c (allocate_pages): When assigning
38714 real_mode_mem, cast through grub_size_t to fix a warning. The
38715 code already makes sure that the value would fit a pointer.
38716 (grub_linux_setup_video): Cast render_target->data to
38717 grub_size_t to fix a warning.
38718
38719 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38720
38721 * commands/i386/pc/drivemap.c: New file - implement drivemap
38722 command.
38723 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38724 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38725
38726 2009-05-13 Pavel Roskin <proski@gnu.org>
38727
38728 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38729 embedding_area_exists.
38730
38731 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38732
38733 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38734 it easier to understand / work with.
38735 Improve warning messages for cases where there's no embedding area,
38736 or when it is too small (or core.img too large).
38737
38738 2009-05-13 Pavel Roskin <proski@gnu.org>
38739
38740 * loader/i386/pc/multiboot2.c: Add necessary includes for
38741 grub_multiboot2_real_boot().
38742
38743 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38744 PX record is always little-endian. We only need the lower 2
38745 bytes of the mode.
38746
38747 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38748 facilitate code reuse.
38749 (grub_cpio_mount): Use "struct head", not a char buffer. This
38750 fixes a warning reported by gcc 4.4.
38751
38752 * kernel/disk.c (grub_disk_read): Use void pointer for the
38753 buffer.
38754 (grub_disk_write): Use const void pointer for the buffer.
38755 Adjust all callers. Remove unnecessary casts.
38756
38757 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38758
38759 * util/i386/pc/grub-install.in: Update copyright year.
38760
38761 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38762
38763 gptsync
38764
38765 * commands/gptsync.c: new file
38766 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38767 (gptsync_mod_SOURCES): new variable
38768 (gptsync_mod_CFLAGS): likewise
38769 (gptsync_mod_LDFLAGS): likewise
38770 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38771 new definition
38772 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38773 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38774 * conf/i386-ieee1275.rmk: likewise
38775 * conf/i386-pc.rmk: likewise
38776 * conf/powerpc-ieee1275.rmk: likewise
38777
38778 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38779
38780 Fixed grub-emu
38781
38782 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38783 (grub_dl_ref): likewise
38784
38785 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38786
38787 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38788 split in two functions (one for msdos and one for gpt).
38789
38790 2009-05-08 Pavel Roskin <proski@gnu.org>
38791
38792 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38793 not modified.
38794
38795 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38796 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38797 Initialize them with -1. Add sanity check for bad1. Eliminate
38798 nerr variable.
38799
38800 2009-05-08 David S. Miller <davem@davemloft.net>
38801
38802 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38803
38804 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38805
38806 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38807 existence.
38808
38809 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38810
38811 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38812 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38813
38814 2009-05-05 David S. Miller <davem@davemloft.net>
38815
38816 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38817
38818 2009-05-05 Pavel Roskin <proski@gnu.org>
38819
38820 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38821 of grub_dl_ref() and grub_dl_unref().
38822 * commands/parttool.c: Remove preprocessor conditionals around
38823 grub_dl_ref() and grub_dl_unref().
38824 * fs/affs.c: Likewise.
38825 * fs/afs.c: Likewise.
38826 * fs/cpio.c: Likewise.
38827 * fs/ext2.c: Likewise.
38828 * fs/fat.c: Likewise.
38829 * fs/hfs.c: Likewise.
38830 * fs/hfsplus.c: Likewise.
38831 * fs/iso9660.c: Likewise.
38832 * fs/jfs.c: Likewise.
38833 * fs/minix.c: Likewise.
38834 * fs/ntfs.c: Likewise.
38835 * fs/reiserfs.c: Likewise.
38836 * fs/sfs.c: Likewise.
38837 * fs/udf.c: Likewise.
38838 * fs/ufs.c: Likewise.
38839 * fs/xfs.c: Likewise.
38840 * include/grub/dl.h: Likewise.
38841 * loader/xnu.c: Likewise.
38842
38843 2009-05-04 Pavel Roskin <proski@gnu.org>
38844
38845 * commands/acpi.c: Remove unused variable my_mod.
38846 * partmap/amiga.c: Likewise.
38847 * partmap/apple.c: Likewise.
38848 * partmap/gpt.c: Likewise.
38849 * partmap/pc.c: Likewise.
38850 * partmap/sun.c: Likewise.
38851 * term/gfxterm.c: Likewise.
38852 * term/i386/pc/vesafb.c: Likewise.
38853 * term/i386/pc/vga.c: Likewise.
38854
38855 2009-05-04 David S. Miller <davem@davemloft.net>
38856
38857 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38858 pointer args to grub_ieee1275_get_property().
38859
38860 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38861
38862 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38863 devices, and do not traverse down under controller nodes.
38864
38865 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38866 (grub_ofdisk_open): Use it to un-escape "," characters.
38867 * kern/disk.c (find_part_sep): New.
38868 (grub_disk_open): Use it to find the first non-escaped ','
38869 character in the disk name.
38870 * util/ieee1275/devicemap.c (escape_of_path): New.
38871 (grub_util_emit_devicemap_entry): Use it.
38872 * util/sparc64/ieee1275/grub-install.in: Update script to
38873 strip partition specifiers properly by not triggering on
38874 '\' escaped ',' characters.
38875
38876 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38877
38878 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38879 to 0x300.
38880 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38881 resolutions.
38882 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38883 on documentation from Wikipedia).
38884
38885 2009-05-04 Pavel Roskin <proski@gnu.org>
38886
38887 * disk/ata.c: Spelling fixes.
38888 * disk/raid.c: Likewise.
38889 * disk/usbms.c: Likewise.
38890 * disk/dmraid_nvidia.c: Likewise.
38891 * kern/ieee1275/openfw.c: Likewise.
38892 * kern/ieee1275/init.c: Likewise.
38893 * kern/ieee1275/cmain.c: Likewise.
38894 * boot/i386/pc/cdboot.S: Likewise.
38895 * video/readers/png.c: Likewise.
38896 * video/i386/pc/vbe.c: Likewise.
38897 * fs/udf.c: Likewise.
38898 * fs/hfs.c: Likewise.
38899 * fs/reiserfs.c: Likewise.
38900 * efiemu/runtime/efiemu.c: Likewise.
38901 * efiemu/main.c: Likewise.
38902 * efiemu/mm.c: Likewise.
38903 * include/grub/elf.h: Likewise.
38904 * include/grub/xnu.h: Likewise.
38905 * include/grub/usbdesc.h: Likewise.
38906 * include/grub/usb.h: Likewise.
38907 * include/grub/script_sh.h: Likewise.
38908 * include/grub/lib/LzmaEnc.h: Likewise.
38909 * include/grub/efiemu/efiemu.h: Likewise.
38910 * include/grub/command.h: Likewise.
38911 * normal/menu.c: Likewise.
38912 * normal/main.c: Likewise.
38913 * normal/datetime.c: Likewise.
38914 * bus/usb/uhci.c: Likewise.
38915 * mmap/i386/uppermem.c: Likewise.
38916 * mmap/mmap.c: Likewise.
38917 * commands/acpi.c: Likewise.
38918 * commands/test.c: Likewise.
38919 * partmap/apple.c: Likewise.
38920 * font/font.c: Likewise.
38921 * loader/sparc64/ieee1275/linux.c: Likewise.
38922 * loader/macho.c: Likewise.
38923 * loader/i386/bsd_trampoline.S: Likewise.
38924 * loader/i386/bsd.c: Likewise.
38925 * loader/xnu.c: Likewise.
38926 * term/i386/pc/vesafb.c: Likewise.
38927 * term/usb_keyboard.c: Likewise.
38928 * util/resolve.c: Likewise.
38929 * util/getroot.c: Likewise.
38930
38931 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38932
38933 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38934
38935 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38936
38937 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38938 build error.
38939
38940 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38941
38942 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38943 parameter only available on BIOS.
38944
38945 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38946
38947 Removed wrong semicolon in declaration
38948
38949 * grub/misc.h (grub_dprintf): remove semicolon
38950
38951 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38952
38953 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38954 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38955 is done by grub_cmd_linux() now).
38956 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38957 restore video to text mode.
38958 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38959 indicates lack of "vga=" parameter. "vga=0" is mapped to
38960 `GRUB_LINUX_VID_MODE_NORMAL'.
38961
38962 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38963
38964 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38965 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38966 and `normal/script.c'. Add `kern/rescue_reader.c',
38967 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38968 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38969 `grub_script.tab.c'.
38970
38971 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38972 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38973 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38974 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38975 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38976
38977 * Makefile.in: Remove duplicated 2008 in Copyright line.
38978
38979 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38980
38981 * util/misc.c (grub_util_warn): New function. Emits a warning
38982 unconditionally.
38983 * include/grub/util/misc.h (grub_util_warn): New declaration.
38984
38985 * util/i386/pc/grub-install.in: Understand --force and pass it down
38986 to grub-setup.
38987
38988 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38989 down to setup().
38990 (setup): Improve error messages and add warnings when requested to
38991 install in odd layouts. Refuse to install using blocklists unless
38992 --force was set.
38993
38994 2009-05-04 martin f. krafft <madduck@madduck.net>
38995
38996 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38997
38998 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38999
39000 Updated copyright year
39001
39002 * fs/hfsplus.c: updated copyright year
39003
39004 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
39005
39006 HFS+ UUID
39007
39008 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39009 in the space previously used by unused3
39010 (grub_hfsplus_uuid): new function
39011 (grub_hfsplus_fs): added uuid field
39012
39013 2009-05-03 Pavel Roskin <proski@gnu.org>
39014
39015 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39016 suppress warnings. It's no longer needed.
39017 * disk/host.c: Likewise.
39018 * disk/ata_pthru.c: Likewise.
39019 * disk/loopback.c: Likewise.
39020 * hook/datehook.c: Likewise.
39021 * parttool/pcpart.c: Likewise.
39022 * fs/i386/pc/pxe.c: Likewise.
39023 * fs/ntfscomp.c: Likewise.
39024 * efiemu/main.c: Likewise.
39025 * mmap/mmap.c: Likewise.
39026 * commands/crc.c: Likewise.
39027 * commands/hexdump.c: Likewise.
39028 * commands/hdparm.c: Likewise.
39029 * commands/acpi.c: Likewise.
39030 * commands/echo.c: Likewise.
39031 * commands/minicmd.c: Likewise.
39032 * commands/blocklist.c: Likewise.
39033 * commands/memrw.c: Likewise.
39034 * commands/loadenv.c: Likewise.
39035 * commands/usbtest.c: Likewise.
39036 * commands/lsmmap.c: Likewise.
39037 * commands/boot.c: Likewise.
39038 * commands/parttool.c: Likewise.
39039 * commands/configfile.c: Likewise.
39040 * commands/search.c: Likewise.
39041 * commands/ieee1275/suspend.c: Likewise.
39042 * commands/cat.c: Likewise.
39043 * commands/i386/pc/pxecmd.c: Likewise.
39044 * commands/i386/pc/play.c: Likewise.
39045 * commands/i386/pc/halt.c: Likewise.
39046 * commands/i386/pc/vbeinfo.c: Likewise.
39047 * commands/i386/pc/vbetest.c: Likewise.
39048 * commands/lspci.c: Likewise.
39049 * commands/date.c: Likewise.
39050 * commands/handler.c: Likewise.
39051 * commands/ls.c: Likewise.
39052 * commands/test.c: Likewise.
39053 * commands/cmp.c: Likewise.
39054 * commands/efi/loadbios.c: Likewise.
39055 * commands/efi/fixvideo.c: Likewise.
39056 * commands/halt.c: Likewise.
39057 * commands/help.c: Likewise.
39058 * commands/reboot.c: Likewise.
39059 * hello/hello.c: Likewise.
39060 * script/sh/main.c: Likewise.
39061 * loader/xnu.c: Likewise.
39062 * term/terminfo.c: Likewise.
39063 * term/i386/pc/serial.c: Likewise.
39064 * term/usb_keyboard.c: Likewise.
39065
39066 2009-05-03 David S. Miller <davem@davemloft.net>
39067
39068 * normal/menu.c: Include grub/parser.h
39069
39070 2009-05-03 Pavel Roskin <proski@gnu.org>
39071
39072 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39073 not char*.
39074 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39075 Suggested by Javier Martín <lordhabbit@gmail.com>
39076
39077 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39078 efiemu??.o doesn't exist.
39079 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39080 copying.
39081
39082 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39083
39084 FreeBSD 64-bit support
39085
39086 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39087 and loader/i386/bsd_trampoline.S
39088 (bsd_mod_ASFLAGS): new variable
39089 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39090 (FREEBSD_MODTYPE_KERNEL64): likewise
39091 (grub_bsd64_trampoline_start): likewise
39092 (grub_bsd64_trampoline_end): likewise
39093 (grub_bsd64_trampoline_selfjump): likewise
39094 (grub_bsd64_trampoline_gdt): likewise
39095 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39096 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39097 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39098 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39099 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39100 of "attrib" member
39101 * loader/i386/bsd_pagetable.c: new file
39102 * loader/i386/bsd_trampoline.S: likewise
39103 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39104 (ALIGN_VAR): likewise
39105 (entry_hi): new variable
39106 (kern_end_mdofs): likewise
39107 (is_64bit): likewise
39108 (grub_freebsd_add_meta): use ALIGN_VAR
39109 (grub_e820_mmap): new declaration
39110 (grub_freebsd_add_mmap): new function
39111 (grub_freebsd_add_meta_module): support 64 bit kernels
39112 (grub_freebsd_list_modules): use ALIGN_VAR
39113 (gdt_descriptor): new declaration
39114 (grub_freebsd_boot): support 64 bit kernels
39115 (grub_bsd_elf64_hook): new function
39116 (grub_bsd_load_elf): support elf64
39117
39118 2009-05-03 Bean <bean123ch@gmail.com>
39119
39120 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39121 after we get the result of if statement.
39122
39123 2009-05-03 Bean <bean123ch@gmail.com>
39124
39125 * Makefile.in (enable_efiemu): New variable.
39126
39127 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39128 set.
39129 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39130 path.
39131 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39132 path, add -mno-red-zone option.
39133 (efiemu64_s.o): Likewise.
39134 (efiemu64.o): Use macro $^ for source file.
39135
39136 * configure.ac (--enable-efiemu): New option.
39137
39138 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39139
39140 xnu support
39141
39142 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39143 (pkglib_MODULES): add xnu.mod
39144 (xnu_mod_SOURCES): new variable
39145 (xnu_mod_CFLAGS): likewise
39146 (xnu_mod_LDFLAGS): likewise
39147 (xnu_mod_ASFLAGS): likewise
39148 * conf/i386-pc.rmk: likewise
39149 * conf/x86_64-efi.rmk: likewise
39150 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39151 new declaration
39152 * include/grub/i386/macho.h: new file
39153 * include/grub/i386/xnu.h: likewise
39154 * include/grub/macho.h: likewise
39155 * include/grub/machoload.h: likewise
39156 * include/grub/x86_64/macho.h: likewise
39157 * include/grub/x86_64/xnu.h: likewise
39158 * include/grub/xnu.h: likewise
39159 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39160 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39161 * loader/i386/efi/xnu.c: new file
39162 * loader/i386/pc/xnu.c: likewise
39163 * loader/i386/xnu.c: likewise
39164 * loader/i386/xnu_helper.S: likewise
39165 * loader/macho.c: likewise
39166 * loader/xnu.c: likewise
39167 * loader/xnu_resume.c: likewise
39168 * util/grub-dumpdevtree: likewise
39169 * include/grub/i386/pit.h: include grub/err.h
39170 (grub_pit_wait): export
39171 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39172
39173 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39174
39175 Efiemu
39176
39177 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39178 _linux_efi, linux_efi.
39179 new files in grub-emu
39180 new targets efiemu32.o and efiemu64.o
39181 * loader/linux_normal_efiemu.c: likewise
39182 * loader/i386/efi/linux.c: added preliminary efiemu support
39183 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39184 files to copy
39185 * include/grub/autoefi.h: new file
39186 * include/grub/i386/efiemu.h: likewise
39187 * include/grub/i386/pc/efiemu.h: likewise
39188 * include/grub/efi/api.h: add LL suffix when necessary
39189 new definitions relating to tables
39190 * include/grub/efiemu/efiemu.h: new file
39191 * include/grub/efiemu/runtime.h: likewise
39192 * efiemu/prepare.c: likewise
39193 * efiemu/loadcore_common.c: likewise
39194 * efiemu/loadcore64.c: likewise
39195 * efiemu/runtime/efiemu.sh: likewise
39196 * efiemu/runtime/efiemu.S: likewise
39197 * efiemu/runtime/efiemu.c: likewise
39198 * efiemu/runtime/config.h: likewise
39199 * efiemu/prepare32.c: likewise
39200 * efiemu/main.c: likewise
39201 * efiemu/modules/pnvram.c: likewise
39202 * efiemu/modules/i386: likewise
39203 * efiemu/modules/i386/pc: likewise
39204 * efiemu/modules/acpi.c: likewise
39205 * efiemu/i386/pc/cfgtables.c: likewise
39206 * efiemu/i386/loadcore64.c: likewise
39207 * efiemu/i386/loadcore32.c: likewise
39208 * efiemu/prepare64.c: likewise
39209 * efiemu/loadcore.c: likewise
39210 * efiemu/symbols.c: likewise
39211 * efiemu/mm.c: likewise
39212 * efiemu/loadcore32.c: likewise
39213
39214 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39215
39216 ACPI spoofing
39217
39218 * commands/acpi.c: new file
39219 * commands/i386/pc/acpi.c: likewise
39220 * commands/efi/acpi.c: likewise
39221 * include/grub/acpi.h: likewise
39222 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39223 (acpi_mod_SOURCES): new variable
39224 (acpi_mod_CFLAGS): likewise
39225 (acpi_mod_LDFLAGS): likewise
39226 * conf/i386-efi.rmk: likewise
39227 * conf/x86_64-efi.rmk: likewise
39228
39229 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39230
39231 Missing part from mmap patch
39232
39233 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39234 (grub_mmap_unregister)
39235 (grub_mmap_free_and_unregister): use grub_mmap_register
39236
39237 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39238
39239 Mmap services
39240
39241 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39242 * loader/i386/linux.c (find_mmap_size): likewise
39243 (allocate_pages): likewise
39244 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39245 (grub_fill_multiboot_mmap): likewise
39246 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39247 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39248 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39249 (OPENBSD_MMAP_RESERVED): likewise
39250 * include/grub/i386/pc/memory.h: include grub/memory.h
39251 (grub_lower_mem): removed
39252 (grub_upper_mem): likewise
39253 (GRUB_MACHINE_MEMORY_ACPI): new definition
39254 (GRUB_MACHINE_MEMORY_NVS): likewise
39255 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39256 (GRUB_MACHINE_MEMORY_HOLE): likewise
39257 (grub_machine_mmap_register): likewise
39258 (grub_machine_mmap_unregister): likewise
39259 (grub_machine_get_upper): likewise
39260 (grub_machine_get_lower): likewise
39261 (grub_machine_get_post64): likewise
39262 * include/grub/i386/efi/memory.h: new file
39263 * include/grub/x86_64/efi/memory.h: likewise
39264 * include/grub/efi/memory.h: likewise
39265 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39266 (mmap_mod_SOURCES): new variable
39267 (mmap_mod_LDFLAGS): likewise
39268 (mmap_mod_ASFLAGS): likewise
39269 * conf/i386-coreboot.rmk: likewise
39270 * conf/i386-ieee1275.rmk: likewise
39271 * conf/i386-efi.rmk: likewise
39272 * conf/x86_64-efi.rmk: likewise
39273 * include/grub/types.h (UINT_TO_PTR): new macro
39274 (PTR_TO_UINT32): likewise
39275 (PTR_TO_UINT64): likewise
39276 * include/grub/memory.h: new file
39277 * mmap/i386/pc/mmap.c: likewise
39278 * mmap/i386/pc/mmap_helper.S: likewise
39279 * mmap/i386/uppermem.c: likewise
39280 * mmap/mmap.c: likewise
39281 * mmap/efi/mmap.c: likewise
39282 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39283 grub_upper_mem
39284 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39285 (grub_upper_mem): likewise
39286 (grub_machine_init): don't use grub_upper_mem,
39287 make grub_lower_mem local
39288 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39289 grub_mmap_iterate and grub_mmap_get_upper
39290 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39291
39292 2009-05-02 Bean <bean123ch@gmail.com>
39293
39294 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39295 script/sh/parser.y.
39296 (pkglib_MODULES): Add normal.mod and sh.mod.
39297 (normal_SOURCES): New variable.
39298 (normal_mod_CFLAGS): Likewise.
39299 (normal_mod_LDFLAGS): Likewise.
39300 (sh_mod_SOURCES): Likewise.
39301 (sh_mod_CFLAGS): Likewise.
39302 (sh_mod_LDFLAGS): Likewise.
39303
39304 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39305 script/sh/lexer.c_DEPENDENCIES.
39306 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39307 kern/rescue_reader.c and kern/rescue_parser.c.
39308 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39309 (grub_emu_SOURCES): Change source files.
39310 (pkglib_MODULES): Remove normal.mod.
39311 (normal_SOURCES): Removed.
39312 (normal_mod_CFLAGS): Likewise.
39313 (normal_mod_LDFLAGS): Likewise.
39314 * conf/i386-coreboot.rmk: Likewise.
39315 * conf/i386-efi.rmk: Likewise.
39316 * conf/i386-ieee1276.rmk: Likewise.
39317 * conf/powerpc-ieee1275.rmk: Likewise.
39318 * conf/sparc64-ieee1275.rmk: Likewise.
39319 * conf/x86_64-efi.rmk: Likewise.
39320
39321 * include/grub/command.h (grub_command_execute): New inline function.
39322
39323 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39324
39325 * include/grub/normal.h: Remove <grub/setjmp.h>.
39326 (grub_fs_module_list): Moved to normal/autofs.c.
39327 (grub_exit_env): Removed.
39328 (grub_command_execute): Likewise.
39329 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39330 parameter script.
39331 (read_command_list): New function declaration.
39332 (read_fs_list): Likewise.
39333
39334 * include/parser.h: Include <grub/reader.h>.
39335 (grub_parser_split_cmdline): Change type of getline parameter.
39336 (grub_parser): New structure.
39337 (grub_parser_class): New variable.
39338 (grub_parser_execute): New function declaration.
39339 (grub_register_rescue_parser): Likewise.
39340 (grub_parser_register): New inline function.
39341 (grub_parser_unregister): Likewise.
39342 (grub_parser_get_current): Likewise.
39343 (grub_parser_set_current): Likewise.
39344
39345 * include/grub/reader.h: New file.
39346 * kern/reader.c: Likewise.
39347 * kern/rescue_parser.c: Likewise.
39348 * kern/rescue_reader.c: Likewise.
39349 * normal/autofs.c: Likewise.
39350 * normal/dyncmd.c: Likewise.
39351
39352 * include/grub/rescue.h: Removed.
39353 * normal/command.h: Likewise.
39354
39355 * include/grub/script.h: Moved to ...
39356 * include/grub/script_sh.h: ... Moved here.
39357 * normal/execute.c: Moved to ...
39358 * script/sh/execute.c: ... Moved here.
39359 * normal/function.c: Moved to ...
39360 * script/sh/function.c: ... Moved here.
39361 * normal/lexer.c: Moved to ...
39362 * script/sh/lexer.c: ... Moved here.
39363 * normal/parser.y: Moved to ...
39364 * script/sh/parser.y: ... Moved here.
39365 * normal/script.c: Moved to ...
39366 * script/sh/script.c: ... Moved here.
39367
39368 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39369 <grub/reader.h>.
39370 (grub_exit_env): Removed.
39371 (fs_module_list): Moved to normal/autofs.c.
39372 (grub_file_getline): Don't handle comment here.
39373 (free_menu): Skip removed field entry->commands.
39374 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39375 script parameter.
39376 (read_config_file): Removed nested parameter, change getline function.
39377 (grub_enter_normal_mode): Removed.
39378 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39379 (read_command_list): Likewise.
39380 (autoload_fs_module): Moved to normal/autofs.c.
39381 (read_fs_list): Likewise.
39382 (reader_nested): New variable.
39383 (grub_normal_execute): Run parser.sh to switch to sh parser.
39384 (grub_cmd_rescue): Removed.
39385 (cmd_normal): Removed.
39386 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39387 rescue command.
39388 (grub_cmdline_run): New function.
39389 (grub_normal_reader_init): Likewise.
39390 (grub_normal_read_line): Likewise.
39391 (grub_env_write_pager): Likewise.
39392 (cmdline): New variable.
39393 (grub_normal_reader): Likewise.
39394 (GRUB_MOD_INIT): Register normal reader and set as current, register
39395 pager hook, register normal command with grub_register_command_prio,
39396 so that it won't show up in command.lst.
39397 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39398 grub_fs_autoload_hook.
39399
39400 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39401 (grub_menu_execute_entry): Replace grub_script_execute with
39402 grub_parser_execute, change parameter to grub_command_execute.
39403
39404 * normal/menu_text.c: Remove <grub/script.h>.
39405
39406 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39407 and <grub/parser.h>.
39408 (run): Change editor_getline to use new parser interface. Change
39409 parameter to grub_command_execute.
39410
39411 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39412 <grub/reader.h> and <grub/parser.h>.
39413 (grub_load_normal_mode): Execute normal command.
39414 (grub_main): Call grub_register_core_commands,
39415 grub_register_rescue_parser and grub_register_rescue_reader, use
39416 grub_reader_loop to enter input loop.
39417
39418 * kern/parser.c (grub_parser_split_cmdline): Change type of
39419 getline parameter.
39420 (grub_parser_class): New variable.
39421 (grub_parser_execute): New function.
39422
39423 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39424 * loader/multiboot2.c: Likewise.
39425 * loader/sparc64/ieee1275/linux.c: Likewise.
39426
39427 * util/grub-emu.c (read_command_list): New dummy function.
39428
39429 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39430
39431 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39432 count to 16 for CCISS and IDA.
39433
39434 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39435
39436 * normal/menu_text.c (grub_wait_after_message): Print a newline
39437 after waiting for user input.
39438
39439 * loader/i386/linux.c: Include `<grub/normal.h>'.
39440 (grub_cmd_linux): Improve the error message about `ask' mode, by
39441 waiting for user input so it's not missed (we can do this, since
39442 user requested interaction).
39443
39444 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39445
39446 Added missing lst to grub-mkrescue
39447
39448 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39449 and ${input_dir}/parttool.lst
39450
39451 2009-04-30 David S. Miller <davem@davemloft.net>
39452
39453 * util/hostdisk.c (device_is_wholedisk): New function.
39454 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39455 zero only if device_is_wholedisk() returns true.
39456
39457 * util/hostdisk.c (convert_system_partition_to_system_disk):
39458 Handle virtual disk devices named /dev/vdiskX as found on sparc
39459 and powerpc.
39460
39461 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39462 lettered partition specifier is found, convert to numbered.
39463
39464 2009-04-29 David S. Miller <davem@davemloft.net>
39465
39466 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39467 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39468
39469 * normal/command.c: Add missing newline at end of file.
39470
39471 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39472 warnings.
39473 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39474 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39475 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39476 ihandles have a 32-bit type but need to be stored in a "void *".
39477
39478 2009-04-28 Pavel Roskin <proski@gnu.org>
39479
39480 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39481 not disk. Adjust all dependencies.
39482 (grub_fs_uuid_close): Use grub_device_close(), not
39483 grub_disk_close().
39484
39485 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39486 parent's partition, don't copy it by reference, as it gets freed
39487 on close.
39488
39489 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39490
39491 Preboot hooks support
39492
39493 * commands/boot.c (struct grub_preboot_t): new declaration
39494 (preboots_head): new variable
39495 (preboots_tail): likewise
39496 (grub_loader_register_preboot_hook): new function
39497 (grub_loader_unregister_preboot_hook): likewise
39498 (grub_loader_set): launch preboot hooks
39499 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39500 (grub_loader_register_preboot_hook): new declaration
39501 (grub_loader_unregister_preboot_hook): likewise
39502
39503 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39504
39505 Warning fix
39506
39507 * disk/scsi.c (grub_scsi_open): added missing cast when
39508 calling grub_dprintf
39509
39510 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39511
39512 Bug and warning fixes
39513
39514 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39515 declaration
39516 * commands/test.c (test_parse): fixed bug with file tests and corrected
39517 declaration of find_file
39518
39519 2009-04-26 Pavel Roskin <proski@gnu.org>
39520
39521 * Makefile.in: Don't install empty manual pages if help2man is
39522 missing. Use help2man option for output, not shell redirection.
39523
39524 2009-04-26 David S. Miller <davem@davemloft.net>
39525
39526 * util/grub-mkdevicemap.c (make_device_map): Add missing
39527 NESTED_FUNC_ATTR to process_device().
39528
39529 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39530
39531 Test command
39532
39533 * commands/test.c: rewritten to use bash-like test
39534
39535 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39536
39537 Parttool autoloading and improvements
39538
39539 * Makefile.in (pkglib_DATA): add parttool.lst
39540 (parttool.lst): new target
39541 * genmk.rb: generate parttool-*
39542 (CLEANFILES): add #{parttool}
39543 (PARTTOOLFILES): new variable
39544 * genparttoollist.sh: new file
39545 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39546 (grub_pcpart_type): likewise
39547 * commands/parttool.c (helpmsg): new variable
39548 (grub_cmd_parttool): output help if not enough arguments are supplied
39549 autoload modules
39550 (GRUB_MOD_INIT(parttool)): use helpmsg
39551
39552 2009-04-24 David S. Miller <davem@davemloft.net>
39553
39554 Avoiding opening same device multiple times in device iterator.
39555
39556 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39557 and use it to build a list of partitions in iterate_disk() and
39558 iterate_partition().
39559
39560 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39561 on disk->data.
39562
39563 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39564 grub_devalias_iterate() result instead of unconditional 0.
39565 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39566 Also, capture hook return value, either directly or via
39567 grub_children_iterate(), and propagate to caller.
39568 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39569 grub_children_iterate): Return value is now 'int' instead of
39570 'grub_err_t'.
39571 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39572 like a proper iterator, stopping when hooks return non-zero.
39573 (grub_devalias_iterate): Likewise.
39574
39575 2009-04-23 David S. Miller <davem@davemloft.net>
39576
39577 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39578
39579 2009-04-22 David S. Miller <davem@davemloft.net>
39580
39581 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39582 is larger than address_cells, use that value for address_cells too.
39583
39584 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39585 IEEE1275_MAX_PATH_LEN): Define.
39586 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39587 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39588 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39589 'devtype'. Explicitly NULL terminate devalias expansion.
39590
39591 * util/sparc64/ieee1275/misc.c: New file.
39592 * util/sparc64/ieee1275/grub-setup.c: New file.
39593 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39594 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39595 * util/sparc64/ieee1275/grub-install.in: New file.
39596 * util/ieee1275/ofpath.c: New file.
39597 * util/ieee1275/devicemap.c: New file.
39598 * util/devicemap.c: New file.
39599 * util/deviceiter.c: New file.
39600 * kern/sparc64/ieee1275/init.c: New file.
39601 * include/grub/util/ofpath.h: New file.
39602 * include/grub/util/deviceiter.h: New file.
39603 * util/grub-mkdevicemap.c: Include deviceiter.h.
39604 Implement using grub_util_emit_devicemap_entry and
39605 grub_util_iterate_devices.
39606 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39607 util/devicemap.c into grub-mkdevicemap
39608 * conf/i386-efi.rmk: Likewise.
39609 * conf/i386-ieee1275.rmk: Likewise.
39610 * conf/i386-pc.rmk: Likewise.
39611 * conf/powerpc-ieee1275.rmk: Likewise.
39612 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39613 images and installation utilities. Build kernel as image
39614 instead of as elf binary. Use common rules as much as possible.
39615
39616 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39617
39618 Correct GPT definition
39619
39620 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39621 of "attrib" member
39622
39623 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39624
39625 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39626
39627 2009-04-19 David S. Miller <davem@davemloft.net>
39628
39629 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39630 (grub_rescue_cmd_linux): Rename to...
39631 (grub_cmd_linux): and fix prototype.
39632 (grub_rescue_cmd_initrd): Rename to...
39633 (grub_cmd_initrd): and fix prototype.
39634 (cmd_linux, cmd_initrd): New.
39635 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39636 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39637
39638 2009-04-17 Pavel Roskin <proski@gnu.org>
39639
39640 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39641 format.
39642 (grub_ohci_transfer): Likewise.
39643
39644 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39645
39646 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39647 return without a value. Fix inconsistent indentation.
39648
39649 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39650 match struct grub_fs.
39651
39652 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39653 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39654 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39655 * commands/lspci.c (grub_lspci_iter): Likewise.
39656
39657 2009-04-16 Bean <bean123ch@gmail.com>
39658
39659 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39660 value.
39661
39662 2009-04-15 Pavel Roskin <proski@gnu.org>
39663
39664 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39665 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39666 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39667 definitions.
39668
39669 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39670
39671 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39672 that no multiple data or metadata areas are supported and `Unknown
39673 metadata header'.
39674
39675 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39676
39677 Move loader out of the kernel
39678
39679 * kern/loader.c: moved to ...
39680 * commands/boot.c: ... moved here
39681 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39682 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39683 * include/grub/kernel.h (grub_machine_fini): export
39684 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39685 (grub_loader_set): likewise
39686 (grub_loader_unset): likewise
39687 (grub_loader_boot): likewise
39688 * conf/common.rmk: new module boot.mod
39689 (pkglib_MODULES): add boot.mod
39690 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39691 (grub_emu_SOURCES): likewise
39692 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39693 (grub_emu_SOURCES): likewise
39694 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39695 (grub_emu_SOURCES): likewise
39696 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39697 (grub_emu_SOURCES): likewise
39698 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39699 (grub_emu_SOURCES): likewise
39700 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39701 (grub_emu_SOURCES): likewise
39702 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39703 (grub_emu_SOURCES): likewise
39704
39705 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39706
39707 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39708
39709 * kern/misc.c (grub_itoa): Removed function
39710 (grub_ltoa): likewise
39711 (grub_vsprintf): use grub_lltoa
39712
39713 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39714
39715 Restore grub-emu
39716
39717 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39718 * conf/i386-coreboot.rmk: likewise
39719 * conf/i386-ieee1275.rmk: likewise
39720 * conf/powerpc-ieee1275.rmk: likewise
39721
39722 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39723
39724 * INSTALL: Add that `./autogen.sh' needs to be run before
39725 `./configure.'.
39726
39727 2009-04-14 Bean <bean123ch@gmail.com>
39728
39729 * Makefile.in (pkglib_DATA): Add handler.lst.
39730 (handler.lst): New rule.
39731
39732 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39733 * conf/i386-coreboot.rmk: Likewise.
39734 * conf/i386-ieee1275.rmk: Likewise.
39735 * conf/i386-efi.rmk: Likewise.
39736 * conf/x86_64-efi.rmk: Likewise.
39737 * conf/powerpc-ieee1275.rmk: Likewise.
39738 * conf/sparc64-ieee1275.rmk: Likewise.
39739
39740 * genhandlerlist.sh: New file.
39741
39742 * genmk.rb: Add rules to generate handler.lst.
39743
39744 * include/grub/normal.h (grub_file_getline): New function definition.
39745 (read_handler_list): Likewise.
39746 (free_handler_list): Likewise.
39747
39748 * include/grub/term.h (grub_term_register_input): Add name parameter
39749 for auto generation of handler.lst.
39750 (grub_term_register_output): Likewise.
39751
39752 * normal/handler.c: New file.
39753
39754 * normal/main.c (get_line): Renamed to grub_file_getline.
39755 (read_config_file): Use the newly renamed grub_file_getline.
39756 (read_command_list): Likewise.
39757 (read_fs_list): Likewise.
39758 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39759 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39760
39761 * term/efi/console.c (grub_console_init): Add name parameter for auto
39762 generation of handler.lst.
39763 * term/gfxterm.c: Likewise.
39764 * term/i386/pc/at_keyboard.c: Likewise.
39765 * term/i386/pc/console.c: Likewise.
39766 * term/i386/pc/serial.c: Likewise.
39767 * term/i386/pc/vesafb.c: Likewise.
39768 * term/i386/pc/vga.c: Likewise.
39769 * term/i386/pc/vga_text.c: Likewise.
39770 * term/ieee1275/ofconsole.c: Likewise.
39771 * term/usb_keyboard.c: Likewise.
39772
39773 2009-04-14 Bean <bean123ch@gmail.com>
39774
39775 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39776 properly with null character.
39777
39778 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39779
39780 * configure: Remove.
39781 * config.h.in: Likewise.
39782 * stamp-h.in: Likewise.
39783 * DISTLIST: Likewise.
39784 * conf/common.mk: Likewise.
39785 * conf/i386-coreboot.mk: Likewise.
39786 * conf/i386-efi.mk: Likewise.
39787 * conf/i386-ieee1275.mk: Likewise.
39788 * conf/i386.mk: Likewise.
39789 * conf/i386-pc.mk: Likewise.
39790 * conf/powerpc-ieee1275.mk: Likewise.
39791 * conf/sparc64-ieee1275.mk: Likewise.
39792 * conf/x86_64-efi.mk: Likewise.
39793
39794 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39795 develop on GRUB.
39796
39797 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39798 David S. Miller <davem@davemloft.net>
39799
39800 * util/hostdisk.c (make_device_name): Fix buffer length
39801 calculations.
39802
39803 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39804
39805 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39806 <sys/param.h> and <sys/sysctl.h>.
39807 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39808 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39809 opening the device and reset them afterwards.
39810
39811 2009-04-13 Pavel Roskin <proski@gnu.org>
39812
39813 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39814 Reported by John Stanley <jpsinthemix@verizon.net>
39815
39816 2009-04-13 Robert Millan <rmh@aybabtu.com>
39817
39818 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39819 that name for menuentries when appropriate.
39820
39821 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39822
39823 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39824
39825 2009-04-13 Robert Millan <rmh@aybabtu.com>
39826
39827 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39828 to Linux, simply abort telling the user it's no longer supported.
39829
39830 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39831
39832 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39833 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39834 `freebsd_loadenv' only when devices.hints exist.
39835
39836 2009-04-13 Pavel Roskin <proski@gnu.org>
39837
39838 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39839
39840 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39841
39842 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39843 partition number.
39844 (grub_drive): Likewise.
39845
39846 2009-04-13 David S. Miller <davem@davemloft.net>
39847
39848 * kern/sparc64/ieee1275/ieee1275.c: New file.
39849 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39850 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39851 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39852 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39853 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39854 grub_ieee1275_alloc_physmem): Declare new exported functions.
39855
39856 * include/grub/sparc64/ieee1275/loader.h: New file.
39857 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39858 * include/grub/sparc64/kernel.h: Likewise.
39859 * loader/sparc64/ieee1275/linux.c: Likewise.
39860
39861 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39862 (grub_fstest_SOURCES): Likewise.
39863
39864 * util/hostdisk.c (make_device_name): Do not make any assumptions
39865 about the length of drive names.
39866
39867 * kern/dl.c (grub_dl_load_file): Close file immediately when
39868 we are done using it.
39869
39870 2009-04-12 David S. Miller <davem@davemloft.net>
39871
39872 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39873 values. Noticed by Pavel Roskin.
39874
39875 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39876 target compiler.
39877
39878 * genmk.rb: Add more flexible image type specification, also
39879 pass --strip-unneeded to objcopy.
39880 * conf/i386-pc.rmk: Use *_FORMAT.
39881 * conf/i386-pc.mk: Rebuilt.
39882
39883 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39884 (OFDISK_HASH_SZ): Define.
39885 (ofdisk_hash): New hash table.
39886 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39887 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39888 instead of device phandle which is not unique.
39889
39890 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39891 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39892 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39893 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39894 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39895 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39896 GRUB_KERNEL_MACHINE_DATA_END): Define.
39897 (grub_kernel_image_size, grub_total_module_size): Declare.
39898
39899 2009-04-12 Pavel Roskin <proski@gnu.org>
39900
39901 * configure.ac: Change the logic when we check for target tools.
39902 Do it when the target is specified and it's different from the
39903 specified value of the host.
39904
39905 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39906
39907 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39908 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39909 GNU/kFreeBSD. Check if a device is a character device. Use
39910 DIOCGMEDIASIZE to get the size.
39911 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39912 support for GNU/kFreeBSD.
39913 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39914 is a character device instead of a block device. Add support for
39915 FreeBSD device names.
39916
39917 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39918 is a character device instead of a block device.
39919
39920 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39921 is a character device instead of a block device.
39922
39923 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39924
39925 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39926 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39927 FreeBSD. Check if a device is a character device. Use
39928 DIOCGMEDIASIZE to get the size.
39929 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39930 support for FreeBSD.
39931 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39932 is a character device instead of a block device. Add support for
39933 FreeBSD device names.
39934
39935 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39936 a character device instead of a block device.
39937 (grub_util_check_char_device): New function.
39938
39939 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39940 a character device instead of a block device.
39941
39942 * include/grub/util/getroot.h (grub_util_check_char_device): New
39943 prototype.
39944
39945 2009-04-11 David S. Miller <davem@davemloft.net>
39946
39947 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39948 static libgcc.
39949 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39950 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39951 function, if present.
39952 (__bswapdi2): Likewise.
39953
39954 * include/grub/sparc64/ieee1275/boot.h: New file.
39955 * boot/sparc64/ieee1275/boot.S: Likewise.
39956 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39957
39958 * kern/misc.c (grub_ltoa): New function.
39959 (grub_vsprintf): Use it to format 'long' integers.
39960
39961 2009-04-10 David S. Miller <davem@davemloft.net>
39962
39963 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39964 slots are of type grub_ieee1275_cell_t.
39965 (grub_nand_read): Likewise.
39966 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39967 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39968 macros are used to compare values in arg/ret block of the call.
39969 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39970 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39971 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39972 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39973 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39974 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39975 grub_ieee1275_close, grub_ieee1275_set_property,
39976 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39977 grub_ieee1275_cell_t.
39978 * kern/ieee1275/openfw.c (grub_map): Likewise.
39979 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39980 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39981
39982 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39983 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39984 (grub_devalias_iterate): Likewise.
39985
39986 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39987
39988 UFS improvements
39989
39990 * fs/ufs.c (INODE_NBLOCKS): new definition
39991 (struct grub_ufs_dirent): added fields for non-BSD dirents
39992 (grub_ufs_get_file_block): fixed double indirect handling
39993 (grub_ufs_lookup_symlink): use more robust way to determine whether
39994 symlink is inline
39995 (grub_ufs_find_file): support for non-BSD dirents
39996 (grub_ufs_dir): support for non-BSD dirents
39997
39998 2009-04-10 Bean <bean123ch@gnail.com>
39999
40000 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40001 attribute, otherwise the size would be wrong for i386 platform.
40002
40003 * include/grub/pci.h (grub_pci_read_word): New inline function.
40004 (grub_pci_read_byte): Likewise.
40005 (grub_pci_write): Likewise.
40006 (grub_pci_write_word): Likewise.
40007 (grub_pci_write_byte): Likewise.
40008
40009 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40010
40011 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40012 (find_framebuf): Scan pci to locate the frame buffer address.
40013
40014 * commands/efi/fixvideo.c: New file.
40015
40016 * commands/efi/loadbios.c: Likewise.
40017
40018 * commands/memrw.c: Likewise.
40019
40020 * util/grub-dumpbios.in: Likewise.
40021
40022 * conf/common.rmk (grub-dumpbios): New utility.
40023 (pkglib_MODULES): New module memrw.mod.
40024 (memrw_mod_SOURCE): New macro.
40025 (memrw_mod_CFLAGS): Likewise.
40026 (memrw_mod_LDFLAGS): Likewise.
40027
40028 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40029 fixvideo.mod.
40030 (loadbios_mod_SOURCE): New macro.
40031 (loadbios_mod_CFLAGS): Likewise.
40032 (loadbios_mod_LDFLAGS): Likewise.
40033 (fixvideo_mod_SOURCE): Likewise.
40034 (fixvideo_mod_CFLAGS): Likewise.
40035 (fixvideo_mod_LDFLAGS): Likewise.
40036
40037 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40038 fixvideo.mod.
40039 (loadbios_mod_SOURCE): New macro.
40040 (loadbios_mod_CFLAGS): Likewise.
40041 (loadbios_mod_LDFLAGS): Likewise.
40042 (fixvideo_mod_SOURCE): Likewise.
40043 (fixvideo_mod_CFLAGS): Likewise.
40044 (fixvideo_mod_LDFLAGS): Likewise.
40045
40046 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40047
40048 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40049
40050 2009-04-07 David S. Miller <davem@davemloft.net>
40051
40052 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40053 support for R_SPARC_OLO10 relocations. Fix compile warning for
40054 R_SPARC_WDISP30 case.
40055 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40056
40057 2009-04-06 Pavel Roskin <proski@gnu.org>
40058
40059 * include/grub/misc.h (ARRAY_SIZE): New macro.
40060 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40061 New macro.
40062 * loader/i386/linux.c (allocate_pages): Use free_pages().
40063 (grub_linux_unload): Don't use free_pages().
40064 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40065 wrong index. Treat all other modes as text modes.
40066 (grub_cmd_linux): Initialize vid_mode unconditionally to
40067 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40068
40069 * commands/help.c (print_command_help): Use cmd->prio, not
40070 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40071
40072 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40073
40074 Parttool
40075
40076 * parttool/pcpart.c: new file
40077 * commands/parttool.c: likewise
40078 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40079 (parttool_mod_SOURCES): new variable
40080 (parttool_mod_CFLAGS): likewise
40081 (parttool_mod_LDFLAGS): likewise
40082 (pcpart_mod_SOURCES): likewise
40083 (pcpart_mod_CFLAGS): likewise
40084 (pcpart_mod_LDFLAGS): likewise
40085 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40086 and parttool/pcpart.c
40087 * conf/i386-efi.rmk: likewise
40088 * conf/i386-ieee1275.rmk: likewise
40089 * conf/i386-pc.rmk: likewise
40090 * conf/powerpc-ieee1275.rmk: likewise
40091 * conf/sparc64-ieee1275.rmk: likewise
40092 * conf/x86_64-ieee1275.rmk: likewise
40093
40094 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40095
40096 Support for mtime and further expandability of dir command
40097
40098 * include/grub/lib/datetime.h: moved to ...
40099 * include/grub/datetime.h: ... moved here and added
40100 declaration of grub_unixtime2datetime. All users updated
40101 * include/grub/fs.h: new syntax for dir and mtime functions in
40102 struct grub_fs
40103 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40104 and GRUB_FSHELP_FLAGS_MASK
40105 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40106 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40107 (grub_ext2_mtime): new function
40108 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40109 (grub_hfsplus_mtime): new function
40110 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40111 (GRUB_UFS_ATTR_FILE): likewise
40112 (GRUB_UFS_ATTR_LNK): likewise
40113 (struct grub_ufs_sblock): new fields mtime
40114 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40115 all users updated
40116 (grub_ufs_dir): mtime support
40117 (grub_ufs_mtime): new function
40118 * fs/affs.c (grub_affs_dir): use new dir syntax
40119 * fs/afs.c (grub_afs_dir): likewise
40120 * fs/cpio.c (grub_cpio_dir): likewise
40121 * fs/fat.c (grub_fat_find_dir): likewise
40122 * fs/hfs.c (grub_hfs_dir): likewise
40123 * fs/iso9660.c (grub_iso9660_dir): likewise
40124 * fs/jfs.c (grub_jfs_dir): likewise
40125 * fs/minix.c (grub_minix_dir): likewise
40126 * fs/ntfs.c (grub_ntfs_dir): likewise
40127 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40128 * fs/sfs.c (grub_sfs_dir): likewise
40129 * fs/xfs.c (grub_xfs_dir): likewise
40130 * util/hostfs.c (grub_hostfs_dir): likewise
40131 * lib/datetime.c: moved to ...
40132 * normal/datetime.c: ... moved here
40133 (grub_unixtime2datetime): new function
40134 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40135 * normal/completion.c (iterate_dir): use new dir syntax
40136 * normal/misc.c (grub_normal_print_device_info): tell the
40137 last modification time of a volume
40138 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40139 * conf/common.rmk: added lib/datetime.c to ls.mod
40140 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40141 (normal_mod_SOURCES): likewise
40142 (datetime_mod_SOURCES): Removed lib/datetime.c
40143 * conf/i386-efi.rmk: likewise
40144 * conf/i386-ieee1275.rmk: likewise
40145 * conf/i386-pc.rmk: likewise
40146 * conf/powerpc-ieee1275.rmk: likewise
40147 * conf/sparc64-ieee1275.rmk: likewise
40148 * conf/x86_64-efi.rmk: likewise
40149
40150 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40151
40152 Trim trailing spaces in FAT label and support mtools-like labels
40153
40154 * fs/fat.c (grub_fat_iterate_dir): New function based
40155 on grub_fat_find_dir
40156 (grub_fat_find_dir): use grub_fat_iterate_dir
40157 (grub_fat_label): likewise
40158
40159 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40160
40161 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40162 and command.h
40163 remove extraneous kernel_elf_HEADERS
40164
40165 2009-04-04 Bean <bean123ch@gnail.com>
40166
40167 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40168
40169 * util/misc.c: Likewise.
40170
40171 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40172
40173 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40174 instead of grub_printf.
40175
40176 2009-04-03 Robert Millan <rmh@aybabtu.com>
40177
40178 * loader/i386/linux.c (grub_linux_setup_video): Fill
40179 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40180 values from `mode info' structure instead of hardcoded
40181 values.
40182
40183 2009-04-01 Pavel Roskin <proski@gnu.org>
40184
40185 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40186 unused now.
40187 * genmk.rb: Likewise.
40188 * configure.ac: Likewise.
40189
40190 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40191
40192 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40193 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40194
40195 2009-04-01 David S. Miller <davem@davemloft.net>
40196
40197 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40198 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40199 (grub_setjmp): Mark with 'returns_twice' attribute.
40200 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40201 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40202 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40203
40204 2009-04-01 Robert Millan <rmh@aybabtu.com>
40205
40206 Reapply fix from 2008-07-28 which was accidentally reverted; also
40207 perform the same fix to a similar check in same function.
40208
40209 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40210 with the same number are found, just use issue a warning with
40211 grub_dprintf(), as this error has been reported to be non-fatal.
40212
40213 2009-03-31 Pavel Roskin <proski@gnu.org>
40214
40215 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40216 for cross-compilation.
40217
40218 2009-03-30 Robert Millan <rmh@aybabtu.com>
40219
40220 Fix i386-ieee1275 build.
40221
40222 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40223 Remove declaration.
40224
40225 2009-03-30 Pavel Roskin <proski@gnu.org>
40226
40227 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40228 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40229 zero-terminated, rely only on the strlen value. Fix comparison
40230 of strings differing in length.
40231
40232 2009-03-30 Robert Millan <rmh@aybabtu.com>
40233
40234 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40235 checking for abi version. Improve error messages on BIOS to notify
40236 user about `linux16' command.
40237
40238 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40239
40240 Leak fixes
40241
40242 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40243 in case of collision
40244 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40245
40246 2009-03-29 Robert Millan <rmh@aybabtu.com>
40247
40248 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40249 set `vid_mode' accordingly.
40250 (grub_linux_boot): Process `vid_mode' and set video mode.
40251
40252 2009-03-29 Robert Millan <rmh@aybabtu.com>
40253
40254 * util/grub.d/10_linux.in (linux_entry): New function.
40255 Factorize generation of Linux boot entries.
40256
40257 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40258
40259 Make the format of Environment Block plain text. The boot loader
40260 part is not tested well yet.
40261
40262 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40263 (buffer): Removed.
40264 (envblk): Likewise.
40265 (usage): Remove "info" and "clear". Add "unset". Update the
40266 description of "set", as this does not delete variables any
40267 longer.
40268 (create_envblk_file): Complete rewrite.
40269 (open_envblk_file): Likewise.
40270 (cmd_info): Removed.
40271 (cmd_list): Likewise.
40272 (cmd_set): Likewise.
40273 (cmd_clear): Likewise.
40274 (list_variables): New function.
40275 (write_envblk): Likewise.
40276 (set_variables): Likewise.
40277 (unset_variables): Likewise.
40278 (main): Complete rewrite.
40279
40280 * commands/loadenv.c (buffer): Removed.
40281 (envblk): Likewise.
40282 (open_envblk_file): New function.
40283 (read_envblk_file): Complete rewrite.
40284 (grub_cmd_load_env): Likewise.
40285 (grub_cmd_list_env): Likewise.
40286 (struct blocklist): New struct.
40287 (free_blocklists): New function.
40288 (check_blocklists): Likewise.
40289 (write_blocklists): Likewise.
40290 (grub_cmd_save_env): Complete rewrite.
40291
40292 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40293 a plain text signature.
40294 (GRUB_ENVBLK_MAXLEN): Removed.
40295 (struct grub_envblk): Complete rewrite.
40296 (grub_envblk_find): Removed.
40297 (grub_envblk_insert): Likewise.
40298 (grub_envblk_open): New prototype.
40299 (grub_envblk_set): Likewise.
40300 (grub_envblk_delete): Put const to VALUE.
40301 (grub_envblk_iterate): Put const to NAME and VALUE.
40302 (grub_envblk_close): New prototype.
40303 (grub_envblk_buffer): New inline function.
40304 (grub_envblk_size): Likewise.
40305
40306 * lib/envblk.c: Include grub/mm.h.
40307 (grub_env_find): Removed.
40308 (grub_envblk_open): New function.
40309 (grub_envblk_close): Likewise.
40310 (escaped_value_len): Likewise.
40311 (find_next_line): Likewise.
40312 (grub_envblk_insert): Removed.
40313 (grub_envblk_set): New function.
40314 (grub_envblk_delete): Complete rewrite.
40315 (grub_envblk_iterate): Likewise.
40316
40317 2009-03-28 Robert Millan <rmh@aybabtu.com>
40318
40319 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40320 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40321 variables. Use 16-bit loader.
40322 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40323 loader.
40324 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40325 (grub_linux16_boot): ... this. Update all users.
40326 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40327 (grub_linux_boot): ... this. Update all users.
40328
40329 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40330 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40331 commands to `linux16' and `initrd16'.
40332 (GRUB_MOD_FINI(linux)): Rename to ...
40333 (GRUB_MOD_FINI(linux16)): ... this.
40334
40335 2009-03-24 Pavel Roskin <proski@gnu.org>
40336
40337 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40338 not just for compilation.
40339
40340 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40341
40342 Move multiboot helper out of kernel
40343
40344 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40345 `loader/i386/multiboot_helper.S'.
40346 * conf/i386-coreboot.rmk: Likewise
40347 * conf/i386-ieee1275.rmk: Likewise
40348
40349 * kern/i386/loader.S: Move multiboot helpers from here...
40350 * loader/i386/multiboot_helper.S: ...moved here
40351 * include/grub/i386/loader.h: Move declarations of multiboot
40352 helpers from here...
40353 * include/grub/i386/multiboot.h: ...moved here
40354 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40355
40356 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40357
40358 * kern/env.c (grub_env_context_open): Added an argument to specify
40359 whether a new context inherits exported variables from current
40360 one. This is useful when making a sandbox to interpret a config
40361 file.
40362 All callers updated.
40363
40364 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40365
40366 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40367
40368 * kern/env.c (grub_env_context_close): Fix memory leaks.
40369
40370 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40371
40372 * normal/main.c (grub_normal_execute): Added an argument
40373 BATCH to specify if an interactive interface should be provided
40374 after reading a config file.
40375 All callers updated.
40376 (read_command_list): Prevent being executed twice.
40377 (read_fs_list): Likewise.
40378
40379 * include/grub/normal.h (grub_normal_execute): Updated the
40380 prototype.
40381
40382 2009-03-22 Pavel Roskin <proski@gno.org>
40383
40384 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40385 _start.
40386 * kern/i386/pc/startup.S: Likewise.
40387 * kern/i386/efi/startup.S: Likewise.
40388 * kern/i386/ieee1275/startup.S: Likewise.
40389 * kern/i386/coreboot/startup.S: Likewise.
40390 * kern/x86_64/efi/startup.S: Likewise.
40391
40392 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40393 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40394 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40395
40396 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40397
40398 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40399
40400 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40401 limit detection.
40402 Use vaddr of correct segment for entry_point.
40403
40404 2009-03-21 Bean <bean123ch@gmail.com>
40405
40406 * commands/blocklist.c: Add include file <grub/command.h>, remove
40407 <grub/normal.h> and <grub/arg.h>.
40408 (grub_cmd_blocklist): Use the new command interface.
40409 (GRUB_MOD_INIT): Likewise.
40410 (GRUB_MOD_FINI): Likewise.
40411 * commands/boot.c: Likewise.
40412 * commands/cat.c: Likewise.
40413 * commands/cmp.c: Likewise.
40414 * commands/configfile.c: Likewise.
40415 * commands/crc.c: Likewise.
40416 * commands/echo.c: Likewise.
40417 * commands/halt.c: Likewise.
40418 * commands/handler.c: Likewise.
40419 * commands/hdparm.c: Likewise.
40420 * commands/help.c: Likewise.
40421 * commands/hexdump.c: Likewise.
40422 * commands/loadenv.c: Likewise.
40423 * commands/ls.c: Likewise.
40424 * commands/lsmmap.c: Likewise.
40425 * commands/lspci.c: Likewise.
40426 * commands/loadenv.c: Likewise.
40427 * commands/read.c: Likewise.
40428 * commands/reboot.c: Likewise.
40429 * commands/search.c: Likewise.
40430 * commands/sleep.c: Likewise.
40431 * commands/test.c: Likewise.
40432 * commands/usbtest.c: Likewise.
40433 * commands/videotest.c: Likewise.
40434 * commands/i386/cpuid.c: Likewise.
40435 * commands/i386/pc/halt.c: Likewise.
40436 * commands/i386/pc/play.c: Likewise.
40437 * commands/i386/pc/pxecmd.c: Likewise.
40438 * commands/i386/pc/vbeinfo.c: Likewise.
40439 * commands/i386/pc/vbetest.c: Likewise.
40440 * commands/ieee1275/suspend.c: Likewise.
40441 * disk/loopback.c: Likewise.
40442 * font/font_cmd.c: Likewise.
40443 * hello/hello.c: Likewise.
40444 * loader/efi/appleloader.c: Likewise.
40445 * loader/efi/chainloader.c: Likewise.
40446 * loader/i386/bsd.c: Likewise.
40447 * loader/i386/efi/linux.c: Likewise.
40448 * loader/i386/ieee1275/linux.c: Likewise.
40449 * loader/i386/linux.c: Likewise.
40450 * loader/i386/pc/chainloader.c: Likewise.
40451 * loader/i386/pc/linux.c: Likewise.
40452 * loader/powerpc/ieee1275/linux.c: Likewise.
40453 * loader/multiboot_loader.c: Likewise.
40454 * term/gfxterm.c: Likewise.
40455 * term/i386/pc/serial.c: Likewise.
40456 * term/terminfo.c: Likewise.
40457
40458 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40459 * term/i386/pc/vga.c: Likewise.
40460 * video/readers/jpeg.c: Likewise.
40461 * video/readers/png.c: Likewise.
40462 * video/readers/tga.c: Likewise.
40463
40464 * util/grub-fstest (cmd_loopback): Removed.
40465 (cmd_blocklist): Likewise.
40466 (cmd_ls): Likewise.
40467 (grub_register_command): Likewise.
40468 (grub_unregister_command): Likewise.
40469 (execute_command): Use grub_command_find to locate command and execute
40470 it.
40471
40472 * include/grub/efi/chainloader.h: Removed.
40473 * loader/efi/chainloader_normal.c: Likewise.
40474 * loader/i386/bsd_normal.c: Likewise.
40475 * loader/i386/pc/chainloader_normal.c: Likewise.
40476 * loader/i386/pc/multiboot_normal.c: Likewise.
40477 * loader/linux_normal.c: Likewise.
40478 * loader/multiboot_loader_normal.c: Likewise.
40479 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40480
40481 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40482 and grub_register_command_p1.
40483
40484 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40485 kern/command.c, lib/arg.c and commands/extcmd.c.
40486 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40487 (minicmd_mod_SOURCES): New variable.
40488 (minicmd_mod_CFLAGS): Likewise.
40489 (minicmd_mod_LDFLAGS): Likewise.
40490 (extcmd_mod_SOURCES): Likewise.
40491 (extcmd_mod_CFLAGS): Likewise.
40492 (extcmd_mod_LDFLAGS): Likewise.
40493 (boot_mod_SOURCES): Removed.
40494 (boot_mod_CFLAGS): Likewise.
40495 (boot_mod_LDFLAGS): Likewise.
40496
40497 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40498 kern/corecmd.c.
40499 (kernel_img_HEADERS): Add command.h.
40500 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40501 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40502 and lib/arg.c.
40503 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40504 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40505 remove the corresponding normal mode command.
40506 (normal_mod_SOURCES): Remove normal/arg.c.
40507 * conf/i386-coreboot.rmk: Likewise.
40508 * conf/i386-efi.rmk: Likewise.
40509 * conf/i386-ieee1275.rmk: Likewise.
40510 * conf/powerpc-ieee1275.rmk: Likewise.
40511 * conf/x86_64-efi.rmk: Likewise.
40512
40513 * include/grub/arg.h: Move from here ...
40514 * include/grub/lib/arg.h: ... to here.
40515
40516 * normal/arg.c: Move from here ...
40517 * lib/arg.c: ... to here.
40518
40519 * commands/extcmd.c: New file.
40520 * commands/minicmd.c: Likewise.
40521 * include/grub/command.h: Likewise.
40522 * include/grub/extcmd.h: Likewise.
40523 * kern/command.c: Likewise.
40524 * kern/corecmd.c: Likewise.
40525
40526 * kern/list.c (grub_list_iterate): Return int instead of void.
40527 (grub_list_insert): New function.
40528 (grub_prio_list_insert): Likewise.
40529
40530 * kern/rescue.c (grub_rescue_command): Removed.
40531 (grub_rescue_command_list): Likewise.
40532 (grub_rescue_register_command): Likewise.
40533 (grub_rescue_unregister_command): Likewise.
40534 (grub_rescue_cmd_boot): Move to minicmd.c
40535 (grub_rescue_cmd_help): Likewise.
40536 (grub_rescue_cmd_info): Likewise.
40537 (grub_rescue_cmd_boot): Likewise.
40538 (grub_rescue_cmd_testload): Likewise.
40539 (grub_rescue_cmd_dump): Likewise.
40540 (grub_rescue_cmd_rmmod): Likewise.
40541 (grub_rescue_cmd_lsmod): Likewise.
40542 (grub_rescue_cmd_exit): Likewise.
40543 (grub_rescue_print_devices): Moved to corecmd.c.
40544 (grub_rescue_print_files): Likewise.
40545 (grub_rescue_cmd_ls): Likewise.
40546 (grub_rescue_cmd_insmod): Likewise.
40547 (grub_rescue_cmd_set): Likewise.
40548 (grub_rescue_cmd_unset): Likewise.
40549 (attempt_normal_mode): Use grub_command_find to get normal module.
40550 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40551 commands, remove grub_rescue_register_command calls.
40552
40553 * normal/command.c (grub_register_command): Removed.
40554 (grub_unregister_command): Likewise.
40555 (grub_command_find): Likewise.
40556 (grub_iterate_commands): Likewise.
40557 (rescue_command): Likewise.
40558 (export_command): Moved to corecmd.c.
40559 (set_command): Removed.
40560 (unset_command): Likewise.
40561 (insmod_command): Likewise.
40562 (rmmod_command): Likewise.
40563 (lsmod_command): Likewise.
40564 (grub_command_init): Likewise.
40565
40566 * normal/completion.c (iterate_command): Use cmd->prio to check for
40567 active command.
40568 (complete_arguments): Use grub_extcmd_t structure to find options.
40569 (grub_normal_do_completion): Change function grub_iterate_commands to
40570 grub_command_iterate.
40571
40572 * normal/execute.c (grub_script_execute_cmd): No need to parse
40573 argument here.
40574
40575 * normal/main.c (grub_dyncmd_dispatcher): New function.
40576 (read_command_list): Register unload commands as dyncmd.
40577 (grub_cmd_normal): Use new command interface, register rescue,
40578 unregister normal at entry, register normal, unregister rescue at exit.
40579
40580 * include/grub/list.h (grub_list_test_t): New type.
40581 (grub_list_iterate): Return int instead of void.
40582 (grub_list_insert): New function.
40583 (GRUB_AS_NAMED_LIST_P): New macro.
40584 (GRUB_AS_PRIO_LIST): Likewise.
40585 (GRUB_AS_PRIO_LIST_P): Likewise.
40586 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40587 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40588 (grub_prio_list): New structure.
40589 (grub_prio_list_insert): New function.
40590 (grub_prio_list_remove): New inline function.
40591
40592 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40593 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40594 (GRUB_COMMAND_FLAG_MENU): Likewise.
40595 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40596 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40597 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40598 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40599 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40600 (grub_command): Likewise.
40601 (grub_register_command): Likewise.
40602 (grub_command_find): Likewise.
40603 (grub_iterate_commands): Likewise.
40604 (grub_command_init): Likewise.
40605 (grub_arg_parse): Likewise.
40606 (grub_arg_show_help): Likewise.
40607
40608 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40609 (grub_rescue_unregister_command): Likewise.
40610
40611 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40612 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40613 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40614
40615 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40616 grub_rescue_cmd_initrd.
40617 * include/grub/i386/loader.h: Likewise.
40618 * include/grub/x86_64/loader.h: Likewise.
40619
40620 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40621
40622 2009-03-21 Bean <bean123ch@gmail.com>
40623
40624 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40625 instead of stat in mingw environment.
40626
40627 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40628
40629 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40630
40631 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40632 AC_CONFIG_LINKS.
40633
40634 2009-03-21 Bean <bean123ch@gmail.com>
40635
40636 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40637 out of range error.
40638
40639 2009-03-18 Michel Dänzer <michel@daenzer.net>
40640
40641 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40642 checking inode flags for EXT4_EXTENTS_FLAG.
40643
40644 2009-03-18 Robert Millan <rmh@aybabtu.com>
40645
40646 * loader/i386/linux.c: Include `<grub/video.h>' and
40647 `<grub/i386/pc/vbe.h>'..
40648 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40649 (grub_linux32_boot): Attempt to configure video settings with
40650 grub_linux_setup_video().
40651 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40652 to avoid grub_console_fini() which would step out of graphical mode
40653 unconditionally.
40654
40655 2009-03-14 Robert Millan <rmh@aybabtu.com>
40656
40657 Fix build on powerpc.
40658 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40659
40660 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40661
40662 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40663 background image command.
40664
40665 2009-03-12 Colin D Bennett <colin@gibibit.com>
40666
40667 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40668 (grub_gfxterm_putchar): Extract pairs of identical calls to
40669 draw_cursor out of conditional blocks.
40670
40671 2009-03-11 Pavel Roskin <proski@gnu.org>
40672
40673 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40674 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40675
40676 2009-03-11 Robert Millan <rmh@aybabtu.com>
40677
40678 * loader/i386/multiboot_elfxx.c
40679 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40680
40681 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40682
40683 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40684 `kern/handler.c'.
40685
40686 2009-03-11 Robert Millan <rmh@aybabtu.com>
40687
40688 * loader/i386/multiboot.c (code_size): New variable.
40689 (grub_multiboot): Define offsets by adding to `code_size' rather
40690 than subtracting from `grub_multiboot_payload_size'. Provide
40691 4-byte alignment to MBI and others by increasing
40692 `boot_loader_name_length' appropriately.
40693
40694 * loader/i386/multiboot_elfxx.c
40695 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40696
40697 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40698
40699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40700 `fs/ext2.c'.
40701
40702 2009-03-08 Robert Millan <rmh@aybabtu.com>
40703
40704 Make loader/i386/linux.c usable on i386-pc again.
40705
40706 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40707 memory to heap.
40708 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40709 `#error' stanza.
40710
40711 2009-03-07 Bean <bean123ch@gmail.com>
40712
40713 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40714 allocation.
40715
40716 2009-03-06 Robert Millan <rmh@aybabtu.com>
40717
40718 Fix display issue on terminals with screen size other than 80x25
40719 (e.g. gfxterm with resolution higher than 640x480).
40720
40721 * normal/main.c (grub_normal_init_page): Display title text in a
40722 position relative to the center of the terminal instead of relying
40723 on a hardcoded offset.
40724
40725 2009-03-04 Robert Millan <rmh@aybabtu.com>
40726
40727 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40728 installed.
40729
40730 * Makefile.in (host_kernel): New variable.
40731 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40732 scripts instead of just the windows one.
40733 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40734
40735 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40736
40737 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40738 `kern/handler.c'.
40739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40740 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40741 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40744 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40745
40746 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40747
40748 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40749 or if there's no space for the disk label and print the partition number on a
40750 invalid magic.
40751
40752 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40753
40754 * util/misc.c: Include <time.h>.
40755 (grub_millisleep): New function.
40756
40757 2009-03-04 Bean <bean123ch@gmail.com>
40758
40759 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40760 another option -mno-red-zone.
40761
40762 * commands/handler.c: Change module description.
40763
40764 * kern/handler.c: Add missing space at the end of description line.
40765
40766 * kern/list.c: Likewise.
40767
40768 2009-03-03 Robert Millan <rmh@aybabtu.com>
40769
40770 Move more components to the relocation area, and fix mbi pointer
40771 handling to use the destination rather than the origin (thanks to
40772 Vladimir Serbinenko for spotting).
40773
40774 * loader/i386/multiboot.c (mbi_dest): New variable.
40775 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40776 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40777 relocation area.
40778
40779 2009-03-01 Bean <bean123ch@gmail.com>
40780
40781 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40782 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40783 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40784 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40785
40786 * loader/i386/efi/linux.c (acpi_guid): New variable.
40787 (acpi_guid): Likewise.
40788 (EBDA_SEG_ADDR): New constant.
40789 (LOW_MEM_ADDR): Likewise.
40790 (FAKE_EBDA_SEG): Likewise.
40791 (fake_bios_data): New function.
40792 (grub_linux_boot): Call fake_bios_data.
40793
40794 2009-03-01 Bean <bean123ch@gmail.com>
40795
40796 * commands/terminal.c: Removed.
40797
40798 * commands/handler.c: New file.
40799
40800 * include/grub/list.h: Likewise.
40801
40802 * include/grub/handler.h: Likewise.
40803
40804 * kern/list.c: Likewise.
40805
40806 * kern/handler.c: Likewise.
40807
40808 * kern/term.h: Include header file <grub/handler.h>.
40809 (grub_term_input): Move next field to the beginning.
40810 (grub_term_output): Likewise.
40811 (grub_term_input_class): New variable.
40812 (grub_term_output_class): Likewise.
40813 (grub_term_register_input): Changed to inline function.
40814 (grub_term_register_output): Likewise.
40815 (grub_term_unregister_input): Likewise.
40816 (grub_term_unregister_output): Likewise.
40817 (grub_term_set_current_input): Likewise.
40818 (grub_term_set_current_output): Likewise.
40819 (grub_term_get_current_input): Likewise.
40820 (grub_term_get_current_output): Likewise.
40821 (grub_term_iterate_input): Removed.
40822 (grub_term_iterate_output): Likewise.
40823
40824 * kern/term.c (grub_term_list_input): Removed.
40825 (grub_term_list_output): Likewise.
40826 (grub_term_input_class): New variable.
40827 (grub_term_output_class): Likewise.
40828 (grub_cur_term_input): Change variable as macro.
40829 (grub_cur_term_output): Likewise.
40830 (grub_term_register_input): Removed.
40831 (grub_term_register_output): Likewise.
40832 (grub_term_unregister_input): Likewise.
40833 (grub_term_unregister_output): Likewise.
40834 (grub_term_set_current_input): Likewise.
40835 (grub_term_set_current_output): Likewise.
40836 (grub_term_iterate_input): Likewise.
40837 (grub_term_iterate_output): Likewise.
40838 (grub_term_get_current_input): Likewise.
40839 (grub_term_get_current_output): Likewise.
40840
40841 * util/grub-editenv.c: Include header file <grub/handler.h>.
40842 (grub_term_get_current_input): Removed.
40843 (grub_term_get_current_output): Likewise.
40844 (grub_term_input_class): New variable.
40845 (grub_term_output_class): Likewise.
40846
40847 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40848 (grub_term_get_current_output): Likewise.
40849 (grub_term_input_class): New variable.
40850 (grub_term_output_class): Likewise.
40851
40852 * util/grub-probe.c (grub_term_get_current_input): Removed.
40853 (grub_term_get_current_output): Likewise.
40854 (grub_term_input_class): New variable.
40855 (grub_term_output_class): Likewise.
40856
40857 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40858 (grub_term_get_current_output): Likewise.
40859 (grub_term_input_class): New variable.
40860 (grub_term_output_class): Likewise.
40861
40862 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40863 (terminal_mod_SOURCES): Likewise.
40864 (terminal_mod_CFLAGS): Likewise.
40865 (terminal_mod_LDFLAGS): Likewise.
40866
40867 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40868 handler.c.
40869 (kernel_img_SOURCES): Add list.c and handler.c.
40870 (kernel_img_HEADERS): Add list.h and handler.h.
40871
40872 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40873 handler.c.
40874 (kernel_mod_SOURCES): Add list.c and handler.c.
40875 (kernel_mod_HEADERS): Add list.h and handler.h.
40876
40877 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40878 handler.c.
40879 (kernel_elf_SOURCES): Add list.c and handler.c.
40880 (kernel_elf_HEADERS): Add list.h and handler.h.
40881
40882 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40883 handler.c.
40884 (kernel_elf_SOURCES): Add list.c and handler.c.
40885 (kernel_elf_HEADERS): Add list.h and handler.h.
40886
40887 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40888 handler.c.
40889 (kernel_mod_SOURCES): Add list.c and handler.c.
40890 (kernel_mod_HEADERS): Add list.h and handler.h.
40891
40892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40893 handler.c.
40894 (kernel_elf_SOURCES): Add list.c and handler.c.
40895 (kernel_elf_HEADERS): Add list.h and handler.h.
40896
40897 2009-02-27 Robert Millan <rmh@aybabtu.com>
40898
40899 Factorize elf32 / elf64 code in Multiboot loader. This will
40900 prevent it from getting out of sync again.
40901
40902 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40903 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40904 grub_multiboot_load_elf64): Move from here ...
40905 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40906 grub_multiboot_load_elf): ... to here (new file).
40907
40908 2009-02-27 Robert Millan <rmh@aybabtu.com>
40909
40910 * util/grub.d/10_linux.in: Rename "single-user mode" to
40911 "recovery mode".
40912
40913 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40914
40915 Don't leak in SCSI code.
40916 * disk/scsi.c (grub_scsi_close): free `scsi'.
40917
40918 2009-02-27 Robert Millan <rmh@aybabtu.com>
40919
40920 * loader/i386/pc/multiboot.c: Move from here ...
40921 * loader/i386/multiboot.c: ... to here. Update all users.
40922
40923 2009-02-27 Robert Millan <rmh@aybabtu.com>
40924
40925 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40926 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40927
40928 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40929
40930 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40931 b-tree.
40932
40933 2009-02-27 Robert Millan <rmh@aybabtu.com>
40934
40935 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40936 `0x' qualifier as 0 when base is specified as parameter).
40937
40938 2009-02-24 Bean <bean123ch@gmail.com>
40939
40940 * configure.ac: Check for -mcmodel=large in x86_64 target.
40941
40942 * include/grub/efi/api.h (efi_call_10): New macro.
40943 (efi_wrap_10): New function.
40944
40945 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40946 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40947 (GRUB_PE32_REL_BASED_LOW): Likewise.
40948 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40949 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40950 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40951 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40952 (GRUB_PE32_REL_BASED_REL): Likewise.
40953 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40954 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40955 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40956
40957 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40958 issue.
40959
40960 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40961 (efi_wrap_10): New function.
40962
40963 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40964
40965 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40966 MB/MBP model (NV chipset).
40967 (devdata_devs): Add devpath_5 to the list.
40968
40969 * load/i386/efi/linux.c (video_base): Remove variable.
40970 (RGB_MASK): New macro.
40971 (RGB_MAGIC): Likewise.
40972 (LINE_MIN): Likewise.
40973 (LINE_MAX): Likewise.
40974 (FBTEST_STEP): Likewise.
40975 (FBTEST_COUNT): Likewise.
40976 (fb_list): New variable.
40977 (grub_find_video_card): Remove function.
40978 (find_framebuf): New function.
40979 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40980 line length.
40981
40982 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40983 problem for x86_64.
40984
40985 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40986
40987 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40988
40989 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40990 coding tool name.
40991
40992 2009-02-22 Robert Millan <rmh@aybabtu.com>
40993
40994 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40995 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40996 in our relocation, instead of using it directly from heap. Also
40997 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40998
40999 2009-02-21 Robert Millan <rmh@aybabtu.com>
41000
41001 Implement USB keyboard support (based on patch by Marco Gerards)
41002
41003 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41004 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41005 (usb_keyboard_mod_LDFLAGS): New variables.
41006
41007 * term/usb_keyboard.c: New file.
41008
41009 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
41010
41011 Corrected wrong declaration
41012
41013 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41014
41015 2009-02-14 Christian Franke <franke@computer.org>
41016
41017 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41018 (grub_lspci_iter): Print class code and programming interface byte.
41019
41020 2009-02-14 Christian Franke <franke@computer.org>
41021
41022 * gendistlist.sh: Ignore `.svn' directories.
41023
41024 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
41025
41026 * fs/fat.c: Add 2009 to Copyright line.
41027
41028 2009-02-14 Christian Franke <franke@computer.org>
41029
41030 * commands/hdparm.c: New file. Provides `hdparm' command
41031 which sends ATA commands via grub_disk_ata_pass_through ().
41032
41033 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41034
41035 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41036 and <grub/cpu/io.h> to include/grub/ata.h.
41037 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41038 (GRUB_CDROM_SECTOR_SIZE): Remove.
41039 (GRUB_ATA_*): Move to include/grub/ata.h.
41040 (GRUB_ATAPI_*): Likewise.
41041 (enum grub_ata_commands): Likewise.
41042 (enum grub_ata_timeout_milliseconds): Likewise.
41043 (struct grub_ata_device): Likewise.
41044 (grub_ata_regset): Likewise.
41045 (grub_ata_regget): Likewise.
41046 (grub_ata_regset2): Likewise.
41047 (grub_ata_regget2): Likewise.
41048 (grub_ata_check_ready): Likewise.
41049 (grub_ata_wait_not_busy): Remove static, exported in
41050 include/grub/ata.h.
41051 (grub_ata_wait_drq): Likewise.
41052 (grub_ata_pio_read): Likewise.
41053
41054 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41055 function for hdparm.mod.
41056
41057 * include/grub/ata.h: New file, contains declarations from
41058 disk/ata.c.
41059 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41060
41061 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41062 (grub_disk_ata_pass_through): New exported variable.
41063
41064 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41065
41066 2009-02-13 Colin D Bennett <colin@gibibit.com>
41067
41068 Support multiple fallback entries, and provide an API to support
41069 executing default+fallback menu entries. Renamed the `terminal' menu
41070 viewer to `text'.
41071
41072 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41073 variable declaration.
41074 (grub_menu_execute_callback): New structure declaration.
41075 (grub_menu_execute_callback_t): New typedef.
41076 (grub_menu_execute_with_fallback): New function declaration.
41077 (grub_menu_get_entry): Likewise.
41078 (grub_menu_get_timeout): Likewise.
41079 (grub_menu_set_timeout): Likewise.
41080
41081 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41082
41083 * normal/menu.c (grub_wait_after_message): Moved to
41084 `normal/menu_text.c'.
41085 (draw_border): Likewise.
41086 (print_message): Likewise.
41087 (print_entry): Likewise.
41088 (print_entries): Likewise.
41089 (grub_menu_init_page): Likewise.
41090 (get_entry_number): Likewise.
41091 (print_timeout): Likewise.
41092 (run_menu): Likewise.
41093 (grub_menu_execute_entry): Likewise.
41094 (show_text_menu): Likewise.
41095 (get_and_remove_first_entry_number): New function.
41096 (grub_menu_execute_with_fallback): Likewise.
41097 (get_entry): Renamed to ...
41098 (grub_menu_get_entry): .. this and made it global.
41099 (get_timeout): Renamed to ...
41100 (grub_menu_get_timeout): ... this and made it global.
41101 (set_timeout): Renamed to ...
41102 (grub_menu_set_timeout): ... this and made it global.
41103 (grub_normal_terminal_menu_viewer): Renamed to ...
41104 (grub_normal_text_menu_viewer): ... this.
41105
41106 * normal/menu_text.c: New file. Extracted text-menu-specific code
41107 from normal/menu.c.
41108
41109 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41110 (normal_mod_SOURCES): Likewise.
41111
41112 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41113 (normal_mod_SOURCES): Likewise.
41114
41115 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41116 (normal_mod_SOURCES): Likewise.
41117
41118 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41119 (normal_mod_SOURCES): Likewise.
41120
41121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41122 (normal_mod_SOURCES): Likewise.
41123
41124 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41125 (normal_mod_SOURCES): Likewise.
41126
41127 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41128 (normal_mod_SOURCES): Likewise.
41129
41130 2009-02-11 Robert Millan <rmh@aybabtu.com>
41131
41132 * util/grub.d/00_header.in: Update old reference to `font' command.
41133
41134 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41135
41136 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41137
41138 Based on patch from Javier Martín.
41139
41140 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41141
41142 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41143 to avoid false positives with FAT.
41144 (grub_fstest_SOURCES): Likewise.
41145 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41146 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41148 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41149 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41150 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41151
41152 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41153
41154 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41155 bpb.version_specific.fat12_or_fat16.fstype and
41156 bpb.version_specific.fat32.fstype.
41157
41158 2009-02-08 Robert Millan <rmh@aybabtu.com>
41159
41160 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41161
41162 2009-02-08 Robert Millan <rmh@aybabtu.com>
41163
41164 * Makefile.in (host_os, host_cpu): New variables.
41165 (target_os): Remove. Update all users.
41166
41167 2009-02-08 Marco Gerards <marco@gnu.org>
41168
41169 * Makefile.in (enable_grub_emu_usb): New variable.
41170 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41171 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41172 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41173 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41174 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41175 `usbtest.mod' and `usbms.mod'.
41176 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41177 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41178 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41179 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41180 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41181 variables.
41182
41183 * disk/usbms.c: New file.
41184
41185 * include/grub/usb.h: Likewise.
41186
41187 * include/grub/usbtrans.h: Likewise.
41188
41189 * include/grub/usbdesc.h: Likewise.
41190
41191 * bus/usb/usbtrans.c: Likewise.
41192
41193 * bus/usb/ohci.c: Likewise.
41194
41195 * bus/usb/uhci.c: Likewise.
41196
41197 * bus/usb/usbhub.c: Likewise.
41198
41199 * bus/usb/usb.c: Likewise.
41200
41201 * commands/usbtest.c: Likewise.
41202
41203 * util/usb.c: Likewise.
41204
41205 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41206
41207 * configure.ac: Test for libusb presence.
41208
41209 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41210
41211 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41212
41213 * kern/mm.c: Add more comments.
41214
41215 2009-02-08 Robert Millan <rmh@aybabtu.com>
41216
41217 Patch from Javier Martín.
41218 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41219 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41220
41221 2009-02-08 Robert Millan <rmh@aybabtu.com>
41222
41223 * fs/cpio.c: Split tar functionality to ...
41224 * fs/tar.c: ... here (new file). Update all users.
41225
41226 2009-02-07 Robert Millan <rmh@aybabtu.com>
41227
41228 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41229 backward-incompatible features.
41230
41231 Based on patch from Javier Martín, with some adjustments.
41232
41233 2009-02-07 Michael Scherer <misc@mandriva.org>
41234
41235 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41236
41237 2009-02-07 Robert Millan <rmh@aybabtu.com>
41238
41239 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41240 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41241 after the RAID stuff.
41242
41243 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41244
41245 Fixes problem when running vbetest command as reported by
41246 Vladimir Serbinenko <phcoder@gmail.com>.
41247
41248 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41249
41250 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41251
41252 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41253 /dev/md/NpN style mdraid devices.
41254
41255 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41256
41257 * util/unifont2pff.rb: Remove.
41258
41259 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41260
41261 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41262 `#'.
41263
41264 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41265
41266 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41268 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41269 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41271 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41272 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41273
41274 2009-02-02 Christian Franke <franke@computer.org>
41275
41276 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41277
41278 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41279
41280 * INSTALL: Note that we now require at least autoconf 2.59 and
41281 that LZO is optional.
41282
41283 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41284
41285 Base on patch on bug #24154 created by Tomas Tintera
41286 <trosos@seznam.cz>.
41287
41288 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41289
41290 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41291
41292 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41293 <bero@arklinux.org>.
41294
41295 * normal/parser.y (script_init): Add missing semicolon.
41296
41297 2009-01-31 Colin D Bennett <colin@gibibit.com>
41298
41299 * normal/main.c: Add include to grub/menu_viewer.h.
41300 (free_menu_entry_classes): Added.
41301 (grub_normal_menu_addentry): Added class property handling.
41302 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41303 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41304
41305 * normal/menu_viewer.c: New file.
41306
41307 * normal/menu.c (run_menu_entry): Renamed to ...
41308 (grub_menu_execute_entry): ... this and made it as global.
41309 (grub_menu_run): Renamed to ...
41310 (show_text_menu): ... this and made it local.
41311 (show_text_menu): Adapt to new function names.
41312 (grub_normal_terminal_menu_viewer): New global variable.
41313
41314 * include/grub/menu.h: New file.
41315
41316 * include/grub/menu_viewer.h: New file.
41317
41318 * include/grub/normal.h: Added include to grub/menu.h.
41319 (grub_menu_entry): Moved to include/grub/menu.h.
41320 (grub_menu_entry_t): Likewise.
41321 (grub_menu): Likewise.
41322 (grub_menu_t): Likewise.
41323 (grub_normal_terminal_menu_viewer): Added.
41324 (grub_menu_execute_entry): Likewise.
41325 (grub_menu_run): Removed.
41326
41327 * DISTLIST: Added include/grub/menu.h.
41328 Added include/grub/menu_viewer.h.
41329 Added normal/menu_viewer.c.
41330
41331 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41332
41333 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41334 arglist for menutitle arguments.
41335
41336 * normal/main.c (grub_normal_menu_addentry): Likewise.
41337
41338 * normal/parser.y (menuentry): Likewise.
41339
41340 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41341
41342 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41343 (grub_script_create_cmdmenu): Likewise.
41344
41345 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41346
41347 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41348 changes.
41349
41350 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41351
41352 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41353
41354 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41355
41356 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41357
41358 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41359
41360 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41361
41362 2009-01-30 Christian Franke <franke@computer.org>
41363
41364 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41365 in option help text.
41366
41367 2009-01-27 Pavel Roskin <proski@gnu.org>
41368
41369 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41370
41371 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41372
41373 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41374
41375 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41376
41377 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41378 unregister function.
41379
41380 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41381
41382 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41383
41384 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41385
41386 * util/grub-mkfont.c (usage): Fix typo.
41387
41388 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41389
41390 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41391
41392 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41393
41394 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41395
41396 * kern/misc.c (grub_strcasecmp): New function.
41397 (grub_strcasecmp): Use grub_size_t instead of int for length.
41398 Fix return value.
41399 * include/grub/misc.h: Update function prototypes.
41400
41401 2009-01-26 Robert Millan <rmh@aybabtu.com>
41402
41403 * configure.ac: Fix cross-compilation check.
41404
41405 2009-01-22 Christian Franke <franke@computer.org>
41406
41407 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41408 (precision) digit string. Allow `.format2' without `format1' (width).
41409 Limit input chars for `%s' output to `format2' if specified. This is
41410 compatible with standard printf ().
41411
41412 2009-01-22 Christian Franke <franke@computer.org>
41413
41414 * disk/ata.c (grub_ata_wait_status): Replace by ...
41415 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41416 other status bits may be invalid while BSY is asserted.
41417 (grub_ata_check_ready): New function.
41418 (grub_ata_cmd): Removed.
41419 (grub_ata_wait_drq): New function.
41420 (grub_ata_strncpy): Remove inline.
41421 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41422 and error check now done by grub_ata_wait_drq ().
41423 (grub_ata_pio_write): Likewise.
41424 (grub_atapi_identify): Set DEV before check for !BSY. Use
41425 grub_ata_wait_drq () to wait for data.
41426 (grub_ata_device_initialize): Add status register check to
41427 detect missing SATA slave devices. Add debug messages.
41428 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41429 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41430 transfer loop by grub_ata_pio_write ().
41431 (grub_ata_identify): Set DEV before check for !BSY. Use
41432 grub_ata_wait_drq () to wait for data.
41433 (grub_ata_setaddress): Set DEV before check for !BSY.
41434 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41435 read/write in one loop. Fix invalid command on write. Fix incomplete
41436 command on (size % batch) == 0. Add missing error check after write of
41437 last block. Add debug messages.
41438 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41439
41440 2009-01-19 Christian Franke <franke@computer.org>
41441
41442 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41443 (GRUB_ATAPI_IREASON_*): Likewise.
41444 (grub_ata_pio_write): Fix timeout error return.
41445 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41446 (grub_atapi_wait_drq): New function.
41447 (grub_atapi_packet): New parameter `size'.
41448 Use grub_atapi_wait_drq () and direct write instead of
41449 grub_ata_pio_write ().
41450 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41451 reads the number of bytes requested by the device for each DRQ
41452 assertion.
41453 (grub_atapi_write): Remove old implementation, return not
41454 implemented instead.
41455
41456 2009-01-19 Christian Franke <franke@computer.org>
41457
41458 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41459 of 512 to calculate data size.
41460 (grub_scsi_read12): Likewise.
41461 (grub_scsi_write10): Likewise.
41462 (grub_scsi_write12): Likewise.
41463 (grub_scsi_read): Adjust size according to blocksize.
41464 Add checks for invalid blocksize and unaligned transfer.
41465
41466 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41467
41468 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41469
41470 * term/gfxterm.c (write_char): Fix background rendering for wide
41471 width glyphs.
41472
41473 2009-01-19 Robert Millan <rmh@aybabtu.com>
41474
41475 * config.guess: Update to latest version from config git.
41476 * config.sub: Likewise.
41477
41478 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41479
41480 * Makefile.in: Change font compilation to use new grub-mkfont instead
41481 of java version.
41482
41483 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41484 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41485 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41486 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41487 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41488 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41489 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41490 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41491 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41492
41493 2009-01-16 Christian Franke <franke@computer.org>
41494
41495 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41496 (enum grub_ata_timeout_milliseconds): New enum.
41497 (grub_ata_wait_status): Add parameter milliseconds.
41498 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41499 recovery from timed-out commands.
41500 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41501 return grub_errno instead of REG_ERROR.
41502 (grub_ata_pio_write): Add parameter milliseconds.
41503 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41504 Pass milliseconds to grub_ata_wait_status () and
41505 grub_ata_pio_read ().
41506 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41507 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41508 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41509 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41510 It is not suitable for device detection, because DEV bit is ignored,
41511 the command may run too long, and not all devices set the signature
41512 properly.
41513 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41514 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41515 Fix device selection, DEV bit must be set first to address the registers
41516 of the correct device.
41517 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41518 grub_ata_pio_read/write ().
41519 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41520 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41521
41522 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41523
41524 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41525
41526 2009-01-13 Bean <bean123ch@gmail.com>
41527
41528 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41529
41530 2009-01-13 Bean <bean123ch@gmail.com>
41531
41532 * Makefile.in: (enable_grub_mkfont): New variable.
41533 (freetype_cflags): Likewise.
41534 (freetype_libs): Likewise.
41535
41536 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41537 (grub_mkfont_SOURCES): New variable.
41538 (grub_mkfont_CFLAGS): Likewise.
41539 (grub_mkfont_LDFLAGS): Likewise.
41540
41541 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41542 library if `--enable-grub-mkfont' is requested.
41543 (enable_grub_mkfont): New variable.
41544 (freetype_cflags): Likewise.
41545 (freetype_libs): Likewise.
41546
41547 * util/grub-mkfont.c: New file.
41548
41549 2009-01-12 Christian Franke <franke@computer.org>
41550
41551 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41552 mode check. Fix setting of compat_use[].
41553
41554 2009-01-10 Robert Millan <rmh@aybabtu.com>
41555
41556 Update a few copyright years which we forgot to do in 2008 (only for
41557 files whose changes made in 2008 were copyright-significant)
41558
41559 * Makefile.in: Add 2008 to Copyright line.
41560 * disk/ieee1275/ofdisk.c: Likewise.
41561 * disk/efi/efidisk.c: Likewise.
41562 * kern/dl.c: Likewise.
41563 * kern/sparc64/ieee1275/init.c: Likewise.
41564 * kern/mm.c: Likewise.
41565 * kern/efi/mm.c: Likewise.
41566 * boot/i386/pc/boot.S: Likewise.
41567 * genfslist.sh: Likewise.
41568 * fs/iso9660.c: Likewise.
41569 * fs/hfs.c: Likewise.
41570 * fs/jfs.c: Likewise.
41571 * fs/minix.c: Likewise.
41572 * fs/ufs.c: Likewise.
41573 * gensymlist.sh.in: Likewise.
41574 * genkernsyms.sh.in: Likewise.
41575 * include/grub/misc.h: Likewise.
41576 * include/grub/types.h: Likewise.
41577 * include/grub/symbol.h: Likewise.
41578 * include/grub/elf.h: Likewise.
41579 * include/grub/kernel.h: Likewise.
41580 * include/grub/disk.h: Likewise.
41581 * include/grub/dl.h: Likewise.
41582 * include/grub/i386/linux.h: Likewise.
41583 * include/grub/i386/pc/biosdisk.h: Likewise.
41584 * include/grub/efi/api.h: Likewise.
41585 * include/grub/efi/pe32.h: Likewise.
41586 * include/grub/util/misc.h: Likewise.
41587 * normal/execute.c: Likewise.
41588 * normal/arg.c: Likewise.
41589 * normal/completion.c: Likewise.
41590 * normal/lexer.c: Likewise.
41591 * normal/parser.y: Likewise.
41592 * normal/misc.c: Likewise.
41593 * commands/i386/pc/vbeinfo.c: Likewise.
41594 * commands/hexdump.c: Likewise.
41595 * commands/terminal.c: Likewise.
41596 * commands/ls.c: Likewise.
41597 * commands/help.c: Likewise.
41598 * partmap/pc.c: Likewise.
41599 * loader/efi/chainloader.c: Likewise.
41600 * loader/multiboot_loader.c: Likewise.
41601 * loader/i386/pc/multiboot2.c: Likewise.
41602 * term/efi/console.c: Likewise.
41603 * term/i386/pc/serial.c: Likewise.
41604 * util/lvm.c: Likewise.
41605 * util/console.c: Likewise.
41606 * util/i386/efi/grub-mkimage.c: Likewise.
41607 * util/raid.c: Likewise.
41608
41609 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41610
41611 * commands/videotest.c: Removed include to grub/machine/memory.h.
41612
41613 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41614 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41615 (video_mod_SOURCES): Removed.
41616 (video_mod_CFLAGS): Likewise.
41617 (video_mod_LDFLAGS): Likewise.
41618 (gfxterm_mod_SOURCES): Likewise.
41619 (gfxterm_mod_CFLAGS): Likewise.
41620 (gfxterm_mod_LDFLAGS): Likewise.
41621 (videotest_mod_SOURCES): Likewise.
41622 (videotest_mod_CFLAGS): Likewise.
41623 (videotest_mod_LDFLAGS): Likewise.
41624 (bitmap_mod_SOURCES): Likewise.
41625 (bitmap_mod_CFLAGS): Likewise.
41626 (bitmap_mod_LDFLAGS): Likewise.
41627 (tga_mod_SOURCES): Likewise.
41628 (tga_mod_CFLAGS): Likewise.
41629 (tga_mod_LDFLAGS): Likewise.
41630 (jpeg_mod_SOURCES): Likewise.
41631 (jpeg_mod_CFLAGS): Likewise.
41632 (jpeg_mod_LDFLAGS): Likewise.
41633 (png_mod_SOURCES): Likewise.
41634 (png_mod_CFLAGS): Likewise.
41635 (png_mod_LDFLAGS): Likewise.
41636
41637 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41638 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41639 (video_mod_SOURCES): Added.
41640 (video_mod_CFLAGS): Likewise.
41641 (video_mod_LDFLAGS): Likewise.
41642 (videotest_mod_SOURCES): Likewise.
41643 (videotest_mod_CFLAGS): Likewise.
41644 (videotest_mod_LDFLAGS): Likewise.
41645 (bitmap_mod_SOURCES): Likewise.
41646 (bitmap_mod_CFLAGS): Likewise.
41647 (bitmap_mod_LDFLAGS): Likewise.
41648 (tga_mod_SOURCES): Likewise.
41649 (tga_mod_CFLAGS): Likewise.
41650 (tga_mod_LDFLAGS): Likewise.
41651 (jpeg_mod_SOURCES): Likewise.
41652 (jpeg_mod_CFLAGS): Likewise.
41653 (jpeg_mod_LDFLAGS): Likewise.
41654 (png_mod_SOURCES): Likewise.
41655 (png_mod_CFLAGS): Likewise.
41656 (png_mod_LDFLAGS): Likewise.
41657 (gfxterm_mod_SOURCES): Likewise.
41658 (gfxterm_mod_CFLAGS): Likewise.
41659 (gfxterm_mod_LDFLAGS): Likewise.
41660
41661 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41662 grub/machine/console.h.
41663
41664 2009-01-04 Jerone Young <jerone@gmail.com>
41665
41666 Make on screen instructions clearer
41667
41668 Based on patch created by Jidanni <jidanni@jidanni.org>
41669
41670 * normal/menu.c: print clearer instructions on the screen
41671
41672 2009-01-02 Colin D Bennett <colin@gibibit.com>
41673
41674 New font engine.
41675
41676 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41677 build system and fixed gfxterm.c to work with different sized fonts.
41678
41679 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41680
41681 * configure: Re-generated.
41682
41683 * DISTLIST: Removed font/manager.c.
41684 Added font/font.c.
41685 Added font/font_cmd.c.
41686
41687 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41688 compilation.
41689
41690 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41691
41692 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41693
41694 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41695
41696 * normal/menu.c: Likewise.
41697
41698 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41699 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41700
41701 * include/grub/font.h: Replaced with new file.
41702
41703 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41704 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41705 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41706 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41707 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41708 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41709 fg_red, fg_green, fg_blue, fg_alpha.
41710 (grub_video_adapter): Removed blit_glyph.
41711 (grub_video_blit_glyph): Removed.
41712
41713 * font/manager.c: Removed file.
41714
41715 * font/font.c: New file.
41716
41717 * font/font_cmd.c: Likewise.
41718
41719 * video/video.c (grub_video_blit_glyph): Removed.
41720
41721 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41722 (grub_video_vbe_map_rgba): Likewise.
41723 (grub_video_vbe_unmap_color_int): Likewise.
41724 (grub_video_vbe_blit_glyph): Removed.
41725 (grub_video_vbe_adapter): Removed blit_glyph.
41726
41727 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41728 (get_pixel): Likewise.
41729 (set_pixel): Likewise.
41730
41731 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41732
41733 * term/gfxterm.c: Adapted to new font engine.
41734
41735 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41736
41737 * term/i386/pc/vga.c: Likewise.
41738
41739 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41740
41741 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41742
41743 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41744
41745 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41746
41747 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41748
41749 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41750
41751 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41752
41753 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41754
41755 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41756
41757 * util/grub.d/00_header.in: Changed to use new loadfont command.
41758
41759 * util/grub-mkconfig_lib.in: Changed font extension.
41760
41761 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41762
41763 * util/getroot.c (grub_util_get_grub_dev): Add support for
41764 /dev/md/dNNpNN style partitionable mdraid devices.
41765
41766 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41767
41768 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41769 at a time limit of the PXE TFTP API correctly.
41770 (grub_pxefs_close): Likewise.
41771
41772 2008-11-29 Robert Millan <rmh@aybabtu.com>
41773
41774 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41775 grub_ata_device_initialize() calls.
41776
41777 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41778
41779 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41780 iteration failed.
41781 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41782
41783 2008-11-28 Robert Millan <rmh@aybabtu.com>
41784
41785 Fix build on powerpc-ieee1275. Based on patch created by
41786 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41787 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41788 `kern/ieee1275/mmap.c'.
41789 * include/grub/powerpc/ieee1275/memory.h: New file.
41790
41791 Provide grub-install on coreboot.
41792 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41793 (grub_install_SOURCES): New variable.
41794 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41795 usable on coreboot.
41796
41797 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41798
41799 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41800 to `grub_term_input_t'.
41801 (grub_term_get_current_output): Change return type to
41802 `grub_term_output_t'.
41803
41804 2008-11-22 Robert Millan <rmh@aybabtu.com>
41805
41806 Fix breakage on coreboot due to declaration mismatch.
41807 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41808 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41809 grub_vga_text_cls().
41810
41811 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41812 comments. Avoid copying one more byte than necessary (just in case).
41813
41814 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41815 to 0x200000 (avoids trouble with some OFW implementations, and matches
41816 with the one in Yaboot).
41817 Reported by Manoel Abranches
41818
41819 2008-11-20 Robert Millan <rmh@aybabtu.com>
41820
41821 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41822 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41823
41824 * util/grub-mkconfig_lib.in (grub_warn): New function.
41825 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41826 warnings, to obtain consistent formatting.
41827 * util/grub.d/00_header.in: Likewise.
41828 * util/update-grub_lib.in: Likewise.
41829
41830 * loader/i386/linux.c (allocate_pages): Fix a warning.
41831 Move comment text to `#error' stanza.
41832
41833 Harmonize ieee1275's grub_available_iterate() with the generic
41834 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41835 build problem on i386-ieee1275):
41836 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41837 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41838 parameter `type'. Update all users of this function.
41839 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41840 `kern/ieee1275/mmap.c'.
41841 * kern/ieee1275/init.c
41842 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41843 with ...
41844 (grub_machine_mmap_iterate): ... this.
41845 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41846 return type to `grub_err_t'. Update all implementations of this
41847 function prototype.
41848 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41849 Likewise.
41850
41851 Add `lsmmap' command (lists firmware-provided memory map):
41852 * commands/lsmmap.c: New file.
41853 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41854 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41855 variables.
41856 * conf/powerpc-ieee1275.rmk: Likewise.
41857 * conf/i386-coreboot.rmk: Likewise.
41858 * conf/i386-ieee1275.rmk: Likewise.
41859
41860 2008-11-19 Robert Millan <rmh@aybabtu.com>
41861
41862 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41863 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41864 constraints to initrd allocation (based on code from
41865 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41866 for Linux to find it.
41867
41868 2008-11-14 Robert Millan <rmh@aybabtu.com>
41869
41870 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41871 order to cope with duplicate slashes.
41872
41873 2008-11-14 Robert Millan <rmh@aybabtu.com>
41874
41875 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41876 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41877 don't want to mess with lower memory, because it is used in the Linux
41878 loader.
41879
41880 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41881 an appropriate place in lower memory, between 0x10000 and 0x90000,
41882 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41883 is in our heap (probably as a result of it being corrupted during
41884 decompression). Add #error instance with comment to explain why this
41885 loader isn't currently usable on PC/BIOS.
41886
41887 2008-11-14 Robert Millan <rmh@aybabtu.com>
41888
41889 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41890 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41891
41892 2008-11-12 Robert Millan <rmh@aybabtu.com>
41893
41894 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41895
41896 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41897 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41898 from here ...
41899 * include/grub/i386/pc/memory.h: ... to here.
41900
41901 2008-11-12 Robert Millan <rmh@aybabtu.com>
41902
41903 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41904 split).
41905
41906 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41907 (grub_console_cur_color, grub_console_real_putchar)
41908 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41909 (grub_console_setcolorstate, grub_console_setcolor)
41910 (grub_console_getcolor): Move from here ...
41911 * include/grub/i386/vga_common.h: ... to here (new file).
41912
41913 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41914 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41915 `<grub/i386/io.h>'.
41916 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41917 `<grub/i386/vga_common.h>'.
41918
41919 2008-11-12 Robert Millan <rmh@aybabtu.com>
41920
41921 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41922 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41923 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41924 variables.
41925 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41926 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41927
41928 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41929 grub_console_init() with call to grub_vga_text_init().
41930 (grub_machine_fini): Replace call to
41931 grub_console_fini() with call to grub_vga_text_fini() and
41932 grub_at_keyboard_fini().
41933
41934 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41935 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41936 (grub_console_setcolorstate, grub_console_setcolor)
41937 (grub_console_getcolor): New function prototypes.
41938
41939 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41940 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41941 (grub_vga_text_setcursor): Static-ize.
41942 (grub_vga_text_term): New structure.
41943 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41944
41945 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41946 (grub_console_cur_color, grub_console_standard_color)
41947 (grub_console_normal_color, grub_console_highlight_color)
41948 (map_char, grub_console_putchar, grub_console_getcharwidth)
41949 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41950 (grub_console_getcolor): Move from here ...
41951 * term/i386/vga_common.c: ... to here (same function names).
41952
41953 2008-11-12 Robert Millan <rmh@aybabtu.com>
41954
41955 Use newly-added Multiboot support in coreboot.
41956
41957 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41958 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41959
41960 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41961 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41962 (codestart): Store the MBI in `startup_multiboot_info' when we're
41963 being loaded using Multiboot.
41964
41965 * kern/i386/coreboot/init.c (grub_machine_init): Move
41966 grub_at_keyboard_init() call to beginning of function (useful for
41967 debugging). Call grub_machine_mmap_init() before attempting to use
41968 grub_machine_mmap_iterate().
41969 (grub_lower_mem, grub_upper_mem): Move from here ...
41970 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41971 here (new file).
41972
41973 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41974 function prototype.
41975
41976 2008-11-12 Robert Millan <rmh@aybabtu.com>
41977
41978 Fix a regression introduced by the at_keyboard.mod split. Because
41979 some terminals are default on some platforms and non-default on
41980 others, the first terminal being registered determines which is
41981 going to be default.
41982
41983 * kern/term.c (grub_term_register_input): If this is the first
41984 terminal being registered, set it as the current one.
41985 (grub_term_register_output): Likewise.
41986
41987 * term/efi/console.c (grub_console_init): Do not call
41988 grub_term_set_current_output() or grub_term_set_current_input().
41989 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41990 * term/i386/pc/console.c (grub_console_init): Likewise.
41991 (grub_console_fini): Do not call grub_term_set_current_input()
41992 (but leave grub_term_set_current_output() to restore text mode).
41993
41994 2008-11-10 Robert Millan <rmh@aybabtu.com>
41995
41996 * util/grub.d/00_header.in: Add backward compatibility check for
41997 versions of terminal.mod that don't understand `terminal_input' or
41998 `terminal_output'.
41999
42000 2008-11-09 Robert Millan <rmh@aybabtu.com>
42001
42002 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42003 `terminal_input' / `terminal_output', not `terminal'.
42004
42005 2008-11-08 Robert Millan <rmh@aybabtu.com>
42006
42007 * Makefile.in (include_DATA): Fix srcdir=. assumption.
42008 (DISTCLEANFILES): Add `build_env.mk'.
42009
42010 2008-11-08 Robert Millan <rmh@aybabtu.com>
42011
42012 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42013 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42014 members. Update all users.
42015 * util/console.c (grub_ncurses_term): Split in ...
42016 (grub_ncurses_term_input): ... this, and ...
42017 (grub_ncurses_term_output): ... this. Update all users.
42018 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42019
42020 2008-11-08 Robert Millan <rmh@aybabtu.com>
42021
42022 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42023 (PKGDATA): Add $(pkgdata_SRCDIR).
42024 (pkglib_BUILDDIR): New variable.
42025 (pkgdata_SRCDIR): New variable.
42026 (build_env.mk): New target.
42027 (include_DATA): New variable.
42028 (install-local): Install $(include_DATA) files in $(includedir).
42029
42030 2008-11-07 Pavel Roskin <proski@gnu.org>
42031
42032 * gendistlist.sh: Use C locale for sorting to ensure consistent
42033 output on all systems.
42034
42035 * util/grub.d/00_header.in: Remove incorrect space before
42036 "serial".
42037
42038 2008-11-07 Robert Millan <rmh@aybabtu.com>
42039
42040 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42041 per specification.
42042 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42043 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42044 (based on find_multi_boot1_header).
42045 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42046 using find_multi_boot2_header(), and abort if neither Multiboot or
42047 Multiboot headers were found.
42048
42049 2008-11-07 Robert Millan <rmh@aybabtu.com>
42050
42051 Modularize at_keyboard.mod:
42052
42053 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42054 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42055 (at_keyboard_mod_LDFLAGS): New variables.
42056
42057 Actual terminal split:
42058
42059 * include/grub/term.h (struct grub_term): Split in ...
42060 (struct grub_term_input): ... this, and ...
42061 (struct grub_term_output): ... this. Update all users.
42062 (grub_term_set_current): Split in ...
42063 (grub_term_set_current_input): ... this, and ...
42064 (grub_term_set_current_output): ... this.
42065 (grub_term_get_current): Split in ...
42066 (grub_term_get_current_input): ... this, and ...
42067 (grub_term_get_current_output): ... this.
42068 (grub_term_register): Split in ...
42069 (grub_term_register_input): ... this, and ...
42070 (grub_term_register_output): ... this.
42071 (grub_term_unregister): Split in ...
42072 (grub_term_unregister_input): ... this, and ...
42073 (grub_term_unregister_output): ... this.
42074 (grub_term_iterate): Split in ...
42075 (grub_term_iterate_input): ... this, and ...
42076 (grub_term_iterate_output): ... this.
42077
42078 * kern/term.c (grub_term_list): Split in ...
42079 (grub_term_list_input): ... this, and ...
42080 (grub_term_list_output): ... this. Update all users.
42081 (grub_cur_term): Split in ...
42082 (grub_cur_term_input): ... this, and ...
42083 (grub_cur_term_output): ... this. Update all users.
42084 (grub_term_set_current): Split in ...
42085 (grub_term_set_current_input): ... this, and ...
42086 (grub_term_set_current_output): ... this.
42087 (grub_term_get_current): Split in ...
42088 (grub_term_get_current_input): ... this, and ...
42089 (grub_term_get_current_output): ... this.
42090 (grub_term_register): Split in ...
42091 (grub_term_register_input): ... this, and ...
42092 (grub_term_register_output): ... this.
42093 (grub_term_unregister): Split in ...
42094 (grub_term_unregister_input): ... this, and ...
42095 (grub_term_unregister_output): ... this.
42096 (grub_term_iterate): Split in ...
42097 (grub_term_iterate_input): ... this, and ...
42098 (grub_term_iterate_output): ... this.
42099
42100 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42101 a check for input and one for output (and only attempt to get keys
42102 from user when input works).
42103
42104 * util/grub-probe.c (grub_term_get_current): Split in ...
42105 (grub_term_get_current_input): ... this, and ...
42106 (grub_term_get_current_output): ... this.
42107 * util/grub-fstest.c: Likewise.
42108 * util/i386/pc/grub-setup.c: Likewise.
42109 * util/grub-editenv.c: Likewise.
42110
42111 Portability adjustments:
42112
42113 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42114 `term/i386/pc/at_keyboard.c'.
42115 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42116 grub_keyboard_controller_init() (now handled by terminal .init).
42117 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42118 grub_at_keyboard_init().
42119 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42120 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42121 at_keyboard.mod via input terminal interface).
42122 * include/grub/i386/coreboot/console.h: Convert into a stub for
42123 `<grub/i386/pc/console.h>'.
42124
42125 Migrate full terminals to new API:
42126
42127 * term/efi/console.c (grub_console_term): Split into ...
42128 (grub_console_term_input): ... this, and ...
42129 (grub_console_term_output): ... this. Update all users.
42130 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42131 (grub_ofconsole_init): Split into ...
42132 (grub_ofconsole_init_input): ... this, and ...
42133 (grub_ofconsole_init_output): ... this.
42134 (grub_ofconsole_term): Split into ...
42135 (grub_ofconsole_term_input): ... this, and ...
42136 (grub_ofconsole_term_output): ... this. Update all users.
42137 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42138 (grub_serial_term_input): ... this, and ...
42139 (grub_serial_term_output): ... this. Update all users.
42140 * term/i386/pc/console.c (grub_console_term): Split into ...
42141 (grub_console_term_input): ... this, and ...
42142 (grub_console_term_output): ... this. Update all users.
42143 (grub_console_term_input): Only enable it on PC/BIOS platform.
42144 (grub_console_init): Remove grub_keyboard_controller_init() call.
42145
42146 Migrate input terminals to new API:
42147
42148 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42149 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42150 i386-specific anyway).
42151 (grub_console_checkkey): Rename to ...
42152 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42153 users.
42154 (grub_keyboard_controller_orig): New variable.
42155 (grub_console_getkey): Rename to ...
42156 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42157 users.
42158 (grub_keyboard_controller_init): Static-ize. Save original
42159 controller value so that it can be restored ...
42160 (grub_keyboard_controller_fini): ... here (new function).
42161 (grub_at_keyboard_term): New structure.
42162 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42163 functions.
42164
42165 Migrate output terminals to new API:
42166
42167 * term/i386/pc/vga.c (grub_vga_term): Change type to
42168 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42169 members. Update all users.
42170 * term/gfxterm.c (grub_video_term): Change type to
42171 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42172 members. Update all users.
42173 * include/grub/i386/pc/console.h (grub_console_checkkey)
42174 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42175 etc).
42176
42177 Migrate `terminal' command and userland tools to new API:
42178
42179 * commands/terminal.c (grub_cmd_terminal): Split into ...
42180 (grub_cmd_terminal_input): ... this, and ...
42181 (grub_cmd_terminal_output): ... this.
42182 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42183 `terminal_input' and `terminal_output'.
42184 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42185 `terminal_input' / `terminal_output' API.
42186 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42187 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42188 provided ${GRUB_TERMINAL}, convert it).
42189
42190 2008-11-04 Robert Millan <rmh@aybabtu.com>
42191
42192 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42193 for FreeBSD.
42194 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42195
42196 2008-11-03 Bean <bean123ch@gmail.com>
42197
42198 * kern/elf.c (grub_elf32_load): Revert to previous code.
42199 (grub_elf64_load): Likewise.
42200
42201 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42202
42203 2008-11-01 Robert Millan <rmh@aybabtu.com>
42204
42205 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42206 (TARGET_CPPFLAGS): Likewise.
42207 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42208
42209 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42210
42211 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42212
42213 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42214
42215 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42216 addition of objects until the code is not going to be able to fail.
42217
42218 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42219
42220 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42221 (add a missing NULL check, and correct them by moving the pointer
42222 operations after the actual check).
42223
42224 2008-10-29 Robert Millan <rmh@aybabtu.com>
42225
42226 * util/i386/pc/grub-install.in: Handle empty string as output from
42227 make_system_path_relative_to_its_root().
42228
42229 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42230
42231 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42232 circular metadata worst case scenario. If the metadata is circular
42233 then copy the wrap in place.
42234 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42235 project lib/format_text/layout.h
42236 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42237
42238 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42239
42240 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42241
42242 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42243
42244 * util/update-grub_lib.in: Mention filename in warning message.
42245
42246 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42247
42248 * NEWS: Update for rename of update-grub to grub-mkconfig.
42249
42250 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42251
42252 * util/update-grub_lib.in: Copy to ...
42253 * util/grub-mkconfig_lib.in: ... this. Update all users.
42254 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42255 * util/update-grub.in: Rename to ...
42256 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42257 option. Add `--output' option to allow users to specify the generated
42258 configuration file. Default to stdout.
42259 (update_grub_dir): Rename to ...
42260 (grub_mkconfig_dir): ... this.
42261 (grub_cfg): Default to an empty string.
42262 * conf/common.rmk (update-grub): Rename to ...
42263 (grub-mkconfig): ... this.
42264 (update-grub_lib): Copy to ...
42265 (grub-mkconfig_lib): ... this.
42266 (update-grub_SCRIPTS): Copy to ...
42267 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42268 (update-grub_DATA): Rename to ...
42269 (grub-mkconfig_DATA): ... this.
42270
42271 2008-09-28 Robert Millan <rmh@aybabtu.com>
42272
42273 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42274 to `modified'. Add the real `created' field.
42275 (grub_iso9660_uuid): Use `modified' rather than `created' for
42276 constructing the UUID.
42277
42278 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42279
42280 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42281 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42282
42283 2008-09-28 Bean <bean123ch@gmail.com>
42284
42285 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42286 Thanks to Christian Franke for finding this bug.
42287
42288 2008-09-25 Robert Millan <rmh@aybabtu.com>
42289
42290 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42291 instances of grub_util_get_disk_name() (see previous commit).
42292
42293 2008-09-25 Robert Millan <rmh@aybabtu.com>
42294
42295 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42296 `util/i386/get_disk_name.c'.
42297 * conf/i386-efi.rmk: Likewise.
42298 * conf/x86_64-efi.rmk: Likewise.
42299 * conf/i386-coreboot.rmk: Likewise.
42300 * conf/i386-ieee1275.rmk: Likewise.
42301 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42302 `util/ieee1275/get_disk_name.c'.
42303 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42304 * util/ieee1275/get_disk_name.c: Remove file.
42305 * util/i386/get_disk_name.c: Remove file.
42306 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42307 "hd%d" for device.map entries, rather than using
42308 grub_util_get_disk_name().
42309
42310 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42311
42312 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42313 warning.
42314 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42315
42316 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42317
42318 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42319 Changed to 0x5100.
42320 (GRUB_TERM_PPAGE): Changed to 0x4900.
42321
42322 2008-09-24 Robert Millan <rmh@aybabtu.com>
42323
42324 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42325 macros (they were i386-pc specific).
42326 * include/grub/sparc64/ieee1275/console.h: Likewise.
42327 * include/grub/efi/console.h: Likewise.
42328
42329 2008-09-22 Bean <bean123ch@gmail.com>
42330
42331 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42332 resident and in attribute list.
42333
42334 * include/grub/ntfs.h (BMP_LEN): Removed.
42335
42336 2008-09-22 Bean <bean123ch@gmail.com>
42337
42338 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42339 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42340
42341 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42342 error occurs, as grub_disk_open will call grub_disk_close, which will
42343 call p->close (scsi).
42344
42345 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42346
42347 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42348 (AC_PREREQ): Bumped to 2.59.
42349 (AC_TRY_COMPILE): Replace obsolete macro with ...
42350 (AC_COMPILE_IFELSE): ... this.
42351 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42352 (AC_LINK_IFELSE): ... this.
42353
42354 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42355
42356 * autogen.sh: Add a call to `gendistlist.sh'.
42357
42358 2008-09-19 Christian Franke <franke@computer.org>
42359
42360 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42361 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42362 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42363 Export __enable_execute_stack() to modules.
42364 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42365 New function.
42366
42367 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42368
42369 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42370 Sort the list.
42371
42372 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42373
42374 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42375 #include <grub/util/hostdisk.h>.
42376
42377 2008-09-08 Robert Millan <rmh@aybabtu.com>
42378
42379 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42380 segments when their filesz is zero (grub_file_read() interprets
42381 zero-size as "read until EOF", which results in memory corruption).
42382 Use `lowest_segment' rather than 0 for calculating the current
42383 segment load address.
42384
42385 2008-09-08 Robert Millan <rmh@aybabtu.com>
42386
42387 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42388 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42389 clobbered useful information.
42390
42391 2008-09-08 Robert Millan <rmh@aybabtu.com>
42392
42393 * include/grub/util/biosdisk.h: Move to ...
42394 * include/grub/util/hostdisk.h: ... here. Update all users.
42395 * util/biosdisk.c: Move to ...
42396 * util/hostdisk.c: ... here. Update all users.
42397
42398 2008-09-07 Robert Millan <rmh@aybabtu.com>
42399
42400 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42401 variables.
42402 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42403 and length can be stored directly in the `mbi->mmap_addr' and
42404 `mbi->mmap_length' struct fields.
42405
42406 2008-09-07 Robert Millan <rmh@aybabtu.com>
42407
42408 * conf/i386.rmk: New file. Provides declaration for building
42409 `cpuid.mod'.
42410 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42411 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42412 variables.
42413 Include `conf/i386.mk'.
42414 * conf/i386-efi.rmk: Likewise.
42415 * conf/x86_64-efi.rmk: Likewise.
42416 * conf/i386-coreboot.rmk: Likewise.
42417 * conf/i386-ieee1275.rmk: Likewise.
42418
42419 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42420
42421 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42422 Adds optimization support for BGR based modes.
42423
42424 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42425 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42426 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42427 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42428 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42429 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42430 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42431 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42432 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42433 (grub_video_i386_vbeblit_index_index): Likewise.
42434 (grub_video_i386_vbeblit_replace_directN): Added.
42435 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42436 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42437 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42438 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42439 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42440 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42441 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42442 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42443 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42444 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42445 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42446 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42447 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42448
42449 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42450 (grub_video_i386_vbefill_R8G8B8): Likewise.
42451 (grub_video_i386_vbefill_index): Likewise.
42452 (grub_video_i386_vbefill_direct32): Added.
42453 (grub_video_i386_vbefill_direct24): Likewise.
42454 (grub_video_i386_vbefill_direct16): Likewise.
42455 (grub_video_i386_vbefill_direct8): Likewise.
42456
42457 * include/grub/video.h (grub_video_blit_format): Removed
42458 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42459 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42460 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42461 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42462 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42463
42464 * video/video.c (grub_video_get_blit_format): Updated to use new
42465 blit formats. Added handling for 16 bit color modes.
42466
42467 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42468 fillers.
42469 (common_blitter): Updated to use new blitters.
42470
42471 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42472 Removed.
42473 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42474 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42475 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42476 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42477 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42478 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42479 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42480 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42481 (grub_video_i386_vbeblit_index_index): Likewise.
42482 (grub_video_i386_vbeblit_replace_directN): Added.
42483 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42484 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42485 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42486 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42487 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42488 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42489 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42490 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42491 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42492 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42493 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42494 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42495 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42496
42497 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42498 (grub_video_i386_vbefill_R8G8B8): Likewise.
42499 (grub_video_i386_vbefill_index): Likewise.
42500 (grub_video_i386_vbefill_direct32): Added.
42501 (grub_video_i386_vbefill_direct24): Likewise.
42502 (grub_video_i386_vbefill_direct16): Likewise.
42503 (grub_video_i386_vbefill_direct8): Likewise.
42504
42505 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42506 types.
42507
42508 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42509 types.
42510
42511 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42512 blitter types.
42513
42514 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42515 types.
42516
42517 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42518
42519 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42520 RAID level 1.
42521
42522 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42523
42524 * fs/iso9660.c (grub_iso9660_date): New structure.
42525 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42526 (grub_iso9660_uuid): New function.
42527
42528 2008-09-05 Bean <bean123ch@gmail.com>
42529
42530 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42531
42532 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42533 insensitive bit for names in Win32 and Win32 & DOS namespace.
42534
42535 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42536
42537 * include/grub/types.h (LONG_MAX): Likewise.
42538
42539 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42540
42541 * util/getroot.c: Include <config.h>.
42542 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42543 add support for /dev/md/N devices and handle LVM double dash escaping.
42544
42545 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42546
42547 * config.guess: Update to latest version from config git.
42548 * config.sub: Likewise.
42549
42550 2008-09-03 Robert Millan <rmh@aybabtu.com>
42551
42552 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42553 `disk->total_sectors'.
42554
42555 2008-09-01 Colin D Bennett <colin@gibibit.com>
42556
42557 * include/grub/normal.h: Fixed incorrect comment for
42558 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42559
42560 2008-09-01 Colin D Bennett <colin@gibibit.com>
42561
42562 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42563 values with defines.
42564
42565 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42566 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42567 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42568 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42569 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42570 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42571 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42572 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42573 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42574 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42575 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42576 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42577 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42578 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42579 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42580 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42581 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42582 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42583 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42584
42585 2008-08-31 Robert Millan <rmh@aybabtu.com>
42586
42587 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42588 declaration.
42589 (grub_multiboot): Fix a few warnings.
42590
42591 2008-08-31 Robert Millan <rmh@aybabtu.com>
42592
42593 * loader/i386/pc/multiboot.c: Update comment not to say that
42594 boot_device support is unimplemented.
42595
42596 2008-08-31 Robert Millan <rmh@aybabtu.com>
42597
42598 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42599 or memory map support are unimplemented.
42600
42601 2008-08-31 Colin D Bennett <colin@gibibit.com>
42602
42603 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42604
42605 2008-08-31 Colin D Bennett <colin@gibibit.com>
42606
42607 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42608 total video memory in 'vbeinfo' output; show color format details for
42609 each video mode.
42610
42611 2008-08-30 Pavel Roskin <proski@gnu.org>
42612
42613 * util/genmoddep.c: Remove for real this time.
42614 * DISTLIST: Remove util/genmoddep.c.
42615
42616 2008-08-30 Robert Millan <rmh@aybabtu.com>
42617
42618 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42619 as required by Multiboot spec (it was already 4-byte aligned, but
42620 only by chance).
42621
42622 2008-08-29 Pavel Roskin <proski@gnu.org>
42623
42624 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42625 * kern/powerpc/ieee1275/startup.S: ... this.
42626 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42627 * DISTLIST: Likewise.
42628
42629 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42630 grub/cpu/kernel.h. Add start label for consistency with other
42631 platforms. Add grub_prefix immediately after start. Add jump
42632 to the code after grub_prefix.
42633 * include/grub/powerpc/kernel.h: Provide valid values for
42634 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42635
42636 2008-08-29 Bean <bean123ch@gmail.com>
42637
42638 * configure.ac: Change host_os to cygwin for mingw.
42639 (asprintf): New check for function.
42640
42641 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42642 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42643
42644 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42645 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42646 sync, sleep and grub_util_get_disk_size for mingw.
42647
42648 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42649 to get size in mingw.
42650 (open_device): Use flag O_BINARY if it's defined.
42651 (find_root_device): Add dummy code for mingw.
42652
42653 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42654 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42655 (get_scsi_disk_name): Return 0 for mingw.
42656
42657 * util/hostfs.c: #include <grub/util/misc.h>.
42658 (grub_hostfs_open): Use "rb" flag to open file, use
42659 grub_util_get_disk_size to get disk size for mingw.
42660
42661 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42662 (asprintf): New function if HAVE_ASPRINTF is not set.
42663 (sync): New function for mingw.
42664 (sleep): Likewise.
42665 (grub_util_get_disk_size): Likewise.
42666
42667 2008-08-28 Pavel Roskin <proski@gnu.org>
42668
42669 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42670 kern/time.c.
42671
42672 2008-08-28 Robert Millan <rmh@aybabtu.com>
42673
42674 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42675
42676 2008-08-28 Robert Millan <rmh@aybabtu.com>
42677
42678 Change find_grub_drive() syntax so it doesn't prevent it from
42679 detecting NULL names as errors.
42680
42681 * util/biosdisk.c (find_grub_drive): Move free slot search code
42682 from here ...
42683 (find_free_slot): ... to here.
42684 (read_device_map): Use find_free_slot() to search for free slots.
42685
42686 2008-08-27 Marco Gerards <marco@gnu.org>
42687
42688 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42689 (scsi_mod_SOURCES): New variable.
42690 (scsi_mod_CFLAGS): Likewise
42691 (scsi_mod_LDFLAGS): Likewise.
42692
42693 * disk/scsi.c: New file.
42694
42695 * include/grub/scsi.h: Likewise.
42696
42697 * include/grub/scsicmd.h: Likewise.
42698
42699 * disk/ata.c: Include <grub/scsi.h>.
42700 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42701 instead.
42702 (grub_ata_iterate): Skip ATAPI devices.
42703 (grub_ata_open): Only handle ATAPI devices.
42704 (struct grub_atapi_read): Removed.
42705 (grub_atapi_readsector): Likewise.
42706 (grub_ata_read): No longer handle ATAPI devices.
42707 (grub_ata_write): Likewise.
42708 (grub_atapi_iterate): New function.
42709 (grub_atapi_read): Likewise.
42710 (grub_atapi_write): Likewise.
42711 (grub_atapi_open): Likewise.
42712 (grub_atapi_close): Likewise.
42713 (grub_atapi_dev): New variable.
42714 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42715 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42716
42717 * include/grub/disk.h (enum grub_disk_dev_id): Add
42718 `GRUB_DISK_DEVICE_SCSI_ID'.
42719
42720 2008-08-26 Robert Millan <rmh@aybabtu.com>
42721
42722 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42723 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42724 descriptive.
42725
42726 2008-08-23 Bean <bean123ch@gmail.com>
42727
42728 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42729 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42730 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42731 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42732 dm_nv.mod.
42733 (raid5rec_mod_SOURCES): New macro.
42734 (raid5rec_mod_CFLAGS): Likewise.
42735 (raid5rec_mod_LDFLAGS): Likewise.
42736 (raid6rec_mod_SOURCES): Likewise.
42737 (raid6rec_mod_CFLAGS): Likewise.
42738 (raid6rec_mod_LDFLAGS): Likewise.
42739 (mdraid_mod_SOURCES): Likewise.
42740 (mdraid_mod_CFLAGS): Likewise.
42741 (mdraid_mod_LDFLAGS): Likewise.
42742 (dm_nv_mod_SOURCES): Likewise.
42743 (dm_nv_mod_CFLAGS): Likewise.
42744 (dm_nv_mod_LDFLAGS): Likewise.
42745
42746 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42747 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42748 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42749
42750 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42751 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42752
42753 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42754
42755 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42756
42757 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42758
42759 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42760
42761 * disk/raid5_recover.c: New file.
42762
42763 * disk/raid6_recover.c: Likewise.
42764
42765 * disk/mdraid_linux.c: Likewise.
42766
42767 * disk/dmraid_nvidia.c: Likewise.
42768
42769 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42770 ULONG_MAX.
42771
42772 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42773 calculate the size of raid device.
42774 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42775 different layout of raid5.
42776 (grub_raid_scan_device): Remove code specific to mdraid.
42777 (grub_raid_list): New variable.
42778 (free_array): New function.
42779 (grub_raid_register): Likewise.
42780 (grub_raid_unregister): Likewise.
42781 (grub_raid_rescan): Likewise.
42782 (GRUB_MOD_INIT): Don't iterate device here.
42783 (GRUB_MOD_FINI): Use free_array to release resource.
42784
42785 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42786 (grub_raid5_recover_func_t): New function variable type.
42787 (grub_raid6_recover_func_t): Likewise.
42788 (grub_raid5_recover_func): New variable.
42789 (grub_raid6_recover_func): Likewise.
42790 (grub_raid_register): New function.
42791 (grub_raid_unregister): Likewise.
42792 (grub_raid_rescan): Likewise.
42793 (grub_raid_block_xor): Likewise.
42794
42795 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42796 (CMD_CRC): New macro.
42797 (part): Removed.
42798 (read_file): Handle device as well as file.
42799 (cmd_crc): New function.
42800 (fstest): Handle multiple disks.
42801 (options): Remove part, raw and long, add root and diskcount.
42802 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42803 (main): Find the first non option entry and ignore subsequent options,
42804 add handling for the new options, support multiple disks.
42805
42806 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42807
42808 2008-08-23 Bean <bean123ch@gmail.com>
42809
42810 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42811
42812 * genfslist.sh: Ignore kernel.mod.
42813
42814 * genpartmaplist.sh: Likewise.
42815
42816 2008-08-23 Robert Millan <rmh@aybabtu.com>
42817
42818 * util/getroot.c (find_root_device): Skip anything that starts with
42819 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42820
42821 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42822
42823 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42824 * util/grub.d/00_header.in: Allow the administrator to change default
42825 gfxmode via ${GRUB_GFXMODE}.
42826
42827 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42828
42829 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42830
42831 2008-08-21 Robert Millan <rmh@aybabtu.com>
42832
42833 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42834 loader.
42835 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42836 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42837
42838 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42839
42840 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42841 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42842
42843 2008-08-19 Robert Millan <rmh@aybabtu.com>
42844
42845 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42846 (struct grub_virtual_screen): Remove `cursor_color'.
42847 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42848 initialization.
42849 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42850
42851 2008-08-18 Robert Millan <rmh@aybabtu.com>
42852
42853 Unify (identical) linux_normal.c files.
42854 * loader/i386/efi/linux_normal.c: Move from here ...
42855 * loader/linux_normal.c: ... to here. Update all users.
42856 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42857 * loader/i386/ieee1275/linux_normal.c: Likewise.
42858
42859 2008-08-18 Robert Millan <rmh@aybabtu.com>
42860
42861 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42862 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42863 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42864 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42865 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42866 New macros.
42867 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42868 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42869 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42870 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42871 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42872 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42873 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42874 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42875 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42876 portably using grub_getxy().
42877 Replace `-EFI' with `-bzImage' in boot message.
42878
42879 2008-08-17 Robert Millan <rmh@aybabtu.com>
42880
42881 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42882
42883 2008-08-17 Robert Millan <rmh@aybabtu.com>
42884
42885 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42886
42887 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42888 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42889 (grub_machine_mmap_iterate): New function declaration.
42890 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42891 structure.
42892 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42893 macros.
42894
42895 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42896 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42897 Move e820 parsing from here ...
42898 * kern/i386/pc/mmap.c: New file.
42899 (grub_machine_mmap_iterate): ... to here.
42900
42901 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42902 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42903 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42904 (grub_available_iterate): Redeclare to return `void', and redeclare
42905 its hook to use grub_uint64_t as addr and size parameters, and rename
42906 to ...
42907 (grub_machine_mmap_iterate): ... this. Update all users.
42908
42909 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42910 to make it more readable. Rename to ...
42911 (grub_machine_mmap_iterate): ... this.
42912
42913 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42914 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42915 (grub_multiboot): Allocate an extra region after the payload, and fill
42916 it with a Multiboot memory map. Adjust a.out loader to calculate size
42917 with the extra space.
42918 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42919 with the extra space.
42920
42921 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42922
42923 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42924
42925 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42926
42927 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42928 mdate-sh to the list `find' searches for.
42929 * DISTLIST: Regenerated.
42930
42931 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42932
42933 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42934 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42935 genmoddep.awk, gensymlist.sh.in.
42936 (DISTDIRS): Add bus, docs, hook, lib.
42937 * DISTLIST: Regenerated.
42938 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42939
42940 2008-08-16 Robert Millan <rmh@aybabtu.com>
42941
42942 * disk/raid.c (grub_raid_init): Handle/report errors set by
42943 grub_device_iterate().
42944 * disk/lvm.c (grub_lvm_init): Likewise.
42945
42946 2008-08-15 Bean <bean123ch@gmail.com>
42947
42948 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42949 and datehook.mod.
42950 (datetime_mod_SOURCES): New macro.
42951 (datetime_mod_CFLAGS): Likewise.
42952 (datetime_mod_LDFLAGS): Likewise.
42953 (date_mod_SOURCES): Likewise.
42954 (date_mod_CFLAGS): Likewise.
42955 (date_mod_LDFLAGS): Likewise.
42956 (datehook_mod_SOURCES): Likewise.
42957 (datehook_mod_CFLAGS): Likewise.
42958 (datehook_mod_LDFLAGS): Likewise.
42959
42960 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42961 and datehook.mod.
42962 (datetime_mod_SOURCES): New macro.
42963 (datetime_mod_CFLAGS): Likewise.
42964 (datetime_mod_LDFLAGS): Likewise.
42965 (date_mod_SOURCES): Likewise.
42966 (date_mod_CFLAGS): Likewise.
42967 (date_mod_LDFLAGS): Likewise.
42968 (datehook_mod_SOURCES): Likewise.
42969 (datehook_mod_CFLAGS): Likewise.
42970 (datehook_mod_LDFLAGS): Likewise.
42971
42972 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42973 and datehook.mod.
42974 (datetime_mod_SOURCES): New macro.
42975 (datetime_mod_CFLAGS): Likewise.
42976 (datetime_mod_LDFLAGS): Likewise.
42977 (date_mod_SOURCES): Likewise.
42978 (date_mod_CFLAGS): Likewise.
42979 (date_mod_LDFLAGS): Likewise.
42980 (datehook_mod_SOURCES): Likewise.
42981 (datehook_mod_CFLAGS): Likewise.
42982 (datehook_mod_LDFLAGS): Likewise.
42983
42984 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42985 and datehook.mod.
42986 (datetime_mod_SOURCES): New macro.
42987 (datetime_mod_CFLAGS): Likewise.
42988 (datetime_mod_LDFLAGS): Likewise.
42989 (date_mod_SOURCES): Likewise.
42990 (date_mod_CFLAGS): Likewise.
42991 (date_mod_LDFLAGS): Likewise.
42992 (datehook_mod_SOURCES): Likewise.
42993 (datehook_mod_CFLAGS): Likewise.
42994 (datehook_mod_LDFLAGS): Likewise.
42995
42996 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42997 and datehook.mod.
42998 (datetime_mod_SOURCES): New macro.
42999 (datetime_mod_CFLAGS): Likewise.
43000 (datetime_mod_LDFLAGS): Likewise.
43001 (date_mod_SOURCES): Likewise.
43002 (date_mod_CFLAGS): Likewise.
43003 (date_mod_LDFLAGS): Likewise.
43004 (datehook_mod_SOURCES): Likewise.
43005 (datehook_mod_CFLAGS): Likewise.
43006 (datehook_mod_LDFLAGS): Likewise.
43007
43008 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43009
43010 * commands/date.c: New file.
43011
43012 * hook/datehook.c: Likewise.
43013
43014 * include/grub/lib/datetime.h: Likewise.
43015
43016 * include/grub/i386/cmos.h: Likewise.
43017
43018 * lib/datetime.c: Likewise.
43019
43020 * lib/i386/datetime.c: Likewise.
43021
43022 * lib/efi/datetime.c: Likewise.
43023
43024 2008-08-14 Robert Millan <rmh@aybabtu.com>
43025
43026 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43027 (grub_mkelfimage_SOURCES): New variable.
43028 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43029
43030 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43031 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43032 * conf/powerpc-ieee1275.rmk: Likewise.
43033 * conf/i386-ieee1275.rmk: Likewise.
43034
43035 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43036 * kern/i386/coreboot/init.c: Likewise.
43037
43038 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43039 with `<grub/cpu/kernel.h>'.
43040 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43041 to ...
43042 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43043 * kern/i386/coreboot/startup.S: Likewise.
43044
43045 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43046 (GRUB_MOD_GAP): Remove.
43047 * include/grub/powerpc/kernel.h: New file.
43048 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43049 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43050 * include/grub/i386/kernel.h: New file.
43051 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43052 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43053 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43054
43055 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43056 `grub-mkelfimage'.
43057 Use --directory when invoking grub_mkimage.
43058
43059 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43060 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43061 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43062 and GRUB_KERNEL_CPU_PREFIX.
43063
43064 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43065
43066 * include/grub/err.h (grub_err_printf): New function prototype.
43067 * util/misc.c (grub_err_printf): New function.
43068 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43069 grub_printf.
43070 * kern/err.c (grub_print_error): Use grub_err_printf.
43071
43072 2008-08-13 Robert Millan <rmh@aybabtu.com>
43073
43074 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43075
43076 2008-08-13 Robert Millan <rmh@aybabtu.com>
43077
43078 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43079 boot entry.
43080
43081 2008-08-12 Robert Millan <rmh@aybabtu.com>
43082
43083 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43084 of the relocation code from here ...
43085 (grub_multiboot): ... to here.
43086 (forward_relocator, backward_relocator): Move from here ...
43087 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43088 (grub_multiboot_backward_relocator): ... to here.
43089 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43090 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43091 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43092 (grub_multiboot_forward_relocator_end)
43093 (grub_multiboot_backward_relocator)
43094 (grub_multiboot_backward_relocator_end): New variables.
43095
43096 2008-08-12 Bean <bean123ch@gmail.com>
43097
43098 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43099
43100 2008-08-11 Robert Millan <rmh@aybabtu.com>
43101
43102 * kern/i386/linuxbios/startup.S: Move from here ...
43103 * kern/i386/coreboot/startup.S: ... to here.
43104
43105 * kern/i386/linuxbios/init.c: Move from here ...
43106 * kern/i386/coreboot/init.c: ... to here.
43107
43108 * kern/i386/linuxbios/table.c: Move from here ...
43109 * kern/i386/coreboot/mmap.c: ... to here.
43110
43111 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43112
43113 2008-08-11 Robert Millan <rmh@aybabtu.com>
43114
43115 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43116 errors. Leave it to the upper layer to handle them.
43117
43118 2008-08-09 Christian Franke <franke@computer.org>
43119
43120 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43121 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43122 Install `grub.d/10_windows' only on Cygwin.
43123 * configure.ac: Add subst of `target_os'.
43124 Check `target_os' also before setting TARGET_OBJ2ELF.
43125 Add `--enable-grub-pe2elf'.
43126
43127 2008-08-08 Robert Millan <rmh@aybabtu.com>
43128
43129 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43130 (grub_last_time): Change type to grub_uint64_t.
43131 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43132 (grub_disk_close): Likewise.
43133
43134 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43135 (run_menu): Migrate code from to using grub_get_time_ms().
43136
43137 * util/misc.c (grub_get_time_ms): New function.
43138
43139 2008-08-08 Marco Gerards <marco@gnu.org>
43140
43141 * disk/ata.c (grub_ata_regget): Change return type to
43142 `grub_uint8_t'.
43143 (grub_ata_regget2): Likewise.
43144 (grub_ata_wait_status): New function.
43145 (grub_ata_wait_busy): Removed function, updated all users to use
43146 `grub_ata_wait_status'.
43147 (grub_ata_wait_drq): Likewise.
43148 (grub_ata_cmd): New function.
43149 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43150 error handling.
43151 (grub_ata_pio_write): Add error handling.
43152 (grub_atapi_identify): Likewise.
43153 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43154 handling.
43155 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43156 handling. Actually use the detected registers. Reorder the
43157 detection logic such that it is easier to read.
43158 (grub_ata_pciinit): Do not assign the same ID to each controller.
43159 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43160 handling.
43161 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43162
43163 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43164
43165 2008-08-08 Marco Gerards <marco@gnu.org>
43166
43167 * NEWS: Update.
43168
43169 2008-08-07 Bean <bean123ch@gmail.com>
43170
43171 * include/grub/x86_64/pci.h: New file.
43172
43173 2008-08-07 Christian Franke <franke@computer.org>
43174
43175 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43176 (TIMER2_GATE): Likewise.
43177 (grub_pit_wait): Add enable/disable of the timer2 gate
43178 bit of port 0x61. This fixes a possible infinite loop.
43179
43180 2008-08-07 Bean <bean123ch@gmail.com>
43181
43182 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43183 kern/i386/tsc.c and kern/i386/pit.c.
43184
43185 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43186 x86_64 platform.
43187
43188 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43189 <grub/i386/tsc.h>.
43190
43191 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43192
43193 2008-08-07 Bean <bean123ch@gmail.com>
43194
43195 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43196
43197 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43198
43199 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43200 multiple inclusion. Add #include <grub/types.h>.
43201
43202 2008-08-06 Christian Franke <franke@computer.org>
43203
43204 * conf/common.rmk: Build and install `10_windows'.
43205 * util/grub.d/10_windows.in: New script.
43206
43207 2008-08-06 Pavel Roskin <proski@gnu.org>
43208
43209 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43210
43211 2008-08-06 Robert Millan <rmh@aybabtu.com>
43212
43213 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43214 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43215
43216 2008-08-06 Bean <bean123ch@gmail.com>
43217
43218 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43219 (grub_pxefs_fs_int): Remove dummy definition.
43220 (grub_pxefs_open): Use data->block_size to store the current block
43221 size setting.
43222 (grub_pxefs_read): Use block size stored in data->block_size. As the
43223 value of grub_pxe_blksize can be changed after the file is opened.
43224
43225 2008-08-06 Bean <bean123ch@gmail.com>
43226
43227 * fs/i386/pc/pxe.c (curr_file): new variable.
43228 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43229 require the dummy internal file system anymore.
43230 (grub_pxefs_read): Removed.
43231 (grub_pxefs_close): Likewise.
43232 (grub_pxefs_fs_int): Likewise.
43233 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43234 connection when we switch file.
43235 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43236
43237 2008-08-06 Robert Millan <rmh@aybabtu.com>
43238
43239 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43240 `halt.mod'.
43241 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43242 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43243
43244 * kern/i386/halt.c: New file.
43245 * kern/i386/reboot.c: Likewise.
43246 * include/grub/i386/reboot.h: Likewise.
43247 * include/grub/i386/halt.h: Likewise.
43248
43249 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43250 Include `<grub/cpu/halt.h>'.
43251 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43252 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43253
43254 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43255 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43256 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43257 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43258 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43259 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43260 from here ...
43261 * include/grub/i386/at_keyboard.h: ... to here.
43262
43263 2008-08-05 Robert Millan <rmh@aybabtu.com>
43264
43265 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43266 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43267 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43268 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43269 `kern/generic/millisleep.c'.
43270
43271 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43272 instead of grub_get_rtc().
43273 (grub_tsc_init): Initialize `tsc_boot_time'.
43274
43275 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43276 (grub_machine_init): Use grub_tsc_init() rather than
43277 installing an RTC-based handler via grub_install_get_time_ms().
43278
43279 * kern/i386/pit.c: New file.
43280 * include/grub/i386/pit.h: Likewise.
43281
43282 2008-08-05 Bean <bean123ch@gmail.com>
43283
43284 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43285
43286 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43287 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43288 (pxe_mod_SOURCES): New macro.
43289 (pxe_mod_CFLAGS): Likewise.
43290 (pxe_mod_LDFLAGS): Likewise.
43291 (pxecmd_mod_SOURCES): Likewise.
43292 (pxecmd_mod_CFLAGS): Likewise.
43293 (pxecmd_mod_LDFLAGS): Likewise.
43294
43295 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43296 (grub_pxe_call): Likewise.
43297
43298 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43299
43300 * commands/i386/pc/pxecmd.c: New file.
43301
43302 * fs/i386/pc/pxe.c: Likewise.
43303
43304 * include/grub/i386/pc/pxe.h: Likewise.
43305
43306 2008-08-05 Bean <bean123ch@gmail.com>
43307
43308 * util/console.c (grub_console_cur_color): New variable.
43309 (grub_console_standard_color): Likewise.
43310 (grub_console_normal_color): Likewise.
43311 (grub_console_highlight_color): Likewise.
43312 (color_map): Likewise.
43313 (use_color): Likewise.
43314 (NUM_COLORS): New macro.
43315 (grub_ncurses_setcolorstate): Handle color properly.
43316 (grub_ncurses_setcolor): Don't change color here, just remember the
43317 settings, color will be set in grub_ncurses_setcolorstate.
43318 (grub_ncurses_getcolor): New function.
43319 (grub_ncurses_init): Initialize color pairs.
43320 (grub_ncurses_term): New member grub_ncurses_getcolor.
43321
43322 2008-08-05 Colin D Bennett <colin@gibibit.com>
43323
43324 High resolution timer support. Implemented for x86 CPUs using TSC.
43325 Extracted generic grub_millisleep() so it's linked in only as needed.
43326 This requires a Pentium compatible CPU; if the RDTSC instruction is
43327 not supported, then it falls back on the generic grub_get_time_ms()
43328 implementation that uses the machine's RTC.
43329
43330 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43331 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43332 `kern/generic/millisleep.c'.
43333
43334 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43335 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43336
43337 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43338 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43339
43340 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43341
43342 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43343 `kern/generic/millisleep.c'.
43344
43345 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43346
43347 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43348
43349 * kern/generic/rtc_get_time_ms.c: New file.
43350
43351 * kern/generic/millisleep.c: New file.
43352
43353 * kern/misc.c: Don't include
43354 <kern/time.h> anymore.
43355 (grub_millisleep_generic): Removed.
43356
43357 * commands/sleep.c (grub_interruptible_millisleep): Uses
43358 grub_get_time_ms() instead of grub_get_rtc().
43359
43360 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43361 function.
43362 (grub_cpu_is_cpuid_supported): New inline function.
43363 (grub_cpu_is_tsc_supported): New inline function.
43364 (grub_tsc_init): New function prototype.
43365 (grub_tsc_get_time_ms): New function prototype.
43366
43367 * kern/i386/tsc.c (grub_get_time_ms): New file.
43368
43369 * include/grub/time.h: Include <grub/types.h.
43370 (grub_millisleep_generic): Removed.
43371 (grub_get_time_ms): New prototype.
43372 (grub_install_get_time_ms): New prototype.
43373 (grub_rtc_get_time_ms): New prototype.
43374
43375 * kern/time.c (grub_get_time_ms): New function.
43376 (grub_install_get_time_ms): New function.
43377
43378 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43379 <grub/time.h> anymore.
43380 (grub_millisleep): Removed.
43381 (grub_machine_init): Call grub_tsc_init.
43382
43383 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43384 get_time_ms() implementation.
43385
43386 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43387 (ieee1275_get_time_ms): New function.
43388 (grub_machine_init): Install get_time_ms() implementation.
43389
43390 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43391 (grub_machine_init): Call grub_tsc_init().
43392 (grub_millisleep): Removed.
43393
43394 * kern/ieee1275/init.c (grub_millisleep): Removed.
43395 (grub_machine_init): Install ieee1275_get_time_ms()
43396 implementation.
43397 (ieee1275_get_time_ms): New function.
43398 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43399 real work.
43400
43401 2008-08-05 Marco Gerards <marco@gnu.org>
43402
43403 * disk/ata.c: Include <grub/pci.h>.
43404 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43405 (grub_ata_initialize): Rewritten.
43406 (grub_ata_device_initialize): New function.
43407
43408 2008-08-04 Pavel Roskin <proski@gnu.org>
43409
43410 * kern/main.c: Include grub/mm.h.
43411
43412 2008-08-04 Robert Millan <rmh@aybabtu.com>
43413
43414 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43415 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43416 corruption problem).
43417
43418 2008-08-04 Robert Millan <rmh@aybabtu.com>
43419
43420 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43421 warnings introduced in my last commit.
43422
43423 2008-08-03 Robert Millan <rmh@aybabtu.com>
43424
43425 Make PCI available on all i386 architectures.
43426
43427 * include/grub/i386/pc/pci.h: Move from here ...
43428 * include/grub/i386/pci.h: ... to here.
43429
43430 * include/grub/i386/pc/pci.h: Remove.
43431 * include/grub/i386/efi/pci.h: Remove.
43432 * include/grub/x86_64/efi/pci.h: Remove.
43433
43434 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43435 `<grub/cpu/pci.h>'.
43436
43437 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43438 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43439 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43440
43441 * conf/i386-ieee1275.rmk: Likewise.
43442
43443 2008-08-03 Robert Millan <rmh@aybabtu.com>
43444
43445 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43446 (grub_console_setcursor): Make it possible to set cursor off.
43447
43448 2008-08-03 Robert Millan <rmh@aybabtu.com>
43449
43450 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43451 of modules instead of assuming which platform provides what.
43452 * util/update-grub.in: Likewise.
43453
43454 2008-08-03 Robert Millan <rmh@aybabtu.com>
43455
43456 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43457 instead of `grub_install_dos_part' to determine whether a drive needs
43458 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43459 because it can be overridden when loading GRUB via Multiboot).
43460
43461 2008-08-02 Robert Millan <rmh@aybabtu.com>
43462
43463 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43464
43465 2008-08-02 Robert Millan <rmh@aybabtu.com>
43466
43467 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43468 of informational grub_dprintf() calls.
43469
43470 2008-08-02 Robert Millan <rmh@aybabtu.com>
43471
43472 * disk/memdisk.c (memdisk_size): Don't initialize.
43473 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43474
43475 * include/grub/i386/pc/kernel.h
43476 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43477 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43478 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43479 (grub_arch_memdisk_size): Remove.
43480
43481 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43482 field (was only used to transfer a constant). Add `type' field to
43483 support multiple module types.
43484 (grub_module_iterate): New function.
43485
43486 * kern/device.c (grub_device_open): Do not hide error messages
43487 when grub_disk_open() fails. Use grub_print_error() instead.
43488
43489 * kern/i386/pc/init.c (grub_arch_modules_addr)
43490 (grub_arch_memdisk_size): Remove functions.
43491 (grub_arch_modules_addr): Return the module address in high memory
43492 (now that it isn't copied anymore).
43493
43494 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43495 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43496 decompression routine (grub_total_module_size already includes that
43497 now). Don't copy modules back to low memory.
43498
43499 * kern/main.c: Include `<grub/mm.h>'.
43500 (grub_load_modules): Split out (and use) ...
43501 (grub_module_iterate): ... this function, which iterates through
43502 module objects and runs a hook.
43503 Comment out grub_mm_init_region() call, as it would cause non-ELF
43504 modules to be overwritten.
43505
43506 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43507 the memdisk image in its own region, make it part of the module list.
43508 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43509 (main): Parse --memdisk|-m option, and pass user-provided path as
43510 parameter to generate_image().
43511 (add_segments): Pass `memdisk_path' down to load_modules().
43512 (load_modules): Embed memdisk image in module section when requested.
43513 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43514 `header.type' instead of `header.offset'.
43515
43516 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43517 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43518 (memdisk_mod_LDFLAGS): New variables.
43519 * conf/i386-coreboot.rmk: Likewise.
43520 * conf/i386-ieee1275.rmk: Likewise.
43521
43522 2008-08-02 Robert Millan <rmh@aybabtu.com>
43523
43524 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43525 (backward_relocator): New variables. Used to allocate and relocate
43526 the payload, respectively.
43527 (grub_multiboot_load_elf32): Load into heap instead of requested
43528 address, install the appropriate relocator code in each bound of
43529 the payload, and set the entry point such that
43530 grub_multiboot_real_boot() will jump to one of them.
43531
43532 * kern/i386/loader.S (grub_multiboot_payload_size)
43533 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43534 (grub_multiboot_payload_entry_offset): New variables.
43535 (grub_multiboot_real_boot): Set cpu context to what the relocator
43536 expects, and jump to the relocator instead of the payload.
43537
43538 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43539 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43540 (grub_multiboot_payload_entry_offset): Export.
43541
43542 2008-08-01 Bean <bean123ch@gmail.com>
43543
43544 * normal/menu_entry.c (editor_getline): Don't return the original
43545 string as result, as it will be released by lexer once it has done
43546 using it.
43547
43548 2008-08-01 Robert Millan <rmh@aybabtu.com>
43549
43550 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43551 within menuentries, not before them.
43552 util/grub.d/10_hurd.in: Likewise.
43553
43554 2008-08-01 Bean <bean123ch@gmail.com>
43555
43556 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43557 (bufio_mod_SOURCES): New macro.
43558 (bufio_mod_CFLAGS): Likewise.
43559 (bufio_mod_LDFLAGS): Likewise.
43560
43561 * include/grub/bufio.h: New file.
43562
43563 * io/bufio.c: Likewise.
43564
43565 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43566 (grub_video_reader_png): Use grub_buffile_open to open file.
43567
43568 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43569 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43570
43571 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43572 (grub_video_reader_tga): Use grub_buffile_open to open file.
43573
43574 * font/manager.c: Include <grub/bufio.h>.
43575 (add_font): Use grub_buffile_open to open file.
43576
43577 2008-07-31 Robert Millan <rmh@aybabtu.com>
43578
43579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43580 ELF segments, use a macro for arbitrarily accessing any of them instead
43581 of preparing a pointer that allows access to one at a time.
43582 (grub_multiboot_load_elf64): Likewise.
43583
43584 2008-07-31 Bean <bean123ch@gmail.com>
43585
43586 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43587 GRUB_KERNEL_MACHINE_DATA_END.
43588
43589 2008-07-30 Robert Millan <rmh@aybabtu.com>
43590
43591 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43592 Increase from 0x50 to 0x60.
43593 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43594 use UUIDs to identify the root drive for them. If that's not
43595 possible, abort.
43596 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43597 check, for cross-disk installs.
43598
43599 2008-07-30 Robert Millan <rmh@aybabtu.com>
43600
43601 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43602 is non-empty, use it to set the `prefix' environment variable instead
43603 of the usual approach.
43604 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43605 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43606 environment variable instead of dummy make_install_device().
43607
43608 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43609 (start): Insert a data section, with `grub_prefix' variable.
43610 * kern/i386/linuxbios/startup.S: Likewise.
43611
43612 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43613 New variable reference.
43614 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43615 New macro. Defines offset of `grub_prefix' within startup.S (relative
43616 to `start').
43617 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43618 section within startup.S (relative to `start').
43619 * include/grub/i386/coreboot/kernel.h: Likewise.
43620
43621 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43622 Overwrite grub_prefix with its contents, at the beginning of the
43623 first segment.
43624 (main): Understand -p|--prefix.
43625
43626 2008-07-30 Robert Millan <rmh@aybabtu.com>
43627
43628 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43629
43630 2008-07-30 Robert Millan <rmh@aybabtu.com>
43631
43632 * term/i386/pc/vga_text.c (grub_console_cls): Use
43633 grub_console_gotoxy() to go back to beginning of the screen.
43634 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43635
43636 2008-07-29 Christian Franke <franke@computer.org>
43637
43638 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43639 Add conversion of emulated mount points on Cygwin.
43640
43641 2008-07-29 Christian Franke <franke@computer.org>
43642
43643 * util/update-grub.in: Add a check for admin
43644 group on Cygwin.
43645 Remove old `grub.cfg.new' before creation.
43646 Add `-f' to `mv' to handle the different filesystem
43647 semantics of Windows.
43648
43649 2008-07-29 Bean <bean123ch@gmail.com>
43650
43651 * normal/main.c (get_line): Fix buffer overflow bug.
43652
43653 2008-07-28 Robert Millan <rmh@aybabtu.com>
43654
43655 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43656 (struct grub_apple_header): New struct. Describes the layout of
43657 the partmap header.
43658 (apple_partition_map_iterate): Check the header magic as well as the
43659 partition magic (which was already being checked).
43660
43661 2008-07-28 Pavel Roskin <proski@gnu.org>
43662
43663 * genmk.rb: Add a warning to the beginning of the output that
43664 it's a generated file and should not be edited.
43665
43666 2008-07-28 Robert Millan <rmh@aybabtu.com>
43667
43668 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43669 with the same number are found, just use issue a warning with
43670 grub_dprintf(), as this error has been reported to be non-fatal.
43671
43672 2008-07-27 Robert Millan <rmh@aybabtu.com>
43673
43674 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43675 information.
43676
43677 2008-07-27 Bean <bean123ch@gmail.com>
43678
43679 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43680 (grub_fat_find_dir): Ignore case when comparing filename.
43681
43682 2008-07-27 Bean <bean123ch@gmail.com>
43683
43684 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43685 smallino, as it's more descriptive, and i8count can be confused with
43686 the other field count.
43687 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43688 inode type.
43689
43690 2008-07-27 Bean <bean123ch@gmail.com>
43691
43692 * commands/crc.c: New file.
43693
43694 * lib/crc.c: Likewise.
43695
43696 * include/grub/lib/crc.h: Likewise.
43697
43698 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43699
43700 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43701 (hexdump): Move this function to ...
43702
43703 * lib/hexdump.c: ... here.
43704
43705 * include/grub/hexdump.h: Renamed to ...
43706
43707 * include/grub/lib/hexdump.h: ... this.
43708
43709 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43710
43711 * util/grub-editenv.c: Likewise.
43712
43713 * include/envblk.h: Renamed to ...
43714
43715 * include/lib/envblk.h: ... this.
43716
43717 * util/envblk.c: Renamed to ...
43718
43719 * lib/envblk.c: ... this.
43720
43721 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43722 lib/hexdump.c.
43723 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43724 (pkglib_MODULES): Add crc.mod.
43725 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43726 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43727 (crc_mod_SOURCES): New macro.
43728 (crc_mod_CFLAGS): Likewise.
43729 (crc_mod_LDFLAGS): Likewise.
43730
43731 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43732
43733 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43734
43735 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43736
43737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43738
43739 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43740
43741 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43742
43743 * commands/help.c: Include <grub/term.h>.
43744 (TERM_WIDTH): Removed. Updated all users.
43745
43746 2008-07-27 Pavel Roskin <proski@gnu.org>
43747
43748 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43749 spurious warnings about a comment within a comment.
43750
43751 2008-07-25 Robert Millan <rmh@aybabtu.com>
43752
43753 * util/getroot.c (find_root_device): Skip devices that match
43754 /dev/dm-[0-9]. This lets the real device be found for any type of
43755 abstraction (LVM, EVMS, RAID..).
43756 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43757 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43758 device is found first, find_root_device() will now skip it.
43759
43760 2008-07-24 Pavel Roskin <proski@gnu.org>
43761
43762 * include/grub/types.h: Use __builtin_bswap32() and
43763 __builtin_bswap64() with gcc 4.3 and newer.
43764
43765 2008-07-24 Christian Franke <franke@computer.org>
43766
43767 * util/i386/pc/grub-install.in: If `--debug' is specified,
43768 pass `--verbose' to grub-setup.
43769 Abort script if make_system_path_relative_to_its_root() fails.
43770
43771 2008-07-24 Bean <bean123ch@gmail.com>
43772
43773 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43774 variable `target_platform' should be `platform'.
43775
43776 2008-07-24 Bean <bean123ch@gmail.com>
43777
43778 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43779 (grub_png_init_fixed_block): New function.
43780 (grub_png_decode_image_data): Handle fixed huffman code compression.
43781
43782 2008-07-24 Bean <bean123ch@gmail.com>
43783
43784 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43785 (grub_pe2elf_SOURCES): New macro.
43786 (CLEANFILES): Add grub-pe2elf.
43787
43788 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43789 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43790 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43791 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43792 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43793 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43794 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43795 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43796 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43797 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43798 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43799 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43800 (GRUB_PE32_DT_FUNCTION): Likewise.
43801 (GRUB_PE32_REL_I386_DIR32): Likewise.
43802 (GRUB_PE32_REL_I386_REL32): Likewise.
43803 (grub_pe32_symbol): New structure.
43804 (grub_pe32_reloc): Likewise.
43805
43806 * util/grub-pe2elf.c: New file.
43807
43808 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43809 start symbol in non pc platform.
43810
43811 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43812
43813 The following patches are from Christian Franke.
43814
43815 * include/grub/dl.h: Remove .previous, gas supports this only
43816 for ELF format.
43817
43818 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43819 Remove .type, gas supports this only for ELF format.
43820
43821 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43822 nullbytes in symbol table. This fixes an infinite loop if table is
43823 zero filled.
43824
43825 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43826 TARGET_IMG_LDFLAGS and EXEEXT.
43827
43828 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43829 TARGET_IMG_LDFLAGS_AC.
43830 (grub_CHECK_STACK_ARG_PROBE): New function.
43831
43832 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43833
43834 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43835
43836 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43837 to set TARGET_IMG_LD* accordingly.
43838 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43839 Add call to grub_CHECK_STACK_ARG_PROBE.
43840 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43841
43842 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43843
43844 * genmk.rb: Add EXEEXT to CLEANFILES.
43845
43846 2008-07-23 Robert Millan <rmh@aybabtu.com>
43847
43848 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43849 define the codes for arrows and lines used for the menu).
43850 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43851 as well.
43852
43853 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43854 fonts, because the latter are too slow.
43855
43856 2008-07-21 Bean <bean123ch@gmail.com>
43857
43858 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43859 a20. Run keyboard test last, as it will cause macbook to halt.
43860
43861 2008-07-18 Pavel Roskin <proski@gnu.org>
43862
43863 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43864 load foreign architecture modules correctly anyway. Keep
43865 support for loading host architecture modules, whether we
43866 compile them or not.
43867
43868 2008-07-17 Pavel Roskin <proski@gnu.org>
43869
43870 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43871 change target_cpu. The compiler default can mismatch target_cpu
43872 in any case.
43873
43874 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43875 * kern/efi/efi.c: Likewise.
43876
43877 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43878 target compiler is functional.
43879 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43880 are set up.
43881
43882 * configure.ac: Default to efi platform for x86_64-apple. Allow
43883 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43884 adjustments from the rest, only do them if target is not
43885 explicitly given. Merge other adjustments with the final sanity
43886 check. Remove an extraneous check for supported CPU. Be
43887 specific which CPU and which platform is not supported.
43888
43889 * configure.ac: Default to pc platform for x86_64.
43890
43891 2008-07-17 Robert Millan <rmh@aybabtu.com>
43892
43893 Partial LinuxBIOS -> Coreboot rename.
43894
43895 * conf/i386-linuxbios.rmk: Renamed to ...
43896 * conf/i386-coreboot.rmk: ... this.
43897 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43898 * configure.ac: Accept "coreboot" as input platform (but maintain
43899 compatibility with "linuxbios").
43900 * include/grub/i386/linuxbios: Renamed to ...
43901 * include/grub/i386/coreboot: ... this.
43902
43903 2008-07-17 Bean <bean123ch@gmail.com>
43904
43905 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43906 (appleldr_mod_SOURCE): New variable.
43907 (appleldr_mod_CFLAGS): Likewise.
43908 (appleldr_mod_LDFLAGS): Likewise.
43909 (pci_mod_SOURCES): Likewise.
43910 (pci_mod_CFLAGS): Likewise.
43911 (pci_mod_LDFLAGS): Likewise.
43912 (lspci_mod_SOURCES): Likewise.
43913 (lspci_mod_CFLAGS): Likewise.
43914 (lspci_mod_LDFLAGS): Likewise.
43915
43916 * conf/x86_64-efi.rmk: New file.
43917
43918 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43919 macro.
43920 (grub_efidisk_write): Likewise.
43921
43922 * include/efi/api.h (efi_call_0): New macro.
43923 (efi_call_1): Likewise.
43924 (efi_call_2): Likewise.
43925 (efi_call_3): Likewise.
43926 (efi_call_4): Likewise.
43927 (efi_call_5): Likewise.
43928 (efi_call_6): Likewise.
43929
43930 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43931 grub_rescue_cmd_chainloader.
43932
43933 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43934 (grub_pe32_optional_header): Change some fields based on i386 or
43935 x86_64 platform.
43936 (GRUB_PE32_PE32_MAGIC): Likewise.
43937
43938 * include/grub/efi/uga_draw.h: New file.
43939
43940 * include/grub/elf.h (STN_ABS): New constant.
43941 (R_X86_64_NONE): Relocation constant for x86_64.
43942 (R_X86_64_64): Likewise.
43943 (R_X86_64_PC32): Likewise.
43944 (R_X86_64_GOT32): Likewise.
43945 (R_X86_64_PLT32): Likewise.
43946 (R_X86_64_COPY): Likewise.
43947 (R_X86_64_GLOB_DAT): Likewise.
43948 (R_X86_64_JUMP_SLOT): Likewise.
43949 (R_X86_64_RELATIVE): Likewise.
43950 (R_X86_64_GOTPCREL): Likewise.
43951 (R_X86_64_32): Likewise.
43952 (R_X86_64_32S): Likewise.
43953 (R_X86_64_16): Likewise.
43954 (R_X86_64_PC16): Likewise.
43955 (R_X86_64_8): Likewise.
43956 (R_X86_64_PC8): Likewise.
43957
43958 * include/grub/i386/efi/pci.h: New file.
43959
43960 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43961 Change it value based on platform.
43962 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43963 (GRUB_E820_RAM): Likewise.
43964 (GRUB_E820_RESERVED): Likewise.
43965 (GRUB_E820_ACPI): Likewise.
43966 (GRUB_E820_NVS): Likewise.
43967 (GRUB_E820_EXEC_CODE): Likewise.
43968 (GRUB_E820_MAX_ENTRY): Likewise.
43969 (grub_e820_mmap): New structure.
43970 (linux_kernel_header): Change the efi field according to different
43971 kernel version, also field from linux_kernel_header.
43972
43973 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43974
43975 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43976 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43977 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43978 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43979 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43980 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43981 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43982 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43983 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43984 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43985
43986 * include/grub/x86_64/efi/kernel.h: New file.
43987
43988 * include/grub/x86_64/efi/loader.h: Likewise.
43989
43990 * include/grub/x86_64/efi/machine.h: Likewise.
43991
43992 * include/grub/x86_64/efi/pci.h: Likewise.
43993
43994 * include/grub/x86_64/efi/time.h: Likewise.
43995
43996 * include/grub/x86_64/linux.h: Likewise.
43997
43998 * include/grub/x86_64/setjmp.h: Likewise.
43999
44000 * include/grub/x86_64/time.h: Likewise.
44001
44002 * include/grub/x86_64/types.h: Likewise.
44003
44004 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44005 GRUB_TARGET_SIZEOF_VOID_P.
44006
44007 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44008 (grub_efi_locate_handle): Likewise.
44009 (grub_efi_open_protocol): Likewise.
44010 (grub_efi_set_text_mode): Likewise.
44011 (grub_efi_stall): Likewise.
44012 (grub_exit): Likewise.
44013 (grub_reboot): Likewise.
44014 (grub_halt): Likewise.
44015 (grub_efi_exit_boot_services): Likewise.
44016 (grub_get_rtc): Likewise.
44017
44018 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44019 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44020 (grub_efi_allocate_pages): Wrap efi calls.
44021 (grub_efi_free_pages): Wrap efi calls.
44022 (grub_efi_get_memory_map): Wrap efi calls.
44023
44024 * kern/x86_64/dl.c: New file.
44025
44026 * kern/x86_64/efi/callwrap.S: Likewise.
44027
44028 * kern/x86_64/efi/startup.S: Likewise.
44029
44030 * loader/efi/appleloader.c: Likewise.
44031
44032 * loader/efi/chainloader.c (cmdline): New variable.
44033 (grub_chainloader_unload): Wrap efi calls.
44034 (grub_chainloader_boot): Likewise.
44035 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44036 command line.
44037
44038 * loader/efi/chainloader_normal.c (chainloader_command):
44039 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44040 command line.
44041
44042 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44043 method.
44044 (grub_e820_add_region): New function.
44045 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44046 booting.
44047 (grub_find_video_card): New function.
44048 (grub_linux_setup_video): New function.
44049 (grub_rescue_cmd_linux): Probe for video information.
44050
44051 * normal/x86_64/setjmp.S: New file.
44052
44053 * term/efi/console.c (map_char): New function.
44054 (grub_console_putchar): Map unicode char.
44055 (grub_console_checkkey): Wrap efi calls.
44056 (grub_console_getkey): Likewise.
44057 (grub_console_getwh): Likewise.
44058 (grub_console_gotoxy): Likewise.
44059 (grub_console_cls): Likewise.
44060 (grub_console_setcolorstate): Likewise.
44061 (grub_console_setcursor): Likewise.
44062
44063 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44064
44065 2008-07-16 Pavel Roskin <proski@gnu.org>
44066
44067 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44068 format strings.
44069
44070 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44071 pointer, not an integer. This fixes a warning and prevents
44072 precision loss on 64-bit systems.
44073 (relocate_addresses): Remove unneeded cast.
44074
44075 2008-07-15 Pavel Roskin <proski@gnu.org>
44076
44077 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44078
44079 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44080
44081 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44082 Fix comparison between signed and unsigned.
44083
44084 * include/grub/i386/ieee1275/console.h: Declare
44085 grub_console_init() and grub_console_fini().
44086
44087 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44088 It's empty and unused.
44089
44090 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44091 beginning to avoid warnings with some compilers.
44092
44093 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44094 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44095
44096 2008-07-14 Pavel Roskin <proski@gnu.org>
44097
44098 * kern/env.c (grub_register_variable_hook): Don't copy empty
44099 string, it leaks memory. Pass "" to grub_env_set(), it should
44100 handle constant strings.
44101
44102 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44103 * commands/cmp.c (grub_cmd_cmp): Likewise.
44104 * kern/dl.c (grub_dl_flush_cache): Likewise.
44105 (grub_dl_load_core): Likewise.
44106 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44107 (grub_elf64_load_phdrs): Likewise.
44108
44109 2008-07-13 Pavel Roskin <proski@gnu.org>
44110
44111 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44112 between signed and unsigned.
44113 (LzmaEnc_Finish): Fix warning about an unused parameter.
44114
44115 2008-07-13 Bean <bean123ch@gmail.com>
44116
44117 * Makefile.in (enable_lzo): New rule.
44118
44119 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44120
44121 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44122
44123 * boot/i386/pc/lnxboot.S: #include <config.h>.
44124
44125 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44126 its value according to the compression algorithm used, lzo or lzma.
44127
44128 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44129 compression algorithm according to configure macro.
44130
44131 * kern/i386/pc/startup.S (codestart): Likewise.
44132
44133 * kern/i386/pc/lzma_decode.S: New file.
44134
44135 * include/grub/lib/LzFind.h: Likewise.
44136
44137 * include/grub/lib/LzHash.h: Likewise.
44138
44139 * include/grub/lib/LzmaDec.h: Likewise.
44140
44141 * include/grub/lib/LzmaEnc.h: Likewise.
44142
44143 * include/grub/lib/LzmaTypes.h: Likewise.
44144
44145 * lib/LzFind.c: Likewise.
44146
44147 * lib/LzmaDec.c: Likewise.
44148
44149 * lib/LzmaEnc.c: Likewise.
44150
44151 2008-07-13 Bean <bean123ch@gmail.com>
44152
44153 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44154 (grub_ext4_extent_header): New structure.
44155 (grub_ext4_extent): Likewise.
44156 (grub_ext4_extent_idx): Likewise.
44157 (grub_ext4_find_leaf): New function.
44158 (grub_ext2_read_block): Handle extents.
44159
44160 2008-07-12 Robert Millan <rmh@aybabtu.com>
44161
44162 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44163
44164 2008-07-11 Robert Millan <rmh@aybabtu.com>
44165
44166 * util/grub.d/40_custom.in: New file. Example on how to add custom
44167 entries to /etc/grub.d.
44168 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44169 40_custom (implicitly, by merging all the grub.d rules).
44170
44171 2008-07-11 Pavel Roskin <proski@gnu.org>
44172
44173 * commands/read.c (grub_getline): Fix invalid memory access.
44174 Don't add newline to the variable value.
44175
44176 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44177 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44178 (serial_hw_get_port): Check validity of the port number.
44179 (grub_cmd_serial): Check return value of serial_hw_get_port().
44180
44181 2008-07-07 Pavel Roskin <proski@gnu.org>
44182
44183 * boot/i386/pc/diskboot.S (notification_string): Replace
44184 "Loading kernel" with just "loading". This is shorter, less
44185 confusing and saves a few bytes for possible future changes.
44186
44187 2008-07-05 Pavel Roskin <proski@gnu.org>
44188
44189 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44190 size for ATAPI devices, they are undefined. Output sector
44191 number in decimal form.
44192
44193 * disk/ata.c: Use named constants for status bits.
44194
44195 2008-07-04 Pavel Roskin <proski@gnu.org>
44196
44197 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44198 grub_addr_t before casting it to the void pointer to fix a
44199 warning. Non-addressable regions are discarded earlier.
44200 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44201 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44202 (check_signature): Don't shadow table_header.
44203 (grub_linuxbios_table_iterate): Cast numeric constants to
44204 grub_linuxbios_table_header_t.
44205 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44206 grub_stop().
44207
44208 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44209 prevent warnings.
44210
44211 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44212 pointer, which can cause warnings. Support 64-bit addresses.
44213
44214 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44215 of sizeof(long). This fixes PowerPC image generation on x86_64.
44216
44217 2008-07-04 Robert Millan <rmh@aybabtu.com>
44218
44219 This fixes a performance issue when pc & gpt partmap iterators
44220 didn't abort iteration even after our hook found what it was
44221 looking for (often causing expensive probes of non-existent drives).
44222
44223 Some callers relied on previous buggy behaviour, since they would
44224 raise an error when their own hooks caused early abortion of its
44225 iteration.
44226
44227 * kern/device.c (grub_device_open): Improve error message.
44228 * disk/lvm.c (grub_lvm_open): Likewise.
44229 * disk/raid.c (grub_raid_open): Likewise.
44230
44231 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44232 when hook requests it, independently of grub_errno.
44233 (pc_partition_map_probe): Do not fail when find_func() caused
44234 early abortion of pc_partition_map_iterate().
44235
44236 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44237 when hook requests it, independently of grub_errno.
44238 (gpt_partition_map_probe): Do not fail when find_func() caused
44239 early abortion of gpt_partition_map_iterate().
44240
44241 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44242 when hook requests it, independently of grub_errno. Do not fail when
44243 part_map_iterate_hook() caused early abortion of p->iterate().
44244
44245 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44246 when grub_partition_iterate() returned with non-zero.
44247
44248 2008-07-03 Pavel Roskin <proski@gnu.org>
44249
44250 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44251 like we do in grub_ata_pio_read().
44252 (grub_ata_readwrite): Always write individual sectors. Fix the
44253 sector count for the remainder.
44254 (grub_ata_write): Enable writing to ATA devices. Correctly
44255 report error for ATAPI devices.
44256
44257 2008-07-02 Pavel Roskin <proski@gnu.org>
44258
44259 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44260 warning.
44261
44262 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44263 for every read sector, we already increment it for the whole
44264 batch. This fixes reading more than 256 sectors at once.
44265
44266 * util/grub-editenv.c (cmd_info): Cast argument to long
44267 explicitly. ptrdiff_t reduces to int on i386.
44268
44269 * util/grub-editenv.c (main): Be specific which parameter is
44270 missing.
44271
44272 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44273 (memdisk): Make memdisk_orig_addr a pointer.
44274
44275 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44276 for file offsets, use grub_off_t instead. Fix printf format
44277 warnings.
44278
44279 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44280 there. Real unexpected warnings should not drown in the noise
44281 about known problems.
44282
44283 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44284 grub_disk_addr_t for memory addresses.
44285
44286 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44287 explicitly to fix a warning.
44288
44289 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44290
44291 * Makefile.in (MODULE_LDFLAGS): New variable.
44292 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44293 the linker accepts --build-id=none.
44294 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44295 MODULE_LDFLAGS.
44296 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44297
44298 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44299 those in Linux XFS code. Provide a way to access 64-bit parent
44300 inode.
44301 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44302 the end of struct grub_xfs_dir_header.
44303
44304 2008-07-02 Bean <bean123ch@gmail.com>
44305
44306 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44307 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44308 and GRUB_IEEE1275_FLAG_NO_ANSI.
44309
44310 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44311 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44312 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44313
44314 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44315 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44316
44317 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44318 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44319
44320 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44321 esc sequence on non ANSI terminal.
44322 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44323
44324 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44325 beginning of file.
44326
44327 2008-07-02 Bean <bean123ch@gmail.com>
44328
44329 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44330 (grub_editenv_SOURCES): New variable.
44331 (pkglib_MODULES): Add loadenv.mod.
44332 (loadenv_mod_SOURCES): New variable.
44333 (loadenv_mod_CFLAGS): Likewise.
44334 (loadenv_mod_LDFLAGS): Likewise.
44335
44336 * include/grub/envblk.h: New file.
44337
44338 * util/envblk.c: New file.
44339
44340 * util/grub-editenv.c: New file.
44341
44342 * commands/loadenv.c: New file.
44343
44344 2008-07-01 Pavel Roskin <proski@gnu.org>
44345
44346 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44347 not unsigned char. This fixes warnings and is consistent with
44348 other tags.
44349
44350 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44351
44352 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44353
44354 * term/tparm.c (analyze): Always set *popcount.
44355
44356 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44357 cast to fix a warning.
44358
44359 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44360 cast to suppress a warning.
44361
44362 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44363 grub_fshelp_read_file() expects.
44364
44365 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44366 write uuid as a 32-bit value in CPU byte order, so declare and
44367 use it as such.
44368
44369 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44370 long if the format specifier expects it.
44371 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44372 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44373 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44374 long to fix a warning.
44375 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44376 grub_dprintf() arguments to fix warnings.
44377
44378 2008-06-30 Pavel Roskin <proski@gnu.org>
44379
44380 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44381 install_bsd_part immediately before core.img is embedded or
44382 modified on disk. This fixes core.img verification if core.img
44383 cannot be embedded.
44384
44385 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44386 core_path to calculate the blocklist.
44387 Patch from Javier Martín <lordhabbit@gmail.com>
44388
44389 2008-06-29 Robert Millan <rmh@aybabtu.com>
44390
44391 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44392 block to disk block.
44393 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44394 Patch from Niels Böhm <bitbucket@arcor.de>
44395
44396 2008-06-29 Robert Millan <rmh@aybabtu.com>
44397
44398 * util/update-grub_lib.in (font_path): Search for fonts in
44399 /boot/grub first, which is more likely to be readable (we aren't
44400 deciding where fonts live, just looking for them).
44401
44402 2008-06-26 Pavel Roskin <proski@gnu.org>
44403
44404 * util/biosdisk.c (read_device_map): Don't leave dead map
44405 entries for devices failing stat() check.
44406
44407 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44408 core_path_dev for the core.img path on the target device.
44409
44410 2008-06-26 Robert Millan <rmh@aybabtu.com>
44411
44412 * disk/fs_uuid.c: New file.
44413 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44414 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44415 (fs_uuid_mod_LDFLAGS): New variables.
44416 * include/grub/disk.h (grub_disk_dev_id): Add
44417 `GRUB_DISK_DEVICE_UUID_ID'.
44418 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44419 implement iterate().
44420
44421 2008-06-26 Robert Millan <rmh@aybabtu.com>
44422
44423 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44424 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44425 Linux image includes no initrd.
44426
44427 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44428
44429 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44430 call to resolve the core image location that effectively appended the
44431 name twice.
44432
44433 2008-06-21 Robert Millan <rmh@aybabtu.com>
44434
44435 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44436 call from here ...
44437
44438 * util/grub.d/10_hurd.in: ... to here ...
44439 * util/grub.d/10_linux.in: ... and here.
44440
44441 2008-06-19 Robert Millan <rmh@aybabtu.com>
44442
44443 * kern/main.c (grub_main): Export `prefix' variable immediately
44444 after it has been set by grub_machine_set_prefix().
44445
44446 2008-06-19 Robert Millan <rmh@aybabtu.com>
44447
44448 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44449 search result when not saving to variable, not the other way around.
44450 When saving to variable, abort iteration as soon as a match is found.
44451
44452 2008-06-19 Robert Millan <rmh@aybabtu.com>
44453
44454 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44455 check for partition that provides /boot/grub. Its logic is flawed,
44456 as it prevents prepare_grub_to_access_device() from being called
44457 multiple times.
44458
44459 2008-06-19 Robert Millan <rmh@aybabtu.com>
44460
44461 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44462 "insmod" command directly when abstraction modules are needed,
44463 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44464 since it had already been processed).
44465
44466 2008-06-19 Pavel Roskin <proski@gnu.org>
44467
44468 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44469 changed. This is needed in case GRUB_LIBDIR changes.
44470 * conf/i386-ieee1275.rmk: Likewise.
44471 * conf/i386-linuxbios.rmk: Likewise.
44472 * conf/i386-pc.rmk: Likewise.
44473 * conf/powerpc-ieee1275.rmk: Likewise.
44474
44475 2008-06-18 Pavel Roskin <proski@gnu.org>
44476
44477 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44478 kernel_elf_symlist.c to symlist.c for consistency with other
44479 architectures. Update all users.
44480 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44481
44482 2008-06-18 Robert Millan <rmh@aybabtu.com>
44483
44484 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44485 it in prefix.
44486
44487 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44488 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44489 a RAID device, run setup() for all members independently on whether
44490 LVM abstraction is being used.
44491 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44492 If grub-mkimage has set `*install_dos_part == -2', don't override this
44493 value.
44494 Perform *install_dos_part adjustments independently on whether
44495 we're embedding or not.
44496 Clarify error message when image is too big for embedding.
44497 Remove duplicate *install_dos_part stanza.
44498
44499 2008-06-17 Robert Millan <rmh@aybabtu.com>
44500
44501 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44502 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44503 variables.
44504 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44505 values in grub_ofconsole_normal_color and
44506 grub_ofconsole_highlight_color (they're not directly related to
44507 background and foreground).
44508 (grub_ofconsole_setcolorstate): Extract background and foreground
44509 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44510
44511 2008-06-17 Robert Millan <rmh@aybabtu.com>
44512
44513 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44514 /boot/grub for the check in last commit, not /boot (they could be
44515 different partitions).
44516
44517 2008-06-16 Robert Millan <rmh@aybabtu.com>
44518
44519 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44520 asked to setup access for the same partition that provides /boot,
44521 don't bother using UUIDs since our root already has the value we
44522 want.
44523
44524 2008-06-16 Robert Millan <rmh@aybabtu.com>
44525
44526 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44527 I2O devices.
44528 Patch from Sven Mueller <sven@debian.org>.
44529
44530 2008-06-16 Robert Millan <rmh@aybabtu.com>
44531
44532 * util/update-grub.in: Check for $EUID instead of $UID.
44533 Reported by Vincent Zweije.
44534
44535 2008-06-16 Bean <bean123ch@gmail.com>
44536
44537 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44538 (grub_ext2_read_block): Likewise.
44539 (grub_ext2_read_inode): Likewise.
44540 (grub_ext2_mount): Likewise.
44541 (grub_ext2_close): Likewise.
44542 (grub_ext3_get_journal): Removed.
44543
44544 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44545 (grub_reiserfs_read_symlink): Likewise.
44546 (grub_reiserfs_mount): Likewise.
44547 (grub_reiserfs_open): Likewise.
44548 (grub_reiserfs_read): Likewise.
44549 (grub_reiserfs_close): Likewise.
44550 (grub_reiserfs_get_journal): Removed.
44551
44552 * fs/fshelp.c (grub_fshelp_read): Removed.
44553 (grub_fshelp_map_block): Likewise.
44554
44555 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44556 (grub_fshelp_journal): Likewise.
44557 (grub_fshelp_read): Likewise.
44558 (grub_fshelp_map_block): Likewise.
44559
44560 2008-06-16 Pavel Roskin <proski@gnu.org>
44561
44562 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44563 floating point anymore.
44564 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44565
44566 2008-06-15 Pavel Roskin <proski@gnu.org>
44567
44568 * commands/ls.c (grub_ls_list_files): Use integer calculations
44569 for human readable format, avoid floating point use.
44570 * kern/misc.c (grub_ftoa): Remove.
44571 (grub_vsprintf): Remove floating point support.
44572
44573 2008-06-15 Robert Millan <rmh@aybabtu.com>
44574
44575 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44576 devices.
44577 Reported by Max Vozeler.
44578
44579 2008-06-15 Robert Millan <rmh@aybabtu.com>
44580
44581 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44582 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44583 skipped later.
44584 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44585 the beginning of the prefix.
44586
44587 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44588 It is assumed that if we have a memdisk, grub-mkimage has set
44589 grub_prefix to include the "(memdisk)" drive in it.
44590
44591 2008-06-15 Robert Millan <rmh@aybabtu.com>
44592
44593 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44594 Initialize keyboard controller after registering the terminal, so that
44595 grub_printf() can be called from grub_keyboard_controller_init().
44596
44597 2008-06-15 Robert Millan <rmh@aybabtu.com>
44598
44599 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44600 extent-btree which is written as big endian on disk.
44601 Reported by Alain Greppin <al@chilibi.org>.
44602
44603 2008-06-14 Robert Millan <rmh@aybabtu.com>
44604
44605 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44606 * util/i386/pc/grub-install.in (modules): Likewise.
44607
44608 2008-06-13 Pavel Roskin <proski@gnu.org>
44609
44610 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44611
44612 2008-06-13 Bean <bean123ch@gmail.com>
44613
44614 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44615
44616 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44617
44618 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44619 to indicate sparse block.
44620
44621 2008-06-12 Pavel Roskin <proski@gnu.org>
44622
44623 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44624 number, grub_fshelp_read() does it for us.
44625
44626 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44627 linear disk read with journal translation.
44628 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44629 * include/grub/fshelp.h: Declare grub_fshelp_read().
44630
44631 2008-06-09 Pavel Roskin <proski@gnu.org>
44632
44633 * fs/minix.c (grub_minix_mount): Handle error reading
44634 superblock.
44635
44636 2008-06-08 Robert Millan <rmh@aybabtu.com>
44637
44638 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44639 don't append the RAID prefix afterwards.
44640 Reported by Clint Adams.
44641
44642 2008-06-08 Robert Millan <rmh@aybabtu.com>
44643
44644 Based on description from Pavel:
44645 * kern/disk.c (grub_disk_check_range): Rename to ...
44646 (grub_disk_adjust_range): ... this. Add a comment explaining the
44647 tasks performed by this function.
44648
44649 2008-06-08 Robert Millan <rmh@aybabtu.com>
44650
44651 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44652 `num_serial' (for consistency with other variables).
44653 (struct grub_ntfs_data): Add `uuid' member.
44654 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44655 (grub_ntfs_uuid): New function.
44656 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44657
44658 2008-06-07 Pavel Roskin <proski@gnu.org>
44659
44660 * util/biosdisk.c (open_device): Revert last change to the
44661 function, it broke installation. The sector needs to be
44662 different dependent on which device is opened.
44663
44664 2008-06-06 Robert Millan <rmh@aybabtu.com>
44665
44666 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44667 rest of GRUB, and breakage doesn't happen if its value were modified.
44668
44669 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44670 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44671 a constant (same value).
44672 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44673 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44674
44675 2008-06-06 Robert Millan <rmh@aybabtu.com>
44676
44677 * util/biosdisk.c (open_device): Do not modify sector offset when
44678 accessing a partition. kern/disk.c already handles this for us.
44679
44680 2008-06-06 Robert Millan <rmh@aybabtu.com>
44681
44682 * util/grub-emu.c (grub_machine_init): Move code in this function from
44683 here ...
44684 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44685 segfault in case grub_printf() is called).
44686
44687 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44688 grub_probe. Update all users not to explicitly add it again.
44689 (grub_device): New variable; contains corresponding device for grubdir.
44690 (fs_module, partmap_module, devabstraction_module): Pass
44691 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44692 every time.
44693
44694 2008-06-05 Robert Millan <rmh@aybabtu.com>
44695
44696 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44697 is found, print it (same layout as with labels).
44698
44699 2008-06-04 Robert Millan <rmh@aybabtu.com>
44700
44701 * util/biosdisk.c (get_drive): Rename to ...
44702 (find_grub_drive): ... this. Update all users.
44703
44704 (get_os_disk): Rename to ...
44705 (convert_system_partition_to_system_disk): ... this. Update all users.
44706
44707 (find_drive): Rename to ...
44708 (find_system_device): ... this. Update all users.
44709
44710 2008-06-04 Robert Millan <rmh@aybabtu.com>
44711
44712 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44713 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44714 (make_device_map): Likewise.
44715
44716 2008-06-01 Robert Millan <rmh@aybabtu.com>
44717
44718 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44719 before dereferencing it.
44720
44721 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44722 union with fat12/fat16-specific ones. Add some new fields, including
44723 `num_serial' for both versions.
44724 (struct grub_fat_data): Add `uuid' member.
44725 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44726 names. Initialize `data->uuid' using `num_serial'.
44727 (grub_fat_uuid): New function.
44728 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44729
44730 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44731 (grub_reiserfs_uuid): New function.
44732 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44733 member.
44734
44735 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44736 (grub_xfs_uuid): New function.
44737 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44738
44739 2008-06-01 Robert Millan <rmh@aybabtu.com>
44740
44741 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44742 code that is backward compatible with pre-uuid search command.
44743
44744 2008-05-31 Robert Millan <rmh@aybabtu.com>
44745
44746 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44747 floppies after everything else, to ensure floppy drive isn't accessed
44748 unnecessarily (patch from Bean).
44749
44750 2008-05-31 Robert Millan <rmh@aybabtu.com>
44751
44752 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44753 not print device names when we were asked to set a variable.
44754
44755 2008-05-31 Robert Millan <rmh@aybabtu.com>
44756
44757 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44758 using "cursor-on" and "cursor-off" commands (understood at least by
44759 the Open Firmware flavour on OLPC).
44760
44761 2008-05-31 Michael Gorven <michael@gorven.za.net>
44762
44763 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44764 on and off sequences.
44765
44766 2008-05-31 Robert Millan <rmh@aybabtu.com>
44767
44768 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44769 * util/update-grub.in: Likewise.
44770
44771 2008-05-30 Pavel Roskin <proski@gnu.org>
44772
44773 * util/biosdisk.c (linux_find_partition): Simplify logic and
44774 make the code more universal. Keep special processing for
44775 devfs, but use a simple rule for all other devices. If the
44776 device ends with a number, append 'p' and the partition number.
44777 Otherwise, append only the partition number.
44778
44779 2008-05-30 Robert Millan <rmh@aybabtu.com>
44780
44781 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44782 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44783 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44784 the `root' parameter to Linux.
44785
44786 2008-05-30 Robert Millan <rmh@aybabtu.com>
44787
44788 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44789 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44790 --fs_uuid with --fs-uuid.
44791 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44792 all filesystems support them).
44793
44794 2008-05-30 Robert Millan <rmh@aybabtu.com>
44795
44796 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44797 grub_printf() flags, since we're printing in units of 2 bytes.
44798
44799 2008-05-30 Robert Millan <rmh@aybabtu.com>
44800
44801 * util/grub.d/00_header.in: Remove obsolete comment referencing
44802 convert_system_path_to_grub_path().
44803 * util/update-grub.in: Likewise.
44804 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44805 (convert_system_path_to_grub_path): Add a warning message explaining
44806 that this function is deprecated. Rely on is_path_readable_by_grub()
44807 for the readability checks.
44808 (font_path): Use is_path_readable_by_grub() for the readability
44809 check rather than convert_system_path_to_grub_path().
44810
44811 2008-05-30 Robert Millan <rmh@aybabtu.com>
44812
44813 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44814 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44815 converting it first.
44816 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44817 grub.cfg for access to font file, and afterwards call it again to set
44818 the root device.
44819
44820 2008-05-30 Robert Millan <rmh@aybabtu.com>
44821
44822 * commands/search.c (options): Add --fs_uuid option.
44823 (search_fs_uuid): New function.
44824 (grub_cmd_search): Fix --set argument passing.
44825 Use search_fs_uuid() when requested via --fs_uuid.
44826 (grub_search_init): Update help message.
44827 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44828 and redeclare it as an array of 16-bit words.
44829 (grub_ext2_uuid): New function.
44830 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44831 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44832 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44833 (GRUB_DEVICE_BOOT_UUID): New variables.
44834 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44835 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44836 whenever possible.
44837 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44838 just assume `root' variable has the right value.
44839 * util/grub.d/10_linux.in: Likewise.
44840 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44841 via PRINT_FS_UUID.
44842 (main): Recognise `-t fs_uuid' argument.
44843
44844 2008-05-30 Robert Millan <rmh@aybabtu.com>
44845
44846 * util/biosdisk.c (map): Redefine structure to hold information
44847 about GRUB drive name.
44848 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44849 drive names.
44850 (call_hook): Remove.
44851 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44852 member. Assume drive has partitions.
44853 (grub_util_biosdisk_open): Access device names via `.device' struct
44854 member.
44855 (open_device): Likewise.
44856 (find_drive): Likewise.
44857 (read_device_map): Adjust map[] usage to match the new struct
44858 definition. Don't check for duplicates (still possible, but not cheap
44859 anymore).
44860 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44861 (make_device_name): Remove assumption of BIOS-like drive names.
44862
44863 2008-05-30 Pavel Roskin <proski@gnu.org>
44864
44865 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44866 compiling execute.c doesn't need grub_script.tab.h anymore.
44867 (normal/command.c_DEPENDENCIES): Likewise.
44868 (normal/function.c_DEPENDENCIES): Likewise.
44869 * conf/i386-ieee1275.rmk: Likewise.
44870 * conf/i386-linuxbios.rmk: Likewise.
44871 * conf/i386-pc.rmk: Likewise.
44872 * conf/powerpc-ieee1275.rmk: Likewise.
44873 * conf/sparc64-ieee1275.rmk: Likewise.
44874
44875 2008-05-29 Pavel Roskin <proski@gnu.org>
44876
44877 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44878 when scanning metadata for volume group name.
44879
44880 * include/grub/script.h: Don't include grub_script.tab.h. It's
44881 a generated file, which may only be included from the files with
44882 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44883 use union YYSTYPE, as the later allows forward declaration.
44884 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44885
44886 2008-05-29 Robert Millan <rmh@aybabtu.com>
44887
44888 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44889 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44890 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44891 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44892 scan codes.
44893
44894 2008-05-29 Robert Millan <rmh@aybabtu.com>
44895
44896 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44897 control key combinations.
44898
44899 2008-05-29 Robert Millan <rmh@aybabtu.com>
44900
44901 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44902 * util/ieee1275/grub-install.in: ... to here.
44903 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44904 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44905 (grub_install_SOURCES): Likewise.
44906
44907 2008-05-29 Robert Millan <rmh@aybabtu.com>
44908
44909 * fs/affs.c: Update copyright year.
44910 * fs/ext2.c: Likewise.
44911 * fs/fshelp.c: Likewise.
44912 * fs/hfsplus.c: Likewise.
44913 * fs/ntfs.c: Likewise.
44914 * fs/xfs.c: Likewise.
44915 * include/grub/fshelp.h: Likewise.
44916 * util/grub-mkdevicemap.c: Likewise.
44917
44918 2008-05-28 Robert Millan <rmh@aybabtu.com>
44919
44920 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44921 might need to be fatfs to support some firmware implementations
44922 (e.g. OFW or EFI).
44923
44924 2008-05-28 Robert Millan <rmh@aybabtu.com>
44925
44926 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44927 devices.
44928 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44929 (make_device_map): Likewise.
44930
44931 2008-05-20 Bean <bean123ch@gmail.com>
44932
44933 * fs/fshelp.c (grub_fshelp_map_block): New function.
44934 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44935 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44936
44937 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44938 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44939 (grub_fshelp_journal): New structure.
44940 (grub_fshelp_map_block): New function prototype.
44941 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44942 (grub_fshelp_map_block): Likewise.
44943
44944 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44945 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44946 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44947 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44948 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44949 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44950 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44951 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44952 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44953 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44954 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44955 (grub_ext2_sblock): New members for journal support.
44956 (grub_ext3_journal_header): New structure.
44957 (grub_ext3_journal_revoke_header): Likewise.
44958 (grub_ext3_journal_block_tag): Likewise.
44959 (grub_ext3_journal_sblock): Likewise.
44960 (grub_fshelp_node): New members logfile and journal.
44961 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44962 grub_fshelp_map_block to get real block number.
44963 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44964 number.
44965 (grub_ext2_read_inode): Likewise.
44966 (grub_ext3_get_journal): New function.
44967 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44968 (grub_ext2_close): Release memory used by journal.
44969
44970 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44971 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44972 (grub_reiserfs_transaction_header): Renamed to
44973 grub_reiserfs_description_block, replace field data with real_blocks.
44974 (grub_reiserfs_commit_block): New structure.
44975 (grub_reiserfs_data): New member journal.
44976 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44977 number.
44978 (grub_reiserfs_read_symlink): Likewise.
44979 (grub_reiserfs_iterate_dir): Likewise.
44980 (grub_reiserfs_open): Likewise.
44981 (grub_reiserfs_read): Likewise.
44982 (grub_reiserfs_get_journal): New function.
44983 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44984 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44985 using grub_reiserfs_get_journal.
44986 (grub_reiserfs_close): Release memory used by journal.
44987
44988 * fs/affs.c (grub_affs_read_block): Change block type to
44989 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44990
44991 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44992
44993 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44994
44995 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44996
44997 * fs/udf.c (grub_udf_read_block): Change block type to
44998 grub_disk_addr_t. Use type cast to avoid warning.
44999
45000 * fs/xfs.c (grub_xfs_read_block): Likewise.
45001
45002 2008-05-16 Christian Franke <franke@computer.org>
45003
45004 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45005 to ensure that break with ESC will always work.
45006 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45007 Remove ESC from keyboard queue.
45008
45009 2008-05-16 Christian Franke <franke@computer.org>
45010
45011 * util/biosdisk.c: [__CYGWIN__] Add includes.
45012 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45013 (get_os_disk): Move variable declarations to OS specific
45014 parts to avoid warning.
45015 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45016 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45017 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45018 Cygwin.
45019 * util/getroot.c: [__CYGWIN__] Add includes.
45020 (strip_extra_slashes): Fix "/" case.
45021 [__CYGWIN__] (get_win32_path): New function.
45022 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45023 [__CYGWIN__] (find_root_device): Disable.
45024 [__CYGWIN__] (get_bootsec_serial): New function.
45025 [__CYGWIN__] (find_cygwin_root_device): Likewise.
45026 [__linux__] (grub_guess_root_device): Add early returns to simplify
45027 structure.
45028 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45029 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45030 check for Linux only.
45031
45032 2008-05-15 Bean <bean123ch@gmail.com>
45033
45034 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45035 keyboard hang problem in apple's intel mac.
45036
45037 2008-05-09 Robert Millan <rmh@aybabtu.com>
45038
45039 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45040 devices.
45041 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45042 (make_device_map): Likewise.
45043 Reported by Aurelien Jarno <aurel32@debian.org>
45044
45045 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45046
45047 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45048 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45049 (make_device_map): Output entries for xvd type disks.
45050
45051 2008-05-07 Robert Millan <rmh@aybabtu.com>
45052
45053 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45054 devices.
45055 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45056 (make_device_map): Likewise.
45057 Reported by Roland Dreier <rdreier@cisco.com>
45058
45059 2008-05-07 Robert Millan <rmh@aybabtu.com>
45060
45061 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45062 grub_strstr() call. Correct a few mistakes in failure path handling.
45063
45064 2008-05-06 Robert Millan <rmh@aybabtu.com>
45065
45066 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45067 Do not print a trailing slash (therefore, the root directory is an
45068 empty string).
45069 (convert_system_path_to_grub_path): Do not remove trailing slash
45070 from make_system_path_relative_to_its_root() output.
45071
45072 * util/i386/pc/grub-install.in: Add trailing slash to output from
45073 make_system_path_relative_to_its_root().
45074
45075 2008-05-06 Robert Millan <rmh@aybabtu.com>
45076
45077 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45078 ensures that output lines aren't intermangled with those sent to
45079 stderr (via grub_util_info()).
45080 * util/grub-probe.c (grub_refresh): Likewise.
45081 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45082
45083 2008-05-05 Christian Franke <franke@computer.org>
45084
45085 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45086 Add Cygwin device names.
45087 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45088 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45089 (check_device): Return error instead of success on empty name.
45090 (make_device_map): Move label inside linux specific code to
45091 prevent compiler warning.
45092
45093 2008-04-30 Robert Millan <rmh@aybabtu.com>
45094
45095 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45096 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45097 first boot option.
45098 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45099
45100 2008-04-29 Robert Millan <rmh@aybabtu.com>
45101
45102 * docs/grub.cfg: New file (example GRUB configuration).
45103
45104 2008-04-26 Robert Millan <rmh@aybabtu.com>
45105
45106 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45107 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45108 and `disk/ieee1275/nand.c'.
45109
45110 2008-04-25 Bean <bean123ch@gmail.com>
45111
45112 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45113 i386-linuxbios.
45114
45115 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45116 change the buffer size to 4096 for cdrom device.
45117
45118 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45119 and nand.mod.
45120 (_linux_mod_SOURCES): New variable.
45121 (_linux_mod_CFLAGS): Likewise.
45122 (_linux_mod_LDFLAGS): Likewise.
45123 (linux_mod_SOURCES): Likewise.
45124 (linux_mod_CFLAGS): Likewise.
45125 (linux_mod_LDFLAGS): Likewise.
45126 (nand_mod_SOURCES): Likewise.
45127 (nand_mod_CFLAGS): Likewise.
45128 (nand_mod_LDFLAGS): Likewise.
45129
45130 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45131 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45132 type property. (nand device in olpc don't have this property)
45133
45134 * include/grub/disk.h (grub_disk_dev_id): New macro
45135 GRUB_DISK_DEVICE_NAND_ID.
45136
45137 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45138 function prototype.
45139 (grub_rescue_cmd_initrd): Likewise.
45140
45141 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45142 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45143 ofw_cif_handler and ofw_idt, adjust padding number.
45144
45145 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45146 GRUB_MACHINE_IEEE1275 is defined.
45147
45148 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45149 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45150
45151 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45152 on nested function heap_init.
45153 (grub_upper_mem): New variable for i386-ieee1275.
45154 (grub_get_extended_memory): New function for i386-ieee1275.
45155 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45156
45157 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45158 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45159 property.
45160
45161 * loader/i386/ieee1275/linux.c: New file.
45162
45163 * loader/i386/ieee1275/linux_normal.c: New file.
45164
45165 * disk/ieee1275/nand.c: New file.
45166
45167 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45168
45169 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45170 value.
45171 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45172
45173 2008-04-18 Robert Millan <rmh@aybabtu.com>
45174
45175 Restructures early code path on ieee1275 to unify grub_main() as
45176 the first C function that is executed in every platform.
45177
45178 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45179 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45180 cmain().
45181 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45182 * kern/ieee1275/cmain.c (cmain): Rename to ...
45183 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45184 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45185 at the beginning.
45186
45187 2008-04-18 Robert Millan <rmh@aybabtu.com>
45188
45189 * util/update-grub.in: Fix syntax error when setting
45190 `GRUB_PRELOAD_MODULES'.
45191 Reported by Stephane Chazelas <stephane@artesyncp.com>
45192
45193 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45194
45195 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45196 section into account, newer toolchains generate unique build ids
45197 * configure.ac: remove the test for --build-id=none acceptance,
45198 we want build ids to be preserved
45199 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45200 far from other sections don't cause the raw binary images grow
45201 size
45202
45203 2008-04-15 Robert Millan <rmh@aybabtu.com>
45204
45205 * disk/lvm.c: Update copyright year.
45206 * kern/misc.c: Likewise.
45207
45208 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45209
45210 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45211 there is no memory left for physical volume name.
45212
45213 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45214
45215 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45216 volume name mapping to support bigger than 9 character names properly.
45217
45218 2008-04-13 Robert Millan <rmh@aybabtu.com>
45219
45220 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45221 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45222
45223 2008-04-13 Christian Franke <franke@computer.org>
45224
45225 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45226 to create a floppy emulation boot CD when non emulation mode
45227 does not work.
45228 Enable Joliet CD filesystem extension.
45229
45230 2008-04-13 Robert Millan <rmh@aybabtu.com>
45231
45232 * kern/misc.c (grub_strncat): Fix off-by-one error.
45233 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45234
45235 * kern/env.c (grub_env_context_close): Clear current context, not
45236 previous one.
45237 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45238
45239 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45240
45241 2008-04-13 Robert Millan <rmh@aybabtu.com>
45242
45243 Improve robustness when handling LVM.
45244
45245 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45246 (and leave `*p' unmodified).
45247 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45248 through it.
45249 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45250 iterating through it.
45251 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45252 through it.
45253 (grub_lvm_scan_device): Check the return value (and fail gracefully
45254 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45255 Don't assume `vg->pvs != NULL' when iterating through it.
45256
45257 2008-04-13 Robert Millan <rmh@aybabtu.com>
45258
45259 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45260 * genmk.rb (partmap): New variable.
45261 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45262 (#{partmap}): New target rule.
45263 * genpartmaplist.sh: New file.
45264 * Makefile.in (pkglib_DATA): Add partmap.lst.
45265 (partmap.lst): New target rule.
45266 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45267 modules (including all partition maps), instead of preloading them.
45268
45269 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45270
45271 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45272 `linux-boot-prober' (if installed) to detect other operating
45273 systems which are installed on the computer and add them to
45274 the boot menu.
45275 * conf/common.rmk: Build and install 30_os-prober.
45276
45277 2008-04-12 Robert Millan <rmh@aybabtu.com>
45278
45279 * kern/powerpc/ieee1275/init.c: Move from here ...
45280 * kern/ieee1275/init.c: ... to here. Update all users.
45281
45282 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45283 * kern/ieee1275/cmain.c: ... to here. Update all users.
45284
45285 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45286 * kern/ieee1275/openfw.c: ... to here. Update all users.
45287
45288 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45289 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45290
45291 2008-04-10 Pavel Roskin <proski@gnu.org>
45292
45293 * configure.ac: Always use "_cv_" in cache variables for
45294 compatibility with Autoconf 2.62.
45295
45296 2008-04-07 Robert Millan <rmh@aybabtu.com>
45297
45298 Revert grub/machine/init.h addition by Pavel (since it breaks on
45299 i386-ieee1275 and others):
45300 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45301 * util/powerpc/ieee1275/misc.c: Likewise.
45302
45303 2008-04-07 Robert Millan <rmh@aybabtu.com>
45304
45305 * util/grub-probe.c (probe): Improve error message.
45306
45307 2008-04-07 Robert Millan <rmh@aybabtu.com>
45308
45309 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45310 (this prevents the presence of a bogus entry from ruining the whole
45311 thing).
45312
45313 2008-04-06 Pavel Roskin <proski@gnu.org>
45314
45315 * util/biosdisk.c: Include grub/util/biosdisk.h.
45316 * util/grub-fstest.c (execute_command): Make static.
45317 * util/grub-mkdevicemap.c (check_device): Likewise.
45318 * util/i386/pc/misc.c: Include grub/machine/init.h.
45319 * util/powerpc/ieee1275/misc.c: Likewise.
45320 * util/lvm.c: Include grub/util/lvm.h.
45321 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45322 grub/cache.h.
45323 * util/raid.c: Include grub/util/raid.h.
45324 (grub_util_getdiskname): Make static.
45325
45326 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45327 grub_hostfs_fini(), as they are called from grub_init_all() and
45328 grub_fini_all() respectively. This fixes an infinite loop in
45329 grub-fstest due to double registration of hostfs.
45330 Reported by Christian Franke <Christian.Franke@t-online.de>
45331
45332 2008-04-05 Pavel Roskin <proski@gnu.org>
45333
45334 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45335 all 8 functions. Otherwise, probe function 0 only.
45336
45337 2008-04-04 Pavel Roskin <proski@gnu.org>
45338
45339 * commands/lspci.c (grub_lspci_iter): Print the bus number
45340 correctly.
45341
45342 * commands/lspci.c (grub_pci_classes): Fix typos.
45343 (grub_lspci_iter): Don't print func twice. Print vendor ID
45344 before device ID, as it's normally done.
45345
45346 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45347 Fix signedness warnings.
45348 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45349 Likewise.
45350 * util/ieee1275/get_disk_name.c: Include config.h so that
45351 _GNU_SOURCE is defined and getline() is declared. Mark an
45352 unused argument as such. Fix a signedness warning.
45353
45354 2008-04-02 Pavel Roskin <proski@gnu.org>
45355
45356 * genkernsyms.sh.in: Use more robust assignments for CC and
45357 srcdir. Quote srcdir.
45358 * gensymlist.sh.in: Likewise. Assert at the compile time that
45359 the symbol table is not empty.
45360
45361 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45362 * fs/cpio.c (grub_cpio_read): Likewise.
45363
45364 2008-04-01 Pavel Roskin <proski@gnu.org>
45365
45366 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45367 * disk/host.c (grub_host_open): Likewise.
45368 * disk/loopback.c (grub_loopback_open): Likewise.
45369 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45370 disk->id as in disk/host.c, not a multi-character constant.
45371
45372 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45373 later is obsolete, potentially dangerous and sets a bad example.
45374 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45375 * util/misc.c (grub_util_get_image_size): Likewise.
45376
45377 * disk/loopback.c (options): Improve help for "--partitions".
45378
45379 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45380 options to align them with the short options, e.g. "echo -e".
45381
45382 2008-03-31 Bean <bean123ch@gmail.com>
45383
45384 * video/reader/png.c (grub_png_data): New member is_16bit and
45385 image_data.
45386 (grub_png_decode_image_header): Detect 16 bit png image.
45387 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45388 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45389 (grub_video_reader_png): Release memory occupied by image_data.
45390
45391 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45392 4096 bytes.
45393 (grub_nfs_mount): Skip the test for sector per cluster.
45394
45395 * include/grub/ntfs.h (MAX_SPC): Removed.
45396
45397 2008-03-31 Bean <bean123ch@gmail.com>
45398
45399 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45400 (grub_probe_SOURCES): Add fs/afs.c.
45401 (grub_fstest_SOURCES): Likewise.
45402 (afs_mod_SOURCES): New variable.
45403 (afs_mod_CFLAGS): Likewise.
45404 (afs_mod_LDFLAGS): Likewise.
45405
45406 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45407 (grub_emu_SOURCES): Likewise.
45408
45409 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45410
45411 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45412
45413 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45414
45415 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45416
45417 * fs/afs.c: New file.
45418
45419 2008-03-30 Pavel Roskin <proski@gnu.org>
45420
45421 * disk/host.c: Include grub/misc.h to fix a warning.
45422 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45423 warnings about implicit declarations.
45424
45425 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45426 variable.
45427 * include/grub/i386/loader.h: Change declaration of
45428 grub_linux_boot() to match what grub_loader_set() expects.
45429 * util/getroot.c (grub_guess_root_device): Return const char* to
45430 fix a warning.
45431 * util/grub-probe.c (probe): Fix a warning about uninitialized
45432 abstraction_name variable.
45433 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45434 second argument as unused to fix a warning.
45435
45436 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45437 missing grub_error() call.
45438
45439 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45440 2.60 and newer uses it to define datadir.
45441
45442 * commands/sleep.c: Fix warning about implicit declaration.
45443 * disk/memdisk.c: Likewise.
45444 * loader/aout.c: Likewise.
45445 * loader/i386/bsd_normal.c: Likewise.
45446 * util/grub-probe.c: Likewise.
45447
45448 * commands/i386/cpuid.c (has_longmode): Make static.
45449 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45450 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45451
45452 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45453 GDT. This is more robust, as %ds can change.
45454 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45455 calling real_to_prot().
45456 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45457
45458 2008-03-28 Pavel Roskin <proski@gnu.org>
45459
45460 * kern/i386/pc/startup.S: Assert that uncompressed functions
45461 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45462 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45463 code, as they push parts of the code (error handlers) beyond
45464 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45465 code as correctness and size.
45466
45467 2008-03-28 Pavel Roskin <proski@gnu.org>
45468
45469 * kern/i386/pc/startup.S
45470 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45471 data block address to the real mode, keep offset minimal. This
45472 works around a bug in AWARD BIOS on old Athlon systems, which
45473 makes CD detection hang.
45474
45475 2008-03-26 Pavel Roskin <proski@gnu.org>
45476
45477 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45478 const.
45479 * include/grub/normal.h: Add grub_parse_color_name_pair()
45480 declaration.
45481
45482 2008-03-24 Bean <bean123ch@gmail.com>
45483
45484 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45485 (cd_count): Removed.
45486 (cd_drive): New variable.
45487 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45488 (grub_biosdisk_call_hook): Likewise.
45489 (grub_biosdisk_iterate): Change cdrom detection method.
45490 (grub_biosdisk_open): Replace cd_start with cd_drive.
45491 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45492 detect cdrom device.
45493
45494 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45495 Removed.
45496 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45497 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45498 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45499 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45500 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45501 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45502 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45503 (grub_biosdisk_cdrp): New structure.
45504 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45505
45506 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45507
45508 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45509 device.
45510
45511 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45512 New function.
45513
45514 2008-03-20 Robert Millan <rmh@aybabtu.com>
45515
45516 Remove 2 TiB limit in ata.mod.
45517 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45518 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45519 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45520 grub_uint64_t instead of grub_uint32_t.
45521
45522 2008-03-05 Bean <bean123ch@gmail.com>
45523
45524 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45525 (grub_multiboot): Set boot device.
45526
45527 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45528
45529 2008-03-02 Bean <bean123ch@gmail.com>
45530
45531 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45532 symlink_buffer.
45533
45534 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45535
45536 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45537 texinfo.tex.
45538
45539 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45540 modified.
45541
45542 * docs/fdl.texi: New file.
45543
45544 * docs/mdate-sh: New file. Copied from gnulib.
45545 * docs/texinfo.tex: Likewise.
45546
45547 * config.guess: Updated from gnulib.
45548 * install-sh: Likewise.
45549
45550 2008-02-28 Robert Millan <rmh@aybabtu.com>
45551
45552 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45553 (aout_mod_SOURCES): New variable.
45554 (aout_mod_CFLAGS): Likewise.
45555 (aout_mod_LDFLAGS): Likewise.
45556
45557 * conf/i386-ieee1275.rmk: Likewise.
45558
45559 2008-02-28 Robert Millan <rmh@aybabtu.com>
45560
45561 * util/update-grub.in: Reorganise terminal validity check. Accept
45562 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45563 Based on suggestion by Franklin PIAT.
45564
45565 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45566
45567 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45568 function.
45569 * util/getroot.c (grub_util_check_block_device): New function that
45570 returns the given argument if it is a block device and returns NULL else.
45571 * util/grub-probe.c (argument_is_device): New variable.
45572 (probe): Promote device_name from a variable to an argument. Receive
45573 device_name from grub_util_check_block_device() if path is NULL and from
45574 grub_guess_root_device() else. Do not free() device_name anymore.
45575 (options): Introduce new parameter '-d, --device'.
45576 (main): Add description of the new parameter to the help screen.
45577 Rename path variable to argument. Set argument_is_device if the '-d'
45578 option is given. Pass argument to probe() depending on
45579 argument_is_device.
45580
45581 2008-02-24 Bean <bean123ch@gmail.com>
45582
45583 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45584 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45585 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45586 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45587 (GRUB_ISO9660_VOLDESC_END): Likewise.
45588 (grub_iso9660_primary_voldesc): New member escape.
45589 (grub_iso9660_data): New member joliet.
45590 (grub_iso9660_convert_string): New function.
45591 (grub_iso9660_mount): Detect joliet extension.
45592 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45593 (grub_iso9660_iso9660_label): Likewise.
45594
45595 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45596 (grub_setup_SOURCES): Add fs/udf.c.
45597 (grub_fstest_SOURCES): Likewise.
45598 (udf_mod_SOURCES): New variable.
45599 (udf_mod_CFLAGS): Likewise.
45600 (udf_mod_LDFLAGS): Likewise.
45601
45602 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45603 (grub_emu_SOURCES): Likewise.
45604
45605 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45606
45607 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45608
45609 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45610
45611 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45612
45613 * fs/udf.c: New file.
45614
45615 2008-02-24 Robert Millan <rmh@aybabtu.com>
45616
45617 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45618 (normal/lexer.c_DEPENDENCIES): New variables.
45619 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45620 (normal/lexer.c_DEPENDENCIES): Likewise.
45621 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45622 (normal/lexer.c_DEPENDENCIES): Likewise.
45623 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45624 (normal/lexer.c_DEPENDENCIES): Likewise.
45625 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45626 (normal/lexer.c_DEPENDENCIES): Likewise.
45627 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45628 (normal/lexer.c_DEPENDENCIES): Likewise.
45629
45630 2008-02-23 Robert Millan <rmh@aybabtu.com>
45631
45632 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45633 since they were intended to be in hex. This didn't break previously
45634 because of a bug in gpt_partition_map_iterate() (see below).
45635
45636 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45637 when checking the validity of GPT header.
45638 Remove `partno', since it always provides the same information as `i'.
45639
45640 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45641
45642 * include/grub/efi/time.h: Fix a wrong comment.
45643
45644 2008-02-19 Pavel Roskin <proski@gnu.org>
45645
45646 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45647 message.
45648
45649 2008-02-19 Bean <bean123ch@gmail.com>
45650
45651 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45652 (aout_mod_SOURCES): New variable.
45653 (aout_mod_CFLAGS): Likewise.
45654 (aout_mod_LDFLAGS): Likewise.
45655 (_bsd_mod_SOURCES): New variable.
45656 (_bsd_mod_CFLAGS): Likewise.
45657 (_bsd_mod_LDFLAGS): Likewise.
45658 (bsd_mod_SOURCES): New variable.
45659 (bsd_mod_CFLAGS): Likewise.
45660 (bsd_mod_LDFLAGS): Likewise.
45661
45662 * include/grub/aout.h: New file.
45663
45664 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45665
45666 * include/grub/i386/bsd.h: New file.
45667
45668 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45669 to make it public.
45670
45671 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45672 function is called, so that it's possible to change it inside the hook.
45673 (grub_elf64_load): Likewise.
45674 (grub_elf_file): Don't close the file if elf header is not found.
45675 (grub_elf_close): Close the file if grub_elf_file fails (The new
45676 grub_elf_file won't close it).
45677 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45678 (grub_elf64_size): Likewise.
45679
45680 * kern/i386/loader.S (grub_unix_real_boot): New function.
45681
45682 * loader/aout.c: New file.
45683
45684 * loader/i386/bsd.c: New file.
45685
45686 * loader/i386/bsd_normal.c: New file.
45687
45688 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45689
45690 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45691 can test other formats.
45692
45693 2008-02-19 Robert Millan <rmh@aybabtu.com>
45694
45695 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45696 (grub_gpt_partition_type_empty): Redefine with macro from
45697 `<grub/gpt_partition.h>'.
45698 (gpt_partition_map_iterate): Adjust partition type comparison.
45699
45700 Export `entry' as partmap-specific `part.data' struct.
45701 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45702
45703 * include/grub/gpt_partition.h (grub_gpt_header)
45704 (grub_gpt_partentry): ... to here (new file).
45705
45706 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45707
45708 (grub_gpt_partition_type_bios_boot): New const variable, defined
45709 with macro from `<grub/gpt_partition.h>'.
45710
45711 (setup): Replace `first_start' with `embed_region', which keeps
45712 track of the embed region (and is partmap-agnostic).
45713
45714 Replace find_first_partition_start() with find_usable_region(),
45715 which finds a usable region for embedding using partmap-specific
45716 knowledge (supports PC/MSDOS and GPT).
45717
45718 Fix all assumptions that the embed region start at sector 1, using
45719 `embed_region.start' from now on. Similarly, use `embed_region.end'
45720 rather than `first_start' to calculate available size.
45721
45722 In grub_util_info() message, replace "into after the MBR" with an
45723 indication of the specific sector our embed region starts at.
45724
45725 2008-02-19 Robert Millan <rmh@aybabtu.com>
45726
45727 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45728 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45729 `commands/reboot.c'.
45730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45731 (halt_mod_SOURCES): Likewise.
45732 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45733 (halt_mod_SOURCES): Likewise.
45734
45735 2008-02-17 Christian Franke <franke@computer.org>
45736
45737 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45738
45739 2008-02-17 Robert Millan <rmh@aybabtu.com>
45740
45741 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45742 set `first_start' to 0 for non-PC/MSDOS partition maps.
45743
45744 2008-02-16 Robert Millan <rmh@aybabtu.com>
45745
45746 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45747 do not assume partition map is PC/MSDOS before performing checks that
45748 are specific to that layout.
45749
45750 2008-02-13 Robert Millan <rmh@aybabtu.com>
45751
45752 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45753 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45754 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45755
45756 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45757
45758 * configure.ac: Only a cosmetic change on the handling of
45759 -fno-stack-protector.
45760
45761 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45762
45763 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45764 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45765 reboot.c.
45766 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45767 (halt_mod_SOURCES): New variable.
45768 (halt_mod_CFLAGS): Likewise.
45769 (halt_mod_LDFLAGS): Likewise.
45770 (reboot_mod_SOURCES): Likewise.
45771 (reboot_mod_CFLAGS): Likewise.
45772 (reboot_mod_LDFLAGS): Likewise.
45773
45774 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45775 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45776 reboot.c.
45777 (halt_mod_SOURCES): Likewise.
45778 (reboot_mod_SOURCES): Likewise.
45779
45780 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45781 commands/i386/pc/reboot.c by commands/reboot.c.
45782 (reboot_mod_SOURCES): Likewise.
45783
45784 * commands/i386/pc/reboot.c: merge this file ...
45785
45786 * commands/ieee1275/reboot.c: ... and this file ...
45787
45788 * commands/reboot.c: ... to this file.
45789 Add some precompiler directive to include the correct header for
45790 each machine.
45791
45792 * commands/ieee1275/halt.c: move this file ...
45793
45794 * commands/halt.c: ... to here.
45795 Add some precompiler directive to include the correct header for
45796 each machine.
45797
45798 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45799 (grub_halt): Likewise.
45800
45801 * kern/efi/efi.c (grub_reboot): New function.
45802 (grub_halt): Likewise.
45803
45804 2008-02-12 Robert Millan <rmh@aybabtu.com>
45805
45806 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45807 /dev (like it is done for /dev/mapper). This doesn't provide support
45808 for EVMS, but at least it is now easy to identify the problem when it
45809 arises.
45810
45811 2008-02-11 Robert Millan <rmh@aybabtu.com>
45812
45813 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45814 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45815 comparing it with -1, not 0.
45816
45817 2008-02-10 Robert Millan <rmh@aybabtu.com>
45818
45819 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45820 `disk/lvm.c'.
45821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45822 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45823
45824 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45825 `disk/lvm.c' to the end of the list.
45826 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45827 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45828
45829 2008-02-10 Robert Millan <rmh@aybabtu.com>
45830
45831 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45832 grub_print_error() instead. This will let user know why we're entering
45833 rescue mode.
45834 Based on suggestions from Sam Morris.
45835
45836 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45837
45838 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45839 on remaining N args, instead of "--" arg N times.
45840
45841 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45842
45843 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45844 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45845 pattern for unknown glyphs.
45846
45847 2008-02-09 Robert Millan <rmh@aybabtu.com>
45848
45849 * configure.ac: Probe for `help2man'.
45850 * Makefile.in (builddir): New variable.
45851 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45852 or otherwise add a few flags/options to it.
45853 (install-local): For every executable utility or script that is
45854 installed, invoke $(HELP2MAN) to install a manpage based on --help
45855 output.
45856
45857 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45858 that it doesn't prevent --help from working in build tree.
45859
45860 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45861 with `bug-grub@gnu.org'.
45862 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45863 * util/update-grub.in (usage): New function.
45864 Implement proper argument check, with support for --help and --version
45865 (as well as existing -y).
45866
45867 2008-02-09 Christian Franke <franke@computer.org>
45868
45869 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45870 avoid overwriting previous output.
45871 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45872
45873 2008-02-09 Robert Millan <rmh@aybabtu.com>
45874
45875 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45876 drawing the menu.
45877
45878 2008-02-09 Robert Millan <rmh@aybabtu.com>
45879
45880 * commands/sleep.c: New file.
45881 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45882 (sleep_mod_SOURCES): New variable.
45883 (sleep_mod_CFLAGS): Likewise.
45884 (sleep_mod_LDFLAGS): Likewise.
45885
45886 2008-02-09 Robert Millan <rmh@aybabtu.com>
45887
45888 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45889 situations in which we can deduce the RAID size and the superblock
45890 doesn't match it.
45891
45892 2008-02-09 Robert Millan <rmh@aybabtu.com>
45893
45894 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45895 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45896 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45897
45898 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45899 and return a grub_diskmemberlist_t composed of physical array members.
45900 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45901
45902 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45903 prototype.
45904 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45905 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45906 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45907
45908 * util/grub-probe.c (probe): Move partmap probing code from here ...
45909 (probe_partmap): ... to here.
45910 (probe): Use probe_partmap() once for the disk we're probing, and
45911 additionally, when such disk contains a memberlist() struct member,
45912 once for each disk that is contained in the structure returned by
45913 memberlist().
45914
45915 2008-02-09 Robert Millan <rmh@aybabtu.com>
45916
45917 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45918 environment variable to 'all' in order to obtain debug output from
45919 non-util/ code.
45920 * util/i386/pc/grub-setup.c (main): Likewise.
45921
45922 2008-02-08 Robert Millan <rmh@aybabtu.com>
45923
45924 * disk/raid.c (grub_raid_scan_device): Check for
45925 `array->device[sb.this_disk.number]' rather than for
45926 `array->device[sb.this_disk.number]->name', since the latter is not
45927 guaranteed to be accessible.
45928
45929 2008-02-08 Robert Millan <rmh@aybabtu.com>
45930
45931 * disk/raid.c: Update copyright.
45932 * fs/cpio.c: Likewise.
45933 * include/grub/raid.h: Likewise.
45934 * loader/i386/pc/multiboot.c: Likewise.
45935 * util/hostfs.c: Likewise.
45936
45937 2008-02-08 Robert Millan <rmh@aybabtu.com>
45938
45939 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45940 to a grub_disk_t array.
45941 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45942 `device[x]'.
45943 (grub_raid_scan_device): Replace `device[x].name' accesses with
45944 `device[x]->name'. Simplify initialization of `array->device[x]'.
45945
45946 2008-02-08 Robert Millan <rmh@aybabtu.com>
45947
45948 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45949 grub_dprintf() calls.
45950 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45951 error message.
45952
45953 2008-02-07 Christian Franke <franke@computer.org>
45954
45955 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45956 instead of fseek and ftell to support large files.
45957 (grub_hostfs_read): Likewise.
45958
45959 2008-02-07 Robert Millan <rmh@aybabtu.com>
45960
45961 Patch from Jeroen Dekkers.
45962 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45963 failure, since successfully reading all array members might not be
45964 required.
45965
45966 2008-02-06 Robert Millan <rmh@aybabtu.com>
45967
45968 * util/grub-probe.c (probe): Simplify partmap probing (with the
45969 assumption that the first word up to the underscore equals to
45970 the module name).
45971
45972 2008-02-06 Christian Franke <franke@computer.org>
45973
45974 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45975 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45976 last block of a cpio or tar stream.
45977 Check for "TRAILER!!!" instead of any empty data
45978 block to detect last block of a cpio stream.
45979 (grub_cpio_dir): Fix constness of variable np.
45980 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45981 cpio or tar trailer is detected. This fixes a crash
45982 on open of a non existing file.
45983
45984 2008-02-05 Bean <bean123ch@gmail.com>
45985
45986 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45987 address of entry.
45988 (grub_multiboot_load_elf64): Likewise.
45989 (grub_multiboot): Initialize mbi structure.
45990
45991 * util/grub-fstest.c: Don't include unused header file script.h.
45992
45993 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45994 of file.
45995 (grub_fstest_SOURCES): Likewise.
45996
45997 2008-02-05 Robert Millan <rmh@aybabtu.com>
45998
45999 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46000 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46001 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46002 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46003
46004 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46005 (translation_table): Replace hardcoded values with macros
46006 provided by `<grub/term.h>'.
46007
46008 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46009 (keyboard_map): Correct/add a few values, with macros provided
46010 by `<grub/term.h>'.
46011 (keyboard_map_shift): Zero values that don't differ from their
46012 `keyboard_map' equivalents.
46013 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46014 Discard the second scan code that is always sent by Caps lock.
46015 Only use `keyboard_map_shift' when it provides a non-zero value,
46016 otherwise fallback to `keyboard_map'.
46017
46018 2008-02-04 Bean <bean123ch@gmail.com>
46019
46020 * Makefile.in (enable_grub_fstest): New variable.
46021
46022 * conf/common.rmk (grub_fstest_init.lst): New rule.
46023 (grub_fstest_init.h): Likewise.
46024 (grub_fstest_init.c): Likewise.
46025 (util/grub-fstest.c_DEPENDENCIES): New variable.
46026 (grub_fstest_SOURCES): Likewise.
46027
46028 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46029
46030 * util/grub-fstest.c: New file.
46031
46032 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46033
46034 Make grub-setup handle a separate root device.
46035
46036 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46037 so that the root device can be compared with the destination
46038 device.
46039 When embedding the core image, if the root and destination devices
46040 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46041 0xFF.
46042 When not embedding, set ROOT_DRIVE to 0xFF.
46043
46044 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46045
46046 Add support for having a grub directory in a different drive. This
46047 is still only the data handling part.
46048
46049 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46050 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46051 (grub_root_drive): New variable.
46052
46053 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46054 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46055 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46056 as it was.
46057
46058 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46059
46060 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46061 macro.
46062 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46063
46064 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46065 is bogus, because PXE booting does not specify any drive
46066 correctly.
46067
46068 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46069 am not sure if this is really correct.
46070
46071 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46072 is always identical to the boot drive when booting from a CD.
46073
46074 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46075 longer.
46076 (root_drive): New variable.
46077 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46078 (setup_sectors): Push %dx right after popping it, because %dh will
46079 be modified later.
46080 (copy_buffer): Restore %dx.
46081
46082 2008-02-03 Robert Millan <rmh@aybabtu.com>
46083
46084 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46085 use `cdboot.img' for cdrom images.
46086
46087 2008-02-03 Robert Millan <rmh@aybabtu.com>
46088
46089 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46090 only setup gfxterm when `font' command has succeeded.
46091
46092 2008-02-03 Robert Millan <rmh@aybabtu.com>
46093
46094 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46095 (grub_rescue_cmd_multiboot_loader)
46096 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46097
46098 2008-02-03 Pavel Roskin <proski@gnu.org>
46099
46100 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46101 %edx and %esi from stack only after grub_gate_a20() is called.
46102 grub_gate_a20() clobbers %edx.
46103
46104 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46105
46106 * configure.ac (AC_INIT): Bumped to 1.96.
46107
46108 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46109 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46110 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46111 video/readers/png.c.
46112
46113 2008-02-03 Bean <bean123ch@gmail.com>
46114
46115 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46116 (cdboot_img_SOURCES): New variable.
46117 (cdboot_img_ASFLAGS): New variable.
46118 (cdboot_img_LDFLAGS): New variable.
46119
46120 * boot/i386/pc/cdboot.S: New file.
46121
46122 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46123 (cd_count): Likewise.
46124 (grub_biosdisk_get_drive): Add support for cd device.
46125 (grub_biosdisk_call_hook): Likewise.
46126 (grub_biosdisk_iterate): Likewise.
46127 (grub_biosdisk_open): Likewise.
46128 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46129 (grub_biosdisk_rw): Support reading from cd device.
46130 (GRUB_MOD_INIT): Iterate cd devices.
46131
46132 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46133 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46134 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46135
46136 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46137
46138 2008-02-02 Robert Millan <rmh@aybabtu.com>
46139
46140 * commands/read.c: New file.
46141 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46142 (read_mod_SOURCES): New variable.
46143 (read_mod_CFLAGS): Likewise.
46144 (read_mod_LDFLAGS): Likewise.
46145
46146 2008-02-02 Robert Millan <rmh@aybabtu.com>
46147
46148 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46149 determining whether menu has to be displayed.
46150
46151 2008-02-02 Marco Gerards <marco@gnu.org>
46152
46153 * bus/pci.c: New file.
46154
46155 * include/grub/pci.h: Likewise.
46156
46157 * include/grub/i386/pc/pci.h: Likewise.
46158
46159 * commands/lspci.c: Likewise.
46160
46161 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46162 `lspci.mod'.
46163 (pci_mod_SOURCES): New variable.
46164 (pci_mod_CFLAGS): Likewise.
46165 (pci_mod_LDFLAGS): Likewise.
46166 (lspci_mod_SOURCES): Likewise.
46167 (lspci_mod_CFLAGS): Likewise.
46168 (lspci_mod_LDFLAGS): Likewise.
46169
46170 2008-02-02 Bean <bean123ch@gmail.com>
46171
46172 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46173 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46174
46175 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46176 (grub_xfs_btree_node): New structure.
46177 (grub_xfs_btree_root): New structure.
46178 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46179 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46180 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46181 (GRUB_XFS_EXTENT_SIZE): Likewise.
46182 (grub_xfs_read_block): Support btree format type.
46183 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46184 Use directory block as basic unit.
46185
46186 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46187
46188 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46189 __attribute__ ((__regparm__ (1))).
46190
46191 2008-02-01 Robert Millan <rmh@aybabtu.com>
46192
46193 Correct a mistake in previous commit.
46194
46195 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46196 top.
46197 (normal/command.c_DEPENDENCIES): New variable.
46198
46199 2008-02-01 Robert Millan <rmh@aybabtu.com>
46200
46201 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46202 top.
46203 (normal/command.c_DEPENDENCIES): New variable.
46204 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46205 * conf/i386-ieee1275.rmk: Likewise.
46206 * conf/i386-linuxbios.rmk: Likewise.
46207 * conf/i386-pc.rmk: Likewise.
46208 * conf/sparc64-ieee1275.rmk: Likewise.
46209 * conf/powerpc-ieee1275.rmk: Likewise.
46210 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46211
46212 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46213
46214 2008-02-01 Robert Millan <rmh@aybabtu.com>
46215
46216 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46217 call at beginning of function.
46218
46219 2008-01-31 Pavel Roskin <proski@gnu.org>
46220
46221 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46222 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46223 (grub_mkrescue_SOURCES): Likewise.
46224 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46225
46226 2008-01-30 Robert Millan <rmh@aybabtu.com>
46227
46228 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46229 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46230 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46231 (grub_probe_SOURCES): ... to here.
46232
46233 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46234 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46235 * conf/i386-ieee1275.rmk: Likewise.
46236 * conf/i386-linuxbios.rmk: Likewise.
46237 * conf/powerpc-ieee1275.rmk: Likewise.
46238
46239 2008-01-30 Tristan Gingold <gingold@free.fr>
46240
46241 * kern/rescue.c: Silently accept empty lines.
46242
46243 2008-01-29 Bean <bean123ch@gmail.com>
46244
46245 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46246 (real_code_2): Code cleanup and change comment style.
46247 (move_memory): Avoid using 32-bit address mode.
46248
46249 2008-01-29 Bean <bean123ch@gmail.com>
46250
46251 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46252 (png_mod_SOURCES): New variable.
46253 (png_mod_CFLAGS): Likewise.
46254 (png_mod_LDFLAGS): Likewise.
46255
46256 * video/readers/png.c: New file.
46257
46258 2008-01-28 Robert Millan <rmh@aybabtu.com>
46259
46260 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46261 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46262 `ifndef GRUB_MOD_GAP' hack.
46263 * util/elf/grub-mkimage.c (add_segments): Likewise.
46264
46265 2008-01-27 Robert Millan <rmh@aybabtu.com>
46266
46267 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46268 `GRUB_MOD_GAP' for platforms in which it's not defined.
46269 * util/elf/grub-mkimage.c (add_segments): Likewise.
46270
46271 2008-01-27 Robert Millan <rmh@aybabtu.com>
46272
46273 Get grub-emu to build again (including parallel builds).
46274
46275 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46276 Split into ...
46277 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46278 (normal/execute.c_DEPENDENCIES): ... this, ...
46279 (grub-emu_DEPENDENCIES): ... and this.
46280
46281 * conf/i386-efi.rmk: Likewise.
46282 * conf/i386-linuxbios.rmk: Likewise.
46283 * conf/i386-ieee1275.rmk: Likewise.
46284 * conf/powerpc-ieee1275.rmk: Likewise.
46285 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46286
46287 2008-01-27 Robert Millan <rmh@aybabtu.com>
46288
46289 * NEWS: Add a few items.
46290
46291 2008-01-27 Robert Millan <rmh@aybabtu.com>
46292
46293 Fix parallel builds with grub-emu. Based on earlier commit for
46294 grub-probe and grub-setup.
46295
46296 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46297 (util/grub-emu.c_DEPENDENCIES): ... this.
46298 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46299 (util/grub-emu.c_DEPENDENCIES): ... this.
46300 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46301 (util/grub-emu.c_DEPENDENCIES): ... this.
46302 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46303 (util/grub-emu.c_DEPENDENCIES): ... this.
46304 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46305 (util/grub-emu.c_DEPENDENCIES): ... this.
46306
46307 2008-01-27 Pavel Roskin <proski@gnu.org>
46308
46309 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46310 to create a gap between _end and the modules added to the image
46311 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46312 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46313 * util/elf/grub-mkimage.c (add_segments): Likewise.
46314
46315 2008-01-26 Pavel Roskin <proski@gnu.org>
46316
46317 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46318 just return an error.
46319
46320 2008-01-26 Bean <bean123ch@gmail.com>
46321
46322 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46323 (grub_reiserfs_get_item): Save offset of the next item.
46324 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46325
46326 2008-01-25 Robert Millan <rmh@aybabtu.com>
46327
46328 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46329 make all filesystem sources appear together (possibly fixing omissions
46330 while at it).
46331 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46332 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46333 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46335
46336 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46337 add `kern/file.c'.
46338 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46339 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46340 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46341 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46342
46343 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46344 (probe): Add a sanity check to make sure of our ability to read
46345 requested files when probing for filesystem type.
46346
46347 * genmk.rb: Update copyright year (2007).
46348
46349 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46350 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46351 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46352 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46353 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46354 : Remove function prototypes.
46355
46356 2008-01-25 Robert Millan <rmh@aybabtu.com>
46357
46358 Revert my previous commits (based on wrong assumption of how grub_errno
46359 works).
46360
46361 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46362 * kern/file.c (grub_file_open): Likewise.
46363
46364 2008-01-24 Pavel Roskin <proski@gnu.org>
46365
46366 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46367 that hang if GRUB tries to setup colors.
46368 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46369 colors for firmwares that don't support it.
46370 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46371 Recognize Open Hack'Ware, set flags to work around its
46372 limitations.
46373
46374 2008-01-24 Robert Millan <rmh@aybabtu.com>
46375
46376 * kern/file.c (grub_file_open): Do not account previous failures of
46377 unrelated functions when grub_errno is checked for.
46378 Reported by Oleg Strikov.
46379
46380 2008-01-24 Bean <bean123ch@gmail.com>
46381
46382 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46383 (grub_ufs_sblock): New member volume name.
46384 (grub_ufs_find_file): Fix string copy bug.
46385 (grub_ufs_label): Implement this function properly.
46386
46387 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46388 (grub_hfs_iterate_records): Use the correct file number for extents
46389 and catalog file. Fix problem in next index calculation.
46390 (grub_hfs_find_node): Replace recursive function call with loop.
46391 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46392
46393 2008-01-23 Robert Millan <rmh@aybabtu.com>
46394
46395 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46396 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46397 (grub_multiboot2_real_boot): New function prototype.
46398
46399 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46400 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46401
46402 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46403 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46404
46405 2008-01-23 Robert Millan <rmh@aybabtu.com>
46406
46407 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46408 #ifdef'ed out grub_printf().
46409
46410 2008-01-23 Robert Millan <rmh@aybabtu.com>
46411
46412 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46413 grub_dprintf calls, since they make "debug=all" mode unusable.
46414 (grub_console_checkkey): Likewise.
46415
46416 2008-01-23 Robert Millan <rmh@aybabtu.com>
46417
46418 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46419 `term/i386/pc/at_keyboard.c'.
46420 (pkglib_MODULES): Add `serial.mod'.
46421 (serial_mod_SOURCES): New variable.
46422 (serial_mod_CFLAGS): Likewise.
46423 (serial_mod_LDFLAGS): Likewise.
46424
46425 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46426 `<grub/powerpc/ieee1275/console.h>'.
46427 (grub_keyboard_controller_init): New function prototype.
46428 (grub_console_checkkey): Likewise.
46429 (grub_console_getkey): Likewise.
46430
46431 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46432 keyboard on i386.
46433
46434 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46435 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46436
46437 2008-01-23 Robert Millan <rmh@aybabtu.com>
46438
46439 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46440 present, "(memdisk)/boot/grub" becomes the default prefix.
46441
46442 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46443 a memdisk tarball with all the modules. Add --overlay=DIR option that
46444 allows users to overlay additional files into the image.
46445
46446 2008-01-23 Robert Millan <rmh@aybabtu.com>
46447
46448 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46449 and `machine/memory.h'.
46450 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46451 (_multiboot_mod_SOURCES): New variable.
46452 (_multiboot_mod_CFLAGS): Likewise.
46453 (_multiboot_mod_LDFLAGS): Likewise.
46454 (multiboot_mod_SOURCES): Likewise.
46455 (multiboot_mod_CFLAGS): Likewise.
46456 (multiboot_mod_LDFLAGS): Likewise.
46457
46458 * include/grub/i386/ieee1275/loader.h: New file.
46459
46460 * include/grub/i386/ieee1275/machine.h: Likewise.
46461
46462 * include/grub/i386/ieee1275/memory.h: Likewise.
46463
46464 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46465 variable declaration.
46466 (grub_os_area_size): Likewise.
46467
46468 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46469 (grub_lower_mem, grub_upper_mem): New variables.
46470 (grub_stop_floppy): New function (just to make
46471 grub_multiboot2_real_boot() happy).
46472
46473 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46474 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46475 (grub_stop): New function.
46476 Include `"../realmode.S"' and `"../loader.S"'.
46477
46478 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46479 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46480
46481 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46482 rely on grub_multiboot2_real_boot() for final boot.
46483
46484 2008-01-22 Robert Millan <rmh@aybabtu.com>
46485
46486 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46487 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46488 device that doesn't look like an SD card.
46489 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46490 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46491 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46492 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46493 found.
46494
46495 2008-01-22 Robert Millan <rmh@aybabtu.com>
46496
46497 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46498 avoid claiming over our own code.
46499
46500 2008-01-22 Bean <bean123ch@gmail.com>
46501
46502 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46503 (jpeg_mod_SOURCES): New variable.
46504 (jpeg_mod_CFLAGS): Likewise.
46505 (jpeg_mod_LDFLAGS): Likewise.
46506
46507 * video/readers/jpeg.c : New file.
46508
46509 2008-01-22 Bean <bean123ch@gmail.com>
46510
46511 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46512 there are no more items.
46513
46514 2008-01-21 Robert Millan <rmh@aybabtu.com>
46515
46516 * kern/mm.c (grub_mm_init_region): Improve debug message.
46517
46518 2008-01-21 Robert Millan <rmh@aybabtu.com>
46519
46520 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46521 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46522 address.
46523 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46524 a C macro.
46525 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46526 Indicates start of upper memory.
46527 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46528 (generate_image): Abort when image size is big enough to corrupt
46529 upper memory.
46530
46531 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46532 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46533 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46534 instead of hardcoding 0xA0000.
46535 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46536 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46537 instead of hardcoding 0xA0000.
46538
46539 2008-01-21 Robert Millan <rmh@aybabtu.com>
46540
46541 * disk/memdisk.c (memdisk_size): New variable.
46542 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46543 `memdisk_size'.
46544 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46545 image to dynamic memory.
46546 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46547 `memdisk_size'. Free memdisk block.
46548
46549 2008-01-21 Robert Millan <rmh@aybabtu.com>
46550
46551 Fix detection of very small filesystems (like tar).
46552
46553 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46554 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46555 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46556 a problem with this disk).
46557
46558 2008-01-21 Robert Millan <rmh@aybabtu.com>
46559
46560 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46561 on grub_biosdisk_rw_standard() error.
46562
46563 2008-01-21 Robert Millan <rmh@aybabtu.com>
46564
46565 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46566 recent changes.
46567 * kern/elf.c: Likewise.
46568 * kern/ieee1275/ieee1275.c: Likewise.
46569 * kern/powerpc/ieee1275/openfw.c: Likewise.
46570 * term/ieee1275/ofconsole.c: Likewise.
46571
46572 2008-01-21 Robert Millan <rmh@aybabtu.com>
46573
46574 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46575
46576 * include/grub/kernel.h (grub_arch_memdisk_addr)
46577 (grub_arch_memdisk_size): Moved from here ...
46578
46579 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46580 (grub_arch_memdisk_size): ... to here.
46581
46582 2008-01-21 Robert Millan <rmh@aybabtu.com>
46583
46584 Mostly based on bugfix from Bean.
46585
46586 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46587 attribute with hook() parameter.
46588 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46589 declaration.
46590 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46591 attribute with hook() parameter.
46592 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46593 declaration.
46594
46595 2008-01-21 Robert Millan <rmh@aybabtu.com>
46596
46597 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46598 (pkglib_MODULES): Add `memdisk.mod'.
46599 (memdisk_mod_SOURCES): New variable.
46600 (memdisk_mod_CFLAGS): Likewise.
46601 (memdisk_mod_LDFLAGS): Likewise.
46602
46603 * disk/memdisk.c: New file.
46604
46605 * include/grub/disk.h (grub_disk_dev_id): Add
46606 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46607
46608 * include/grub/i386/pc/kernel.h
46609 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46610 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46611 (grub_kernel_image_size): New variable declaration.
46612 (grub_total_module_size): Likewise.
46613 (grub_memdisk_image_size): Likewise.
46614
46615 * include/grub/i386/pc/memory.h
46616 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46617
46618 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46619 (grub_arch_memdisk_addr): New variable declaration.
46620 (grub_arch_memdisk_size): Likewise.
46621
46622 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46623 (grub_arch_memdisk_size): Likewise.
46624
46625 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46626 (codestart): Replace hardcoded `0x100000' with
46627 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46628
46629 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46630 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46631 not NULL, append the contents of the file it refers to, at the end of
46632 the compressed kernel image. Initialize `grub_memdisk_image_size'
46633 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46634 (options): Add "memdisk"|'m' option.
46635 (main): Parse --memdisk|-m option, and pass user-provided path as
46636 parameter to generate_image().
46637
46638 2008-01-20 Robert Millan <rmh@aybabtu.com>
46639
46640 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46641 grub_dprintf() calls from here ...
46642 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46643
46644 2008-01-20 Robert Millan <rmh@aybabtu.com>
46645
46646 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46647
46648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46649 declaration.
46650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46651 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46652 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46653 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46654 property).
46655 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46656 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46657
46658 2008-01-19 Robert Millan <rmh@aybabtu.com>
46659
46660 Get rid of confusing function (superseded by
46661 `grub_ieee1275_get_integer_property')
46662 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46663 prototype.
46664 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46665 function.
46666 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46667 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46668 in native endianness from grub_ieee1275_get_integer_property().
46669
46670 2008-01-19 Robert Millan <rmh@aybabtu.com>
46671
46672 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46673 command after "shut-down", since implementations differ on which
46674 the command for halt is.
46675
46676 2008-01-19 Robert Millan <rmh@aybabtu.com>
46677
46678 * include/grub/i386/linuxbios/console.h: Add header protection.
46679 (grub_keyboard_controller_init): New function prototype.
46680 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46681 (KEYBOARD_COMMAND_READ): Likewise.
46682 (KEYBOARD_COMMAND_WRITE): Likewise.
46683 (KEYBOARD_SCANCODE_SET1): Likewise.
46684 (grub_keyboard_controller_write): New function.
46685 (grub_keyboard_controller_read): Likewise.
46686 (grub_keyboard_controller_init): Likewise.
46687
46688 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46689 (grub_console_init): On coreboot/LinuxBIOS, call
46690 grub_keyboard_controller_init().
46691
46692 2008-01-19 Robert Millan <rmh@aybabtu.com>
46693
46694 PowerPC changes provided by Pavel Roskin.
46695
46696 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46697 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46698 don't rely on cmain() doing it.
46699 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46700 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46701
46702 2008-01-16 Robert Millan <rmh@aybabtu.com>
46703
46704 * include/grub/i386/linuxbios/memory.h
46705 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46706 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46707 receive `table_header' as argument. Instead, probe for it in the
46708 known memory ranges where it can be present.
46709 (grub_available_iterate): Do not pass a fixed `table_header' address
46710 to grub_linuxbios_table_iterate().
46711
46712 2008-01-15 Robert Millan <rmh@aybabtu.com>
46713
46714 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46715 * conf/i386-ieee1275.rmk: New file.
46716 * include/grub/i386/ieee1275/console.h: Likewise.
46717 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46718 * include/grub/i386/ieee1275/kernel.h: Likewise.
46719 * include/grub/i386/ieee1275/time.h: Likewise.
46720 * kern/i386/ieee1275/init.c: Likewise.
46721 * kern/i386/ieee1275/startup.S: Likewise.
46722
46723 2008-01-15 Robert Millan <rmh@aybabtu.com>
46724
46725 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46726 when pointers are 32-bit (but still do set it to one when they are
46727 64-bit).
46728
46729 2008-01-15 Robert Millan <rmh@aybabtu.com>
46730
46731 * include/grub/ieee1275/ieee1275.h
46732 (grub_ieee1275_get_integer_property): New function prototype.
46733
46734 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46735 (grub_ieee1275_get_integer_property): New function. Wraps around
46736 grub_ieee1275_get_property() to handle endianness.
46737
46738 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46739 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46740 where appropriate.
46741 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46742 (grub_map): Likewise.
46743 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46744
46745 2008-01-15 Bean <bean123ch@gmail.com>
46746
46747 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46748 (grub_script_execute_cmdline): Reset grub_errno.
46749
46750 * normal/main.c (read_config_file): Reset grub_errno.
46751
46752 * normal/parse.y (script_init): New.
46753 (script): Move function and menuentry here.
46754 (delimiter): New.
46755 (command): Add delimiter at the end of command.
46756 (commands): Adjust to match the new command.
46757 (commandblock): Remove grub_script_lexer_record_start.
46758 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46759 (if): Use the new commands.
46760
46761 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46762
46763 2008-01-15 Robert Millan <rmh@aybabtu.com>
46764
46765 * normal/menu.c (run_menu): Move timeout message from here ...
46766 (print_timeout): ... to here.
46767 (run_menu): Use print_timeout() once during initial draw to print
46768 the whole message, and again in every clock tick to update only
46769 the number of seconds.
46770
46771 2008-01-15 Robert Millan <rmh@aybabtu.com>
46772
46773 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46774 actual size of `available' from grub_ieee1275_get_property(), and
46775 restrict parsing to that bound.
46776
46777 2008-01-15 Christian Franke <franke@computer.org>
46778
46779 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46780 (argp_program_version): Remove variable.
46781 (argp_program_bug_address): Likewise.
46782 (options): Convert from struct argp_option to struct option.
46783 (struct arguments): Remove.
46784 (parse_opt): Remove.
46785 (usage): New function.
46786 (main): Replace struct args members by simple variables.
46787 Replace argp_parse() by getopt_long().
46788 Add switch to evaluate options.
46789 Add missing "(...)" around root_dev in prefix string.
46790
46791 2008-01-14 Robert Millan <rmh@aybabtu.com>
46792
46793 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46794 for grub_ieee1275_exit(), in order to improve portability.
46795
46796 2008-01-14 Robert Millan <rmh@aybabtu.com>
46797
46798 * util/grub.d/10_linux.in (prefix): Define.
46799 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46800
46801 2008-01-13 Pavel Roskin <proski@gnu.org>
46802
46803 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46804 grub_errno if no errors have been detected.
46805
46806 2008-01-12 Robert Millan <rmh@aybabtu.com>
46807
46808 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46809 (grub_util_get_dev_abstraction): New function prototype.
46810
46811 * util/getroot.c: Include `<grub/util/getroot.h>'
46812 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46813 (grub_util_get_dev_abstraction): ... here (new function).
46814
46815 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46816 `PRINT_ABSTRACTION'.
46817 (probe): Probe for abstraction type when requested.
46818 (main): Understand `--target=abstraction'.
46819
46820 * util/i386/efi/grub-install.in: Add abstraction module to core
46821 image when it is found to be necessary.
46822 * util/i386/pc/grub-install.in: Likewise.
46823 * util/powerpc/ieee1275/grub-install.in: Likewise.
46824
46825 * util/update-grub_lib.in (font_path): Return system path without
46826 converting to GRUB path.
46827 * util/update-grub.in: Convert system path returned by font_path()
46828 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46829 abstraction module is needed for loading fonts (if any). Export
46830 that as `GRUB_PRELOAD_MODULES'.
46831 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46832 insmod commands).
46833
46834 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46835
46836 Remove some unused code from reiserfs.
46837
46838 * fs/reiserfs.c (struct grub_reiserfs_key)
46839 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46840 (struct grub_reiserfs_node_body): Removed.
46841 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46842 Likewise.
46843 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46844 Likewise.
46845 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46846 Likewise.
46847 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46848 Likewise.
46849 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46850 Likewise.
46851 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46852 Likewise.
46853 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46854 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46855 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46856
46857 2008-01-10 Robert Millan <rmh@aybabtu.com>
46858
46859 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46860 Determines if a file is garbage left by packaging systems, etc.
46861 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46862 for processing /etc/grub.d scripts.
46863 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46864 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46865 as a condition for processing Linux images.
46866
46867 2008-01-10 Pavel Roskin <proski@gnu.org>
46868
46869 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46870 to compile reiserfs.c on PowerPC.
46871
46872 2008-01-10 Robert Millan <rmh@aybabtu.com>
46873
46874 * kern/device.c (grub_device_iterate): Do not abort device iteration
46875 when one of the devices cannot be opened.
46876 * kern/disk.c (grub_disk_open): Do not account previous failures of
46877 unrelated functions when grub_errno is checked for.
46878
46879 2008-01-08 Robert Millan <rmh@aybabtu.com>
46880
46881 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46882 `! grub_linux_is_bzimage', change order of address comparison to make
46883 it more intuitive, and improve "too big zImage" error message.
46884
46885 2008-01-08 Robert Millan <rmh@aybabtu.com>
46886
46887 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46888 `$(update-grub_DATA)'.
46889 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46890 targets.
46891
46892 2008-01-07 Robert Millan <rmh@aybabtu.com>
46893
46894 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46895 which instruction is modified by grub-setup during installation
46896 (since it wasn't obvious by only looking at this file).
46897
46898 2008-01-07 Robert Millan <rmh@aybabtu.com>
46899
46900 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46901 listing actual TODO items.
46902
46903 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46904
46905 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46906 correctly.
46907 (grub_reiserfs_get_key_offset): Likewise.
46908 (grub_reiserfs_set_key_offset): Likewise.
46909 (grub_reiserfs_set_key_type): Likewise.
46910 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46911
46912 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46913 better to remove the bitfield version completely.
46914
46915 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46916
46917 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46918 allocated from the heap, due to the fshelp implementation.
46919 (grub_reiserfs_dir): Free NODE, due to the same reason.
46920
46921 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46922
46923 Mostly from Vincent Pelletier:
46924
46925 * fs/reiserfs.c: New file.
46926
46927 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46928 (reiserfs_mod_SOURCES): New variable.
46929 (reiserfs_mod_CFLAGS): Likewise.
46930 (reiserfs_mod_LDFLAGS): Likewise.
46931
46932 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46933 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46934 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46935 normal/color.c.
46936
46937 2008-01-06 Robert Millan <rmh@aybabtu.com>
46938
46939 * normal/color.c: Remove `<grub/env.h>'.
46940
46941 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46942
46943 * include/grub/normal.h: Include <grub/env.h>.
46944
46945 2008-01-05 Robert Millan <rmh@aybabtu.com>
46946
46947 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46948 usage example with `(hd0,1)'.
46949 Reported by Samuel Thibault.
46950
46951 2008-01-05 Robert Millan <rmh@aybabtu.com>
46952
46953 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46954 (grub_linux_boot_zimage): Rename to ...
46955 (grub_linux_boot): ... this.
46956 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46957 (grub_linux_boot_zimage): Conditionalize zImage copy.
46958
46959 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46960 (grub_linux_boot_bzimage): Remove prototype.
46961 (grub_linux_boot_zimage): Rename to ...
46962 (grub_linux_boot): ... this.
46963
46964 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46965 (grub_linux_boot): Remove function.
46966
46967 2008-01-05 Robert Millan <rmh@aybabtu.com>
46968
46969 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46970 (grub_env_write_color_highlight): Likewise.
46971 (grub_wait_after_message): Likewise.
46972
46973 * normal/color.c: New file.
46974
46975 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46976 (normal_mod_DEPENDENCIES): Likewise.
46977
46978 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46979 (normal_mod_DEPENDENCIES): Likewise.
46980
46981 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46982 (normal_mod_DEPENDENCIES): Likewise.
46983
46984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46985 (normal_mod_DEPENDENCIES): Likewise.
46986
46987 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46988 for waiting after a message is printed.
46989 * normal/main.c (read_config_file): Likewise.
46990 (grub_normal_init): Register grub_env_write_color_normal() and
46991 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46992 `color_highlight' variables as global.
46993
46994 * normal/menu.c (grub_wait_after_message): New function.
46995 (grub_color_menu_normal): New variable. Replaces ...
46996 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46997 (grub_color_menu_highlight): New variable. Replaces ...
46998 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46999 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47000 `GRUB_TERM_COLOR_STANDARD'.
47001 (print_message): Use `grub_setcolorstate' to reload colors. Rename
47002 `normal_code' and `highlight_code' to `old_color_normal' and
47003 `old_color_highlight', respectively.
47004 (grub_menu_init_page): Update colors when drawing the menu, based on
47005 `menu_color_normal' and `menu_color_highlight' variables.
47006 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47007 a message is printed.
47008
47009 2008-01-05 Robert Millan <rmh@aybabtu.com>
47010
47011 * kern/env.c (grub_env_context_open): Propagate hooks for global
47012 variables to new context.
47013
47014 * kern/main.c (grub_set_root_dev): Export `root' variable.
47015
47016 2008-01-05 Robert Millan <rmh@aybabtu.com>
47017
47018 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47019 discs unconditionally, since udev and others have options to provide
47020 them.
47021
47022 2008-01-05 Robert Millan <rmh@aybabtu.com>
47023
47024 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47025
47026 2008-01-04 Christian Franke <franke@computer.org>
47027
47028 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47029 of eisa_mmap.
47030
47031 2008-01-03 Pavel Roskin <proski@gnu.org>
47032
47033 * kern/i386/linuxbios/init.c: Put "void" to all function
47034 declarations with no arguments.
47035 * kern/powerpc/ieee1275/init.c: Likewise.
47036 * term/i386/pc/at_keyboard.c: Likewise.
47037 * term/i386/pc/vga_text.c: Likewise.
47038 * util/grub-mkdevicemap.c: Likewise.
47039
47040 2008-01-02 Robert Millan <rmh@aybabtu.com>
47041
47042 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47043 message when loaded image is out of bounds.
47044 (grub_multiboot_load_elf64): Likewise.
47045
47046 2008-01-02 Pavel Roskin <proski@gnu.org>
47047
47048 * util/grub.d/10_linux.in: Try version without ".old" when
47049 looking for initrd. It's better to use initrd from the newer
47050 kernel of the same version than no initrd at all.
47051
47052 2008-01-01 Robert Millan <rmh@aybabtu.com>
47053
47054 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47055
47056 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47057
47058 * include/grub/video.h: Added grub_video_unmap_color and
47059 grub_video_get_active_render_target.
47060 (grub_video_adapter): Added unmap_color and get_active_render_target.
47061
47062 * video/video.c: Added grub_video_unmap_color and
47063 grub_video_get_active_render_target.
47064 (grub_video_get_info): Changed method to accept NULL pointer as an
47065 argument to allow detection of active video adapter.
47066
47067 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47068 grub_video_vbe_unmap_color_int.
47069 Added grub_video_vbe_unmap_color and
47070 grub_video_vbe_get_active_render_target.
47071 (grub_video_vbe_adapter): Added unmap_color and
47072 get_active_render_target.
47073
47074 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47075 with grub_video_vbe_unmap_color_int.
47076
47077 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47078 (DEFAULT_NORMAL_COLOR): Likewise.
47079 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47080 (DEFAULT_FG_COLOR): Removed.
47081 (DEFAULT_BG_COLOR): Likewise.
47082 (DEFAULT_CURSOR_COLOR): Changed value.
47083 (grub_virtual_screen): Added standard_color_setting,
47084 normal_color_setting, highlight_color_setting and term_color.
47085 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47086 (bitmap_width): Added.
47087 (bitmap_height): Likewise.
47088 (bitmap): Likewise.
47089 (set_term_color): Likewise.
47090 (grub_virtual_screen_setup): Changed to use new terminal coloring
47091 settings.
47092 (grub_gfxterm_init): Added init for bitmap.
47093 (grub_gfxterm_fini): Added destroy for bitmap.
47094 (redraw_screen_rect): Updated to use background bitmap and new
47095 terminal coloring.
47096 (scroll_up): Added optimization for case when there is no bitmap.
47097 (grub_gfxterm_cls): Fixed to use correct background color.
47098 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47099 coloring.
47100 (grub_virtual_screen_setcolor): Likewise.
47101 (grub_virtual_screen_getcolor): Added.
47102 (grub_gfxterm_background_image_cmd): Likewise.
47103 (grub_video_term): Added setcolor and getcolor.
47104 (MOD_INIT): Added registration of background_image command.
47105 (MOD_TERM): Added unregistration for background_image command.
47106
47107 2007-12-30 Pavel Roskin <proski@gnu.org>
47108
47109 * loader/multiboot_loader.c: Fix multiboot command
47110 unregistration. Fix all typos in the word "multiboot".
47111
47112 2007-12-29 Pavel Roskin <proski@gnu.org>
47113
47114 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47115 support for initrd names used in Fedora.
47116
47117 2007-12-26 Bean <bean123ch@gmail.com>
47118
47119 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47120 (cpio_mod_SOURCES): New variable.
47121 (cpio_mod_CFLAGS): Likewise.
47122 (cpio_mod_LDFLAGS): Likewise.
47123
47124 * fs/cpio.c: New file.
47125
47126 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47127
47128 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47129
47130 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47131
47132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47133
47134 2007-12-25 Robert Millan <rmh@aybabtu.com>
47135
47136 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47137 (grub_getcolor): New function.
47138
47139 * kern/term.c (grub_getcolor): New function.
47140 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47141 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47142 (print_entry): Set normal and highlight colors to
47143 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47144 respectively, before printing and restore them to old
47145 values afterwards.
47146 (grub_menu_init_page): Likewise. Fill an additional colored space
47147 that would otherwise be left blank.
47148
47149 * term/efi/console.c (grub_console_getcolor): New function.
47150 (struct grub_console_term.getcolor): New variable.
47151 * term/i386/pc/console.c (grub_console_getcolor): New function.
47152 (struct grub_console_term.getcolor): New variable.
47153 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47154 (struct grub_console_term.getcolor): New variable.
47155
47156 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47157 (struct grub_console_term.setcolor): Remove variable.
47158 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47159 (struct grub_console_term.setcolor): Remove variable.
47160 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47161 (struct grub_console_term.setcolor): Remove variable.
47162 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47163 (struct grub_console_term.setcolor): Remove variable.
47164
47165 2007-12-25 Robert Millan <rmh@aybabtu.com>
47166
47167 * configure.ac: Search for possible unifont.hex locations, and
47168 define UNIFONT_HEX if found.
47169
47170 * Makefile.in (UNIFONT_HEX): Define variable.
47171 (DATA): Rename to ...
47172 (PKGLIB): ... this. Update all users.
47173 (PKGDATA): New variable.
47174 (pkgdata_IMAGES): Rename to ...
47175 (pkglib_IMAGES): ... this. Update all users.
47176 (pkgdata_MODULES): Rename to ...
47177 (pkglib_MODULES): ... this. Update all users.
47178 (pkgdata_PROGRAMS): Rename to ...
47179 (pkglib_PROGRAMS): ... this. Update all users.
47180 (pkgdata_DATA): Rename to ...
47181 (pkglib_DATA): ... this. Update all users.
47182 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47183 (unicode.pff, ascii.pff): New rules.
47184 (all-local): Add `$(PKGDATA)' dependency.
47185 (install-local): Process `$(PKGDATA)'.
47186
47187 * util/update-grub_lib.in (font_path): Search for *.pff files in
47188 a few more locations, including `${pkgdata}'.
47189
47190 2007-12-23 Robert Millan <rmh@aybabtu.com>
47191
47192 Patch from Bean <bean123ch@gmail.com>:
47193 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47194 `size'.
47195
47196 2007-12-21 Bean <bean123ch@gmail.com>
47197
47198 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47199 (ntfscomp_mod_SOURCES): New variable.
47200 (ntfscomp_mod_CFLAGS): Likewise.
47201 (ntfscomp_mod_LDFLAGS): Likewise.
47202
47203 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47204 (grub_probe_SOURCES): Likewise.
47205 (grub_emu_SOURCES): Likewise.
47206
47207 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47208 (grub_emu_SOURCES): Likewise.
47209
47210 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47211 (grub_emu_SOURCES): Likewise.
47212
47213 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47214 (grub_emu_SOURCES): Likewise.
47215
47216 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47217 (read_run_list): Renamed to grub_ntfs_read_run_list.
47218 (decomp_nextvcn): Moved to ntfscomp.c.
47219 (decomp_getch): Likewise.
47220 (decomp_get16): Likewise.
47221 (decomp_block): Likewise.
47222 (read_block): Likewise.
47223 (read_data): Partially moved to ntfscomp.c.
47224 (fixup): Change unsigned to grub_uint16_t.
47225 (read_mft): Change unsigned long to grub_uint32_t.
47226 (read_attr): Likewise.
47227 (read_data): Likewise.
47228 (read_run_data): Likewise.
47229 (read_run_list): Likewise.
47230 (read_mft): Likewise.
47231
47232 * fs/ntfscomp.c: New file.
47233
47234 * include/grub/ntfs.h: New file.
47235
47236 2007-12-16 Robert Millan <rmh@aybabtu.com>
47237
47238 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47239 IDE disk check, since Linux is known to support 20 IDE disks.
47240 Reported by Colin Watson.
47241
47242 2007-12-15 Bean <bean123ch@gmail.com>
47243
47244 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47245 (lnxboot_img_SOURCES): New variable.
47246 (lnxboot_img_ASFLAGS): Likewise.
47247 (lnxboot_img_LDFLAGS): Likewise.
47248
47249 * boot/i386/pc/lnxboot.S: New file.
47250
47251 2007-11-24 Pavel Roskin <proski@gnu.org>
47252
47253 * configure.ac: Test if '--build-id=none' is supported by the
47254 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47255 objcopy to generate incorrect binary files (binutils
47256 2.17.50.0.18-1 as shipped by Fedora 8).
47257 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47258 linking, so that build ID doesn't break the test.
47259
47260 2007-11-24 Pavel Roskin <proski@gnu.org>
47261
47262 * include/grub/i386/time.h: use "void" in the argument list
47263 of grub_cpu_idle().
47264 * include/grub/powerpc/time.h: Likewise.
47265 * include/grub/sparc64/time.h: Likewise.
47266
47267 2007-11-18 Christian Franke <franke@computer.org>
47268
47269 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47270 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47271 This fixes the problem that function keys did not work in grub-emu.
47272
47273 2007-11-18 Christian Franke <franke@computer.org>
47274
47275 * disk/host.c (grub_host_open): Remove attribute unused from
47276 name parameter. Add check for "host". This fixes the problem
47277 that grub-emu does not find partitions.
47278
47279 2007-11-18 Christian Franke <franke@computer.org>
47280
47281 * util/hostfs.c (is_dir): New function.
47282 (grub_hostfs_dir): Handle missing dirent.d_type case.
47283 (grub_hostfs_read): Add missing fseek().
47284 (grub_hostfs_label): Clear label pointer. This fixes a crash
47285 of grub-emu on "ls (host)".
47286
47287 2007-11-18 Christian Franke <franke@computer.org>
47288
47289 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47290 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47291 to 64 bit boundary by default.
47292
47293 2007-11-18 Bean <bean123ch@gmail.com>
47294
47295 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47296 (hexdump_mod_SOURCES): New variable.
47297 (hexdump_mod_CFLAGS): Likewise.
47298 (hexdump_mod_LDFLAGS): Likewise.
47299
47300 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47301
47302 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47303
47304 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47305
47306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47307
47308 * include/grub/hexdump.h: New file.
47309
47310 * commands/hexdump.c: New file.
47311
47312 2007-11-10 Robert Millan <rmh@aybabtu.com>
47313
47314 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47315 in grub_outb() calls.
47316 (beep_on): Likewise.
47317
47318 2007-11-10 Christian Franke <franke@computer.org>
47319
47320 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47321 (grub_menu_run): Likewise.
47322
47323 2007-11-10 Robert Millan <rmh@aybabtu.com>
47324
47325 * include/grub/i386/efi/machine.h: New file.
47326 * include/grub/i386/linuxbios/machine.h: Likewise.
47327 * include/grub/i386/pc/machine.h: Likewise.
47328 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47329 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47330
47331 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47332 (serial_hw_io_addr): New variable.
47333 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47334 instead of `(unsigned short *) 0x400'.
47335
47336 2007-11-10 Bean <bean123ch@gmail.com>
47337
47338 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47339
47340 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47341
47342 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47343 (vga_mod_SOURCES): Added.
47344 (vga_mod_CFLAGS): Likewise.
47345 (vga_mod_LDFLAGS): Likewise.
47346
47347 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47348 grub_outb() calls.
47349 (set_map_mask): Likewise.
47350 (set_read_map): Likewise.
47351 (set_read_address): Likewise.
47352 (vga_font): Removed variable.
47353 (get_vga_glyph): Removed function.
47354 (invalidate_char): Likewise.
47355 (write_char): Changed to use grub_font_get_glyph() for font
47356 information.
47357 (grub_vga_putchar): Likewise.
47358 (grub_vga_getcharwidth): Likewise.
47359
47360 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47361
47362 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47363 flags.
47364 (pxeboot_img_LDFLAGS): Likewise.
47365 (diskboot_img_LDFLAGS): Likewise.
47366 (kernel_img_LDFLAGS): Likewise.
47367
47368 2007-11-06 Robert Millan <rmh@aybabtu.com>
47369
47370 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47371 in grub_outb() calls.
47372 (serial_hw_init): Likewise.
47373
47374 2007-11-05 Robert Millan <rmh@aybabtu.com>
47375
47376 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47377 spaces. Skip non-regular files.
47378
47379 2007-11-05 Robert Millan <rmh@aybabtu.com>
47380
47381 * kern/disk.c (grub_disk_firmware_fini)
47382 (grub_disk_firmware_is_tainted): New variables.
47383
47384 * include/grub/disk.h (grub_disk_firmware_fini)
47385 (grub_disk_firmware_is_tainted): Likewise.
47386
47387 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47388 (grub_disk_biosdisk_fini): ... to here.
47389 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47390 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47391 is set. Register grub_disk_biosdisk_fini() in
47392 `grub_disk_firmware_fini'.
47393
47394 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47395 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47396 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47397 to finish existing firmware disk interface.
47398
47399 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47400 (ata_mod_SOURCES): New variable.
47401 (ata_mod_CFLAGS): Likewise.
47402 (ata_mod_LDFLAGS): Likewise.
47403
47404 2007-11-05 Robert Millan <rmh@aybabtu.com>
47405
47406 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47407 (grub_ata_wait): Reimplement using grub_millisleep().
47408
47409 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47410 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47411
47412 2007-11-03 Marco Gerards <marco@gnu.org>
47413
47414 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47415 (CRTC_ADDR_PORT): New macro.
47416 (CRTC_DATA_PORT): Likewise.
47417 (CRTC_CURSOR): Likewise.
47418 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47419 (CRTC_CURSOR_ADDR_LOW): Likewise.
47420 (update_cursor): New function.
47421 (grub_console_real_putchar): Call `update_cursor'.
47422 (grub_console_gotoxy): Likewise.
47423 (grub_console_cls): Set the default color when clearing the
47424 screen.
47425 (grub_console_setcursor): Implemented.
47426
47427 2007-11-03 Marco Gerards <marco@gnu.org>
47428
47429 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47430 become activate.
47431 (grub_ata_pio_write): Likewise.
47432
47433 (grub_atapi_identify): Wait after issuing an ATA command.
47434 (grub_atapi_packet): Likewise.
47435 (grub_ata_identify): Likewise.
47436 (grub_ata_readwrite): Likewise.
47437
47438 2007-11-03 Marco Gerards <marco@gnu.org>
47439
47440 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47441 (grub_ata_pio_write): Likewise.
47442 (grub_ata_readwrite): Use `grub_error', instead of
47443 returning `grub_errno'.
47444
47445 2007-11-03 Marco Gerards <marco@gnu.org>
47446
47447 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47448 grub_ata_pio_write once for every single sector, instead of for
47449 multiple sectors.
47450
47451 2007-10-31 Robert Millan <rmh@aybabtu.com>
47452
47453 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47454
47455 * conf/i386-linuxbios.rmk: New file.
47456
47457 * kern/i386/pc/hardware.c: Likewise.
47458 * term/i386/pc/at_keyboard.c: Likewise.
47459 * term/i386/pc/vga_text.c: Likewise.
47460
47461 * include/grub/i386/linuxbios/boot.h: Likewise.
47462 * include/grub/i386/linuxbios/console.h: Likewise.
47463 * include/grub/i386/linuxbios/init.h: Likewise.
47464 * include/grub/i386/linuxbios/kernel.h: Likewise.
47465 * include/grub/i386/linuxbios/loader.h: Likewise.
47466 * include/grub/i386/linuxbios/memory.h: Likewise.
47467 * include/grub/i386/linuxbios/serial.h: Likewise.
47468 * include/grub/i386/linuxbios/time.h: Likewise.
47469
47470 * kern/i386/linuxbios/init.c: Likewise.
47471 * kern/i386/linuxbios/startup.S: Likewise.
47472 * kern/i386/linuxbios/table.c: Likewise.
47473
47474 2007-10-31 Marco Gerards <marco@gnu.org>
47475
47476 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47477 (ata_mod_SOURCES): New variable.
47478 (ata_mod_CFLAGS): Likewise.
47479 (ata_mod_LDFLAGS): Likewise.
47480
47481 * disk/ata.c: New file.
47482
47483 * include/grub/disk.h (grub_disk_dev_id): Add
47484 `GRUB_DISK_DEV_ATA_ID'.
47485
47486 2007-10-31 Robert Millan <rmh@aybabtu.com>
47487
47488 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47489 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47490
47491 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47492 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47493
47494 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47495 `<grub/types.h>'.
47496
47497 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47498
47499 2007-10-27 Robert Millan <rmh@aybabtu.com>
47500
47501 * include/grub/types.h (ULONG_MAX): Define macro.
47502
47503 2007-10-22 Robert Millan <rmh@aybabtu.com>
47504
47505 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47506 `"../realmode.S"'.
47507 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47508
47509 2007-10-22 Robert Millan <rmh@aybabtu.com>
47510
47511 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47512 (pkgdata_MODULES): Add `biosdisk.mod'.
47513 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47514 variables.
47515
47516 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47517 (grub_biosdisk_init): Replace with ...
47518 (GRUB_MOD_INIT(biosdisk)): ... this.
47519 (grub_biosdisk_fini): Replace with ...
47520 (GRUB_MOD_FINI(biosdisk)): ... this.
47521
47522 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47523 (grub_machine_init): Remove call to grub_biosdisk_init().
47524 (grub_machine_fini): Remove call to grub_machine_fini().
47525
47526 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47527
47528 2007-10-22 Robert Millan <rmh@aybabtu.com>
47529
47530 * include/grub/time.h: New file.
47531 * include/grub/i386/time.h: Likewise.
47532 * include/grub/powerpc/time.h: Likewise.
47533 * include/grub/sparc64/time.h: Likewise.
47534
47535 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47536 instances to ...
47537 (KERNEL_MACHINE_TIME_HEADER): ... this.
47538 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47539 instances to ...
47540 (KERNEL_MACHINE_TIME_HEADER): ... this.
47541 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47542 instances to ...
47543 (KERNEL_MACHINE_TIME_HEADER): ... this.
47544
47545 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47546 (grub_millisleep): New function.
47547 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47548 (grub_millisleep): New function.
47549 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47550 Remove `grub/machine/time.h' include.
47551 (grub_millisleep): New function.
47552 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47553 Remove `grub/machine/time.h' include.
47554 (grub_millisleep): New function.
47555
47556 * include/grub/misc.h (grub_div_roundup): New function.
47557
47558 * kern/misc.c: Include `<grub/time.h>'.
47559 (grub_millisleep_generic): New function.
47560
47561 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47562 Add `time.h'.
47563 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47564 Add `time.h'.
47565 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47566 `machine/time.h'. Add `time.h'.
47567 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47568
47569 2007-10-21 Robert Millan <rmh@aybabtu.com>
47570
47571 * include/grub/misc.h (grub_max): New function.
47572
47573 2007-10-21 Robert Millan <rmh@aybabtu.com>
47574
47575 * util/misc.c (grub_util_info): Call fflush() before returning.
47576
47577 2007-10-20 Robert Millan <rmh@aybabtu.com>
47578
47579 * genmk.rb (Image): Copy `extra_flags' from here ...
47580 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47581
47582 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47583 to `argc' and `args' arguments.
47584
47585 2007-10-17 Robert Millan <rmh@aybabtu.com>
47586
47587 * kern/i386/loader.S: New file.
47588
47589 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47590 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47591 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47592 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47593 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47594 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47595 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47596 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47597 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47598 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47599 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47600 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47601 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47602 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47603
47604 * kern/i386/realmode.S: New file.
47605
47606 * kern/i386/pc/startup.S (protstack): Moved from here ...
47607 * kern/i386/realmode.S (protstack)... to here.
47608 * kern/i386/pc/startup.S (gdt): Moved from here ...
47609 * kern/i386/realmode.S (gdt)... to here.
47610 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47611 * kern/i386/realmode.S (prot_to_real)... to here.
47612
47613 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47614 `kern/i386/realmode.S'.
47615
47616 2007-10-17 Robert Millan <rmh@aybabtu.com>
47617
47618 * include/grub/i386/loader.h: New file.
47619
47620 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47621 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47622 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47623 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47624 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47625 * include/grub/i386/loader.h (grub_linux_prot_size)
47626 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47627 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47628 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47629 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47630
47631 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47632
47633 2007-10-15 Robert Millan <rmh@aybabtu.com>
47634
47635 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47636 filesystem when dev->disk is unset.
47637 Do probe for filesystem even when dev->disk->has_partitions is set.
47638 In case a filesystem is found, always report it.
47639 In case it isn't, if dev->disk->has_partitions is set, report that
47640 a partition table was found instead of reporting that no filesystem
47641 could be identified.
47642
47643 2007-10-12 Robert Millan <rmh@aybabtu.com>
47644
47645 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47646 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47647
47648 * include/grub/types.h (grub_host_to_target16): New macro.
47649 (grub_host_to_target32): Likewise.
47650 (grub_host_to_target64): Likewise.
47651 (grub_target_to_host16): Likewise.
47652 (grub_target_to_host32): Likewise.
47653 (grub_target_to_host64): Likewise.
47654
47655 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47656 Renamed from to ...
47657 (GRUB_MOD_ALIGN): ...this. Update all users.
47658
47659 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47660 grub_host_to_target32.
47661 Replace grub_be_to_cpu32 with grub_target_to_host32.
47662 (load_modules): Likewise.
47663 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47664 Replace grub_be_to_cpu32 with grub_target_to_host32.
47665 Replace grub_cpu_to_be16 with grub_host_to_target16.
47666 Replace grub_cpu_to_be32 grub_host_to_target32.
47667
47668 2007-10-12 Robert Millan <rmh@aybabtu.com>
47669
47670 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47671 * util/elf/grub-mkimage.c: ... here.
47672
47673 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47674 `util/powerpc/ieee1275/grub-mkimage.c'.
47675
47676 2007-10-07 Robert Millan <rmh@aybabtu.com>
47677
47678 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47679 and make it easier to figure out.
47680 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47681 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47682 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47683 leave us with less than HEAP_MIN_SIZE total heap.
47684 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47685
47686 2007-10-03 Robert Millan <rmh@aybabtu.com>
47687
47688 * include/grub/i386/io.h: New file.
47689 * commands/i386/pc/play.c (inb): Removed.
47690 (outb): Removed.
47691 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47692 with grub_outb().
47693 * term/i386/pc/serial.c (inb): Removed.
47694 (outb): Removed.
47695 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47696 with grub_outb().
47697 * term/i386/pc/vga.c (inb): Removed.
47698 (outb): Removed.
47699 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47700 with grub_outb().
47701
47702 2007-10-02 Robert Millan <rmh@aybabtu.com>
47703
47704 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47706 Reported by Marcin Kurek.
47707
47708 2007-09-07 Robert Millan <rmh@aybabtu.com>
47709
47710 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47711 SmartFirmware version updates (as released by Sven Luther), and avoid
47712 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47713 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47714 known broken.
47715
47716 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47717
47718 From Hitoshi Ozeki:
47719 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47720 when merging two regions.
47721
47722 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47723
47724 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47725 * normal/completion.c (grub_normal_do_completion): Likewise.
47726 Reported by Hitoshi Ozeki.
47727
47728 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47729
47730 Do not use devices at boot in chainloading.
47731
47732 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47733 (boot_part_addr): Likewise.
47734 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47735 with BOOT_DRIVE and BOOT_PART_ADDR.
47736 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47737 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47738
47739 2007-08-29 Robert Millan <rmh@aybabtu.com>
47740
47741 Patch from Simon Peter <dn.tlp@gmx.net>:
47742 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47743 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47744 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47745 util/i386/pc/grub-setup.c_DEPENDENCIES.
47746 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47747 util/grub-probe.c_DEPENDENCIES.
47748 * conf/powerpc-ieee1275.rmk: Likewise.
47749
47750 2007-08-28 Robert Millan <rmh@aybabtu.com>
47751
47752 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47753 to tell grub-mkdevicemap how to name devices.
47754 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47755 feature).
47756
47757 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47758 util/i386/get_disk_name.c.
47759 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47760 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47761 util/ieee1275/get_disk_name.c.
47762
47763 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47764
47765 * DISTLIST: Add util/i386/get_disk_name.c and
47766 util/ieee1275/get_disk_name.c.
47767
47768 * util/grub-mkdevicemap.c: Replace device naming logic with
47769 grub_util_get_disk_name() calls.
47770
47771 2007-08-20 Robert Millan <rmh@aybabtu.com>
47772
47773 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47774 (so that it works for both plural and singular quantities).
47775
47776 2007-08-05 Robert Millan <rmh@aybabtu.com>
47777
47778 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47779 so that [xz] isn't taken into account when determining order.
47780
47781 2007-08-02 Marco Gerards <marco@gnu.org>
47782
47783 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47784 `include/multiboot2.h', `include/grub/elfload.h',
47785 `include/multiboot.h', `include/grub/multiboot.h',
47786 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47787 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47788 `kern/elf.c', `loader/multiboot_loader.c',
47789 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47790 `loader/i386/pc/multiboot2.c',
47791 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47792 `util/i386/pc/grub-mkrescue.in'. Remove
47793 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47794 `include/grub/i386/pc/util/biosdisk.h' and
47795 `include/grub/powerpc/ieee1275/multiboot.h'.
47796
47797 2007-08-02 Bean <bean123ch@gmail.com>
47798
47799 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47800 (ntfs_mod_SOURCES): New variable.
47801 (ntfs_mod_CFLAGS): Likewise.
47802 (ntfs_mod_LDFLAGS): Likewise.
47803
47804 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47805 (grub_probe_SOURCES): Likewise.
47806 (grub_emu_SOURCES): Likewise.
47807
47808 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47809 (grub_emu_SOURCES): Likewise.
47810
47811 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47812 (grub_emu_SOURCES): Likewise.
47813
47814 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47815
47816 * fs/ntfs.c: New file.
47817
47818 2007-08-02 Bean <bean123ch@gmail.com>
47819
47820 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47821
47822 * file.h (grub_file): Likewise.
47823
47824 * fshelp.h (grub_fshelp_read_file): Likewise.
47825
47826 * util/i386/pc/grub-setup.c (setup): Likewise.
47827 (save_first_sector): Likewise.
47828 (save_blocklists): Likewise.
47829
47830 * fs/affs.c (grub_affs_read_file): Likewise.
47831
47832 * fs/ext2.c (grub_ext2_read_file): Likewise.
47833
47834 * fs/fat.c (grub_fat_read_data): Likewise.
47835
47836 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47837
47838 * fs/hfs.c (grub_hfs_read_file): Likewise.
47839
47840 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47841
47842 * fs/jfs.c (grub_jfs_read_file): Likewise.
47843
47844 * fs/minix.c (grub_minix_read_file): Likewise.
47845
47846 * fs/sfs.c (grub_sfs_read_file): Likewise.
47847
47848 * fs/ufs.c (grub_ufs_read_file): Likewise.
47849
47850 * fs/xfs.c (grub_xfs_read_file): Likewise.
47851
47852 * command/blocklist.c (read_blocklist): Likewise.
47853 (print_blocklist): Likewise.
47854
47855 2007-08-02 Marco Gerards <marco@gnu.org>
47856
47857 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47858 `util/hostfs.c'.
47859
47860 * disk/host.c: New file.
47861
47862 * util/hostfs.c: Likewise.
47863
47864 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47865 return `GRUB_ERR_BAD_FS'.
47866 * fs/sfs.c (grub_sfs_mount): Likewise.
47867 * fs/xfs.c (grub_xfs_mount): Likewise.
47868
47869 * include/grub/disk.h (enum grub_disk_dev_id): Add
47870 `GRUB_DISK_DEVICE_HOST_ID'.
47871
47872 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47873
47874 2007-07-24 Jerone Young <jerone@gmail.com>
47875
47876 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47877 modules for compilation.
47878 * conf/powerpc-ieee1275.rmk: Likewise.
47879
47880 * include/multiboot.h: Move multiboot definitions to one file. Rename
47881 many definitions to not get grub specific.
47882 * include/multiboot2.h: Create header with multiboot 2 definitions.
47883 * include/grub/multiboot.h: Header for grub specific function
47884 prototypes and definitions.
47885 * include/grub/multiboot2.h: Likewise.
47886 * include/grub/multiboot_loader.h: Likewise.
47887 * include/grub/i386/pc/multiboot.h: Removed.
47888 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47889
47890 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47891 and 2 to allow for one multiboot and module commands.
47892 * loader/multiboot2.c: Add multiboot2 functionality.
47893 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47894 and definition names.
47895 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47896 2 functions.
47897 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47898 ieee1275 specific multiboot2 code.
47899
47900 * kern/i386/pc/startup.S: Change headers and definition names for
47901 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47902
47903 2007-07-22 Robert Millan <rmh@aybabtu.com>
47904
47905 * geninitheader.sh: Process file specified in first parameter rather
47906 than hardcoding grub_modules_init.lst.
47907 * geninit.sh: Likewise. Also, construct header name dynamically rather
47908 than hardcoding grub_modules_init.h.
47909
47910 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47911 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47912 grub_probe_init.[ch] and grub_setup_init.[ch].
47913
47914 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47915 grub_modules_init.h with grub_emu_init.h.
47916 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47917 grub_probe_init.[ch] files.
47918 * conf/i386-efi.rmk: Likewise.
47919 * conf/i386-pc.rmk: Likewise.
47920 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47921 grub_setup_init.[ch] files.
47922
47923 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47924 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47925 to initialize modules rather than a list of hardcoded functions.
47926 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47927 grub_init_all() to initialize modules rather than a list of hardcoded
47928 functions.
47929
47930 2007-07-22 Robert Millan <rmh@aybabtu.com>
47931
47932 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47933 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47934
47935 2007-07-22 Robert Millan <rmh@aybabtu.com>
47936
47937 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47938 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47939 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47940 flag when running on SmartFirmware.
47941 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47942 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47943 was set.
47944
47945 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47946 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47947 rather than decreasing it.
47948
47949 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47950 there's not enough space to do it, fail in the same way as when it
47951 can't be done because there are no partitions.
47952
47953 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47954 when nvsetenv failed.
47955
47956 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47957
47958 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47959 because this rule is automatically generated.
47960 (grub-mkrescue): Removed for the same reason as above.
47961
47962 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47963
47964 Migrate to GNU General Public License Version 3.
47965
47966 * COPYING: Replaced with the plain text version of GPLv3.
47967
47968 * config.guess: Updated from gnulib.
47969 * config.sub: Likewise.
47970
47971 * geninit.sh: Output a GPLv3 copyright notice.
47972 * geninitheader.sh: Likewise.
47973 * genmodsrc.sh: Likewise.
47974 * gensymlist.sh.in: Likewise.
47975
47976 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47977 * boot/i386/pc/diskboot.S: Likewise.
47978 * boot/i386/pc/pxeboot.S: Likewise.
47979 * commands/blocklist.c: Likewise.
47980 * commands/boot.c: Likewise.
47981 * commands/cat.c: Likewise.
47982 * commands/cmp.c: Likewise.
47983 * commands/configfile.c: Likewise.
47984 * commands/echo.c: Likewise.
47985 * commands/help.c: Likewise.
47986 * commands/ls.c: Likewise.
47987 * commands/search.c: Likewise.
47988 * commands/terminal.c: Likewise.
47989 * commands/test.c: Likewise.
47990 * commands/videotest.c: Likewise.
47991 * commands/i386/cpuid.c: Likewise.
47992 * commands/i386/pc/halt.c: Likewise.
47993 * commands/i386/pc/play.c: Likewise.
47994 * commands/i386/pc/reboot.c: Likewise.
47995 * commands/i386/pc/vbeinfo.c: Likewise.
47996 * commands/i386/pc/vbetest.c: Likewise.
47997 * commands/ieee1275/halt.c: Likewise.
47998 * commands/ieee1275/reboot.c: Likewise.
47999 * commands/ieee1275/suspend.c: Likewise.
48000 * disk/loopback.c: Likewise.
48001 * disk/lvm.c: Likewise.
48002 * disk/raid.c: Likewise.
48003 * disk/efi/efidisk.c: Likewise.
48004 * disk/i386/pc/biosdisk.c: Likewise.
48005 * disk/ieee1275/ofdisk.c: Likewise.
48006 * font/manager.c: Likewise.
48007 * fs/affs.c: Likewise.
48008 * fs/ext2.c: Likewise.
48009 * fs/fat.c: Likewise.
48010 * fs/fshelp.c: Likewise.
48011 * fs/hfs.c: Likewise.
48012 * fs/hfsplus.c: Likewise.
48013 * fs/iso9660.c: Likewise.
48014 * fs/jfs.c: Likewise.
48015 * fs/minix.c: Likewise.
48016 * fs/sfs.c: Likewise.
48017 * fs/ufs.c: Likewise.
48018 * fs/xfs.c: Likewise.
48019 * hello/hello.c: Likewise.
48020 * include/grub/acorn_filecore.h: Likewise.
48021 * include/grub/arg.h: Likewise.
48022 * include/grub/bitmap.h: Likewise.
48023 * include/grub/boot.h: Likewise.
48024 * include/grub/cache.h: Likewise.
48025 * include/grub/device.h: Likewise.
48026 * include/grub/disk.h: Likewise.
48027 * include/grub/dl.h: Likewise.
48028 * include/grub/elfload.h: Likewise.
48029 * include/grub/env.h: Likewise.
48030 * include/grub/err.h: Likewise.
48031 * include/grub/file.h: Likewise.
48032 * include/grub/font.h: Likewise.
48033 * include/grub/fs.h: Likewise.
48034 * include/grub/fshelp.h: Likewise.
48035 * include/grub/gzio.h: Likewise.
48036 * include/grub/hfs.h: Likewise.
48037 * include/grub/kernel.h: Likewise.
48038 * include/grub/loader.h: Likewise.
48039 * include/grub/lvm.h: Likewise.
48040 * include/grub/misc.h: Likewise.
48041 * include/grub/mm.h: Likewise.
48042 * include/grub/net.h: Likewise.
48043 * include/grub/normal.h: Likewise.
48044 * include/grub/parser.h: Likewise.
48045 * include/grub/partition.h: Likewise.
48046 * include/grub/pc_partition.h: Likewise.
48047 * include/grub/raid.h: Likewise.
48048 * include/grub/rescue.h: Likewise.
48049 * include/grub/script.h: Likewise.
48050 * include/grub/setjmp.h: Likewise.
48051 * include/grub/symbol.h: Likewise.
48052 * include/grub/term.h: Likewise.
48053 * include/grub/terminfo.h: Likewise.
48054 * include/grub/tparm.h: Likewise.
48055 * include/grub/types.h: Likewise.
48056 * include/grub/video.h: Likewise.
48057 * include/grub/efi/api.h: Likewise.
48058 * include/grub/efi/chainloader.h: Likewise.
48059 * include/grub/efi/console.h: Likewise.
48060 * include/grub/efi/console_control.h: Likewise.
48061 * include/grub/efi/disk.h: Likewise.
48062 * include/grub/efi/efi.h: Likewise.
48063 * include/grub/efi/pe32.h: Likewise.
48064 * include/grub/efi/time.h: Likewise.
48065 * include/grub/i386/linux.h: Likewise.
48066 * include/grub/i386/setjmp.h: Likewise.
48067 * include/grub/i386/types.h: Likewise.
48068 * include/grub/i386/efi/kernel.h: Likewise.
48069 * include/grub/i386/efi/loader.h: Likewise.
48070 * include/grub/i386/efi/time.h: Likewise.
48071 * include/grub/i386/pc/biosdisk.h: Likewise.
48072 * include/grub/i386/pc/boot.h: Likewise.
48073 * include/grub/i386/pc/chainloader.h: Likewise.
48074 * include/grub/i386/pc/console.h: Likewise.
48075 * include/grub/i386/pc/init.h: Likewise.
48076 * include/grub/i386/pc/kernel.h: Likewise.
48077 * include/grub/i386/pc/loader.h: Likewise.
48078 * include/grub/i386/pc/memory.h: Likewise.
48079 * include/grub/i386/pc/multiboot.h: Likewise.
48080 * include/grub/i386/pc/serial.h: Likewise.
48081 * include/grub/i386/pc/time.h: Likewise.
48082 * include/grub/i386/pc/vbe.h: Likewise.
48083 * include/grub/i386/pc/vbeblit.h: Likewise.
48084 * include/grub/i386/pc/vbefill.h: Likewise.
48085 * include/grub/i386/pc/vbeutil.h: Likewise.
48086 * include/grub/i386/pc/vga.h: Likewise.
48087 * include/grub/ieee1275/ieee1275.h: Likewise.
48088 * include/grub/ieee1275/ofdisk.h: Likewise.
48089 * include/grub/powerpc/libgcc.h: Likewise.
48090 * include/grub/powerpc/setjmp.h: Likewise.
48091 * include/grub/powerpc/types.h: Likewise.
48092 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48093 * include/grub/powerpc/ieee1275/console.h: Likewise.
48094 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48095 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48096 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48097 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48098 * include/grub/powerpc/ieee1275/time.h: Likewise.
48099 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48100 * include/grub/sparc64/libgcc.h: Likewise.
48101 * include/grub/sparc64/setjmp.h: Likewise.
48102 * include/grub/sparc64/types.h: Likewise.
48103 * include/grub/sparc64/ieee1275/console.h: Likewise.
48104 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48105 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48106 * include/grub/sparc64/ieee1275/time.h: Likewise.
48107 * include/grub/util/biosdisk.h: Likewise.
48108 * include/grub/util/getroot.h: Likewise.
48109 * include/grub/util/lvm.h: Likewise.
48110 * include/grub/util/misc.h: Likewise.
48111 * include/grub/util/raid.h: Likewise.
48112 * include/grub/util/resolve.h: Likewise.
48113 * io/gzio.c: Likewise.
48114 * kern/device.c: Likewise.
48115 * kern/disk.c: Likewise.
48116 * kern/dl.c: Likewise.
48117 * kern/elf.c: Likewise.
48118 * kern/env.c: Likewise.
48119 * kern/err.c: Likewise.
48120 * kern/file.c: Likewise.
48121 * kern/fs.c: Likewise.
48122 * kern/loader.c: Likewise.
48123 * kern/main.c: Likewise.
48124 * kern/misc.c: Likewise.
48125 * kern/mm.c: Likewise.
48126 * kern/parser.c: Likewise.
48127 * kern/partition.c: Likewise.
48128 * kern/rescue.c: Likewise.
48129 * kern/term.c: Likewise.
48130 * kern/efi/efi.c: Likewise.
48131 * kern/efi/init.c: Likewise.
48132 * kern/efi/mm.c: Likewise.
48133 * kern/i386/dl.c: Likewise.
48134 * kern/i386/efi/init.c: Likewise.
48135 * kern/i386/efi/startup.S: Likewise.
48136 * kern/i386/pc/init.c: Likewise.
48137 * kern/i386/pc/lzo1x.S: Likewise.
48138 * kern/i386/pc/startup.S: Likewise.
48139 * kern/ieee1275/ieee1275.c: Likewise.
48140 * kern/powerpc/cache.S: Likewise.
48141 * kern/powerpc/dl.c: Likewise.
48142 * kern/powerpc/ieee1275/cmain.c: Likewise.
48143 * kern/powerpc/ieee1275/crt0.S: Likewise.
48144 * kern/powerpc/ieee1275/init.c: Likewise.
48145 * kern/powerpc/ieee1275/openfw.c: Likewise.
48146 * kern/sparc64/cache.S: Likewise.
48147 * kern/sparc64/dl.c: Likewise.
48148 * kern/sparc64/ieee1275/init.c: Likewise.
48149 * kern/sparc64/ieee1275/openfw.c: Likewise.
48150 * loader/efi/chainloader.c: Likewise.
48151 * loader/efi/chainloader_normal.c: Likewise.
48152 * loader/i386/efi/linux.c: Likewise.
48153 * loader/i386/efi/linux_normal.c: Likewise.
48154 * loader/i386/pc/chainloader.c: Likewise.
48155 * loader/i386/pc/chainloader_normal.c: Likewise.
48156 * loader/i386/pc/linux.c: Likewise.
48157 * loader/i386/pc/linux_normal.c: Likewise.
48158 * loader/i386/pc/multiboot.c: Likewise.
48159 * loader/i386/pc/multiboot_normal.c: Likewise.
48160 * loader/powerpc/ieee1275/linux.c: Likewise.
48161 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48162 * normal/arg.c: Likewise.
48163 * normal/cmdline.c: Likewise.
48164 * normal/command.c: Likewise.
48165 * normal/completion.c: Likewise.
48166 * normal/execute.c: Likewise.
48167 * normal/function.c: Likewise.
48168 * normal/lexer.c: Likewise.
48169 * normal/main.c: Likewise.
48170 * normal/menu.c: Likewise.
48171 * normal/menu_entry.c: Likewise.
48172 * normal/misc.c: Likewise.
48173 * normal/parser.y: Likewise.
48174 * normal/script.c: Likewise.
48175 * normal/i386/setjmp.S: Likewise.
48176 * normal/powerpc/setjmp.S: Likewise.
48177 * normal/sparc64/setjmp.S: Likewise.
48178 * partmap/acorn.c: Likewise.
48179 * partmap/amiga.c: Likewise.
48180 * partmap/apple.c: Likewise.
48181 * partmap/gpt.c: Likewise.
48182 * partmap/pc.c: Likewise.
48183 * partmap/sun.c: Likewise.
48184 * term/gfxterm.c: Likewise.
48185 * term/terminfo.c: Likewise.
48186 * term/efi/console.c: Likewise.
48187 * term/i386/pc/console.c: Likewise.
48188 * term/i386/pc/serial.c: Likewise.
48189 * term/i386/pc/vesafb.c: Likewise.
48190 * term/i386/pc/vga.c: Likewise.
48191 * term/ieee1275/ofconsole.c: Likewise.
48192 * util/biosdisk.c: Likewise.
48193 * util/console.c: Likewise.
48194 * util/genmoddep.c: Likewise.
48195 * util/getroot.c: Likewise.
48196 * util/grub-emu.c: Likewise.
48197 * util/grub-mkdevicemap.c: Likewise.
48198 * util/grub-probe.c: Likewise.
48199 * util/lvm.c: Likewise.
48200 * util/misc.c: Likewise.
48201 * util/raid.c: Likewise.
48202 * util/resolve.c: Likewise.
48203 * util/update-grub.in: Likewise.
48204 * util/update-grub_lib.in: Likewise.
48205 * util/grub.d/00_header.in: Likewise.
48206 * util/grub.d/10_hurd.in: Likewise.
48207 * util/grub.d/10_linux.in: Likewise.
48208 * util/i386/efi/grub-install.in: Likewise.
48209 * util/i386/efi/grub-mkimage.c: Likewise.
48210 * util/i386/pc/grub-install.in: Likewise.
48211 * util/i386/pc/grub-mkimage.c: Likewise.
48212 * util/i386/pc/grub-mkrescue.in: Likewise.
48213 * util/i386/pc/grub-setup.c: Likewise.
48214 * util/i386/pc/misc.c: Likewise.
48215 * util/powerpc/ieee1275/grub-install.in: Likewise.
48216 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48217 * util/powerpc/ieee1275/misc.c: Likewise.
48218 * video/bitmap.c: Likewise.
48219 * video/video.c: Likewise.
48220 * video/i386/pc/vbe.c: Likewise.
48221 * video/i386/pc/vbeblit.c: Likewise.
48222 * video/i386/pc/vbefill.c: Likewise.
48223 * video/i386/pc/vbeutil.c: Likewise.
48224 * video/readers/tga.c: Likewise.
48225
48226 2007-07-02 Robert Millan <rmh@aybabtu.com>
48227
48228 * conf/i386-efi.rmk: Replace obsolete reference to
48229 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48230 with util/getroot.c.
48231 * conf/powerpc-ieee1275.rmk: Likewise.
48232 * conf/sparc64-ieee1275.rmk: Likewise.
48233
48234 * util/grub-emu.c (main): Fix unchecked pointer handling.
48235
48236 2007-07-02 Robert Millan <rmh@aybabtu.com>
48237
48238 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48239 invocation to fail, in order to support partition-less media.
48240
48241 * util/i386/pc/grub-install.in: Likewise.
48242
48243 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48244 which fs or partmap modules are needed (akin to its sister scripts).
48245
48246 Also use grub-probe to get rid of unportable /proc/mounts check.
48247
48248 Print the same informational message that the other scripts do, before
48249 exiting.
48250
48251 2007-06-23 Robert Millan <rmh@aybabtu.com>
48252
48253 * util/update-grub_lib.in (font_path): New function. Determine whether
48254 a font file can be found and, if so, echo the GRUB path to it.
48255
48256 * util/update-grub.in: Handle multiple terminals depending on user
48257 input, platform availability and font file presence. Propagate
48258 variables of our findings to /etc/grub.d/ children.
48259
48260 * util/grub.d/00_header.in: Handle multiple terminals, based on
48261 environment setup by update-grub.
48262
48263 2007-06-23 Robert Millan <rmh@aybabtu.com>
48264
48265 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48266
48267 2007-06-21 Robert Millan <rmh@aybabtu.com>
48268
48269 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48270 indicate end of data section in kernel image.
48271 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48272 GRUB_KERNEL_MACHINE_DATA_END.
48273
48274 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48275 space for it.
48276 * kern/i386/efi/startup.S: Likewise.
48277
48278 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48279 during image generation. Implement --prefix option to override this
48280 patch.
48281 * util/i386/efi/grub-mkimage.c: Likewise.
48282
48283 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48284 code to make path relative to its root into a separate function.
48285
48286 * util/i386/pc/grub-install.in: Use newly provided
48287 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48288 pass the result to grub-install --prefix.
48289
48290 2007-06-13 Robert Millan <rmh@aybabtu.com>
48291
48292 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48293 DEFAULT_DEVICE_MAP.
48294 * util/grub-emu.c: Use above definitions from misc.h instead of
48295 defining them.
48296 * util/grub-mkdevicemap.c: Likewise.
48297 * util/i386/pc/grub-setup.c: Likewise.
48298 * util/grub-probe.c: Likewise.
48299 (probe): Abort with grub_util_error() when either
48300 grub_guess_root_device or grub_util_get_grub_dev fails.
48301
48302 2007-06-12 Robert Millan <rmh@aybabtu.com>
48303
48304 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48305 "pager" assignment.
48306 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48307 "pcdata".
48308 * util/grub-probe.c (probe): Likewise for "drive_name".
48309
48310 2007-06-11 Robert Millan <rmh@aybabtu.com>
48311
48312 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48313 not just the cdrom one.
48314
48315 2007-06-11 Robert Millan <rmh@aybabtu.com>
48316
48317 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48318 Add --pkglibdir=DIR option to override pkglibdir.
48319 Mention --image-type=TYPE in help output.
48320 Fix --grub-mkimage (it was a no-op).
48321 Abort gracefully when no parameter is given.
48322
48323 2007-06-11 Robert Millan <rmh@aybabtu.com>
48324
48325 * util/i386/pc/grub-mkrescue.in: New file.
48326 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48327 * Makefile.in: Handle bin_SCRIPTS.
48328
48329 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48330
48331 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48332 list of video modes.
48333
48334 2007-06-06 Robert Millan <rmh@aybabtu.com>
48335
48336 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48337 file doesn't exist, or if it is in a filesystem grub can't read.
48338
48339 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48340 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48341 header comment to fit in 80 columns when the variables are resolved.
48342
48343 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48344 could be identified by update-grub. Remove redundant check for
48345 unifont.pff existence (since convert_system_path_to_grub_path now
48346 handles that).
48347
48348 2007-06-04 Robert Millan <rmh@aybabtu.com>
48349
48350 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48351
48352 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48353
48354 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48355
48356 2007-06-04 Robert Millan <rmh@aybabtu.com>
48357
48358 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48359
48360 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48361 grub_apple_partition_map_fini.
48362
48363 * util/biosdisk.c
48364 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48365 to access >2 TiB disks).
48366
48367 Print disk->total_sectors with %llu instead of %lu, since this
48368 variable is always 64-bit (prevents wrong disk size from being displayed
48369 on either >2 TiB disk or big-endian CPU).
48370
48371 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48372 into a generic case that supports all (sane) partition maps.
48373
48374 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48375 breaks big-endian.
48376
48377 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48378 and grub_apple_partition_map_fini() after that.
48379
48380 2007-06-01 Robert Millan <rmh@aybabtu.com>
48381
48382 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48383
48384 * util/grub.d/00_header.in: Only enable gfxterm when
48385 convert_system_path_to_grub_path() succeeds.
48386
48387 2007-05-20 Robert Millan <rmh@aybabtu.com>
48388
48389 * util/update-grub_lib.in: New file.
48390 * DISTLIST: Add update-grub_lib.in.
48391 * conf/common.rmk: Generate update-grub_lib and install it in
48392 $(lib_DATA).
48393 * Makefile.in: Add install routine for $(lib_DATA).
48394
48395 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48396 function provided by update-grub_lib to support arbitrary paths of
48397 unifont.pff.
48398 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48399 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48400
48401 2007-05-19 Robert Millan <rmh@aybabtu.com>
48402
48403 * commands/i386/cpuid.c: New module.
48404 * DISTLIST: Add it.
48405 * conf/i386-efi.rmk: Enable cpuid.mod.
48406 * conf/i386-pc.rmk: Likewise.
48407
48408 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48409
48410 * kern/disk.c (grub_disk_read): Check return value of
48411 grub_realloc().
48412
48413 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48414
48415 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48416 arrays.
48417 * disk/raid.c (grub_raid_open): Likewise.
48418
48419 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48420
48421 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48422 stack instead of on the heap.
48423
48424 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48425 before doing a read on it.
48426
48427 * configure.ac: Only use -fno-stack-protector for the target
48428 environment.
48429
48430 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48431
48432 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48433 __attribute_ ((unused)) to mode_type argument.
48434
48435 * util/getroot.c (grub_guess_root_device): Fix #endif.
48436
48437 * kern/misc.c (memcmp): Fix prototype.
48438
48439 * include/grub/partition.h [GRUB_UTIL]
48440 (grub_gpt_partition_map_init): Add prototype.
48441 (grub_gpt_partition_map_fini): Likewise.
48442
48443 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48444 at the right place.
48445
48446 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48447 (grub_fat_read_data): Likewise.
48448 (grub_fat_find_dir): Likewise.
48449
48450 * font/manager.c (find_glyph): Make table a const.
48451 (grub_font_get_glyph): Remove bitmap from if statement.
48452
48453 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48454
48455 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48456 code, first search for device in /dev/mapper, then in /dev.
48457 (grub_util_get_grub_dev): New function.
48458 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48459 prototype.
48460 * util/grub-probe.c (probe): Remove check for RAID, call
48461 grub_util_get_grub_dev() instead of
48462 grub_util_biosdisk_get_grub_dev().
48463 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48464 grub_util_biosdisk_get_grub_dev().
48465 * util/i386/pc/grub-setup.c (main): Likewise.
48466
48467 2007-05-16 Robert Millan <rmh@aybabtu.com>
48468
48469 * DISTLIST: Update for the latest changes.
48470 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48471 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48472 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48473 grub/util/biosdisk.h.
48474 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48475 grub/util/biosdisk.h.
48476
48477 2007-05-16 Robert Millan <rmh@aybabtu.com>
48478
48479 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48480
48481 2007-05-16 Robert Millan <rmh@aybabtu.com>
48482
48483 * util/i386/efi/grub-install.in: New.
48484 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48485 newly added grub-install.
48486 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48487 include.
48488 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48489 grub/util/biosdisk.h.
48490 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48491 grub/util/biosdisk.h.
48492
48493 2007-05-16 Robert Millan <rmh@aybabtu.com>
48494
48495 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48496 * include/grub/util/biosdisk.h: ... here.
48497 * util/i386/pc/biosdisk.c: Moved to ...
48498 * util/biosdisk.c: ... here.
48499 * util/i386/pc/getroot.c: Moved to ...
48500 * util/getroot.c: ... here.
48501 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48502 * util/grub-mkdevicemap.c: ... here.
48503 * util/i386/pc/grub-probe.c: Moved to ...
48504 * util/grub-probe.c: ... here.
48505
48506 2007-05-15 Robert Millan <rmh@aybabtu.com>
48507
48508 * util/update-grub.in: Remove duplicated line in grub.cfg header
48509 message.
48510
48511 2007-05-13 Robert Millan <rmh@aybabtu.com>
48512
48513 * util/update-grub.in: Fix a few assumptions about the devices holding
48514 /, /boot and /boot/grub being the same.
48515 * util/grub.d/00_header.in: Likewise.
48516 * util/grub.d/10_hurd.in: Likewise.
48517 * util/grub.d/10_linux.in: Likewise.
48518
48519 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48520 patterns. Use that to define the `.old' suffix as older than `'.
48521
48522 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48523
48524 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48525 the grub.cfg header message.
48526
48527 2007-05-11 Robert Millan <rmh@aybabtu.com>
48528
48529 * util/update-grub.in: Create device.map if it doesn't already exist,
48530 before attempting to run grub-probe.
48531 Check for grub-probe and grub-mkdevicemap with the same code
48532 grub-install is using.
48533 Remove test mode.
48534
48535 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48536
48537 * Makefile.in: Add the datarootdir autoconf variable.
48538
48539 2007-05-09 Robert Millan <rmh@aybabtu.com>
48540
48541 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48542 fail gracefully if dev->disk->partition == NULL.
48543
48544 2007-05-07 Robert Millan <rmh@aybabtu.com>
48545
48546 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48547 determine partition map module.
48548 * util/i386/pc/grub-install.in: Use this feature to decide which
48549 partition module to load, instead of hardcoding pc and gpt.
48550
48551 2007-05-07 Robert Millan <rmh@aybabtu.com>
48552
48553 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48554 source directory differs from build directory.
48555
48556 2007-05-05 Robert Millan <rmh@aybabtu.com>
48557
48558 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48559 initialisation.
48560
48561 2007-05-05 Robert Millan <rmh@aybabtu.com>
48562
48563 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48564
48565 2007-05-05 Robert Millan <rmh@aybabtu.com>
48566
48567 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48568 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48569
48570 2007-05-05 Robert Millan <rmh@aybabtu.com>
48571
48572 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48573 (grub_probe_SOURCES): Likewise.
48574 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48575 GPT and initialize dos_part and bsd_part accordingly.
48576 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48577 install_bsd_part.
48578 (main): Activate gpt module for use during partition identification,
48579 and deactivate it afterwards.
48580 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48581 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48582 partition identification, and deactivate it afterwards.
48583
48584 2007-05-05 Robert Millan <rmh@aybabtu.com>
48585
48586 * term/i386/pc/console.c (grub_console_fini): Call
48587 grub_term_set_current() before grub_term_unregister().
48588
48589 2007-05-04 Robert Millan <rmh@aybabtu.com>
48590
48591 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48592 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48593 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48594 and update-grub_DATA.
48595 * conf/common.rmk: Build and install update-grub components.
48596 * conf/common.mk: Regenerate.
48597 * util/update-grub.in: New. Core of update-grub.
48598 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48599 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48600 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48601 * util/grub.d/README: New. Document grub.d directory layout.
48602
48603 2007-05-01 Robert Millan <rmh@aybabtu.com>
48604
48605 * util/grub-emu.c: Move initialization functions
48606 grub_util_biosdisk_init() and grub_init_all() before
48607 grub_util_biosdisk_get_grub_dev(), which relies on them.
48608
48609 2007-04-19 Robert Millan <rmh@aybabtu.com>
48610
48611 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48612 it is used later.
48613
48614 2007-04-18 Jerone Young <jerone@gmail.com>
48615
48616 * kernel/elf.c: Add missing parenthesis for conditional statement
48617 stanza.
48618
48619 2007-04-10 Jerone Young <jerone@gmail.com>
48620
48621 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48622 continue on and look for device node with real device name.
48623
48624 2007-04-10 Jerone Young <jerone@gmail.com>
48625
48626 * configure.ac: Add argument for autoconf to use transformation
48627 ability.
48628 * Makefile.in: Add autoconf package transformation code.
48629 * util/i386/pc/grub-install.in: Likewise.
48630 * util/powerpc/ieee1275/grub-install.in: Likewise.
48631
48632 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48633
48634 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48635 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48636 (EXT2_REVISION): Likewise.
48637 (EXT2_INODE_SIZE): Likewise.
48638 (struct grub_ext2_block_group): Added a missing member
48639 "used_dirs".
48640 (grub_ext2_read_inode): Divide by the inode size in a superblock
48641 instead of 128 to obtain INODES_PER_BLOCK.
48642 Use the macro EXT2_INODE_SIZE instead of directly using
48643 SBLOCK->INODE_SIZE.
48644
48645 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48646
48647 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48648 superblock instead of the structure size to compute an
48649 offset. This fixes the problem that GRUB could not read a
48650 filesystem when inode size is different from 128-byte.
48651
48652 2007-03-05 Marco Gerards <marco@gnu.org>
48653
48654 * normal/main.c (read_config_file): When "menu" is not set, create
48655 an initial context.
48656
48657 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48658
48659 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48660 (HEAP_LIMIT): New macro.
48661 (grub_claim_heap): Claim memory up to `heaplimit'.
48662
48663 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48664
48665 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48666 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48667 (_start): Likewise.
48668 (grub_arch_modules_addr): Return address after `_end'.
48669 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48670 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48671 (add_segments): Calculate `_end' from phdr size and location.
48672 (ALIGN_UP): Moved to ...
48673 * include/grub/misc.h: here.
48674 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48675 New macro.
48676 (GRUB_IEEE1275_MODULE_BASE): Removed.
48677
48678 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48679
48680 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48681 loop boundary.
48682
48683 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48684
48685 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48686 All users updated.
48687 (grub_elf64_load_hook_t): Likewise.
48688 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48689 debug output.
48690
48691 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48692
48693 * kern/mm.c: Update copyright.
48694 (grub_mm_debug): Correct syntax error.
48695 (grub_mm_dump_free): New function.
48696 (grub_debug_free): Call `grub_free'.
48697 * include/grub/mm.h: Update copyright.
48698 (grub_mm_dump_free): Add declaration.
48699
48700 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48701
48702 * include/grub/ieee1275/ieee1275.h: Update copyright.
48703 * kern/powerpc/ieee1275/init.c: Likewise.
48704 * kern/powerpc/ieee1275/openfw.c: Likewise.
48705
48706 * loader/powerpc/ieee1275/linux.c: Likewise.
48707 * include/grub/elfload.h: Likewise.
48708 * kern/elf.c: Likewise.
48709 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48710 callers.
48711 (grub_elf64_load): Likewise.
48712 (grub_elf32_load_segment): Move to a nested function.
48713 (grub_elf64_load_segment): Likewise.
48714
48715 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48716
48717 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48718 prototype.
48719 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48720 (grub_heap_len): Likewise.
48721 (HEAP_SIZE): New macro.
48722 (grub_claim_heap): New function.
48723 (grub_machine_init): Don't claim heap directly. Call
48724 `grub_claim_heap'.
48725 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48726 (grub_available_iterate): New function.
48727
48728 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48729
48730 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48731 * configure.ac: Use it for testing the HOST and TARGET compilers.
48732
48733 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48734
48735 * Makefile.in (enable_grub_emu): New variable.
48736 * configure.ac (--enable-grub-emu): New option.
48737 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48738 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48739 * conf/i386-pc.rmk: Likewise.
48740 * conf/powerpc-ieee1275.rmk: Likewise.
48741 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48742
48743 2006-12-12 Marco Gerards <marco@gnu.org>
48744
48745 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48746
48747 * kern/env.c (grub_env_unset): Don't free the member `value' when
48748 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48749 pointer.
48750
48751 * normal/main.c (current_menu): Removed.
48752 (free_menu): Unset the `menu' environment variable.
48753 (grub_normal_menu_addentry): Make use of the environment variable
48754 `menu', instead of using the global `current_menu'. Allocate
48755 memory for the sourcecode of this entry.
48756 (read_config_file): New argument `nested', changed all callers.
48757 Only in the case of a new context, initialize a new menu. Set the
48758 `menu' environment variable.
48759 (grub_normal_execute): Don't set and unset the environment
48760 variable `menu' here anymore. Only free the menu when leaving the
48761 context.
48762
48763 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48764 leak.
48765
48766 2006-12-11 Marco Gerards <marco@gnu.org>
48767
48768 * normal/menu_entry.c (run): Fix off by one bug so the last line
48769 is executed. Move the loader check to outside the loop.
48770
48771 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48772
48773 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48774
48775 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48776
48777 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48778 the number of sectors. Reported by Andrey Shuvikov
48779 <mr_hyro@yahoo.com>.
48780
48781 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48782
48783 * kern/disk.c (grub_disk_read): When there is a read error, always
48784 try to read only the necessary data.
48785
48786 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48787 disk/raid.c.
48788 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48789 prototype.
48790 [GRUB_UTIL] (grub_raid_fini): Likewise.
48791 [GRUB_UTIL] (grub_lvm_init): Likewise.
48792 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48793 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48794 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48795 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48796 and grub_raid_fini().
48797
48798 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48799
48800 * include/grub/types.h (__unused): Rename to UNUSED.
48801 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48802 (grub_elf64_size): Likewise.
48803
48804 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48805
48806 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48807 grub_error_push and grub_error_pop in the error-handling path.
48808 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48809 length.
48810
48811 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48812
48813 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48814 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48816 (kernel_elf_SOURCES): Likewise.
48817 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48818 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48819 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48820 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48821 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48822 (elf_mod_SOURCES): New variable.
48823 (elf_mod_CFLAGS): Likewise.
48824 (elf_mod_LDFLAGS): Likewise.
48825 * include/grub/types.h (__unused): New macro.
48826 * include/grub/elfload.h: New file.
48827 * kern/elf.c: Likewise.
48828 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48829 (ELF32_LOADMASK): New macro.
48830 (ELF64_LOADMASK): Likewise.
48831 (vmlinux): Removed.
48832 (grub_linux_load32): New function.
48833 (grub_linux_load64): Likewise.
48834 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48835 Use grub_elf_t instead of grub_file_t.
48836
48837 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48838
48839 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48840 `catch_result' to struct set_color_args.
48841
48842 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48843
48844 * normal/menu.c: Include grub/script.h.
48845 * normal/menu_entry.c: Likewise.
48846 * include/grub/normal.h: Do not include grub/script.h.
48847
48848 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48849
48850 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48851
48852 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48853
48854 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48855 disk.
48856 (grub_disk_close): Print debug messages when closing a disk.
48857 (grub_disk_read): Print debug messages when disk read fails.
48858 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48859 filesystem type.
48860 * kern/partition.c: Include misc.h.
48861 (grub_partition_iterate): Print debug messages when detecting
48862 partition type.
48863
48864 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48865
48866 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48867 is negative.
48868 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48869
48870 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48871
48872 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48873 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48874
48875 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48876
48877 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48878 instead of sizeof(lv). Patch by Michael Guntsche.
48879
48880 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48881
48882 * disk/lvm.c: Rename VGS to VG_LIST.
48883 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48884 (grub_lvm_open): Likewise.
48885 Thanks to Michael Guntsche for finding this bug.
48886
48887 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48888
48889 * configure.ac (AC_INIT): Bumped to 1.95.
48890
48891 2006-10-14 Robert Millan <rmh@aybabtu.com>
48892
48893 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48894 with "/dev/.static/dev/md".
48895
48896 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48897
48898 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48899 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48900 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48901 DRIVE_NAME are always freed.
48902
48903 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48904 DOS_PART, as a DOS partition is counted from one instead of zero
48905 now. Reported by Robert Millan.
48906
48907 2006-10-14 Robert Millan <rmh@aybabtu.com>
48908
48909 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48910 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48911 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48912 string returned by grub_guess_root_device.
48913 * util/i386/pc/grub-setup.c: Likewise.
48914 * util/i386/pc/grub-probefs.c: Likewise.
48915
48916 * util/i386/pc/grub-probefs.c: Rename to ...
48917 * util/i386/pc/grub-probe.c: ... this.
48918 * DISTLIST: Remove grub-probefs, add grub-probe.
48919 * conf/i386-efi.rmk: Likewise.
48920 * conf/i386-pc.rmk: Likewise.
48921 * util/i386/pc/grub-install.in: Likewise.
48922
48923 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48924 choose which information we want to print.
48925
48926 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48927
48928 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48929 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48930 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48931 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48932 video/readers/tga.c and video/i386/pc/vbeutil.c.
48933
48934 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48935
48936 Added support for RAID and LVM.
48937
48938 * disk/lvm.c: New file.
48939 * disk/raid.c: Likewise.
48940 * include/grub/lvm.h: Likewise.
48941 * include/grub/raid.h: Likewise.
48942 * include/grub/util/lvm.h: Likewise.
48943 * include/grub/util/raid.h: Likewise.
48944 * util/lvm.c: Likewise.
48945 * util/raid.c: Likewise.
48946
48947 * include/grub/disk.h (grub_disk_dev_id): Add
48948 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48949 (grub_disk_get_size): New prototype.
48950 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48951 returns a partition.
48952 (grub_disk_get_size): New function.
48953
48954 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48955 verbatim if grub_install_dos_part is -2.
48956
48957 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48958 and LVM devices.
48959
48960 * util/i386/pc/grub-setup.c (setup): New argument
48961 MUST_EMBED. Force embedding of GRUB when the argument is
48962 true. Close FILE before returning.
48963 (main): Add support for RAID and LVM.
48964
48965 * conf/common.rmk: Add RAID and LVM modules.
48966 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48967 util/lvm.c.
48968 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48969
48970 * kern/misc.c (grub_strstr): New function.
48971 * include/grub/misc.h (grub_strstr): New prototype.
48972
48973 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48974
48975 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48976
48977 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48978
48979 * kern/misc.c (grub_strtoull): Guess the base only if not
48980 specified.
48981
48982 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48983
48984 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48985 PowerMac support.
48986
48987 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48988
48989 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48990
48991 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48992 Remove `flags' argument. All callers changed.
48993 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48994 (IEEE1275_IHANDLE_INVALID): New variable.
48995 (IEEE1275_CELL_INVALID): New variable.
48996 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48997 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48998 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48999 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49000 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49001 codes from Open Firmware. All callers updated.
49002 (grub_ieee1275_next_property): Directly return Open Firmware return
49003 code.
49004 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49005 Standardize error checking from `grub_ieee1275_get_property'.
49006 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49007 `devalias' to `aliases'. Correct comments. Consolidate error paths.
49008
49009 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
49010
49011 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49012 `instance_to_package_args' to `instance_to_path_args'.
49013
49014 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49015 `grub_ieee1275_chosen'.
49016
49017 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49018 `grub_ieee1275_interpret'.
49019
49020 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49021
49022 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49023
49024 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
49025
49026 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49027 (__cmpdi): Likewise.
49028
49029 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49030 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49031 `grub_ssize_t'.
49032
49033 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49034
49035 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49036 to type `grub_ssize_t'.
49037 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49038
49039 2006-09-22 Marco Gerards <marco@gnu.org>
49040
49041 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49042 newlines.
49043
49044 2006-09-22 Marco Gerards <marco@gnu.org>
49045
49046 * commands/echo.c: New file.
49047
49048 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49049
49050 * conf/common.rmk (echo_mod_SOURCES): New variable.
49051 (echo_mod_CFLAGS): Likewise.
49052 (echo_mod_LDFLAGS): Likewise.
49053
49054 2006-09-22 Marco Gerards <marco@gnu.org>
49055
49056 * normal/main.c (get_line): Malloc memory instead of using
49057 preallocated memory. Removed the arguments `cmdline' and
49058 `max_len'. Updated all callers.
49059
49060 2006-09-22 Marco Gerards <marco@gnu.org>
49061
49062 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49063 (normal_mod_DEPENDENCIES): Likewise.
49064
49065 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49066 (normal_mod_DEPENDENCIES): Likewise.
49067
49068 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49069
49070 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49071
49072 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49073 programs.
49074 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49075 (normal_mod_DEPENDENCIES): Likewise.
49076 * conf/i386-pc.mk: Regenerate.
49077 * conf/i386-efi.mk: Likewise
49078 * conf/common.mk: Likewise.
49079 * conf/powerpc-ieee1275.mk: Likewise.
49080 * conf/sparc64-ieee1275.mk: Likewise.
49081
49082 2006-09-22 Robert Millan <rmh@aybabtu.com>
49083
49084 Sync with i386 version.
49085 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49086 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49087
49088 2006-09-21 Robert Millan <rmh@aybabtu.com>
49089
49090 Import from GRUB Legacy (lib/device.c):
49091 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49092 (init_device_map) [__linux__]: Add support for I2O devices.
49093
49094 2006-09-14 Marco Gerards <marco@gnu.org>
49095
49096 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49097 `-melf_i386'.
49098
49099 2006-09-14 Robert Millan <rmh@aybabtu.com>
49100
49101 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49102 /boot/grub/*.lst.
49103
49104 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49105
49106 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49107 before adding it to device.map.
49108
49109 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49110
49111 * genmk.rb: Let GCC generate dependencies the first time it
49112 compiles a file; using the -MD option.
49113 * conf/common.mk: Regenerate.
49114 * conf/i386-pc.mk: Likewise.
49115 * conf/i386-efi.mk: Likewise.
49116 * conf/powerpc-ieee1275.mk: Likewise.
49117 * conf/sparc64-ieee1275.mk: Likewise.
49118
49119 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49120
49121 Move the prototypes of grub_setjmp and grub_longjmp to
49122 cpu/setjmp.h, so that each architecture may specify different
49123 attributes.
49124
49125 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49126 (grub_longjmp): Likewise.
49127 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49128 (grub_longjmp): Likewise.
49129 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49130 (grub_longjmp): Likewise.
49131
49132 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49133 [!GRUB_UTIL] (grub_longjmp): Removed.
49134
49135 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49136
49137 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49138 "color!" method does not return any value.
49139
49140 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49141
49142 * include/grub/bitmap.h: New file.
49143
49144 * include/grub/i386/pc/vbeutil.h: Likewise.
49145
49146 * video/bitmap.c: Likewise.
49147
49148 * video/readers/tga.c: Likewise.
49149
49150 * video/i386/pc/vbeutil.c: Likewise.
49151
49152 * commands/videotest.c: Code cleanup and updated to reflect to new
49153 video API.
49154
49155 * term/gfxterm.c: Likewise.
49156
49157 * video/video.c: Likewise.
49158
49159 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49160 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49161 (bitmap_mod_SOURCES): New entry.
49162 (bitmap_mod_CFLAGS): Likewise.
49163 (bitmap_mod_LDFLAGS): Likewise.
49164 (tga_mod_SOURCES): Likewise.
49165 (tga_mod_CFLAGS): Likewise.
49166 (tga_mod_LDFLAGS): Likewise.
49167
49168 * include/grub/video.h (grub_video_blit_operators): New enum type.
49169 (grub_video_render_target): Changed as forward declaration and moved
49170 actual definition to be video driver specific.
49171 (grub_video_adapter.blit_bitmap): Added blitting operator.
49172 (grub_video_adapter.blit_render_target): Likewise.
49173 (grub_video_blit_bitmap): Likewise.
49174 (grub_video_blit_render_target): Likewise.
49175
49176 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49177 driver specific render target definition.
49178 (grub_video_vbe_map_rgba): Added driver internal helper.
49179 (grub_video_vbe_unmap_color): Updated to use
49180 grub_video_i386_vbeblit_info.
49181 (grub_video_vbe_get_video_ptr): Likewise.
49182
49183 * include/grub/i386/pc/vbeblit.h
49184 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49185 grub_video_i386_vbeblit_info.
49186 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49187 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49188 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49189 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49190 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49191 (grub_video_i386_vbeblit_index_index): Likewise.
49192 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49193 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49194 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49195 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49196 operator.
49197 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49198 operator.
49199
49200 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49201 include/grub/i386/pc/vbeblit.h.
49202
49203 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49204 Updated to use grub_video_i386_vbeblit_info.
49205 (grub_video_i386_vbefill_R8G8B8): Likewise.
49206 (grub_video_i386_vbefill_index): Likewise.
49207 (grub_video_i386_vbefill): Added generic filler.
49208
49209 * video/i386/pc/vbefill.c: Updated to reflect changes on
49210 include/grub/i386/pc/vbefill.h.
49211
49212 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49213 grub_video_i386_vbeblit_info.
49214 (grub_video_vbe_unmap_color): Likewise.
49215 (grub_video_vbe_blit_glyph): Likewise.
49216 (grub_video_vbe_scroll): Likewise.
49217 (grub_video_vbe_draw_pixel): Removed function.
49218 (grub_video_vbe_get_pixel): Likewise.
49219 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49220 updated code to use it.
49221 (common_blitter): Added common blitter for render target and bitmap.
49222 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49223 (grub_video_vbe_blit_render_target): Likewise.
49224
49225 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49226
49227 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49228 is in text mode if there is no console control protocol instance
49229 available.
49230
49231 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49232
49233 * include/grub/video.h: Code cleanup.
49234
49235 * include/grub/i386/pc/vbe.h: Likewise.
49236
49237 * video/i386/pc/vbe.c: Likewise.
49238
49239 * video/i386/pc/vbeblit.c: Likewise.
49240
49241 * video/i386/pc/vbefill.c: Likewise.
49242
49243 * video/video.c: Likewise. Also added more comments.
49244
49245 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49246
49247 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49248 (struct grub_biosdisk_dap): Likewise.
49249
49250 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49251 linkage settings for all functions.
49252
49253 2006-07-12 Marco Gerards <marco@gnu.org>
49254
49255 * configure.ac (--enable-mm-debug): Fix typo.
49256
49257 * genkernsyms.sh.in: Use proper quoting for `CC'.
49258
49259 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49260
49261 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49262 (normal_mod_ASFLAGS): Remove "-m32".
49263
49264 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49265
49266 * util/misc.c: Include config.h.
49267 [!HAVE_MEMALIGN]: Do not include malloc.h.
49268 (grub_memalign): Use posix_memalign, if present. Then, use
49269 memalign, if present. Otherwise, emit an error.
49270
49271 * util/grub-emu.c: Do not include malloc.h.
49272
49273 * include/grub/util/misc.h: Include unistd.h. This is required for
49274 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49275 D. Eades III <hde@foobar-qux.org>.
49276
49277 * configure.ac (AC_GNU_SOURCE): Added.
49278 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49279 type.
49280
49281 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49282
49283 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49284 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49285
49286 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49287
49288 * include/grub/types.h (grub_host_addr_t): Rename to
49289 grub_target_addr_t.
49290 (grub_host_off_t): Rename to grub_target_off_t.
49291 (grub_host_size_t): Rename to grub_target_size_t.
49292 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49293 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49294
49295 * include/grub/kernel.h (struct grub_module_header): Change type
49296 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49297 (grub_module_info): Likewise.
49298
49299 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49300
49301 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49302 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49303 Velazquez <jesus.velazquez@gmail.com>.
49304
49305 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49306
49307 Count partitions from 1 instead of 0 in the string representation
49308 of partitions. Still use 0-based internally.
49309
49310 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49311 (sun_partition_map_iterate): Use grub_partition_t instead of
49312 struct grub_partition *. Cast DESC->START_CYLINDER to
49313 grub_uint64_t after converting the endian.
49314 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49315 (sun_partition_map_get_name): Add 1 to P->INDEX.
49316
49317 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49318 PCDATA->DOS_PART.
49319 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49320
49321 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49322 zero instead of one.
49323 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49324 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49325
49326 * partmap/apple.c (apple_partition_map_iterate): Change the type
49327 of POS to unsigned.
49328 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49329 (apple_partition_map_get_name): Add 1 into P->INDEX.
49330
49331 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49332 of POS to unsigned.
49333 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49334 calculate the offset of a partition.
49335 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49336 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49337
49338 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49339 SECTOR to grub_disk_addr_t.
49340 (acorn_partition_map_iterate): Likewise.
49341 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49342 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49343 top.
49344 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49345
49346 * kern/i386/pc/init.c (make_install_device): Add 1 into
49347 GRUB_INSTALL_DOS_PART.
49348
49349 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49350 conditional.
49351
49352 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49353
49354 Clean up the code to support 64-bit addressing in disks and
49355 files. This change is not enough for filesystems yet.
49356
49357 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49358 type of "start" to grub_uint64_t.
49359 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49360 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49361 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49362 convert addresses.
49363
49364 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49365 to grub_disk_addr_t.
49366
49367 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49368 string.
49369
49370 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49371
49372 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49373 to char *.
49374
49375 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49376
49377 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49378
49379 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49380
49381 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49382 to grub_off_t, to detect an error from grub_file_seek.
49383 (grub_multiboot_load_elf32): Likewise.
49384
49385 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49386 maximum unsigned long value when an overflow is detected.
49387 (grub_strtoull): New function.
49388 (grub_divmod64): Likewise.
49389 (grub_lltoa): use grub_divmod64.
49390
49391 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49392 grub_disk_addr_t.
49393 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49394 the pointer to next character. Use grub_strtoull instead of
49395 grub_strtoul.
49396 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49397 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49398 respectively.
49399
49400 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49401 return value is signed.
49402 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49403 test if OFFSET is less than zero, as OFFSET is unsigned now.
49404
49405 * kern/disk.c (struct grub_disk_cache): Change the type of
49406 "sector" to grub_disk_addr_t.
49407 (grub_disk_cache_get_index): Change the type of SECTOR to
49408 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49409 unsigned after shifting.
49410 (grub_disk_cache_invalidate): Change the type of SECTOR to
49411 grub_disk_addr_t.
49412 (grub_disk_cache_unlock): Likewise.
49413 (grub_disk_cache_store): Likewise.
49414 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49415 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49416 grub_disk_addr_t and grub_uint64_t, respectively.
49417 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49418 body, as the value of OFFSET is tweaked by
49419 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49420 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49421 respectively.
49422 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49423 body, as the value of OFFSET is tweaked by
49424 grub_disk_check_range. Change the types of LEN and N to
49425 grub_size_t.
49426
49427 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49428 and "saved_offset" to grub_off_t.
49429 (test_header): Cast BUF to char *.
49430 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49431 to char *.
49432 (grub_gzio_read): Change the types of OFFSET and SIZE to
49433 grub_off_t and grub_size_t, respectively.
49434
49435 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49436 Removed.
49437 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49438 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49439 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49440 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49441 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49442
49443 * include/grub/types.h (grub_off_t): Unconditionally set to
49444 grub_uint64_t.
49445 (grub_disk_addr_t): Changed to grub_uint64_t.
49446
49447 * include/grub/partition.h (struct grub_partition): Change the
49448 types of "start", "len" and "offset" to grub_disk_addr_t,
49449 grub_uint64_t and grub_disk_addr_t, respectively.
49450 (grub_partition_get_start): Return grub_disk_addr_t.
49451 (grub_partition_get_len): Return grub_uint64_t.
49452
49453 * include/grub/misc.h (grub_strtoull): New prototype.
49454 (grub_divmod64): Likewise.
49455
49456 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49457 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49458 grub_off_t, respectively.
49459 All callers and references changed.
49460
49461 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49462 grub_size_t in "read".
49463 All callers and references changed.
49464
49465 * include/grub/file.h (struct grub_file): Change the types of
49466 "offset" and "size" to grub_off_t and grub_off_t,
49467 respectively. Change the type of SECTOR to grub_disk_addr_t in
49468 "read_hook".
49469 (grub_file_read): Change the type of LEN to grub_size_t.
49470 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49471 grub_off_t.
49472 (grub_file_size): Return grub_off_t.
49473 (grub_file_tell): Likewise.
49474 All callers and references changed.
49475
49476 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49477 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49478 "write".
49479 (struct grub_disk): Change the type of "total_sectors" to
49480 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49481 "read_hook".
49482 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49483 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49484 (grub_disk_write): Likewise.
49485 All callers and references changed.
49486
49487 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49488 char * for grub_strncmp to silence gcc.
49489 (grub_iso9660_mount): Likewise.
49490 (grub_iso9660_mount): Likewise.
49491 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49492 return statement.
49493 (grub_iso9660_iterate_dir): Likewise.
49494 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49495
49496 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49497 LEN to grub_disk_addr_t and grub_size_t, respectively.
49498
49499 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49500
49501 * fs/jfs.c (grub_jfs_read_file): Likewise.
49502
49503 * fs/minix.c (grub_jfs_read_file): Likewise.
49504
49505 * fs/sfs.c (grub_jfs_read_file): Likewise.
49506
49507 * fs/ufs.c (grub_jfs_read_file): Likewise.
49508
49509 * fs/xfs.c (grub_jfs_read_file): Likewise.
49510
49511 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49512 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49513 respectively.
49514
49515 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49516 BLKNR to -1 instead of returning GRUB_ERRNO.
49517 (grub_ext2_read_file): Change the types of SECTOR and
49518 LEN to grub_disk_addr_t and grub_size_t, respectively.
49519
49520 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49521 LEN to grub_disk_addr_t and grub_size_t, respectively.
49522
49523 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49524 grub_file_read.
49525
49526 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49527 string. Do not cast SECTOR explicitly.
49528
49529 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49530 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49531 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49532 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49533 over 2TB and LBA mode is not supported, raise an error.
49534 (get_safe_sectors): New function.
49535 (grub_biosdisk_read): Use get_safe_sectors.
49536 (grub_biosdisk_write): Likewise.
49537
49538 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49539 (grub_efidisk_write): Likewise.
49540
49541 * disk/loopback.c (delete_loopback): Cosmetic changes.
49542 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49543 correctly.
49544 (grub_loopback_open): Likewise.
49545 (grub_loopback_read): Likewise. Also, change the type of POS to
49546 grub_off_t, and fix the usage of grub_memset.
49547
49548 * commands/i386/pc/play.c: Include grub/machine/time.h.
49549
49550 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49551 print FILE->SIZE.
49552
49553 * commands/configfile.c: Include grub/env.h.
49554
49555 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49556 GRUB_ERRNO directly instead. Change the type of POS to
49557 grub_off_t. Follow the coding standard.
49558
49559 * commands/blocklist.c: Include grub/partition.h.
49560 (grub_cmd_blocklist): Return an error if the underlying device is
49561 not a disk. Take the starting sector of a partition into account,
49562 if a partition is used.
49563
49564 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49565 a length field.
49566 (lba_mode): Support 64-bit addresses.
49567 (chs_mode): Likewise.
49568 (copy_buffer): Adapted to the new offsets of a length field and a
49569 segment field.
49570 (blocklist_default_start): Allocate 64-bit space.
49571
49572 * boot/i386/pc/boot.S (force_lba): Removed.
49573 (boot_drive): Moved to under KERNEL_SECTOR.
49574 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49575 space.
49576 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49577 is useless.
49578 (lba_mode): Refactored to support a 64-bit address. More size
49579 optimization.
49580 (setup_sectors): Likewise.
49581
49582 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49583
49584 * DISTLIST: Added include/grub/i386/linux.h. Removed
49585 include/grub/i386/pc/linux.h
49586
49587 * configure.ac (AC_INIT): Bumped to 1.94.
49588
49589 * config.guess: Updated from gnulib.
49590 * config.sub: Likewise.
49591 * install-sh: Likewise.
49592 * mkinstalldirs: Likewise.
49593
49594 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49595
49596 * conf/common.rmk (grub_modules_init.lst): Depended on
49597 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49598 MODSRCFILES.
49599
49600 * genmk.rb (PModule::rule): Reverted the previous change.
49601
49602 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49603
49604 * conf/common.rmk (grub_modules_init.lst): Depends on
49605 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49606 that the target does not exist before producing.
49607 (grub_modules_init.h): Remove the target before generating.
49608 (grub_emu_init.c): Likewise.
49609
49610 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49611
49612 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49613
49614 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49615 for the target-specific tests. Make sure that we also have the
49616 up-to-date target variables for those tests.
49617
49618 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49619
49620 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49621 (PModule::rule): Likewise.
49622
49623 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49624
49625 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49626 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49627 target-specific flags should be prefixed.
49628 (PModule::rule): Likewise.
49629
49630 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49631
49632 * configure.ac (CMP): Check if cmp is available explicitly.
49633
49634 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49635
49636 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49637 (target_cpu): New variable.
49638 (pkglibdir): Use target_cpu instead of host_cpu.
49639
49640 * util/i386/pc/grub-install.in (host_cpu): Removed.
49641 (target_cpu): New variable.
49642 (pkglibdir): Use target_cpu instead of host_cpu.
49643
49644 * util/genmoddep.c: Removed.
49645
49646 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49647 instead of GRUB_HOST_SIZEOF_VOID_P.
49648 * kern/dl.c: Likewise.
49649
49650 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49651 ...
49652 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49653 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49654 (GRUB_TARGET_SIZEOF_LONG): ... this.
49655 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49656 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49657 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49658 to ...
49659 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49660 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49661 (GRUB_TARGET_SIZEOF_LONG): ... this.
49662 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49663 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49664 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49665 to ...
49666 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49667 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49668 (GRUB_TARGET_SIZEOF_LONG): ... this.
49669 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49670 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49671
49672 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49673 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49674 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49675 instead of GRUB_HOST_SIZEOF_LONG.
49676 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49677 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49678 GRUB_CPU_WORDS_BIGENDIAN.
49679 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49680 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49681 grub_host_ssize_t.
49682
49683 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49684 (genmoddep_SOURCES): Likewise.
49685 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49686 (genmoddep_SOURCES): Likewise.
49687 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49688 (genmoddep_SOURCES): Likewise.
49689 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49690 Likewise.
49691 (genmoddep_SOURCES): Likewise.
49692
49693 * genmoddep.awk: New file.
49694
49695 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49696 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49697 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49698 (PModule::rule): Likewise.
49699 (Program::rule): Likewise.
49700 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49701 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49702 respectively.
49703
49704 * configure.ac: Rewritten intensively to use host and target
49705 instead of build and host, respectively.
49706
49707 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49708 (host_cpu): Removed.
49709 (target_cpu): New variable.
49710 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49711 (BUILD_CC): Removed.
49712 (BUILD_CFLAGS): Likewise.
49713 (BUILD_CPPFLAGS): Likewise.
49714 (TARGET_CC): New variable.
49715 (TARGET_CFLAGS): Likewise.
49716 (TARGET_CPPFLAGS): Likewise.
49717 (TARGET_LDFLAGS): Likewise.
49718 (AWK): Likewise.
49719 (include): Use target_cpu instead of host_cpu.
49720 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49721
49722 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49723
49724 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49725
49726 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49727 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49728 field 'false' to 'exec_on_false'.
49729 (grub_script_create_cmdif): Renamed argument names to reflect above
49730 changes.
49731
49732 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49733
49734 * normal/script.c (grub_script_create_cmdif): Likewise.
49735
49736 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49737
49738 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49739 top.
49740 (grub_hfsplus_btree_recptr): Likewise.
49741 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49742 FILEBLOCK both to pass a block number and store next block
49743 number.
49744 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49745 overflow file correctly. Specify errors appropriately, because
49746 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49747 grub_hfsplus_btree_recptr to get the pointer to a found key.
49748 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49749 is found.
49750
49751 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49752 linux.mod.
49753 (_linux_mod_SOURCES): New variable.
49754 (_linux_mod_CFLAGS): Likewise.
49755 (_linux_mod_LDFLAGS): Likewise.
49756 (linux_mod_SOURCES): Likewise.
49757 (linux_mod_CFLAGS): Likewise.
49758 (linux_mod_LDFLAGS): Likewise.
49759
49760 * DISTLIST: Added loader/i386/efi/linux.c,
49761 loader/i386/efi/linux_normal.c and
49762 include/grub/i386/efi/loader.h.
49763
49764 * loader/i386/efi/linux.c: New file.
49765 * loader/i386/efi/linux_normal.c: Likewise.
49766 * include/grub/i386/efi/loader.h: Likewise.
49767
49768 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49769
49770 * commands/blocklist.c: New file.
49771
49772 * DISTLIST: Added commands/blocklist.c.
49773
49774 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49775 color for the background, and a darker color for the foreground.
49776 (grub_console_checkkey): Return READ_KEY.
49777 (grub_console_cls): Set the background to
49778 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49779
49780 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49781
49782 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49783 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49784
49785 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49786 prototype.
49787
49788 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49789 BG. The spec is wrong again.
49790
49791 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49792 prototype.
49793 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49794
49795 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49796 commands/blocklist.c.
49797 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49798
49799 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49800 (blocklist_mod_SOURCES): New variable.
49801 (blocklist_mod_CFLAGS): Likewise.
49802 (blocklist_mod_LDFLAGS): Likewise.
49803
49804 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49805
49806 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49807 duplication.
49808 (lba_mode): Use %eax more intensively to reduce the code size.
49809
49810 2006-05-20 Marco Gerards <marco@gnu.org>
49811
49812 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49813
49814 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49815 for `menuentry'.
49816 (script): Accept leading newlines.
49817 (newlines): New rule to describe 0 or more newlines.
49818 (commands): Accept `command' with trailing newline. Fixed the
49819 order in which arguments were passed to `grub_script_add_cmd'.
49820 Accept commands separated by newlines.
49821 (function): Changed to accept newlines.
49822 (menuentry) Rewritten.
49823
49824 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49825 front of the list, instead of to the end.
49826
49827 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49828
49829 * util/i386/pc/grub-install.in (bindir): New variable.
49830 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49831 Shaver <lbgwjl@gmail.com>.
49832
49833 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49834
49835 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49836 grub/machine/linux.h
49837 * loader/i386/pc/linux.c: Likewise.
49838
49839 * include/grub/i386/pc/linux.h: Moved to ...
49840 * include/grub/i386/linux.h: ... here.
49841
49842 * include/grub/i386/linux.h (struct linux_kernel_params): New
49843 struct.
49844
49845 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49846
49847 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49848 checking.
49849 (grub_video_vbe_blit_glyph): Likewise.
49850 (grub_video_vbe_blit_bitmap): Likewise.
49851 (grub_video_vbe_blit_render_target): Likewise.
49852
49853 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49854
49855 * configure.ac (--with-platform): Properly quote the square
49856 brackets.
49857
49858 2006-05-08 Marco Gerards <marco@gnu.org>
49859
49860 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49861 this...
49862 (kernel_elf_HEADERS): ...to this. Updated all users.
49863 (grubof_symlist.c): Renamed from this...
49864 (kernel_elf_symlist.c): ...to this. Updated all users.
49865 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49866 (grubof_SOURCES): Renamed from this...
49867 (kernel_elf_SOURCES): ...to this.
49868 (grubof_HEADERS): Renamed from this...
49869 (kernel_elf_HEADERS): ...to this.
49870 (grubof_CFLAGS): Renamed from this...
49871 (kernel_elf_CFLAGS): ...to this.
49872 (grubof_ASFLAGS): Renamed from this...
49873 (kernel_elf_ASFLAGS): ...to this.
49874 (grubof_LDFLAGS): Renamed from this...
49875 (kernel_elf_LDFLAGS): ...to this.
49876
49877 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49878 this...
49879 (kernel_elf_HEADERS): ...to this. Updated all users.
49880 (grubof_symlist.c): Renamed from this...
49881 (kernel_elf_symlist.c): ...to this. Updated all users.
49882 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49883 (grubof_SOURCES): Renamed from this...
49884 (kernel_elf_SOURCES): ...to this.
49885 (grubof_HEADERS): Renamed from this...
49886 (kernel_elf_HEADERS): ...to this.
49887 (grubof_CFLAGS): Renamed from this...
49888 (kernel_elf_CFLAGS): ...to this.
49889 (grubof_ASFLAGS): Renamed from this...
49890 (kernel_elf_ASFLAGS): ...to this.
49891 (grubof_LDFLAGS): Renamed from this...
49892 (kernel_elf_LDFLAGS): ...to this.
49893
49894 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49895 `kernel.elf' instead of `grubof'.
49896
49897 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49898
49899 Add --with-platform to configure. Use pkglibdir instead of
49900 pkgdatadir. This is reported by Roger Leigh.
49901
49902 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49903 (host_vendor): Likewise.
49904 (host_os): Likewise.
49905 (pkgdatadir): Likewise.
49906 (platform): New variable.
49907 (pkglibdir): Likewise.
49908 Use PKGLIBDIR instead of PKGDATADIR.
49909
49910 * util/i386/pc/grub-install.in (datadir): Removed.
49911 (host_vendor): Likewise.
49912 (host_os): Likewise.
49913 (pkgdatadir): Likewise.
49914 (platform): New variable.
49915 (pkglibdir): Likewise.
49916 Use PKGLIBDIR instead of PKGDATADIR.
49917
49918 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49919 instead of GRUB_DATADIR.
49920 (main): Likewise.
49921 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49922 (main): Likewise.
49923 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49924 (main): Likewise.
49925
49926 * configure.ac (--with-platform): New option.
49927 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49928
49929 * Makefile.in: Include a makefile based on PLATFORM instead of
49930 HOST_VENDOR.
49931 (pkgdatadir): Not appended by the machine type.
49932 (pkglibdir): Appended by the machine type.
49933 (host_vendor): Removed.
49934 (platform): New variable.
49935 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49936 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49937 (uninstall): Likewise.
49938
49939 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49940
49941 Use the environment context in the menu. Remove the commands
49942 "default" and "timeout", and use variables instead.
49943
49944 * normal/menu.c: Include grub/env.h.
49945 (print_entry): Cast TITLE to silence gcc.
49946 (get_timeout): New function.
49947 (set_timeout): Likewise.
49948 (get_entry_number): Likewise.
49949 (run_menu): Use a default entry, a fallback entry and a timeout
49950 in the environment variables "default", "fallback" and
49951 "timeout". Also, tweak the default entry if it is not within the
49952 current menu entries.
49953 (grub_menu_run): Use a fallback entry in the environment variable
49954 "fallback".
49955
49956 * normal/main.c (read_config_file): Do not initialize
49957 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49958 NEWMENU->TIMEOUT.
49959 (grub_normal_execute): Use a data slot to store the menu.
49960
49961 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49962 fallback_entry and timeout.
49963 (struct grub_menu_list): Removed.
49964 (grub_menu_list_t): Likewise.
49965 (struct grub_context): Likewise.
49966 (grub_context_t): Likewise.
49967 (grub_context_get): Likewise.
49968 (grub_context_get_current_menu): Likewise.
49969 (grub_context_push_menu): Likewise.
49970 (grub_context_pop_menu): Likewise.
49971 (grub_default_init): Likewise.
49972 (grub_default_fini): Likewise.
49973 (grub_timeout_init): Likewise.
49974 (grub_timeout_fini): Likewise.
49975
49976 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49977 and timeout.mod.
49978 (normal_mod_SOURCES): Removed normal/context.c.
49979
49980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49981 commands/default.c, commands/timeout.c and normal/context.c.
49982 (normal_mod_SOURCES): Removed normal/context.c.
49983
49984 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49985 commands/timeout.c and normal/context.c.
49986 (normal_mod_SOURCES): Removed normal/context.c.
49987
49988 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49989 commands/default.c, commands/timeout.c and normal/context.c.
49990 (normal_mod_SOURCES): Removed normal/context.c.
49991
49992 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49993 timeout.mod.
49994 (default_mod_SOURCES): Removed.
49995 (default_mod_CFLAGS): Likewise.
49996 (default_mod_LDFLAGS): Likewise.
49997 (timeout_mod_SOURCES): Removed.
49998 (timeout_mod_CFLAGS): Likewise.
49999 (timeout_mod_LDFLAGS): Likewise.
50000
50001 * DISTLIST: Removed commands/default.c, commands/timeout.c and
50002 normal/context.c.
50003
50004 * commands/default.c: Removed.
50005 * commands/timeout.c: Likewise.
50006 * normal/context.c: Likewise.
50007
50008 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
50009
50010 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50011
50012 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
50013
50014 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50015 "next" to "prev" for readability.
50016 (struct grub_env_sorted_var): New struct.
50017 (grub_env_context): Renamed to ...
50018 (initial_context): ... this.
50019 (grub_env_var_context): Renamed to ...
50020 (current_context): ... this.
50021 (grub_env_find): Look only at CURRENT_CONTEXT.
50022 (grub_env_context_open): Rewritten to copy exported variables from
50023 previous context.
50024 (grub_env_context_close): Rewritten according to the new
50025 scheme. Also, add an assertion to prevent the initial context from
50026 removed.
50027 (grub_env_insert): Removed the code for the sorted list.
50028 (grub_env_remove): Likewise.
50029 (grub_env_export): Simply mark the variable with
50030 GRUB_ENV_VAR_GLOBAL.
50031 (grub_env_set): A cosmetic change for naming consistency.
50032 (grub_env_get): Likewise.
50033 (grub_env_unset): Likewise.
50034 (grub_env_iterate): Rewritten to sort variables within this
50035 function.
50036 (grub_register_variable_hook): Fixed for naming consistency. Call
50037 grub_env_find again, only if NAME is not found at the first time.
50038 (mangle_data_slot_name): New function.
50039 (grub_env_set_data_slot): Likewise.
50040 (grub_env_get_data_slot): Likewise.
50041 (grub_env_unset_data_slot): Likewise.
50042
50043 * include/grub/env.h (grub_env_var_type): New enum.
50044 (GRUB_ENV_VAR_LOCAL): New constant.
50045 (GRUB_ENV_VAR_GLOBAL): Likewise.
50046 (GRUB_ENV_VAR_DATA): Likewise.
50047 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50048 "type".
50049 (grub_env_set): Replace VAR with NAME for consistency.
50050 (grub_register_variable_hook): Likewise.
50051 (grub_env_export): Specify the name of the argument.
50052 (grub_env_set_data_slot): New prototype.
50053 (grub_env_get_data_slot): Likewise.
50054 (grub_env_unset_data_slot): Likewise.
50055
50056 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50057
50058 Extend the loader so that GRUB can accept a loader which comes
50059 back to GRUB when a loaded image exits. Also, this change adds
50060 support for a chainloader on EFI.
50061
50062 * term/efi/console.c: Include grub/misc.h.
50063 (grub_console_checkkey): Display a scan code on the top for
50064 debugging. This will be removed once the EFI port gets stable.
50065 Correct the scan code mapping.
50066
50067 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50068 allocate memory from larger regions, in order to reduce the number
50069 of allocated regions. Otherwise, the MacOSX loader panics.
50070 (filter_memory_map): Avoid less than 1MB for compatibility with
50071 other loaders.
50072 (add_memory_regions): Allocate from the tail of a region, if
50073 possible, to avoid allocating a region near to 1MB, for the MacOSX
50074 loader.
50075
50076 * kern/efi/init.c (grub_efi_set_prefix): Specify
50077 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50078
50079 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50080 argument IMAGE_HANDLE and specify it to get a loaded image.
50081 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50082 grub_efi_get_loaded_image.
50083 (grub_efi_get_filename): Divide the length by the size of
50084 grub_efi_char16_t.
50085 (grub_efi_get_device_path): New function.
50086 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50087 the length by the size of grub_efi_char16_t for a file path device
50088 path node.
50089
50090 * kern/loader.c (grub_loader_noreturn): New variable.
50091 (grub_loader_set): Accept a new argument NORETURN. Set
50092 GRUB_LOADER_NORETURN to NORETURN.
50093 All callers changed.
50094 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50095 grub_machine_fini.
50096
50097 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50098 prototype.
50099 (grub_efi_get_loaded_image): Take an argument to specify an image
50100 handle.
50101
50102 * include/grub/loader.h (grub_loader_set): Added one more argument
50103 NORETURN.
50104
50105 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50106 instead of grub_efi_open_protocol.
50107 (grub_efidisk_get_device_name): Likewise.
50108 (grub_efidisk_close): Print a newline.
50109 (grub_efidisk_get_device_handle): Fixed to use
50110 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50111 GRUB_EFI_DEVICE_PATH_TYPE.
50112
50113 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50114 * kern/efi/efi.c (device_path_guid): ... here.
50115
50116 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50117 chain.mod.
50118 (kernel_mod_HEADERS): Added efi/disk.h.
50119 (_chain_mod_SOURCES): New variable.
50120 (_chain_mod_CFLAGS): Likewise.
50121 (_chain_mod_LDFLAGS): Likewise.
50122 (chain_mod_SOURCES): Likewise.
50123 (chain_mod_CFLAGS): Likewise.
50124 (chain_mod_LDFLAGS): Likewise.
50125
50126 * DISTLIST: Added include/grub/efi/chainloader.h,
50127 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50128
50129 * include/grub/efi/chainloader.h: New file.
50130 * loader/efi/chainloader.c: Likewise.
50131 * loader/efi/chainloader_normal.c: Likewise.
50132
50133 2006-04-30 Marco Gerards <marco@gnu.org>
50134
50135 * commands/configfile.c (grub_cmd_source): New function.
50136 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50137 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50138
50139 2006-04-30 Marco Gerards <marco@gnu.org>
50140
50141 * normal/execute.c (grub_script_execute_cmd): Change the return
50142 type to `grub_err_t'. Correctly return the error.
50143 (grub_script_execute_cmdline): In case a command line is not a
50144 command or a function, try to interpret it as an assignment.
50145
50146 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50147
50148 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50149 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50150 skip a node whose name is obviously invalid as UTF-16,
50151 i.e. contains a NUL character. Stop the iteration when the last
50152 directory entry is found. Instead of using the return value of
50153 grub_hfsplus_btree_iterate_node, store the value in RET and use
50154 it, because the iterator can be stopped by the last directory
50155 entry.
50156
50157 2006-04-30 Marco Gerards <marco@gnu.org>
50158
50159 * include/grub/env.h (grub_env_export): New prototype. Reported
50160 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50161
50162 2006-04-30 Marco Gerards <marco@gnu.org>
50163
50164 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50165 size of the extents in a catalog file record.
50166
50167 2006-04-29 Marco Gerards <marco@gnu.org>
50168
50169 * commands/configfile.c (grub_cmd_configfile): Execute the
50170 configfile within its own context.
50171
50172 * include/grub/env.h (grub_env_context_open): New prototype.
50173 (grub_env_context_close): Likewise.
50174
50175 * kern/env.c (grub_env): Removed.
50176 (grub_env_sorted): Likewise.
50177 (grub_env_context): New variable.
50178 (grub_env_var_context): Likewise.
50179 (grub_env_find): Search both the active context and the global
50180 context.
50181 (grub_env_context_open): New function.
50182 (grub_env_context_close): Likewise.
50183 (grub_env_insert): Likewise.
50184 (grub_env_remove): Likewise.
50185 (grub_env_export): Likewise.
50186 (grub_env_set): Changed to use helper functions to avoid code
50187 duplication.
50188 (grub_env_iterate): Rewritten so both the current context and the
50189 global context are being used.
50190
50191 * normal/command.c (export_command): New function.
50192 (grub_command_init): Register the `export' function.
50193
50194 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50195
50196 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50197 explicitly to suppress gcc's warnings.
50198 * fs/fat.c (grub_fat_find_dir): Likewise.
50199 (grub_fat_label): Likewise.
50200 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50201 (grub_xfs_mount): Likewise.
50202 (grub_xfs_label): Likewise.
50203 * fs/affs.c (grub_affs_mount): Likewise.
50204 (grub_affs_label): Likewise.
50205 (grub_affs_iterate_dir): Likewise.
50206 * fs/sfs.c (grub_sfs_mount): Likewise.
50207 (grub_sfs_iterate_dir): Likewise.
50208 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50209 * fs/hfs.c (grub_hfs_mount): Likewise.
50210 (grub_hfs_cmp_catkeys): Likewise.
50211 (grub_hfs_find_dir): Likewise.
50212 (grub_hfs_dir): Likewise.
50213 (grub_hfs_label): Likewise.
50214 * fs/jfs.c (grub_jfs_mount): Likewise.
50215 (grub_jfs_opendir): Likewise.
50216 (grub_jfs_getent): Likewise.
50217 (grub_jfs_lookup_symlink): Likewise.
50218 (grub_jfs_label): Likewise.
50219 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50220 (grub_hfsplus_iterate_dir): Likewise.
50221 (grub_hfsplus_btree_iterate_node): Made static.
50222
50223 * util/grub-emu.c (prefix): New variable.
50224 (grub_machine_set_prefix): New function.
50225 (main): Do not set the environment variable "prefix" here. Only
50226 set PREFIX, which is used later by grub_machine_set_prefix.
50227
50228 * include/grub/video.h: Do not include grub/symbol.h.
50229 (grub_video_register): Not exported. This symbol is not defined in
50230 the kernel.
50231 (grub_video_unregister): Likewise.
50232 (grub_video_iterate): Likewise.
50233 (grub_video_setup): Likewise.
50234 (grub_video_restore): Likewise.
50235 (grub_video_get_info): Likewise.
50236 (grub_video_get_blit_format): Likewise.
50237 (grub_video_set_palette): Likewise.
50238 (grub_video_get_palette): Likewise.
50239 (grub_video_set_viewport): Likewise.
50240 (grub_video_get_viewport): Likewise.
50241 (grub_video_map_color): Likewise.
50242 (grub_video_map_rgb): Likewise.
50243 (grub_video_map_rgba): Likewise.
50244 (grub_video_fill_rect): Likewise.
50245 (grub_video_blit_glyph): Likewise.
50246 (grub_video_blit_bitmap): Likewise.
50247 (grub_video_blit_render_target): Likewise.
50248 (grub_video_scroll): Likewise.
50249 (grub_video_swap_buffers): Likewise.
50250 (grub_video_create_render_target): Likewise.
50251 (grub_video_delete_render_target): Likewise.
50252 (grub_video_set_active_render_target): Likewise.
50253
50254 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50255 Undefined.
50256 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50257
50258 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50259 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50260 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50261 instead of $(srcdir)/genkernsyms.sh.
50262
50263 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50264 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50265 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50266 instead of $(srcdir)/genkernsyms.sh.
50267
50268 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50269 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50270 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50271 instead of $(srcdir)/genkernsyms.sh.
50272
50273 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50274 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50275 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50276 instead of $(srcdir)/genkernsyms.sh.
50277
50278 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50279 genkernsyms.sh.
50280
50281 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50282 genkernsyms.sh.
50283 (gensymlist.sh): New target.
50284 (genkernsyms.sh): Likewise.
50285
50286 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50287 genkernsyms.sh.in and gensymlist.sh.in.
50288
50289 * genkernsyms.sh: Removed.
50290 * gensymlist.sh: Likewise.
50291
50292 * genkernsyms.sh.in: New file.
50293 * gensymlist.sh.in: Likewise.
50294
50295 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50296
50297 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50298 clobber "prefix", since we may have already set it manually.
50299
50300 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50301
50302 * kern/misc.c (abort): New alias for grub_abort.
50303
50304 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50305
50306 A new machine-specific function "grub_machine_set_prefix" is
50307 defined. This is called after loading modules, so that a prefix
50308 initialization can use modules. Also, this change adds an
50309 intensive debugging feature for the memory manager via the
50310 configure option "--enable-mm-debug".
50311
50312 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50313 PART.LEN.
50314
50315 * kern/sparc64/ieee1275/init.c (abort): Removed.
50316 (grub_stop): Likewise.
50317 (grub_exit): New function.
50318 (grub_set_prefix): Renamed to ...
50319 (grub_machine_set_prefix): ... this.
50320 (grub_machine_init): Do not call grub_set_prefix.
50321
50322 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50323 (grub_machine_set_prefix): ... this.
50324 (grub_machine_init): Do not call grub_set_prefix.
50325
50326 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50327 (grub_machine_init): Do not set the prefix here.
50328
50329 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50330
50331 * kern/efi/init.c: Include grub/mm.h.
50332 (grub_efi_set_prefix): New function.
50333
50334 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50335 (grub_efi_get_filename): New function.
50336 (grub_print_device_path): Renamed to ...
50337 (grub_efi_print_device_path): ... this.
50338
50339 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50340 [MM_DEBUG] (grub_realloc): Likewise.
50341 [MM_DEBUG] (grub_free): Likewise.
50342 [MM_DEBUG] (grub_memalign): Likewise.
50343 [MM_DEBUG] (grub_mm_debug): New variable.
50344 [MM_DEBUG] (grub_debug_malloc): New function.
50345 [MM_DEBUG] (grub_debug_free): New function.
50346 [MM_DEBUG] (grub_debug_realloc): New function.
50347 [MM_DEBUG] (grub_debug_memalign): New function.
50348
50349 * kern/misc.c (grub_abort): Print a newline to distinguish
50350 the message.
50351
50352 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50353 grub_set_root_dev after loading modules. This is necessary when
50354 setting a prefix depends on modules.
50355
50356 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50357 (grub_efi_print_device_path): ... this.
50358 (grub_efi_get_filename): New prototype.
50359 (grub_efi_set_prefix): Likewise.
50360
50361 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50362 and grub/disk.h.
50363 (grub_efidisk_get_device_handle): New prototype.
50364 (grub_efidisk_get_device_name): Likewise.
50365
50366 * include/grub/mm.h: Include config.h.
50367 (MM_DEBUG): Removed.
50368 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50369 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50370 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50371 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50372 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50373 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50374 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50375 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50376 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50377
50378 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50379
50380 * disk/efi/efidisk.c: Include grub/partition.h.
50381 (iterate_child_devices): New function.
50382 (add_device): First, compare only last device path nodes, so that
50383 devices are sorted by the types.
50384 (grub_efidisk_get_device_handle): New function.
50385 (grub_efidisk_get_device_name): Likewise.
50386
50387 * configure.ac (--enable-mm-debug): New option to enable the
50388 memory manager debugging feature. This makes the binary much
50389 bigger, so is disabled by default.
50390
50391 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50392
50393 Use grub_abort instead of grub_stop, and grub_exit must be
50394 define in each architecture now. Also, this change adds support
50395 for EFI disks.
50396
50397 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50398 (grub_getkey): New function.
50399 (grub_term_get_current): Likewise.
50400
50401 * util/i386/pc/grub-setup.c: Include grub/term.h.
50402 (grub_getkey): New function.
50403 (grub_term_get_current): Likewise.
50404
50405 * util/misc.c (grub_stop): Renamed to ...
50406 (grub_exit): ... this.
50407
50408 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50409 (grub_exit): ... this.
50410 (grub_machine_init): Use grub_abort instead of abort.
50411 (grub_stop): Removed.
50412
50413 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50414 abort.
50415
50416 * kern/i386/pc/startup.S (grub_exit): New function.
50417 (cold_reboot): New label.
50418
50419 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50420 (grub_efi_init): Call grub_efidisk_init.
50421 (grub_efi_fini): Call grub_efidisk_fini.
50422
50423 * kern/efi/efi.c: Include grub/mm.h.
50424 (grub_efi_console_control_guid): Renamed to ...
50425 (console_control_guid): ... this.
50426 (grub_efi_loaded_image_guid): Renamed to ...
50427 (loaded_image_guid): ... this.
50428 (grub_efi_locate_handle): New function.
50429 (grub_efi_open_protocol): Likewise.
50430 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50431 GRUB_EFI_CONSOLE_CONTROL_GUID.
50432 (grub_efi_exit): Removed.
50433 (grub_stop): Likewise.
50434 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50435 (grub_exit): New function.
50436 (grub_print_device_path): Likewise.
50437
50438 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50439 (grub_enter_rescue_mode): Register "exit".
50440
50441 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50442 (grub_abort): New function.
50443
50444 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50445
50446 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50447
50448 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50449
50450 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50451 (grub_print_device_path): New prototype.
50452 (grub_efi_locate_handle): Likewise.
50453 (grub_efi_open_protocol): Likewise.
50454
50455 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50456 * disk/efi/efidisk.c: Likewise.
50457
50458 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50459
50460 * include/grub/efi/console_control.h
50461 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50462
50463 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50464 last 8 bytes as an array.
50465 (GRUB_EFI_DISK_IO_GUID): New macro.
50466 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50467 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50468 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50469 grub_uint8_t.
50470 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50471 (struct grub_efi_device_path): Rename the member "sub_type" to
50472 "subtype".
50473 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50474 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50475 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50476 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50477 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50478 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50479 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50480 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50481 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50482 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50483 (struct grub_efi_pci_device_path): New structure.
50484 (grub_efi_pci_device_path_t): New type.
50485 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50486 (struct grub_efi_pccard_device_path): New structure.
50487 (grub_efi_pccard_device_path_t): New type.
50488 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50489 (struct grub_efi_memory_mapped_device_path): New structure.
50490 (grub_efi_memory_mapped_device_path_t): New type.
50491 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50492 (struct grub_efi_vendor_device_path): New structure.
50493 (grub_efi_vendor_device_path_t): New type.
50494 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50495 (struct grub_efi_controller_device_path): New structure.
50496 (grub_efi_controller_device_path_t): New type.
50497 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50498 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50499 (struct grub_efi_acpi_device_path): New structure.
50500 (grub_efi_acpi_device_path_t): New type.
50501 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50502 (struct grub_efi_expanded_acpi_device_path): New structure.
50503 (grub_efi_expanded_acpi_device_path_t): New type.
50504 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50505 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50506 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50507 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50508 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50509 (struct grub_efi_atapi_device_path): New structure.
50510 (grub_efi_atapi_device_path_t): New type.
50511 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50512 (struct grub_efi_fibre_channel_device_path): New structure.
50513 (grub_efi_fibre_channel_device_path_t): New type.
50514 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50515 (struct grub_efi_1394_device_path): New structure.
50516 (grub_efi_1394_device_path_t): New type.
50517 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50518 (struct grub_efi_usb_device_path): New structure.
50519 (grub_efi_usb_device_path_t): New type.
50520 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50521 (struct grub_efi_usb_class_device_path): New structure.
50522 (grub_efi_usb_class_device_path_t): New type.
50523 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50524 (struct grub_efi_i2o_device_path): New structure.
50525 (grub_efi_i2o_device_path_t): New type.
50526 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50527 (struct grub_efi_mac_address_device_path): New structure.
50528 (grub_efi_mac_address_device_path_t): New type.
50529 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50530 (struct grub_efi_ipv4_device_path): New structure.
50531 (grub_efi_ipv4_device_path_t): New type.
50532 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50533 (struct grub_efi_ipv6_device_path): New structure.
50534 (grub_efi_ipv6_device_path_t): New type.
50535 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50536 (struct grub_efi_infiniband_device_path): New structure.
50537 (grub_efi_infiniband_device_path_t): New type.
50538 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50539 (struct grub_efi_uart_device_path): New structure.
50540 (grub_efi_uart_device_path_t): New type.
50541 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50542 (struct grub_efi_vendor_messaging_device_path): New structure.
50543 (grub_efi_vendor_messaging_device_path_t): New type.
50544 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50545 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50546 (struct grub_efi_hard_drive_device_path): New structure.
50547 (grub_efi_hard_drive_device_path_t): New type.
50548 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50549 (struct grub_efi_cdrom_device_path): New structure.
50550 (grub_efi_cdrom_device_path_t): New type.
50551 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50552 (struct grub_efi_vendor_media_device_path): New structure.
50553 (grub_efi_vendor_media_device_path_t): New type.
50554 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50555 (struct grub_efi_file_path_device_path): New structure.
50556 (grub_efi_file_path_device_path_t): New type.
50557 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50558 (struct grub_efi_protocol_device_path): New structure.
50559 (grub_efi_protocol_device_path_t): New type.
50560 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50561 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50562 (struct grub_efi_bios_device_path): New structure.
50563 (grub_efi_bios_device_path_t): New type.
50564 (struct grub_efi_disk_io): New structure.
50565 (grub_efi_disk_io_t): New type.
50566 (struct grub_efi_block_io_media): New structure.
50567 (grub_efi_block_io_media_t): New type.
50568 (struct grub_efi_block_io): New structure.
50569 (grub_efi_block_io_t): New type.
50570
50571 * include/grub/misc.h (grub_stop): Removed.
50572 (grub_exit): New prototype.
50573 (grub_abort): Likewise.
50574
50575 * include/grub/disk.h (enum grub_disk_dev_id): Added
50576 GRUB_DISK_DEVICE_EFIDISK_ID.
50577
50578 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50579 disk/efi/efidisk.c.
50580 (kernel_syms.lst): Remove the target if an error occurs.
50581
50582 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50583
50584 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50585 as it was simply too buggy.
50586
50587 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50588
50589 * kern/misc.c (grub_lltoa): New function.
50590 (grub_vsprintf): Added support for the long long suffix,
50591 i.e. "ll".
50592
50593 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50594
50595 * Makefile.in (LDFLAGS): Add variable.
50596 (LD): Remove variable.
50597 * configure.ac: Add -m32 to LDFLAGS.
50598 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50599 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50600 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50601 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50602 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50603 variables.
50604 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50605 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50606 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50607
50608 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50609
50610 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50611 length for unknown glyph.
50612
50613 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50614
50615 Add support for pre-loaded modules into the EFI port.
50616
50617 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50618 completely. Accept one more argument DIR. The caller has changed.
50619
50620 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50621
50622 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50623 (grub_efi_loaded_image_guid): New variable.
50624 (grub_efi_get_loaded_image): New function.
50625 (grub_arch_modules_addr): Likewise.
50626
50627 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50628 prototype.
50629
50630 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50631 (struct grub_efi_loaded_image): New structure.
50632 (grub_efi_loaded_image_t): New type.
50633
50634 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50635
50636 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50637 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50638 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50639
50640 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50641
50642 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50643
50644 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50645
50646 * DISTLIST: Added include/grub/efi/console.h,
50647 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50648 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50649
50650 * include/grub/efi/console.h: New file.
50651 * include/grub/efi/time.h: Likewise.
50652 * include/grub/i386/efi/kernel.h: Likewise.
50653 * kern/efi/init.c: Likewise.
50654 * kern/efi/mm.c: Likewise.
50655 * term/efi/console.c: Likewise.
50656
50657 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50658 (grub_stop): Removed.
50659 (grub_get_rtc): Likewise.
50660 (grub_machine_init): Simply call grub_efi_init.
50661 (grub_machine_fini): Call grub_efi_fini.
50662
50663 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50664 (grub_efi_output_string): Removed.
50665 (grub_efi_stall): New function.
50666 (grub_stop): Likewise.
50667 (grub_get_rtc): Likewise.
50668
50669 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50670 (grub_efi_stall): New prototype.
50671 (grub_efi_allocate_pages): Likewise.
50672 (grub_efi_free_pages): Likewise.
50673 (grub_efi_get_memory_map): Likewise.
50674 (grub_efi_mm_init): Likewise.
50675 (grub_efi_mm_fini): Likewise.
50676 (grub_efi_init): Likewise.
50677 (grub_efi_fini): Likewise.
50678
50679 * include/grub/i386/efi/time.h: Do not include
50680 grub/symbol.h. Include grub/efi/time.h.
50681 (GRUB_TICKS_PER_SECOND): Removed.
50682 (grub_get_rtc): Likewise.
50683
50684 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50685 Added padding. The EFI spec is buggy.
50686 (GRUB_EFI_BLACK): New macro.
50687 (GRUB_EFI_BLUE): Likewise.
50688 (GRUB_EFI_GREEN): Likewise.
50689 (GRUB_EFI_CYAN): Likewise.
50690 (GRUB_EFI_RED): Likewise.
50691 (GRUB_EFI_MAGENTA): Likewise.
50692 (GRUB_EFI_BROWN): Likewise.
50693 (GRUB_EFI_LIGHTGRAY): Likewise.
50694 (GRUB_EFI_BRIGHT): Likewise.
50695 (GRUB_EFI_DARKGRAY): Likewise.
50696 (GRUB_EFI_LIGHTBLUE): Likewise.
50697 (GRUB_EFI_LIGHTGREEN): Likewise.
50698 (GRUB_EFI_LIGHTCYAN): Likewise.
50699 (GRUB_EFI_LIGHTRED): Likewise.
50700 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50701 (GRUB_EFI_YELLOW): Likewise.
50702 (GRUB_EFI_WHITE): Likewise.
50703 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50704 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50705 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50706 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50707 (GRUB_EFI_BACKGROUND_RED): Likewise.
50708 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50709 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50710 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50711 (GRUB_EFI_TEXT_ATTR): Likewise.
50712
50713 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50714 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50715 (kernel_mod_HEADERS): Added efi/time.h.
50716
50717 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50718
50719 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50720 include/grub/efi/api.h, include/grub/efi/console_control.h,
50721 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50722 include/grub/i386/efi/time.h, kern/efi/efi.c,
50723 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50724 and util/i386/efi/grub-mkimage.c.
50725
50726 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50727
50728 * genmk.rb (PModule#rule): Do not export symbols if
50729 #{prefix}_EXPORTS is set to "no".
50730
50731 * conf/i386-efi.mk: New file.
50732 * conf/i386-efi.rmk: Likewise.
50733 * include/grub/efi/api.h: Likewise.
50734 * include/grub/efi/console_control.h: Likewise.
50735 * include/grub/efi/efi.h: Likewise.
50736 * include/grub/efi/pe32.h: Likewise.
50737 * include/grub/i386/efi/time.h: Likewise.
50738 * kern/efi/efi.c: Likewise.
50739 * kern/i386/efi/init.c: Likewise.
50740 * kern/i386/efi/startup.S: Likewise.
50741 * util/i386/efi/grub-mkimage.c: Likewise.
50742
50743 2006-04-17 Marco Gerards <marco@gnu.org>
50744
50745 * include/grub/script.h: Include <grub/parser.h> and
50746 "grub_script.tab.h".
50747 (struct grub_lexer_param): New struct.
50748 (struct grub_parser_param): Likewise.
50749 (grub_script_create_arglist): Pass the state in an argument.
50750 (grub_script_add_arglist): Likewise.
50751 (grub_script_create_cmdline): Likewise.
50752 (grub_script_create_cmdblock): Likewise.
50753 (grub_script_create_cmdif): Likewise.
50754 (grub_script_create_cmdmenu): Likewise.
50755 (grub_script_add_cmd): Likewise.
50756 (grub_script_arg_add): Likewise.
50757 (grub_script_lexer_ref): Likewise.
50758 (grub_script_lexer_deref): Likewise.
50759 (grub_script_lexer_record_start): Likewise.
50760 (grub_script_lexer_record_stop): Likewise.
50761 (grub_script_mem_record): Likewise.
50762 (grub_script_mem_record_stop): Likewise.
50763 (grub_script_malloc): Likewise.
50764 (grub_script_yylex): Likewise.
50765 (grub_script_yyparse): Likewise.
50766 (grub_script_yyerror): Likewise.
50767 (grub_script_yylex): Likewise.
50768 (grub_script_lexer_init): Return the state.
50769
50770 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50771 (grub_script_lexer_done): Likewise.
50772 (grub_script_lexer_getline): Likewise.
50773 (grub_script_lexer_refs): Likewise.
50774 (script): Likewise.
50775 (newscript): Likewise.
50776 (record): Likewise.
50777 (recording): Likewise.
50778 (recordpos): Likewise.
50779 (recordlen): Likewise.
50780 (grub_script_lexer_init): Return the state instead of setting
50781 global variables.
50782 (grub_script_lexer_ref): Use the newly added argument for state
50783 instead of globals.
50784 (grub_script_lexer_deref): Likewise.
50785 (grub_script_lexer_record_start): Likewise.
50786 (grub_script_lexer_record_stop): Likewise.
50787 (recordchar): Likewise.
50788 (nextchar): Likewise.
50789 (grub_script_yylex2): Likewise.
50790 (grub_script_yylex): Likewise.
50791 (grub_script_yyerror): Likewise.
50792
50793 * normal/parser.y (func_mem): Removed variable.
50794 (menu_entry): Likewise.
50795 (err): Likewise.
50796 (%lex-param): New parser option.
50797 (%parse-param): Likewise.
50798 (script): Always return the AST.
50799 (argument): Pass the state around.
50800 (arguments): Likewise.
50801 (grubcmd): Likewise.
50802 (commands): Likewise.
50803 (function): Likewise.
50804 (menuentry): Likewise.
50805 (if_statement): Likewise.
50806 (if): Likewise.
50807
50808 * normal/script.c (grub_script_memused): Removed variable.
50809 (grub_script_parsed): Likewise.
50810 (grub_script_malloc): Added a state argument. Use that instead of
50811 global variables.
50812 (grub_script_mem_record): Likewise.
50813 (grub_script_mem_record_stop): Likewise.
50814 (grub_script_arg_add): Likewise.
50815 (grub_script_add_arglist): Likewise.
50816 (grub_script_create_cmdline): Likewise.
50817 (grub_script_create_cmdif): Likewise.
50818 (grub_script_create_cmdmenu): Likewise.
50819 (grub_script_add_cmd): Likewise.
50820 (grub_script_parse): Setup the state before calling the parser.
50821
50822 2006-04-16 Marco Gerards <marco@gnu.org>
50823
50824 * normal/command.c (grub_command_init): Remove the title command.
50825
50826 * normal/lexer.c (grub_script_yylex): Renamed from this...
50827 (grub_script_yylex2): ... to this.
50828 (grub_script_yylex): New function. Temporary
50829 introduced to filter some tokens.
50830 (grub_script_yyerror): Print a newline.
50831
50832 * normal/main.c (read_config_file): Output information about the
50833 lines that contain errors. Wait for a key after all lines have
50834 been processed. Don't return an empty menu.
50835
50836 * normal/parser.y (func_mem): Don't initialize.
50837 (menu_entry): Likewise.
50838 (err): New variable.
50839 (script): Don't return anything when an error was encountered.
50840 (ws, returns): Removed rules.
50841 (argument): Disabled concatenated variable support.
50842 (arguments): Remove explicit separators.
50843 (grubcmd): Likewise.
50844 (function): Likewise.
50845 (menuentry): Likewise.
50846 (if): Likewise.
50847 (commands): Likewise. Add error handling.
50848
50849 * normal/script.c (grub_script_create_cmdline): If
50850 `grub_script_parsed' is 0, assume the parser encountered an error.
50851
50852 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50853
50854 * configure.ac: Add support for EFI. Fix the typo
50855 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50856
50857 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50858
50859 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50860 foreign multibyte characters should be shown correctly.
50861
50862 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50863
50864 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50865 calculation.
50866 (read_config_file): Made it to close file before returning.
50867
50868 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50869
50870 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50871 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50872 video/i386/pc/vbefill.c.
50873
50874 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50875 video/i386/pc/vbefill.c.
50876
50877 * include/grub/video.h (grub_video_blit_format): New enum.
50878 (grub_video_mode_info): Added new member blit_format.
50879 (grub_video_get_blit_format): New function prototype.
50880
50881 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50882 function prototype.
50883 (grub_video_vbe_map_rgb): Likewise.
50884 (grub_video_vbe_unmap_color): Likewise.
50885
50886 * include/grub/i386/pc/vbeblit.h: New file.
50887
50888 * include/grub/i386/pc/vbefill.h: New file.
50889
50890 * video/video.c (grub_video_get_blit_format): New function.
50891 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50892 (grub_video_vbe_map_rgb): Likewise.
50893 (grub_video_vbe_unmap_color): Likewise.
50894
50895 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50896 optimized fills.
50897 (grub_video_vbe_blit_render_target): Changed to use more optimized
50898 blits.
50899 (grub_video_vbe_setup): Added detection for optimized settings.
50900 (grub_video_vbe_create_render_target): Likewise.
50901
50902 * video/i386/pc/vbeblit.c: New file.
50903
50904 * video/i386/pc/vbefill.c: New file.
50905
50906 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50907
50908 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50909 here...
50910
50911 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50912 parsing to support both hex and dec ranges. If filename was missing
50913 show usage information.
50914
50915 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50916
50917 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50918 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50919
50920 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50921 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50922 (video_mod_SOURCES): Added.
50923 (video_mod_CFLAGS): Likewise.
50924 (video_mod_LDFLAGS): Likewise.
50925 (gfxterm_mod_SOURCES): Likewise.
50926 (gfxterm_mod_CFLAGS): Likewise.
50927 (gfxterm_mod_LDFLAGS): Likewise.
50928 (videotest_mod_SOURCES): Likewise.
50929 (videotest_mod_CFLAGS): Likewise.
50930 (videotest_mod_LDFLAGS): Likewise.
50931 (vesafb_mod_SOURCES): Removed.
50932 (vesafb_mod_CFLAGS): Likewise.
50933 (vesafb_mod_LDFLAGS): Likewise.
50934 (vga_mod_SOURCES): Likewise.
50935 (vga_mod_CFLAGS): Likewise.
50936 (vga_mod_LDFLAGS): Likewise.
50937
50938 * commands/videotest.c: New file.
50939
50940 * font/manager.c (fill_with_default_glyph): Modified to use
50941 grub_font_glyph.
50942 (grub_font_get_glyph): Likewise.
50943 (fontmanager): Renamed from this...
50944 (font_manager): ... to this.
50945
50946 * include/grub/font.h (grub_font_glyph): Added new structure.
50947 (grub_font_get_glyph): Modified to use grub_font_glyph.
50948
50949 * include/grub/misc.h (grub_abs): Added as inline function.
50950
50951 * include/grub/video.h: New file.
50952
50953 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50954 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50955 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50956 (grub_vbe_get_controller_info): Renamed from this...
50957 (grub_vbe_bios_get_controller_info): ... to this.
50958 (grub_vbe_get_mode_info): Renamed from this...
50959 (grub_vbe_bios_get_mode_info): ... to this.
50960 (grub_vbe_set_mode): Renamed from this...
50961 (grub_vbe_bios_set_mode): ... to this.
50962 (grub_vbe_get_mode): Renamed from this...
50963 (grub_vbe_bios_get_mode): ... to this.
50964 (grub_vbe_set_memory_window): Renamed from this...
50965 (grub_vbe_bios_set_memory_window): ... to this.
50966 (grub_vbe_get_memory_window): Renamed from this...
50967 (grub_vbe_bios_get_memory_window): ... to this.
50968 (grub_vbe_set_scanline_length): Renamed from this...
50969 (grub_vbe_set_scanline_length): ... to this.
50970 (grub_vbe_get_scanline_length): Renamed from this...
50971 (grub_vbe_bios_get_scanline_length): ... to this.
50972 (grub_vbe_set_display_start): Renamed from this...
50973 (grub_vbe_bios_set_display_start): ... to this.
50974 (grub_vbe_get_display_start): Renamed from this...
50975 (grub_vbe_bios_get_display_start): ... to this.
50976 (grub_vbe_set_palette_data): Renamed from this...
50977 (grub_vbe_bios_set_palette_data): ... to this.
50978 (grub_vbe_set_pixel_rgb): Removed.
50979 (grub_vbe_set_pixel_index): Likewise.
50980
50981 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50982 from this...
50983 (grub_vbe_bios_get_controller_info): ... to this.
50984 (grub_vbe_get_mode_info): Renamed from this...
50985 (grub_vbe_bios_get_mode_info): ... to this.
50986 (grub_vbe_set_mode): Renamed from this...
50987 (grub_vbe_bios_set_mode): ... to this.
50988 (grub_vbe_get_mode): Renamed from this...
50989 (grub_vbe_bios_get_mode): ... to this.
50990 (grub_vbe_set_memory_window): Renamed from this...
50991 (grub_vbe_bios_set_memory_window): ... to this.
50992 (grub_vbe_get_memory_window): Renamed from this...
50993 (grub_vbe_bios_get_memory_window): ... to this.
50994 (grub_vbe_set_scanline_length): Renamed from this...
50995 (grub_vbe_set_scanline_length): ... to this.
50996 (grub_vbe_get_scanline_length): Renamed from this...
50997 (grub_vbe_bios_get_scanline_length): ... to this.
50998 (grub_vbe_set_display_start): Renamed from this...
50999 (grub_vbe_bios_set_display_start): ... to this.
51000 (grub_vbe_get_display_start): Renamed from this...
51001 (grub_vbe_bios_get_display_start): ... to this.
51002 (grub_vbe_set_palette_data): Renamed from this...
51003 (grub_vbe_bios_set_palette_data): ... to this.
51004 (grub_vbe_bios_get_controller_info): Fixed problem with registers
51005 getting corrupted after calling it. Added more pushes and pops.
51006 (grub_vbe_bios_set_mode): Likewise.
51007 (grub_vbe_bios_get_mode): Likewise.
51008 (grub_vbe_bios_get_memory_window): Likewise.
51009 (grub_vbe_bios_set_scanline_length): Likewise.
51010 (grub_vbe_bios_get_scanline_length): Likewise.
51011 (grub_vbe_bios_get_display_start): Likewise.
51012 (grub_vbe_bios_set_palette_data): Likewise.
51013
51014 * normal/cmdline.c (cl_set_pos): Refresh the screen.
51015 (cl_insert): Likewise.
51016 (cl_delete): Likewise.
51017
51018 * term/gfxterm.c: New file.
51019
51020 * term/i386/pc/vesafb.c: Removed file.
51021
51022 * video/video.c: New file.
51023
51024 * video/i386/pc/vbe.c (real2pm): Added new function.
51025 (grub_video_vbe_draw_pixel): Likewise.
51026 (grub_video_vbe_get_video_ptr): Likewise.
51027 (grub_video_vbe_get_pixel): Likewise
51028 (grub_video_vbe_init): Likewise.
51029 (grub_video_vbe_fini): Likewise.
51030 (grub_video_vbe_setup): Likewise.
51031 (grub_video_vbe_get_info): Likewise.
51032 (grub_video_vbe_set_palette): Likewise.
51033 (grub_video_vbe_get_palette): Likewise.
51034 (grub_video_vbe_set_viewport): Likewise.
51035 (grub_video_vbe_get_viewport): Likewise.
51036 (grub_video_vbe_map_color): Likewise.
51037 (grub_video_vbe_map_rgb): Likewise.
51038 (grub_video_vbe_map_rgba): Likewise.
51039 (grub_video_vbe_unmap_color): Likewise.
51040 (grub_video_vbe_fill_rect): Likewise.
51041 (grub_video_vbe_blit_glyph): Likewise.
51042 (grub_video_vbe_blit_bitmap): Likewise.
51043 (grub_video_vbe_blit_render_target): Likewise.
51044 (grub_video_vbe_scroll): Likewise.
51045 (grub_video_vbe_swap_buffers): Likewise.
51046 (grub_video_vbe_create_render_target): Likewise.
51047 (grub_video_vbe_delete_render_target): Likewise.
51048 (grub_video_vbe_set_active_render_target): Likewise.
51049 (grub_vbe_set_pixel_rgb): Remove function.
51050 (grub_vbe_set_pixel_index): Likewise.
51051 (index_color_mode): Remove static variable.
51052 (active_mode): Likewise.
51053 (framebuffer): Likewise.
51054 (bytes_per_scan_line): Likewise.
51055 (grub_video_vbe_adapter): Added new static variable.
51056 (framebuffer): Likewise.
51057 (render_target): Likewise.
51058 (initial_mode): Likewise.
51059 (mode_in_use): Likewise.
51060 (mode_list): Likewise.
51061
51062 2006-03-10 Marco Gerards <marco@gnu.org>
51063
51064 * configure.ac (AC_INIT): Bumped to 1.93.
51065
51066 * DISTLIST: Added `include/grub/hfs.h'.
51067
51068 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51069
51070 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51071 18H, which might help the BIOS falling back to next boot media.
51072
51073 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51074
51075 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51076 Poe Chen <poe.poechen@gmail.com>.
51077
51078 2006-01-17 Marco Gerards <marco@gnu.org>
51079
51080 * include/grub/normal.h: Include <grub/script.h>.
51081 (grub_command_list): Removed struct.
51082 (grub_command_list_t): Removed type.
51083 (grub_menu_entry): Remove members `num' and `command_list'. Add
51084 members `commands' and `sourcecode'.
51085 * include/grub/script.h: Add inclusion guards.
51086 (grub_script_cmd_menuentry): New struct.
51087 (grub_script_execute_menuentry): New prototype.
51088 (grub_script_lexer_record_start): Likewise.
51089 (grub_script_lexer_record_stop): Likewise.
51090 * normal/execute.c (grub_script_execute_menuentry): New function.
51091 * normal/lexer.c (record, recording, recordpos, recordlen): New
51092 variables.
51093 (grub_script_lexer_record_start): New function.
51094 (grub_script_lexer_record_stop): Likewise.
51095 (recordchar): Likewise.
51096 (nextchar): Likewise.
51097 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51098 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51099 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51100 (current_menu): New variable.
51101 (free_menu): Mainly rewritten.
51102 (grub_normal_menu_addentry): New function.
51103 (read_config_file): Rewritten.
51104 * normal/menu.c (run_menu_entry): Mainly rewritten.
51105 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51106 the menu entry.
51107 (run): Mainly rewritten.
51108 * normal/parser.y (menu_entry): New variable.
51109 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51110 (menuentry): New rule.
51111 (command): Add `menuentry'.
51112 (if_statement): Allow additional returns before `fi'.
51113 * normal/script.c (grub_script_create_cmdmenu): New function.
51114
51115 2006-01-03 Marco Gerards <marco@gnu.org>
51116
51117 * INSTALL: GNU Bison is required.
51118 * configure.ac: Rewritten the test to detect Bison.
51119 * Makefile.in (YACC): New variable. Reported by Xun Sun
51120 <xun.sun.cn@gmail.com>.
51121
51122 2006-01-03 Marco Gerards <marco@gnu.org>
51123
51124 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51125 the HFS+ filesystem to filesystem blocks.
51126 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51127 GCC warning is silenced.
51128
51129 2006-01-03 Marco Gerards <marco@gnu.org>
51130
51131 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51132 read from disk from big endian to host byte order.
51133
51134 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51135
51136 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51137 documentation.
51138 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51139 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51140 embedded HFS+ filesystem.
51141 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51142 (grub_hfs_sblock): Move from here...
51143 * include/grub/hfs.h: To here... New file.
51144 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51145 documentation.
51146 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51147 New macros.
51148 (grub_hfsplus_volheader): Change type of member `magic' to
51149 `grub_uint16_t'.
51150 (grub_hfsplus_data): Add new member `embedded_offset'.
51151 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51152 returned block.
51153 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51154 Calculate the offset.
51155
51156 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51157
51158 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51159 Removed.
51160 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51161
51162 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51163
51164 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51165 ENV->NAME is NULL after allocating ENV->VALUE.
51166
51167 2005-12-25 Marco Gerards <marco@gnu.org>
51168
51169 * kern/env.c (grub_env_set): Rewritten the error handling code.
51170
51171 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51172
51173 * geninit.sh: Made more robust, and more portable.
51174
51175 2005-12-25 Marco Gerards <marco@gnu.org>
51176
51177 Add support for Apple HFS+ filesystems.
51178
51179 * fs/hfsplus.c: New file.
51180
51181 * DISTLIST: Added `fs/hfsplus.c'.
51182
51183 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51184 (hfsplus_mod_SOURCES): New variable.
51185 (hfsplus_mod_CFLAGS): Likewise.
51186 (hfsplus_mod_LDFLAGS): Likewise.
51187 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51188 (grub_setup_SOURCES): Likewise.
51189 (grub_mkdevicemap_SOURCES): Likewise.
51190 (grub_emu_SOURCES): Likewise.
51191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51192
51193 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51194
51195 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51196
51197 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51198
51199 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51200 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51201 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51202 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51203 normal/lexer.c, normal/parser.y, normal/script.c, and
51204 partmap/gpt.c.
51205 Removed kern/sparc64/cache.c.
51206
51207 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51208 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51209 grub_emu_init.c.
51210
51211 * configure.ac (AC_INIT): Bumped to 1.92.
51212
51213 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51214
51215 * kern/err.c (grub_error_push): Added new function to support error
51216 stacks.
51217 (grub_error_pop): Likewise.
51218 (grub_error_stack_items): New local variable to support error stacks.
51219 (grub_error_stack_pos): Likewise.
51220 (grub_error_stack_assert): Likewise.
51221 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51222 stack depth.
51223 (grub_print_error): Added support to print errors from error stack.
51224
51225 * include/grub/err.h (grub_error_push): Added function prototype.
51226 (grub_error_pop): Likewise.
51227
51228 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51229
51230 * configure.ac: Accept `powerpc64' as host_cpu.
51231 (amd64): Rename to `biarch32'.
51232
51233 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51234 non-cacheline-aligned addresses.
51235
51236 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51237 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51238 if `size' is non-zero.
51239
51240 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51241
51242 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51243 and `cd' to make sure the filename is not prefixed with a
51244 directory name.
51245 (pkgdata_MODULES): Add `gpt.mod'.
51246 (gpt_mod_SOURCES): New variable.
51247 (gpt_mod_CFLAGS): Likewise.
51248 (gpt_mod_LDFLAGS): Likewise.
51249
51250 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51251
51252 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51253 New macro.
51254
51255 * partmap/gpt.c: New file.
51256
51257 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51258 GPT partition map is detected.
51259
51260 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51261
51262 * commands/i386/pc/play.c: New file.
51263 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51264 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51265 macros.
51266
51267 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51268
51269 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51270 ((unused))' to silence gcc warning.
51271
51272 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51273
51274 * configure.ac: Correct `AC_PROG_YACC' test.
51275
51276 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51277
51278 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51279 check before installing files.
51280
51281 2005-11-22 Mike Small <smallm@panix.com>
51282
51283 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51284 number regex so multidigit numbers are recognized correctly.
51285
51286 2005-11-22 Mike Small <smallm@panix.com>
51287
51288 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51289 debugging message before attempting to claim memory.
51290 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51291 multiple addresses in case of failure.
51292
51293 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51294
51295 * term/tparm.c (get_space): Remove empty `if' statement.
51296
51297 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51298
51299 * kern/parser.c (check_varstate): Rename `state' to 's'.
51300
51301 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51302
51303 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51304 variable definitions to the beginning of each function. Sort stack
51305 variables by size.
51306 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51307 `buf' argument to `char *'.
51308
51309 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51310
51311 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51312 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51313 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51314 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51315 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51316 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51317 configfile.mod, search.mod, gzio.mod and test.mod.
51318 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51319 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51320 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51321 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51322 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51323 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51324 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51325 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51326 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51327 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51328 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51329 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51330 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51331 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51332 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51333 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51334 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51335 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51336 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51337 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51338 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51339 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51340 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51341
51342 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51343 `grep --include'.
51344 (pkgdata_MODULES): Add test.mod.
51345
51346 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51347
51348 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51349 appending to variables with "+=".
51350 (PModule): Use full pathname to generate *.lst filenames.
51351
51352 * Makefile.in: Fixed list rules moved from genmk.rb.
51353 (.DELETE_ON_ERROR): New special target.
51354 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51355
51356 * conf/i386-pc.rmk: Include conf/common.mk.
51357 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51358 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51359 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51360 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51361 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51362 configfile.mod, search.mod, gzio.mod and test.mod.
51363 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51364 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51365 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51366 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51367 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51368 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51369 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51370 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51371 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51372 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51373 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51374 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51375 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51376 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51377 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51378 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51379 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51380 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51381 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51382 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51383 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51384 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51385 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51386 here...
51387 * conf/common.rmk: ... to here. New file.
51388
51389 * conf/common.mk: New file.
51390
51391 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51392
51393 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51394 (grub_script.tab.c): ... here.
51395
51396 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51397 (grub_script.tab.c): ... here.
51398
51399 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51400 (grub_script.tab.c): ... here.
51401
51402 * normal/command.c (grub_command_find): Fixed a memory leak of
51403 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51404
51405 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51406
51407 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51408 "@" which marks the start of a comment on ARM.
51409 (VARIABLE): Likewise.
51410
51411 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51412
51413 Add support for Linux/ADFS partition tables.
51414
51415 * partmap/acorn.c: New file.
51416
51417 * include/grub/acorn_filecore.h: Likewise.
51418
51419 * DISTLIST: Added `partmap/acorn.c' and
51420 `include/grub/acorn_filecore.h'.
51421
51422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51423 `partmap/acorn.c'.
51424 (pkgdata_MODULES): Add `acorn.mod'.
51425 (acorn_mod_SOURCES): New variable.
51426 (acorn_mod_CFLAGS): Likewise.
51427
51428 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51429 `partmap/acorn.c'.
51430 (pkgdata_MODULES): Add `acorn.mod'.
51431 (acorn_mod_SOURCES): New variable.
51432 (acorn_mod_CFLAGS): Likewise.
51433
51434 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51435 (pkgdata_MODULES): Add `acorn.mod'.
51436 (acorn_mod_SOURCES): New variable.
51437 (acorn_mod_CFLAGS): Likewise.
51438 (acorn_mod_LDFLAGS): Likewise.
51439
51440 * include/types.h (grub_disk_addr_t): New typedef.
51441
51442 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51443
51444 * geninit.sh: New file.
51445
51446 * geninitheader.sh: Likewise.
51447
51448 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51449 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51450 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51451 * commands/configfile.c (grub_configfile_init)
51452 (grub_configfile_fini): Likewise.
51453 * commands/default.c (grub_default_init, grub_default_fini):
51454 Likewise.
51455 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51456 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51457 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51458 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51459 Likewise.
51460 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51461 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51462 Likewise.
51463 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51464 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51465 Likewise.
51466 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51467 Likewise.
51468 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51469 Likewise.
51470 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51471 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51472 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51473 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51474 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51475 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51476 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51477 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51478 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51479 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51480 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51481 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51482 * partmap/amiga.c (grub_amiga_partition_map_init)
51483 (grub_amiga_partition_map_fini): Likewise.
51484 * partmap/apple.c (grub_apple_partition_map_init)
51485 (grub_apple_partition_map_fini): Likewise.
51486 * partmap/pc.c (grub_pc_partition_map_init)
51487 (grub_pc_partition_map_fini): Likewise.
51488 * partmap/sun.c (grub_sun_partition_map_init,
51489 grub_sun_partition_map_fini): Likewise.
51490 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51491 Likewise.
51492
51493 * util/grub-emu.c: Include <grub_modules_init.h>.
51494 (main): Don't initialize and de-initialize any modules directly,
51495 use `grub_init_all' and `grub_fini_all' instead.
51496
51497 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51498 `grub_vesafb_mod_init'.
51499 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51500 all users.
51501 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51502 `grub_vga_mod_init'. Updated all users.
51503 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51504
51505 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51506 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51507 rules.
51508
51509 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51510 Generate a function to initialize the module in utilities.
51511 Updated all callers.
51512 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51513 initialize the module in utilities. Updated all callers.
51514
51515 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51516
51517 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51518 escape sequence and a literal ^L to clear the screen.
51519
51520 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51521 when returning from Open Firmware.
51522
51523 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51524
51525 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51526 (grub_ofconsole_height): Likewise.
51527 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51528 manually insert a '\n'.
51529 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51530 `grub_ofconsole_height'. Return early if these are already set.
51531
51532 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51533
51534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51535 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51536 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51537 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51538 and `normal/script.c'.
51539 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51540 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51541 (test_mod_SOURCES): New variable.
51542 (test_mod_CFLAGS): Likewise.
51543 (test_mod_LDFLAGS): Likewise.
51544 (pkgdata_MODULES): Add `test.mod'.
51545 (grub_script.tab.c): New rule.
51546 (grub_script.tab.h): Likewise.
51547
51548 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51549
51550 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51551 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51552 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51553 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51554 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51555 (test_mod_SOURCES): New variable.
51556 (test_mod_CFLAGS): Likewise.
51557 (pkgdata_MODULES): Add `test.mod'.
51558 (grub_script.tab.c): New rule.
51559 (grub_script.tab.h): Likewise.
51560
51561 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51562
51563 Add initial scripting support.
51564
51565 * commands/test.c: New file.
51566 * include/grub/script.h: Likewise.
51567 * normal/execute.c: Likewise.
51568 * normal/function.c: Likewise.
51569 * normal/lexer.c: Likewise.
51570 * normal/parser.y: Likewise.
51571 * normal/script.c: Likewise.
51572
51573 * configure.ac: Add `AC_PROG_YACC' test.
51574
51575 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51576 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51577 `normal/function.c' and `normal/script.c'.
51578 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51579 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51580 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51581 variables.
51582 (pkgdata_MODULES): Add `test.mod'.
51583 (grub_script.tab.c): New rule.
51584 (grub_script.tab.h): Likewise.
51585
51586 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51587
51588 * include/grub/normal.h (grub_test_init): New prototype.
51589 (grub_test_fini): Likewise.
51590
51591 * normal/command.c: Include <grub/script.h>.
51592 (grub_command_execute): Rewritten.
51593
51594 * util/grub-emu.c (main): Call `grub_test_init' and
51595 `grub_test_fini'.
51596
51597 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51598
51599 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51600 to 0.
51601 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51602 there are no pending characters.
51603
51604 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51605
51606 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51607 `grub_strndup' to drop device arguments. Replace unnecessary
51608 `grub_strndup' with `grub_strdup'.
51609
51610 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51611
51612 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51613 `debug' environment variable has been set.
51614
51615 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51616
51617 * Makefile.in (install-local): Use $(DATA).
51618 (uninstall): Likewise.
51619 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51620 (sbin_UTILITIES): ... to here.
51621 (sbin_SCRIPTS): New variable.
51622 (grub_install_SOURCES): New variable.
51623 * util/powerpc/ieee1275/grub-install.in: New file.
51624 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51625 variable.
51626 (add_segments): Call `grub_util_get_path'.
51627
51628 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51629
51630 From Timothy Baldwin:
51631 * commands/ls.c (grub_ls_list_files): Close FILE with
51632 grub_file_close.
51633 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51634
51635 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51636
51637 * include/grub/parser.h: New file.
51638
51639 * kern/parser.c: Likewise.
51640
51641 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51642 (grub_setup_SOURCES): Likewise.
51643 (grub_probefs_SOURCES): Likewise.
51644 (grub_emu_SOURCES): Likewise.
51645 (kernel_img_HEADERS): Add `parser.h'.
51646
51647 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51648 (grub_emu_SOURCES): Add `kern/parser.c'.
51649 (grubof_SOURCES): Likewise.
51650
51651 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51652 (grubof_SOURCES): Add `kern/parser.c'.
51653
51654 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51655
51656 * kern/misc.c (grub_split_cmdline): Removed function.
51657
51658 * kern/rescue.c: Include <grub/parser.h>.
51659 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51660 of `grub_split_cmdline'.
51661
51662 * normal/command.c: Include <grub/parser.h>.
51663 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51664 of `grub_split_cmdline'.
51665
51666 * normal/completion.c: Include <grub/parser.h>.
51667 (cmdline_state): New variable.
51668 (iterate_dir): End the filename with a quote depending on the
51669 command line state.
51670 (get_state): new function.
51671 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51672 split the arguments and determine the current argument. When the
51673 argument string is not quoted, escape all spaces.
51674
51675 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51676
51677 * normal/sparc64/setjmp.S: New file.
51678
51679 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51680
51681 * include/grub/sparc64/libgcc.h: New file.
51682 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51683 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51684 normal/sparc64/setjmp.c.
51685
51686 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51687
51688 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51689 * kern/sparc64/cache.S: New file.
51690 * kern/sparc64/cache.c: Removed.
51691 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51692 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51693 -mtune=ultrasparc.
51694 (COMMON_LDFLAGS): Add -melf64_sparc.
51695 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51696 (grubof_SOURCES): Use cache.S instead of cache.c.
51697 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51698 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51699 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51700 commented though.
51701 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51702 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51703 (linux_mod_CFLAGS): Commented out.
51704 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51705 out because module isn't built.
51706 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51707 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51708 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51709 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51710 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51711 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51712 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51713 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51714 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51715 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51716 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51717 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51718 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51719 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51720
51721 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51722
51723 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51724 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51725 longer, because HFS should not be used on PC.
51726
51727 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51728
51729 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51730 consistently within the loop.
51731
51732 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51733
51734 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51735 directory can not be read.
51736
51737 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51738
51739 * configure.ac (AC_INIT): Increase the version number to 1.91.
51740
51741 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51742 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51743 term/i386/pc/serial.c.
51744
51745 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51746
51747 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51748 file size must be permitted.
51749
51750 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51751 between %ah and %al.
51752
51753 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51754
51755 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51756 grub_uint64_t.
51757 Call the hook with a NUL-terminated filename.
51758 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51759 grub_cpu_to_be32.
51760
51761 * kern/term.c (cursor_state): New variable.
51762 (grub_term_set_current): Reset the cursor state on a new
51763 terminal.
51764 (grub_setcursor): Rewritten to use CURSOR_STATE.
51765 (grub_getcursor): New function.
51766
51767 * include/grub/term.h (grub_getcursor): New prototype.
51768
51769 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51770 integers on ARM. Reported by Timothy Baldwin
51771 <T.E.Baldwin99@members.leeds.ac.uk>.
51772
51773 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51774
51775 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51776 allocated.
51777 (grub_sfs_dir): Likewise.
51778
51779 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51780
51781 Add support for the SFS filesystem.
51782
51783 * fs/sfs.c: New file.
51784
51785 * DISTLIST: Added `fs/sfs.c'.
51786
51787 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51788 (grub_probefs_SOURCES): Likewise.
51789 (grub_emu_SOURCES): Likewise.
51790 (pkgdata_MODULES): Add `sfs.mod'.
51791 (sfs_mod_SOURCES): New variable.
51792 (sfs_mod_CFLAGS): Likewise.
51793 (sfs_mod_LDFLAGS): Likewise.
51794
51795 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51796 (pkgdata_MODULES): Add `sfs.mod'.
51797 (sfs_mod_SOURCES): New variable.
51798 (sfs_mod_CFLAGS): Likewise.
51799
51800 * util/grub-emu.c (main): Call `grub_sfs_init' and
51801 `grub_sfs_fini'.
51802
51803 * include/grub/fs.h (grub_sfs_init): New prototype.
51804 (grub_sfs_fini): Likewise.
51805
51806 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51807
51808 Add support for the AFFS filesystem.
51809
51810 * fs/affs.c: New file.
51811
51812 * DISTLIST: Added `fs/affs.c'.
51813
51814 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51815 (grub_probefs_SOURCES): Likewise.
51816 (grub_emu_SOURCES): Likewise.
51817 (pkgdata_MODULES): Add `affs.mod'.
51818 (affs_mod_SOURCES): New variable.
51819 (affs_mod_CFLAGS): Likewise.
51820 (affs_mod_LDFLAGS): Likewise.
51821
51822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51823 (pkgdata_MODULES): Add `affs.mod'.
51824 (affs_mod_SOURCES): New variable.
51825 (affs_mod_CFLAGS): Likewise.
51826
51827 * util/grub-emu.c (main): Call `grub_affs_init' and
51828 `grub_affs_fini'.
51829
51830 * include/grub/fs.h (grub_affs_init): New prototype.
51831 (grub_affs_fini): Likewise.
51832
51833 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51834
51835 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51836
51837 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51838
51839 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51840 `-m32' to CFLAGS.
51841
51842 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51843 linking.
51844
51845 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51846 (COMMON_LDFLAGS): New variable.
51847 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51848 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51849 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51850 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51851 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51852 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51853 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51854 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51855 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51856 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51857 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51858 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51859 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51860 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51861 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51862 variables.
51863 (normal_mod_ASFLAGS): Add `-m32'.
51864
51865 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51866 (grub_host_size_t, grub_host_ssize_t): New types.
51867 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51868 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51869 `GRUB_HOST_SIZEOF_VOID_P'.
51870
51871 * include/grub/kernel.h (struct grub_module_header): Type of
51872 member offset changed to `grub_host_off_t'. Type of member size
51873 changed to `grub_host_size_t'.
51874 (struct grub_module_info): Type of member offset changed to
51875 `grub_host_off_t'. Type of member size changed to
51876 `grub_host_size_t'.
51877
51878 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51879
51880 Make GRUB's kernel compliant to Multiboot Specification.
51881
51882 * kern/i386/pc/startup.S (multiboot_header): New label.
51883 (multiboot_entry): Likewise.
51884 (multiboot_trampoline): Likewise.
51885
51886 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51887 Increased to 0x4A0.
51888
51889 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51890 put parentheses after a question mark.
51891 [!GRUB_UTIL] (my_mod): New variable.
51892
51893 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51894
51895 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51896
51897 Adds support for the XFS filesystem. Btrees are not supported
51898 yet.
51899
51900 * fs/xfs.c: New file.
51901
51902 * DISTLIST: Added `fs/xfs.c'.
51903
51904 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51905 (grub_probefs_SOURCES): Likewise.
51906 (grub_emu_SOURCES): Likewise.
51907 (pkgdata_MODULES): Add `xfs.mod'.
51908 (xfs_mod_SOURCES): New variable.
51909 (xfs_mod_CFLAGS): Likewise.
51910
51911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51912 (pkgdata_MODULES): Add `xfs.mod'.
51913 (xfs_mod_SOURCES): New variable.
51914 (xfs_mod_CFLAGS): Likewise.
51915
51916 * util/grub-emu.c (main): Call `grub_xfs_init' and
51917 `grub_xfs_fini'.
51918
51919 * include/grub/fs.h (grub_xfs_init): New prototype.
51920 (grub_xfs_fini): Likewise.
51921
51922
51923 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51924
51925 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51926 color modes, allow greater than 16 colors to be configured as
51927 a default palette.
51928
51929 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51930
51931 * normal/completion.c (complete_arguments): Add the qualifier
51932 const into OPTIONS.
51933
51934 From Omniflux <omniflux+lists@omniflux.com>:
51935 * include/grub/terminfo.h: New file.
51936 * include/grub/tparm.h: Likewise.
51937 * include/grub/i386/pc/serial.h: Likewise.
51938 * term/terminfo.c: Likewise.
51939 * term/tparm.c: Likewise.
51940 * term/i386/pc/serial.c: Likewise.
51941 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51942 serial.mod.
51943 (terminfo_mod_SOURCES): New variable.
51944 (terminfo_mod_CFLAGS): Likewise.
51945 (serial_mod_SOURCES): Likewise.
51946 (serial_mod_CFLAGS): Likewise.
51947
51948 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51949
51950 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51951 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51952 and kern/powerpc/ieee1275/cmain.c, respectively.
51953
51954 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51955 * kern/powerpc/ieee1275/crt0.S: ... here.
51956
51957 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51958 * kern/powerpc/ieee1275/cmain.c: ... here.
51959
51960 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51961 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51962 instead of boot/powerpc/ieee1275/crt0.S and
51963 boot/powerpc/ieee1275/cmain.c, respectively.
51964
51965 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51966 sectors. It was not used anyway.
51967
51968 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51969
51970 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51971 `unused parameter' warning.
51972
51973 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51974
51975 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51976 function.
51977 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51978 getcharwidth.
51979
51980 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51981
51982 * include/grub/normal.h (enum grub_completion_type): Added
51983 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51984
51985 * normal/cmdline.c (print_completion): Handle
51986 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51987 * normal/menu_entry.c (store_completion): Likewise.
51988
51989 * normal/completion.c (complete_arguments): New function.
51990 (grub_normal_do_completion): Call `complete_arguments' when the
51991 current words start with a dash.
51992
51993 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51994
51995 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51996 `gzio.mod' instead of `io.mod').
51997
51998 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51999
52000 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52001 (DISTDIRS): Added io and video.
52002 Rewrite the search routine to make an output consistently.
52003
52004 * DISTLIST: Added conf/sparc64-ieee1275.mk,
52005 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52006 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52007 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52008 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52009 util/powerpc/ieee1275/misc.c.
52010
52011 * include/grub/gzio.h: New file.
52012 * io/gzio.c: Likewise.
52013
52014 * kern/file.c (grub_file_close): Call grub_device_close only if
52015 FILE->DEVICE is not NULL.
52016
52017 * include/grub/mm.h [!NULL] (NULL): New macro.
52018
52019 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52020
52021 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52022 (pkgdata_MODULES): Added gzio.mod.
52023 (gzio_mod_SOURCES): New variable.
52024 (gzio_mod_CFLAGS): Likewise.
52025
52026 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52027 (pkgdata_MODULES): Added gzio.mod.
52028 (gzio_mod_SOURCES): New variable.
52029 (gzio_mod_CFLAGS): Likewise.
52030
52031 * commands/cat.c: Include grub/gzio.h.
52032 (grub_cmd_cat): Use grub_gzfile_open instead of
52033 grub_file_open.
52034
52035 * commands/cmp.c: Include grub/gzio.h.
52036 (grub_cmd_cmp): Use grub_gzfile_open instead of
52037 grub_file_open.
52038
52039 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52040 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52041 grub_file_open.
52042 (grub_rescue_cmd_module): Likewise.
52043
52044 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52045
52046 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52047 kern/sparc64/ieee1275/init.c because it contains _start.
52048 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52049
52050 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52051
52052 * configure.ac: Add support for sparc64 host with ieee1275
52053 firmware.
52054 * configure: Generated from configure.ac.
52055 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52056 instead of int.
52057 (grub_ofdisk_read): Likewise.
52058 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52059 pointers as (void *) to remove a warning.
52060 (grub_ofdisk_close): Likewise.
52061 (grub_ofdisk_read): Likewise.
52062 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52063 returns, so make it return void to remove a warning.
52064 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52065 Corresponding prototype change.
52066 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52067 values, and cast the pointers as (void *) to remove a warning.
52068 (grub_mm_dump): Likewise.
52069 * conf/sparc64-ieee1275.mk: New file.
52070 * conf/sparc64-ieee1275.rmk: Likewise.
52071 * include/grub/sparc64/setjmp.h: Likewise.
52072 * include/grub/sparc64/types.h: Likewise.
52073 * include/grub/sparc64/ieee1275/console.h: Likewise.
52074 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52075 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52076 * include/grub/sparc64/ieee1275/time.h: Likewise.
52077 * kern/sparc64/cache.c: Likewise.
52078 * kern/sparc64/dl.c: Likewise.
52079 * kern/sparc64/ieee1275/init.c: Likewise.
52080 * kern/sparc64/ieee1275/openfw.c: Likewise.
52081
52082 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52083
52084 * util/console.c (grub_ncurses_putchar): If C is greater than
52085 0x7f, set C to a question mark.
52086 (grub_ncurses_getcharwidth): New function.
52087 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52088 getcharwidth.
52089
52090 * normal/menu.c (print_entry): Made aware of Unicode. First,
52091 convert TITLE to UCS-4, and predict the cursor position by
52092 grub_getcharwidth.
52093
52094 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52095 const to SRC.
52096 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52097
52098 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52099
52100 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52101 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52102 grub_strcat.
52103
52104 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52105 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52106 grub_strcpy and grub_strlen. Take it into account that a space
52107 character is inserted as a delimiter.
52108
52109 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52110
52111 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52112 invalid magic in the error.
52113
52114 * commands/search.c: New file.
52115
52116 * util/grub-emu.c (main): Call grub_search_init and
52117 grub_search_fini.
52118
52119 * kern/rescue.c (grub_rescue_print_disks): Removed.
52120 (grub_rescue_print_devices): New function.
52121 (grub_rescue_cmd_ls): Use grub_device_iterate with
52122 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52123 grub_rescue_print_disks.
52124
52125 * kern/partition.c (grub_partition_iterate): Return the result of
52126 PARTMAP->ITERATE instead of GRUB_ERRNO.
52127
52128 * kern/device.c: Include grub/partition.h.
52129 (grub_device_iterate): New function.
52130
52131 * include/grub/partition.h (grub_partition_iterate): Return int
52132 instead of grub_err_t.
52133
52134 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52135 prototype.
52136 [GRUB_UTIL] (grub_search_fini): Likewise.
52137
52138 * include/grub/device.h (grub_device_iterate): New prototype.
52139
52140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52141 commands/search.c.
52142 (pkgdata_MODULES): Added search.mod.
52143 (search_mod_SOURCES): New variable.
52144 (search_mod_CFLAGS): Likewise.
52145
52146 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52147 (pkgdata_MODULES): Added search.mod.
52148 (search_mod_SOURCES): New variable.
52149 (search_mod_CFLAGS): Likewise.
52150
52151 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52152 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52153 All callers changed.
52154
52155 * DISTLIST: Added commands/search.c.
52156
52157 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52158
52159 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52160 conversion.
52161 (grub_getcharwidth): New function.
52162
52163 * kern/misc.c (grub_utf8_to_ucs4): New function.
52164
52165 * include/grub/term.h (struct grub_term): Added a new member
52166 "getcharwidth".
52167 (grub_getcharwidth): New prototype.
52168
52169 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52170
52171 * term/i386/pc/console.c (map_char): New function. Segregated from
52172 grub_console_putchar.
52173 (grub_console_putchar): Use map_char.
52174 (grub_console_getcharwidth): New function.
52175 (grub_console_term): Specified grub_console_getcharwidth as
52176 getcharwidth.
52177
52178 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52179 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52180
52181 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52182 GRUB_ERRNO.
52183 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52184 on grub_strtoul completely.
52185 (write_char): Declare local variables in the beginning of the
52186 function.
52187 (grub_vesafb_getcharwidth): New function.
52188 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52189 getcharwidth.
52190
52191 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52192
52193 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52194 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52195 commands/i386/pc/vbetest.c.
52196
52197 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52198 call grub_vbe_get_controller_info again, because the returned
52199 information is volatile.
52200 (grub_vbe_set_video_mode): Mostly rewritten.
52201 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52202 grub_vbe_status_t correctly.
52203 (grub_vbe_get_video_mode_info): Likewise.
52204 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52205 several if statements.
52206
52207 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52208 * commands/i386/pc/vbeinfo.c: ... this.
52209
52210 * commands/i386/pc/vbe_test.c: Renamed to ...
52211 * commands/i386/pc/vbetest.c: ... this.
52212
52213 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52214 ...
52215 (grub_cmd_vbeinfo): ... this. Save video modes before
52216 iterating. Skip a video mode, if it is not available, not enough
52217 information is given or it is monochrome. Show the memory
52218 model. Leave the interpretation of MODEVAR to grub_strtoul
52219 completely.
52220 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52221 (GRUB_MOD_FINI): Likewise.
52222
52223 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52224 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52225 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52226 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52227 grub_strtoul completely.
52228 (real2pm): Removed.
52229 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52230 (GRUB_MOD_FINI): Likewise.
52231
52232 * normal/misc.c: Include grub/mm.h.
52233
52234 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52235 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52236 (vbe_list_modes_mod_SOURCES): Removed.
52237 (vbe_list_modes_mod_CFLAGS): Likewise.
52238 (vbe_test_mod_SOURCES): Likewise.
52239 (vbe_test_mod_CFLAGS): Likewise.
52240 (vbeinfo_mod_SOURCES): New variable.
52241 (vbeinfo_mod_CFLAGS): Likewise.
52242 (vbetest_mod_SOURCES): Likewise.
52243 (vbetest_mod_CFLAGS): Likewise.
52244
52245 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52246
52247 * normal/misc.c: New file.
52248
52249 * DISTLIST: Added normal/misc.c.
52250
52251 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52252 DISK to HOOK. Call HOOK with DISK.
52253 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52254 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52255 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52256
52257 * normal/menu_entry.c (struct screen): Added a new member
52258 "completion_shown".
52259 (completion_buffer): New global variable.
52260 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52261 (store_completion): New function.
52262 (complete): Likewise.
52263 (clear_completions): Likewise.
52264 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52265 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52266 a tab, call complete.
52267
52268 * normal/completion.c (disk_dev): Removed.
52269 (print_simple_completion): Likewise.
52270 (print_partition_completion): Likewise.
52271 (print_func): New global variable.
52272 (add_completion): Do not take the arguments WHAT or PRINT any
52273 longer. Added a new argument TYPE. Instead of printing directly,
52274 call PRINT_FUNC if not NULL.
52275 All callers changed.
52276 (complete_device): Use a local variable DEV instead of
52277 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52278 (grub_normal_do_completion): Take a new argument HOOK. Do not
52279 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52280 empty string, return NULL instead.
52281 All callers changed.
52282
52283 * normal/cmdline.c (print_completion): New function.
52284
52285 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52286 to HOOK.
52287 All callers changed.
52288
52289 * kern/disk.c (grub_print_partinfo): Removed.
52290
52291 * include/grub/partition.h (struct grub_partition_map): Add a new
52292 argument DISK into HOOK of ITERATE.
52293 (grub_partition_iterate): Add a new argument DISK to HOOK.
52294
52295 * include/grub/normal.h (enum grub_completion_type): New enum.
52296 (grub_completion_type_t): New type.
52297 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52298 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52299 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52300 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52301 (grub_normal_do_completion): Added a new argument HOOK.
52302 (grub_normal_print_device_info): New prototype.
52303
52304 * include/grub/disk.h (grub_print_partinfo): Removed.
52305
52306 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52307 (normal_mod_SOURCES): Likewise.
52308 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52309 (normal_mod_SOURCES): Likewise.
52310
52311 * commands/ls.c (grub_ls_list_disks): Use
52312 grub_normal_print_device_info instead of grub_print_partinfo. Free
52313 PNAME.
52314 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52315 duplicating the code.
52316
52317 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52318
52319 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52320 follow GCS more precisely.
52321 * commands/i386/pc/vbe_test.c: Likewise.
52322 * include/grub/i386/pc/vbe.h: Likewise.
52323 * term/i386/pc/vesafb.c: Likewise.
52324 * video/i386/pc/vbe.c: Likewise.
52325
52326 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52327
52328 * DISTLIST: Added term/i386/pc/vesafb.c
52329 DISTLIST: Added video/i386/pc/vbe.c
52330 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52331 DISTLIST: Added commands/i386/pc/vbe_test.c.
52332 * commands/i386/pc/vbe_list_modes.c: New file.
52333 * commands/i386/pc/vbe_test.c: Likewise.
52334 * term/i386/pc/vesafb.c: Likewise.
52335 * video/i386/pc/vbe.c: Likewise.
52336 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52337 (grub_vbe_probe) Added prototype.
52338 (grub_vbe_set_video_mode) Likewise.
52339 (grub_vbe_get_video_mode) Likewise.
52340 (grub_vbe_get_video_mode_info) Likewise.
52341 (grub_vbe_set_pixel_rgb) Likewise.
52342 (grub_vbe_set_pixel_index) Likewise.
52343 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52344 (pkgdata_MODULES): Added vesafb.mod.
52345 (pkgdata_MODULES): Added vbe_list_modes.mod.
52346 (pkgdata_MODULES): Added vbe_test.mod.
52347 (vbe_mod_SOURCES): Added.
52348 (vbe_mod_CFLAGS): Likewise.
52349 (vesafb_mod_SOURCES): Likewise.
52350 (vesafb_mod_CFLAGS): Likewise.
52351 (vbe_list_modes_mod_SOURCES): Likewise.
52352 (vbe_list_modes_mod_CFLAGS): Likewise.
52353 (vbe_test_mod_SOURCES): Likewise.
52354 (vbe_test_mod_CFLAGS): Likewise.
52355
52356 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52357
52358 * normal/command.c (grub_command_execute): If INTERACTIVE is
52359 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52360 CMDLINE. Disable the pager if INTERACTIVE is true.
52361 All callers are changed.
52362
52363 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52364 before reading a config file.
52365 * normal/main.c (read_config_file): Even if a command is not
52366 found, register it if it is within an entry.
52367
52368 * util/grub-emu.c: Include sys/types.h and unistd.h.
52369 (options): Added --hold.
52370 (struct arguments): Added a new member "hold".
52371 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52372 missing.
52373 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52374 cleared by a debugger, if it is not zero.
52375
52376 * include/grub/normal.h (grub_command_execute): Add an argument
52377 INTERACTIVE.
52378
52379 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52380
52381 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52382
52383 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52384
52385 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52386 program with another one, because the old one didn't detect a bug
52387 in gcc-3.4. Always use regparm 2, because the new test is still
52388 not enough for gcc-4.0. Someone must investigate a simple test
52389 case which detects a bug in gcc-4.0.
52390
52391 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52392
52393 * DISTLIST: Added normal/completion.c.
52394
52395 * normal/completion.c: New file.
52396
52397 * term/i386/pc/console.c (grub_console_getwh): New function.
52398 (grub_console_term): Assign grub_console_getwh to getwh.
52399
52400 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52401 function is defined in normal/completion.c as
52402 grub_normal_do_completion.
52403 (grub_cmdline_get): Use grub_normal_do_completion instead of
52404 grub_tab_complete.
52405
52406 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52407 returns non-zero, otherwise return 0.
52408 (grub_partition_iterate): First, probe the partition map. Then,
52409 call ITERATE only for this partition map.
52410
52411 * kern/misc.c (grub_strncmp): Rewritten.
52412
52413 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52414 returns non-zero. Otherwise return 0.
52415
52416 * include/grub/partition.h (grub_partition_map_iterate): Return
52417 int instead of void.
52418
52419 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52420
52421 * include/grub/misc.h (grub_strncmp): Change the type of N to
52422 grub_size_t.
52423
52424 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52425 of void.
52426
52427 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52428 unsigned explicitly before comparing it with I.
52429
52430 * kern/main.c (grub_env_write_root): Add the attribute unused into
52431 VAR.
52432
52433 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52434 normal/completion.c.
52435 (normal_mod_SOURCES): Likewise.
52436 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52437 (normal_mod_SOURCES): Likewise.
52438
52439 * normal/command.c (grub_iterate_commands): If ITERATE returns
52440 non-zero, return one immediately.
52441
52442 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52443
52444 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52445 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52446 descriptions.
52447 (grub_vbe_get_controller_info): New function.
52448 (grub_vbe_get_mode_info): Likewise.
52449 (grub_vbe_set_mode): Likewise.
52450 (grub_vbe_get_mode): Likewise.
52451 (grub_vbe_set_memory_window): Likewise.
52452 (grub_vbe_get_memory_window): Likewise.
52453 (grub_vbe_set_scanline_length): Likewise.
52454 (grub_vbe_get_scanline_length): Likewise.
52455 (grub_vbe_set_display_start): Likewise.
52456 (grub_vbe_get_display_start): Likewise.
52457 (grub_vbe_set_palette_data): Likewise.
52458 * include/grub/i386/pc/vbe.h: New file.
52459
52460 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52461
52462 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52463 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52464 * DISTLIST: Likewise.
52465 * kern/ieee1275/of.c: Moved to ...
52466 * kern/ieee1275/ieee1275.c: ... here.
52467
52468 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52469
52470 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52471 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52472 Pass 0 as `end' parameter to grub_strtoul().
52473
52474 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52475
52476 * include/grub/powerpc/ieee1275/console.h: Do not include
52477 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52478 ifdef.
52479 (grub_console_cur_color): Remove i386-specific prototype.
52480 (grub_console_real_putchar): Likewise.
52481 (grub_console_checkkey): Likewise.
52482 (grub_console_getkey): Likewise.
52483 (grub_console_getxy): Likewise.
52484 (grub_console_gotoxy): Likewise.
52485 (grub_console_cls): Likewise.
52486 (grub_console_setcursor): Likewise.
52487 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52488 Include <grub/machine/console.h>.
52489 * term/ieee1275/ofconsole.c: Likewise.
52490
52491 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52492
52493 * Makefile.in (LIBLZO): New variable.
52494
52495 * configure.ac: Check for LZO version 2.
52496
52497 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52498 lzo/lzo1x.h instead of lzo1x.h.
52499
52500 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52501 of -llzo.
52502
52503 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52504 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52505
52506 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52507 copying the data from PARTITION to P.
52508
52509 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52510
52511 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52512 negative, unload the module.
52513
52514 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52515 map is "pc_partition_map" but not "pc".
52516 (usage): Fix the description. The options are --boot-image and
52517 --core-image but not --boot-file or --core-file.
52518 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52519 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52520 DEFAULT_DIRECTORY.
52521
52522 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52523 --core-file. Specify INSTALL_DEVICE as an argument.
52524
52525 * util/console.c: Include config.h.
52526 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52527 [HAVE_NCURSES_H]: Include ncurses.h.
52528 [HAVE_CURSES_H]: Include curses.h.
52529 [!A_NORMAL] (A_NORMAL): Defined as zero.
52530 [!A_STANDOUT] (A_STANDOUT): Likewise.
52531
52532 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52533 -lncurses.
52534 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52535
52536 * configure.ac: Check for curses libraries and headers.
52537
52538 * Makefile.in (LIBCURSES): New variable.
52539
52540 * genmk.rb (Script::rule): Set the executable bits.
52541
52542 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52543 name of the PC partition map is "pc_partition_map" but not "pc".
52544
52545 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52546
52547 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52548 (modules): Likewise.
52549 (usage): Added descriptions for --modules and --grub-probefs.
52550 Handle --modules and --grub-probefs. Save the arguments in MODULES
52551 and GRUB_PROBEFS, respectively.
52552 Auto-detect a filesystem module against GRUBDIR. If the result is
52553 empty and modules are not specified explicitly, abort the
52554 installation. Add the result to MODULES.
52555
52556 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52557 disk/powerpc/ieee1275/ofdisk.c,
52558 include/grub/powerpc/ieee1275/init.h and
52559 term/powerpc/ieee1275/ofconsole.c.
52560 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52561 term/ieee1275/ofconsole.c.
52562
52563 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52564
52565 * COPYING: Upgraded to the latest version. Only the address of the
52566 FSF office has changed.
52567
52568 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52569
52570 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52571 kern/ieee1275.c with kern/ieee1275/of.c.
52572
52573 * kern/ieee1275.c: Moved to ...
52574 * kern/ieee1275/of.c: ... here.
52575
52576 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52577
52578 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52579 readability.
52580
52581 * config.guess: Updated to the latest version from gnulib.
52582 * config.sub: Likewise.
52583 * install.sh: Likewise.
52584 * mkinstalldirs: Likewise.
52585
52586 * include/grub/console.h: Removed. This file is arch-specific. Do
52587 not put this in include/grub.
52588
52589 * include/grub/i386/pc/console.h: Resurrected.
52590
52591 * util/console.c: Include grub/machine/console.h instead of
52592 grub/console.h.
52593 * util/grub-emu.c: Likewise.
52594
52595 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52596
52597 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52598 hardcoded value.
52599
52600 From Vincent Pelletier <subdino2004@yahoo.fr>
52601 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52602 Redefined to use grub_getwh.
52603 (grub_term): New member named getwh.
52604 (grub_getwh): New prototype.
52605 * kern/term.c (grub_getwh): New function.
52606 * term/i386/pc/console.c (grub_console_getwh): New function.
52607 (grub_console_term): New member `getwh'.
52608 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52609 (grub_vga_term): New member `getwh'.
52610 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52611 grub_ssize_t.
52612 (grub_ofconsole_getw): New function.
52613 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52614 (grub_ofconsole_term): New field named getwh and new initial
52615 value.
52616
52617 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52618
52619 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52620 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52621 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52622 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52623 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52624 of <grub/machine/ieee1275.h>.
52625 * commands/ieee1275/reboot.c: Likewise.
52626 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52627 * kern/ieee1275.c: ... to here. All users updated. Change all
52628 parameter structs to use new type `grub_ieee1275_cell_t'.
52629 * term/powerpc/ieee1275/ofconsole.c: Move ...
52630 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52631 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52632 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52633 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52634 to return int.
52635 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52636 Remove unused prototypes. All users updated.
52637 * include/grub/powerpc/ieee1275/console.h: Removed.
52638 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52639 `grub_ieee1275_cell_t'.
52640 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52641 Cast comparisons with -1 to the correct type.
52642 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52643 type to match `grub_ieee1275_entry_fn'.
52644
52645 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52646
52647 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52648
52649 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52650 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52651 partmap/sun.c.
52652 (grub_probefs_SOURCES): New variable.
52653
52654 * util/i386/pc/grub-probefs.c: New file.
52655
52656 * util/i386/pc/grub-setup.c (main): Call
52657 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52658 grub_hfs_init and grub_jfs_init to initialize the system. Call
52659 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52660 grub_pc_partition_map_fini to finish the system.
52661
52662 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52663
52664 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52665 function.
52666 (grub_multiboot_load_elf32): Likewise.
52667 (grub_multiboot_is_elf64): Likewise.
52668 (grub_multiboot_load_elf64): Likewise.
52669 (grub_multiboot_load_elf): Likewise.
52670 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52671 an ELF32 or ELF64 file.
52672 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52673
52674 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52675 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52676 NULL before calling FS->LABEL.
52677 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52678 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52679 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52680 before calling FS->LABEL.
52681
52682 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52683
52684 * util/i386/pc/grub-install.in (datadir): New variable.
52685 (libdir): Removed.
52686 (pkgdatadir): New variable.
52687 (pkglibdir): Removed.
52688
52689 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52690
52691 * DISTLIST: Added util/i386/pc/grub-install.in.
52692
52693 * util/i386/pc/grub-install.in: New file.
52694
52695 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52696 (grub_install_SOURCES): Likewise.
52697
52698 * genmk.rb: Added support for scripts.
52699 (Script): New class.
52700 (scripts): New variable.
52701
52702 * Makefile.in (install-local): Install sbin_SCRIPTS by
52703 INSTALL_SCRIPT.
52704 (uninstall): Remove sbin_SCRIPTS.
52705
52706 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52707 device, try to get a GRUB device by
52708 grub_util_biosdisk_get_grub_dev.
52709 Free DEST_DEV.
52710
52711 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52712 description for --device-map.
52713
52714 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52715
52716 Change the semantics of variable hooks. They now return strings
52717 instead of error values.
52718
52719 * util/i386/pc/grub-setup.c: Include grub/env.h.
52720 (setup): Use grub_device_set_root instead of grub_env_set.
52721
52722 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52723 grub_env_get instead of grub_device_set_root and
52724 grub_device_get_root, respectively.
52725
52726 * kern/main.c (grub_env_write_root): New function.
52727 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52728 grub_env_set instead of grub_device_set_root.
52729
52730 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52731 many variables.
52732 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52733 rather than calling ENV->WRITE_HOOK afterwards.
52734 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52735 passing a pointer of a pointer.
52736 (grub_register_variable_hook): Change the types of "read_hook" and
52737 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52738 respectively.
52739 Allocate the default empty string on the heap, because this string
52740 may be freed later.
52741
52742 * kern/device.c: Include grub/env.h.
52743 (grub_device_set_root): Removed.
52744 (grub_device_get_root): Likewise.
52745 (grub_device_open): Use grub_env_get instead of
52746 grub_device_get_root.
52747
52748 * include/grub/env.h (grub_env_read_hook_t): New type.
52749 (grub_env_write_hook_t): Likewise.
52750 (grub_env_var): Change the types of "read_hook" and "write_hook"
52751 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52752 (grub_register_variable_hook): Likewise.
52753
52754 * include/grub/device.h (grub_device_set_root): Removed.
52755 (grub_device_set_root): Likewise.
52756
52757 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52758 make sure that DIRNAME terminates with '/', so that
52759 grub_fat_find_dir will fail if PATH is not a directory.
52760
52761 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52762 from DIRNAME.
52763 Use the qualifier auto for print_files and print_files_long.
52764 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52765 as a regular file.
52766 Put a newline only if there is no error.
52767 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52768 used.
52769
52770 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52771
52772 * kern/partition.c (grub_partition_probe): Initialize PART to
52773 NULL. Otherwise, when no partition map is registered, this returns
52774 a garbage.
52775
52776 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52777
52778 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52779 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52780 valid.
52781
52782 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52783
52784 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52785 information on each device, if it does not have partitions. Print
52786 "Device" instead of "Disk", because this function is not specific
52787 to disk devices.
52788
52789 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52790 static to ensure that it is put on the memory rather than a
52791 register.
52792
52793 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52794
52795 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52796 (grub_cat_init): Likewise.
52797 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52798 (options): Likewise.
52799 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52800 (grub_configfile_init): Likewise.
52801 * font/manager.c (GRUB_MOD_INIT): Likewise.
52802 * commands/help.c (GRUB_MOD_INIT): Likewise.
52803 (grub_help_init): Likewise.
52804 * normal/command.c (grub_command_init): Likewise.
52805 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52806 * disk/loopback.c (grub_loop_init): Likewise.
52807 (GRUB_MOD_INIT): Likewise.
52808 * commands/ls.c (grub_ls_init): Likewise.
52809 (GRUB_MOD_INIT): Likewise.
52810 (options): Likewise.
52811 * commands/boot.c (grub_boot_init): Likewise.
52812 (GRUB_MOD_INIT): Likewise.
52813 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52814 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52815 (GRUB_MOD_INIT): Likewise.
52816 * commands/cmp.c (grub_cmp_init): Likewise.
52817 (GRUB_MOD_INIT): Likewise.
52818
52819 * normal/arg.c: Use <> instead of "" to include header files.
52820 (SHORT_ARG_HELP): New macro.
52821 (SHORT_ARG_USAGE): Likewise.
52822 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52823 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52824 descriptions.
52825 (find_short): Check if C is 'h' or 'u' explicitly.
52826 (grub_arg_show_help): Use space characters instead of tabs. Treat
52827 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52828 are shown with --help and --usage only if they are not used for
52829 the command itself.
52830 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52831 'h' and 'u'.
52832
52833 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52834 const into "longarg". Change the type of "shortarg" to int.
52835
52836 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52837
52838 * boot/i386/pc/boot.S (boot_drive_check): New label.
52839
52840 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52841 macro.
52842
52843 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52844 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52845
52846 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52847
52848 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52849 When turning off Gate A20, skip the check and return immediately,
52850 because this is not fatal usually.
52851
52852 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52853
52854 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52855 be 0x7C00 instead of 0x8000.
52856
52857 * boot/i386/pc/pxeboot.S: Rewritten.
52858
52859 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52860 EXT_C.
52861 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52862 result.
52863
52864 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52865
52866 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52867 robustness. This routine now supports a BIOS call and System
52868 Control Port A to modify the gate A20.
52869
52870 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52871 Increased to 0x440.
52872
52873 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52874
52875 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52876 device path and resulting ihandle.
52877 (grub_ofdisk_close): dprintf the ihandle being closed.
52878 (grub_ofdisk_read): dprintf function parameters.
52879 * kern/mm.c (grub_mm_init_region): Likewise.
52880 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52881 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52882 size, and boot arguments.
52883 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52884 before loading into memory.
52885 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52886 before loading into memory.
52887
52888 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52889
52890 * kern/mm.c: Added much documentation.
52891 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52892 8, set to 5 instead of 8.
52893
52894 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52895
52896 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52897
52898 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52899 (grub_mkdevicemap_SOURCES): New variable.
52900
52901 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52902 lib/device.c of GRUB Legacy.
52903
52904 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52905
52906 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52907 instead of PATH is NULL.
52908
52909 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52910
52911 * commands/cmp.c (BUFFER_SIZE): New macro.
52912 (grub_cmd_cmp): Close the right file at the right time. Compare
52913 only data just read. Don't report files of different size as
52914 identical. Dynamically allocate buffers. Move variable
52915 declarations at the beginning of function.
52916
52917 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52918
52919 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52920 reverse.
52921
52922 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52923
52924 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52925 when backspace is pressed at beginning of line.
52926
52927 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52928
52929 * DISTLIST: Added genfslist.sh.
52930
52931 * normal/main.c (fs_module_list): New variable.
52932 (autoload_fs_module): New function.
52933 (read_fs_list): Likewise.
52934 (grub_normal_execute): Call read_fs_list.
52935
52936 * kern/fs.c (grub_fs_autoload_hook): New variable.
52937 (grub_fs_probe): Added support for auto-loading.
52938
52939 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52940 (grub_fs_module_list_t): New type.
52941
52942 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52943 (grub_fs_autoload_hook): New prototype.
52944
52945 * genfslist.sh: New file.
52946
52947 * genmk.rb: Added a rule to generate a filesystem list.
52948
52949 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52950
52951 * configure.ac: Fix the test for cross-compiling.
52952
52953 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52954 define GRUB_UTIL anymore.
52955
52956 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52957 so this function works on other systems than just big endian.
52958 (load_modules): Likewise.
52959 (add_segments): Likewise.
52960
52961 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52962
52963 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52964 contains `l' modifier, get a long from va_arg().
52965
52966 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52967
52968 * kern/mm.c (grub_free): If the next free block which is being
52969 merged is the first free block, set the first block to the block
52970 being freed.
52971 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52972
52973 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52974
52975 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52976 `grub_ieee1275_chosen'.
52977
52978 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52979
52980 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52981 (grub_ieee1275_chosen): New variable.
52982 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52983 `chosen'.
52984 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52985 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52986 Rename first argument to `phandle' for consistency.
52987 (grub_ieee1275_get_property_length): Likewise.
52988 (grub_ieee1275_next_property): Likewise. Change type of first argument
52989 to grub_ieee1275_phandle_t.
52990 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52991 Move export next to declaration.
52992 (grub_ieee1275_chosen): New variable.
52993 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52994 Correct cosmetic typo.
52995 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52996 `grub_ieee1275_chosen'.
52997 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52998 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52999 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53000 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53001 `grub_ieee1275_chosen'.
53002
53003 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
53004
53005 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53006 /chosen/bootargs.
53007 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53008 /chosen/bootargs as "variable=value" pairs.
53009
53010 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
53011
53012 * include/grub/misc.h (grub_dprintf): New macro.
53013 (grub_real_dprintf): New prototype.
53014 (grub_strword): Likewise.
53015 (grub_iswordseparator): Likewise.
53016 * kern/misc.c (grub_real_dprintf): New function.
53017 (grub_strword): Likewise.
53018 (grub_iswordseparator): Likewise.
53019
53020 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
53021
53022 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53023 (roundup): Remove macro.
53024 (grub_ieee1275_flags): Make static.
53025 (grub_ieee1275_realmode): Remove.
53026 (grub_ieee1275_test_flag): New function.
53027 (grub_ieee1275_set_flag): Likewise.
53028 (find_options): Rename to `grub_ieee1275_find_options'; update
53029 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53030 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53031 (cmain): New prototype.
53032 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53033 `grub_ieee1275_flags' directly.
53034 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53035 machine/biosdisk.h.
53036 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53037 Don't include grub/machine/init.h.
53038 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53039 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53040 Remove prototype.
53041 (grub_ieee1275_realmode): Likewise.
53042 (grub_ieee1275_flag): New enum.
53043 (grub_ieee1275_test_flag): New prototype.
53044 (grub_ieee1275_set_flag): New prototype.
53045 * include/grub/powerpc/ieee1275/init.h: Remove file.
53046 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53047 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53048 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53049 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53050 comment.
53051 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53052 `grub_ieee1275_test_flag'.
53053 (grub_ieee1275_encode_devname): Likewise.
53054
53055 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53056
53057 * include/grub/powerpc/ieee1275/ieee1275.h
53058 (grub_ieee1275_encode_devname): New prototype.
53059 (grub_ieee1275_get_filename): Likewise.
53060 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53061 function.
53062 (grub_set_prefix): Likewise.
53063 (grub_machine_init): Call grub_set_prefix.
53064 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53065 (grub_parse_type): New enum.
53066 (grub_ieee1275_get_devargs): New function.
53067 (grub_ieee1275_get_devname): Likewise.
53068 (grub_ieee1275_parse_args): Likewise.
53069 (grub_ieee1275_get_filename): Likewise.
53070 (grub_ieee1275_encode_devname): Likewise.
53071
53072 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53073
53074 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53075 `grub_loader_unset'.
53076
53077 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53078
53079 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53080 instead of grub_ieee1275_interpret.
53081 (grub_halt_init): New function.
53082 (grub_halt_fini): Likewise.
53083 (GRUB_MOD_INIT): Correct message grammar.
53084 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53085 instead of grub_ieee1275_interpret.
53086 (grub_reboot_init): New function.
53087 (grub_reboot_fini): Likewise.
53088 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53089 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53090 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53091 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53092 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53093 function.
53094 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53095 Add prototype.
53096 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53097 prototype.
53098 (grub_halt): Likewise.
53099 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53100 (cmain): Remove __attribute__((unused)).
53101 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53102 (grub_heap_len): Likewise.
53103 (grub_machine_fini): New function.
53104 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53105 (grub_halt): Likewise.
53106 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53107 function.
53108 * util/powerpc/ieee1275/misc.c: New file.
53109
53110 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53111
53112 * DISTLIST: New file.
53113 * gendistlist.sh: Likewise.
53114
53115 * Makefile.in (COMMON_DISTFILES): Removed.
53116 (BOOT_DISTFILES): Likewise.
53117 (CONF_DISTFILES): Likewise.
53118 (DISK_DISTFILES): Likewise.
53119 (FS_DISTFILES): Likewise.
53120 (INCLUDE_DISTFILES): Likewise.
53121 (KERN_DISTFILES): Likewise.
53122 (LOADER_DISTFILES): Likewise.
53123 (TERM_DISTFILES): Likewise.
53124 (UTIL_DISTFILES): Likewise.
53125 (DISTFILES): Likewise.
53126 (uninstall): Uninstall files in $(pkgdata_DATA).
53127 (DISTLIST): New target.
53128 (distdir): Use the contents of the file DISTLIST to get a list of
53129 distributed files.
53130
53131 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53132
53133 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53134 descriptor. This is ported from GRUB Legacy.
53135
53136 * gencmdlist.sh: Added an extra semicolon to make it work with
53137 old sed versions. Reported by Robert Bihlmeyer
53138 <robbe@orcus.priv.at>.
53139
53140 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53141
53142 Automatic loading of commands is supported.
53143
53144 * normal/main.c (read_command_list): New function.
53145 (grub_normal_execute): Call read_command_list.
53146
53147 * normal/command.c (grub_register_command): Return zero or CMD.
53148 Allocate CMD->NAME from the heap.
53149 Initialize CMD->MODULE_NAME to zero.
53150 Find the same name as well. If the same command is found and it is
53151 a dummy command, overwrite members. If it is not a dummy command,
53152 return zero.
53153 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53154 (grub_command_find): If a dummy command is found, load a module
53155 and retry to find a command only once.
53156
53157 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53158 make sure that each command is loaded.
53159
53160 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53161 macro.
53162 (struct grub_command): Remove const from the member `name'.
53163 Add a new member `module_name'.
53164 (grub_register_command): Return grub_command_t.
53165
53166 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53167 sure that each command is loaded.
53168
53169 * genmk.rb (PModule::rule): Specify a module name without the
53170 suffix ".mod" to gencmdlist.sh.
53171
53172 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53173
53174 * gencmdlist.sh: New file.
53175
53176 * genmk.rb (PModule::rule): Generate a rule for a command list.
53177 Clean command.lst.
53178 Generate command.lst from $(COMMANDFILES).
53179
53180 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53181 (DATA): Added $(pkgdata_DATA).
53182 (install-local): Install files in $(pkgdata_DATA).
53183
53184 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53185
53186 * term/i386/pc/vga.c (debug_command): Removed.
53187 (GRUB_MOD_INIT): Do not register the command "debug".
53188
53189 From Hollis Blanchard:
53190 * commands/configfile.c: New file.
53191 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53192 commands/configfile.c.
53193 (pkgdata_MODULES): Added configfile.mod.
53194 (configfile_mod_SOURCES): New variable.
53195 (configfile_mod_CFLAGS): Likewise.
53196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53197 commands/configfile.c.
53198 (pkgdata_MODULES): Added configfile.mod.
53199 (configfile_mod_SOURCES): New variable.
53200 (configfile_mod_CFLAGS): Likewise.
53201 * util/grub-emu.c (main): Call grub_configfile_init and
53202 grub_configfile_fini.
53203 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53204 prototype.
53205 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53206
53207 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53208
53209 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53210 address.
53211
53212 * commands/help.c (grub_cmd_help): Do not print newlines after
53213 the last command in print_command_help.
53214
53215 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53216
53217 * commands/default.h: New file.
53218 * commands/timeout.h: Likewise.
53219 * normal/context.c: Likewise.
53220
53221 * util/misc.c: Do not include sys/times.h.
53222 Include sys/time.h and grub/machine/time.h.
53223 (grub_get_rtc): Rewritten with gettimeofday.
53224
53225 * util/grub-emu.c (main): Call grub_default_init and
53226 grub_timeout_init before grub_normal_init, and call
53227 grub_timeout_fini and grub_default_fini after grub_main.
53228
53229 * util/console.c (grub_ncurses_checkkey): Return the read
53230 character or -1.
53231
53232 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53233 timeouts.
53234
53235 * normal/main.c (read_config_file): Push MENU. If this fails,
53236 print an error and wait for a user input.
53237 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53238 If a menu is empty or an error occurs, pop MENU.
53239 (grub_normal_execute): Pop and free MENU after grub_menu_run
53240 returns.
53241
53242 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53243
53244 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53245 include time.h.
53246 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53247 without GRUB_UTIL.
53248 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53249 time.h.
53250 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53251 without GRUB_UTIL.
53252
53253 * include/grub/normal.h (struct grub_menu_list): New struct.
53254 (grub_menu_list_t): New type.
53255 (struct grub_context): New struct.
53256 (grub_context_t): New type.
53257 (grub_register_command): Got rid of EXPORT_FUNC.
53258 (grub_unregister_command): Likewise.
53259 (grub_context_get): New prototype.
53260 (grub_context_get_current_menu): Likewise.
53261 (grub_context_push_menu): Likewise.
53262 (grub_context_pop_menu): Likewise.
53263 [GRUB_UTIL] (grub_default_init): Likewise.
53264 [GRUB_UTIL] (grub_default_fini): Likewise.
53265 [GRUB_UTIL] (grub_timeout_init): Likewise.
53266 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53267
53268 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53269 commands/timeout.c and normal/context.c.
53270 (pkgdata_MODULES): Added default.mod and timeout.mod.
53271 (normal_mod_SOURCES): Added normal/context.c.
53272 (default_mod_SOURCES): New variable.
53273 (default_mod_CFLAGS): Likewise.
53274 (timeout_mod_SOURCES): Likewise.
53275 (timeout_mod_CFLAGS): Likewise.
53276 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53277 conf/i386-pc.rmk.
53278 (pkgdata_MODULES): Added default.mod and timeout.mod.
53279 (normal_mod_SOURCES): Added normal/context.c.
53280 (default_mod_SOURCES): New variable.
53281 (default_mod_CFLAGS): Likewise.
53282 (timeout_mod_SOURCES): Likewise.
53283 (timeout_mod_CFLAGS): Likewise.
53284
53285 * Makefile.in (all-local): Added $(MKFILES).
53286
53287 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53288
53289 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53290 (grub_emu_SOURCES): Likewise.
53291 (pkgdata_MODULES): Add `sun.mod'.
53292 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53294 `partmap/sun.c'.
53295 (pkgdata_MODULES): Add `sun.mod'.
53296 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53297 * include/grub/partition.h (grub_sun_partition_map_init): New
53298 prototype.
53299 (grub_sun_partition_map_fini): Likewise.
53300 * partmap/sun.c: New file.
53301 * util/grub-emu.c (main): Initialize and de-initialize the sun
53302 partitionmap support.
53303
53304 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53305
53306 This implements an Emacs-like menu entry editor.
53307
53308 * normal/menu_entry.c: New file.
53309
53310 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53311 characters to ASCII.
53312 (saved_char): New variable.
53313 (grub_ncurses_checkkey): Rewritten completely.
53314 (grub_ncurses_getkey): Likewise.
53315 (grub_ncurses_init): Call raw instead of cbreak.
53316
53317 * normal/menu.c (print_entry): Do not put a space.
53318 (init_page): Renamed to ...
53319 (grub_menu_init_page): ... this. All callers changed.
53320 (edit_menu_entry): Removed.
53321 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53322
53323 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53324
53325 * kern/misc.c (grub_vprintf): Call grub_refresh.
53326
53327 * normal/menu.c (DISP_LEFT): Renamed to ...
53328 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53329 * normal/menu.c (DISP_UP): Renamed to ...
53330 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53331 * normal/menu.c (DISP_RIGHT): Renamed to ...
53332 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53333 * normal/menu.c (DISP_DOWN): Renamed to ...
53334 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53335 * normal/menu.c (DISP_HLINE): Renamed to ...
53336 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53337 * normal/menu.c (DISP_VLINE): Renamed to ...
53338 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53339 * normal/menu.c (DISP_UL): Renamed to ...
53340 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53341 * normal/menu.c (DISP_UR): Renamed to ...
53342 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53343 * normal/menu.c (DISP_LL): Renamed to ...
53344 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53345 * normal/menu.c (DISP_LR): Renamed to ...
53346 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53347 * normal/menu.c (TERM_WIDTH): Renamed to ...
53348 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53349 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53350 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53351 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53352 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53353 * normal/menu.c (TERM_MARGIN): Renamed to ...
53354 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53355 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53356 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53357 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53358 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53359 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53360 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53361 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53362 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53363 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53364 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53365 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53366 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53367 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53368 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53369 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53370 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53371 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53372 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53373 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53374 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53375 All callers changed.
53376
53377 * include/grub/normal.h: New prototype.
53378
53379 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53380 normal/menu_entry.c.
53381 (normal_mod_SOURCES): Likewise.
53382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53383 (normal_mod_SOURCES): Likewise.
53384
53385 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53386
53387 * include/grub/normal.h (grub_halt_init): New prototype.
53388 (grub_halt_fini): Likewise.
53389 (grub_reboot_init): Likewise.
53390 (grub_reboot_fini): Likewise.
53391
53392 * util/grub-emu.c: Include signal.h.
53393 (main_env): New global variable.
53394 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53395 catch C-c.
53396 (grub_machine_fini): New function.
53397 (main): Call grub_halt_init and grub_reboot_init before
53398 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53399 Call setjmp with MAIN_ENV to go back afterwards.
53400 Call grub_machine_fini right before return.
53401
53402 * include/grub/util/misc.h: Include setjmp.h.
53403 (main_env): New prototype.
53404
53405 * include/grub/kernel.h (grub_machine_fini): New prototype.
53406 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53407 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53408
53409 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53410 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53411 * term/i386/pc/console.c (grub_console_fini): Likewise.
53412
53413 * util/i386/pc/misc.c: New file.
53414
53415 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53416 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53417 commands/i386/pc/reboot.c.
53418
53419 2005-02-14 Guillem Jover <guillem@hadrons.org>
53420
53421 * include/grub/dl.h (grub_dl_check_header): New prototype.
53422 (grub_arch_dl_check_header): Change return type to grub_err_t,
53423 remove size parameter and export function. Update all callers.
53424 * kern/dl.c (grub_dl_check_header): New function.
53425 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53426 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53427 are inside the core.
53428 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53429 independent ELF header checks.
53430 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53431 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53432 `grub_dl_check_header' instead of explicit checks. Check for the
53433 ELF type.
53434 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53435 `grub_dl_check_header' instead of explicit checks. Remove arch
53436 specific ELF header checks.
53437
53438 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53439 argument SIZE.
53440
53441 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53442
53443 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53444 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53445
53446 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53447
53448 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53449 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53450 (part_map_iterate): Clear `grub_errno' and return 0 if
53451 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53452 * partmap/amiga.c (amiga_partition_map_iterate): Return
53453 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53454 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53455
53456 2005-02-01 Guillem Jover <guillem@hadrons.org>
53457
53458 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53459 help info.
53460
53461 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53462
53463 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53464 Removed prototype.
53465 (grub_rescue_cmd_linux): New prototype.
53466 (grub_rescue_cmd_initrd): Likewise.
53467 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53468 `bi_rec'.
53469 (grub_linux_release_mem): Release the memory for the initrd.
53470 (grub_load_linux): Renamed from this...
53471 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53472 Changed `entry' not to be static. Loop over memory regions to
53473 find another one when the default fails.
53474 (grub_rescue_cmd_initrd): New function.
53475 (grub_linux_init): Remove function.
53476 (grub_linux_fini): Likewise.
53477 (GRUB_MOD_INIT): Register `initrd'.
53478 (GRUB_MOD_FINI): Unregister `initrd'.
53479 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53480 Function removed.
53481 (grub_linux_normal_fini): Likewise.
53482 (GRUB_MOD_INIT): Register `initrd'.
53483 (GRUB_MOD_FINI): Unregister `initrd'.
53484
53485 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53486
53487 * commands/help.c: New file.
53488 * normal/arg.c (show_help): Renamed to...
53489 (grub_arg_show_help): ... this.
53490 * commands/i386/pc/halt.c: New file.
53491 * commands/i386/pc/reboot.c: Likewise.
53492 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53493 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53494 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53495 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53496 variables.
53497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53498 `commands/help.c'.
53499 (pkgdata_MODULES): Add `help.mod'.
53500 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53501 * grub/i386/pc/init.h (grub_reboot): New prototype.
53502 (grub_halt): Likewise.
53503 * include/grub/normal.h (grub_arg_show_help): New prototype.
53504 (grub_help_init): Likewise.
53505 (grub_help_fini): Likewise.
53506 * util/grub-emu.c (main): Initialize and deinitialize the help
53507 command.
53508
53509 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53510
53511 * normal/command.c (grub_command_init): Fixed the description of
53512 the `set' and `unset' commands.
53513
53514 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53515
53516 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53517 function.
53518 * commands/ieee1275/halt.c: New file.
53519 * commands/ieee1275/reboot.c: Likewise.
53520 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53521 `__attribute__ ((unused))'. Some GCS related fixed.
53522 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53523 (grub_suspend_fini): Likewise.
53524 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53525 and `halt.mod'.
53526 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53527 (halt_mod_CFLAGS): New variables.
53528 * include/grub/powerpc/ieee1275/ieee1275.h
53529 (grub_ieee1275_interpret): New prototype.
53530
53531 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53532
53533 * include/grub/misc.h (memmove): New prototype.
53534 (memcpy): Likewise.
53535
53536 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53537
53538 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53539 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53540
53541 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53542
53543 * kern/misc.c (grub_strndup): Function rewritten.
53544
53545 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53546
53547 * normal/menu.c (TERM_WIDTH): Macro redefined.
53548 (TERM_TOP_BORDER_Y): Likewise.
53549 (draw_border): Replaced while-loop by a for-loop. Make the number
53550 of lines consistent with the number of lines displayed in
53551 print_entries. Added a margin below the rectangle.
53552 (print_entry): Make the entry fit in the rectangle.
53553 (print_entries): Display the scroll arrows next to the right
53554 border.
53555
53556 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53557
53558 * fs/minix.c (grub_minix_find_file): Reserve more space for
53559 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53560 `grub_strncpy' to copy `path' into it.
53561
53562 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53563
53564 Add the loopback device, a device via which files can be accessed
53565 as devices.
53566
53567 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53568 (pkgdata_MODULES): Add loopback.mod.
53569 (loopback_mod_SOURCES): New variable.
53570 (loopback_mod_CFLAGS): Likewise.
53571 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53572 `disk/loopback.c'.
53573 (pkgdata_MODULES): Add loopback.mod.
53574 (loopback_mod_SOURCES): New variable.
53575 (loopback_mod_CFLAGS): Likewise.
53576 * disk/loopback.c: new file.
53577 * include/grub/normal.h (grub_loop_init): New prototype.
53578 (grub_loop_fini): New prototype.
53579 * util/grub-emu.c (main): Initialize and de-initialize loopback
53580 support.
53581 * include/grub/disk.h (grub_disk_dev_id): Add
53582 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53583
53584 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53585
53586 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53587 function.
53588 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53589 (suspend_mod_SOURCES): New variable.
53590 (suspend_mod_CFLAGS): Likewise.
53591 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53592 New prototype.
53593 * commands/ieee1275/suspend.c: New file.
53594
53595 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53596
53597 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53598 ((unused))' to `__attribute__ ((used))'.
53599 (GRUB_MOD_FINI): Likewise.
53600 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53601 * genmk.rb (PModule): Assign space to common symbols when linking
53602 modules.
53603
53604 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53605
53606 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53607 `unsigned' arguments to `grub_size_t'.
53608 (grub_malloc): Likewise.
53609 (grub_realloc): Likewise.
53610 (grub_memalign): Likewise.
53611 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53612 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53613 * util/misc.c (grub_malloc): Likewise.
53614 (grub_realloc): Likewise.
53615 * kern/mm.c (get_header_from_pointer): Change the casts to
53616 `unsigned' into a cast to `grub_size_t'.
53617
53618 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53619 point to `currnode' when `currnode' is changed.
53620
53621 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53622 Schottelius <nico-linux@schottelius.org>.
53623
53624 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53625
53626 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53627 (note_path): Remove variable.
53628 (GRUB_IEEE1275_NOTE_NAME): New macro.
53629 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53630 (grub_ieee1275_note_hdr): New structure.
53631 (grub_ieee1275_note_desc): Likewise.
53632 (grub_ieee1275_note): Likewise.
53633 (load_note): Remove `dir' argument. All callers updated. Remove
53634 `note_img' and `path'. Do not load a file from `note_path'.
53635 Initialize a struct grub_ieee1275_note and write that to `out'.
53636 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53637
53638 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53639
53640 * util/misc.c (grub_util_read_image): Revert last change. It
53641 called `grub_util_read_at', which seeks from the beginning of the
53642 file.
53643
53644 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53645
53646 * TODO: Add note about endianness in grub-mkimage.
53647 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53648 section.
53649 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53650 (grub_mkimage_SOURCES): New target.
53651 * include/grub/kernel.h (grub_start_addr): Remove variable.
53652 (grub_end_addr): Likewise.
53653 (grub_total_module_size): Likewise.
53654 (grub_kernel_image_size): Likewise.
53655 (GRUB_MODULE_MAGIC): New constant.
53656 (grub_module_info): New structure.
53657 (grub_arch_modules_addr): New prototype.
53658 (grub_get_end_addr): Remove prototype.
53659 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53660 * include/grub/powerpc/ieee1275/kernel.h: New file.
53661 * include/grub/util/misc.h (grub_util_get_fp_size): New
53662 prototype.
53663 (grub_util_read_at): Likewise.
53664 (grub_util_write_image_at): Likewise.
53665 * kern/main.c (grub_get_end_addr): Remove function.
53666 (grub_load_modules): Call grub_arch_modules_addr instead of using
53667 grub_end_addr. Look for a grub_module_info struct in memory. Use
53668 the grub_module_info fields instead of calling grub_get_end_addr
53669 as loop conditions. Move grub_add_unused_region code here.
53670 (grub_add_unused_region): Remove function.
53671 * kern/i386/pc/init.c: Include grub/cache.h.
53672 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53673 one call to add_mem_region.
53674 (grub_arch_modules_addr): New function.
53675 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53676 (grub_total_module_size): Likewise.
53677 Include grub/machine/kernel.h.
53678 (grub_arch_modules_addr): New function.
53679 * util/grub-emu.c (grub_end_addr): Remove variable.
53680 (grub_total_module_size): Likewise.
53681 (grub_arch_modules_addr): New function.
53682 * util/misc.c: Include unistd.h.
53683 (grub_util_get_fp_size): New function.
53684 (grub_util_read_at): Likewise.
53685 (grub_util_write_image_at): Likewise.
53686 (grub_util_read_image): Call grub_util_read_at.
53687 (grub_util_write_image): Call grub_util_write_image_at.
53688 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53689 additional memory in kernel_img for a struct grub_module_info.
53690 Fill in that grub_module_info.
53691 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53692
53693 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53694
53695 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53696 New function.
53697 * include/grub/powerpc/ieee1275/ieee1275.h
53698 (grub_ieee1275_milliseconds): New prototype.
53699 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53700 Change to 1000.
53701 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53702 grub_ieee1275_milliseconds.
53703
53704 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53705
53706 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53707 variable.
53708 (find_options): New function.
53709 (cmain): Call find_options.
53710 * include/grub/powerpc/ieee1275/ieee1275.h
53711 (grub_ieee1275_realmode): New extern variable.
53712 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53713 grub_map if grub_ieee1275_realmode is false.
53714
53715 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53716
53717 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53718 lines are inserted and make it work like readline. Reported by
53719 Vincent Pelletier <subdino2004@yahoo.fr>.
53720
53721 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53722
53723 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53724
53725 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53726 `kern/powerpc/cache.S'.
53727
53728 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53729
53730 * genmk.rb: Handle the `Program' class in the main loop. Written
53731 by Johan Rydberg <jrydberg@gnu.org>.
53732 (Program): New class.
53733 (programs): New variable.
53734 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53735 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53736 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53737 (help_arch): Function removed.
53738 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53739 `powerpc/libgcc.h' and `loader.h'.
53740 (pkgdata_PROGRAMS): New variable.
53741 (sbin_UTILITIES): Variable removed.
53742 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53743 (grubof_SOURCES): Variable re-defined so it only includes the
53744 core functionality.
53745 (grubof_CFLAGS): Remove `-DGRUBOF'.
53746 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53747 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53748 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53749 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53750 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53751 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53752 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53753 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53754 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53755 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53756 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53757 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53758 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53759 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53760 (pc_mod_CFLAGS): New variables.
53761 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53762 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53763 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53764 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53765 Moved from here...
53766 * include/grub/i386/pc/init.h (grub_os_area_addr)
53767 (rub_os_area_size): ... to here.
53768 * include/grub/powerpc/ieee1275/ieee1275.h
53769 (grub_ieee1275_entry_fn): Export symbol.
53770 * include/grub/powerpc/ieee1275/init.h: New file.
53771 * include/grub/powerpc/libgcc.h: Likewise.
53772 * include/grub/cache.h: Likewise.
53773 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53774 <hollis@penguinppc.org>.
53775 * kern/dl.c: Include <grub/cache.h>.
53776 (grub_dl_flush_cache): New function.
53777 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53778 for this module.
53779 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53780 (grub_console_init): Removed prototypes.
53781 (grub_machine_init): Don't initialize the modules anymore.
53782 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53783 static.
53784 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53785 Macro undef removed.
53786 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53787 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53788 relocation `R_PPC_REL32'. Return an error when the relocation is
53789 unknown.
53790 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53791 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53792 * util/misc.c (grub_arch_sync_caches): Likewise.
53793
53794 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53795
53796 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53797 `symlist.c', add `grubof_symlist.c'.
53798 (symlist.c): Variable removed.
53799 (grubof_HEADERS): Variable added.
53800 (grubof_symlist.c): New target.
53801 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53802 `kernel_img_HEADERS'.
53803 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53804 * kern/powerpc/dl.c: New file.
53805 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53806 Function removed.
53807 (grub_arch_dl_relocate_symbols): Likewise.
53808 (grub_register_exported_symbols): Likewise.
53809
53810 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53811
53812 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53813 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53814 to fail instead. Reported by Vincent Pelletier
53815 <subdino2004@yahoo.fr>.
53816
53817 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53818 it is not allocated. Reported by Vincent Pelletier
53819 <subdino2004@yahoo.fr>.
53820
53821 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53822 output so the output looks better.
53823
53824 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53825
53826 Modulize the partition map support and add support for the amiga
53827 partition map.
53828
53829 * commands/ls.c: Include <grub/partition.h> instead of
53830 <grub/machine/partition.h>.
53831 * kern/disk.c: Likewise.
53832 * kern/rescue.c: Likewise.
53833 * loader/i386/pc/chainloader.c: Likewise.
53834 * normal/cmdline.c: Likewise.
53835 * kern/powerpc/ieee1275/init.c: Likewise.
53836 (grub_machine_init): Call `grub_pc_partition_map_init',
53837 `grub_amiga_partition_map_init' and
53838 `grub_apple_partition_map_init'.
53839 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53840 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53841 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53842 `partition.h' and `pc_partition.h'.
53843 (grub_setup_SOURCES): Remove
53844 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53845 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53846 (grub_emu_SOURCES): Likewise.
53847 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53848 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53849 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53851 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53852 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53853 (grubof_SOURCES): Likewise.
53854 * disk/i386/pc/partition.c: File removed.
53855 * disk/powerpc/ieee1275/partition.c: Likewise.
53856 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53857 * include/grub/i386/pc/partition.h: Likewise.
53858 * kern/partition.c: New file.
53859 * partmap/amiga.c: Likewise.
53860 * partmap/apple.c: Likewise.
53861 * partmap/pc.c: Likewise.
53862 * include/grub/partition.h: Likewise..
53863 * include/grub/pc_partition.h: Likewise.
53864 * util/grub-emu.c: Include <grub/partition.h> instead of
53865 <grub/machine/partition.h>.
53866 (main): Call `grub_pc_partition_map_init',
53867 `grub_amiga_partition_map_init' and
53868 `grub_apple_partition_map_init' and deinitialize afterwards.
53869 * util/i386/pc/biosdisk.c: Include `#include
53870 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53871 `<grub/machine/partition.h>'.
53872 * util/i386/pc/grub-setup.c: Likewise.
53873 * util/i386/pc/biosdisk.c: Likewise.
53874 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53875 partition information in case of a PC partition.
53876 * util/i386/pc/grub-setup.c: Include `#include
53877 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53878 `<grub/machine/partition.h>'.
53879 (setup): Only access the PC specific partition information in case
53880 of a PC partition.
53881
53882 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53883
53884 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53885 (grub_longjmp): Likewise.
53886 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53887 20.
53888 * normal/powerpc/setjmp.S: New file.
53889 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53890 `normal/powerpc/setjmp.S'.
53891 (grubof_CFLAGS): Add `-DGRUBOF'.
53892 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53893 [GRUB_UTIL && !GRUBOF].
53894
53895 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53896
53897 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53898 property named `name'. Correctly handle the error returned by
53899 `grub_ieee1275_finddevice' if a device can not be opened.
53900
53901 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53902
53903 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53904 `actual' for negativity.
53905 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53906 kern/fshelp.c.
53907
53908 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53909
53910 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53911 (PAGE_OFFSET): New macro.
53912 (CRTC_ADDR_PORT): Likewise.
53913 (CRTC_DATA_PORT): Likewise.
53914 (START_ADDR_HIGH_REGISTER): Likewise.
53915 (START_ADDR_LOW_REGISTER): Likewise.
53916 (GRAPHICS_ADDR_PORT): Likewise.
53917 (GRAPHICS_DATA_PORT): Likewise.
53918 (READ_MAP_REGISTER): Likewise.
53919 (INPUT_STATUS1_REGISTER): Likewise.
53920 (INPUT_STATUS1_VERTR_BIT): Likewise.
53921 (page): New variable.
53922 (wait_vretrace): New function.
53923 (set_read_map): Likewise.
53924 (set_start_address): Likewise.
53925 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53926 the right page.
53927 (check_vga_mem): Take the page into account.
53928 (write_char): Likewise.
53929 (write_cursor): Likewise.
53930 (scroll_up): Likewise. Copy the page to the page that is not
53931 shown and switch between both pages.
53932 (grub_vga_putchar): Fix off by one error.
53933 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53934 account.
53935
53936 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53937
53938 Add support for iso9660 (including rockridge).
53939
53940 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53941 (iso9660_mod_SOURCES): New variable.
53942 (iso9660_mod_CFLAGS): Likewise.
53943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53944 * include/grub/fs.h (grub_iso9660_init): New prototype.
53945 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53946 * fs/iso9660.c: New file.
53947
53948 * include/grub/misc.h (grub_strncat): New prototype.
53949 * kern/misc.c (grub_strncat): New function.
53950
53951 * fs/hfs.c (grub_hfs_mount): Translate the error
53952 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53953 * fs/jfs.c (grub_jfs_mount): Likewise.
53954 * fs/ufs.c (grub_ufs_mount): Likewise.
53955
53956 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53957
53958 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53959 which initialized BAT registers.
53960 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53961 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53962 Move from here...
53963 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53964 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53965 ... to here.
53966 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53967 (grub_mapclaim): Likewise.
53968 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53969 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53970 hand.
53971
53972 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53973
53974 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53975 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53976 -ffreestanding and -msoft-float.
53977
53978 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53979
53980 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53981 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53982 set in grub_ieee1275_flags.
53983
53984 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53985
53986 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53987 prototype.
53988 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53989 grub_console_init first.
53990 Change the memory range used for grub_ieee1275_claim and
53991 grub_mm_init_region.
53992 Print an error message if the claim fails.
53993 Include <grub/misc.h>.
53994
53995 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53996
53997 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53998 Call grub_children_iterate for device nodes of type `scsi',
53999 `ide', or `ata'.
54000 (grub_ofdisk_open): Remove manual device alias resolution.
54001 Fix memory leak when device cannot be opened.
54002 * include/grub/powerpc/ieee1275/ieee1275.h
54003 (grub_children_iterate): New prototype.
54004 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54005 New function.
54006 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54007 Return -1 if args.size was -1.
54008
54009 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54010
54011 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54012 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54013 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54014 Open Firmware's memory for it; claim memory from _start to _end.
54015 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54016 (_end): New extern.
54017 (_start): Zero BSS from __bss_start to _end.
54018 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54019 New extern.
54020 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54021
54022 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
54023
54024 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54025 -1 if args.base was -1.
54026
54027 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
54028
54029 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54030 escape sequence instead of a literal ^L. Also call
54031 grub_ofconsole_gotoxy.
54032
54033 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54034
54035 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54036 void * arguments to grub_addr_t. All callers updated. Also make
54037 the `result' argument optional.
54038 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54039 All callers updated.
54040
54041 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54042
54043 * commands/ls.c (grub_ls_list_files): Use the string following the
54044 initial ')', if present, as the filesystem path.
54045 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54046
54047 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54048
54049 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54050
54051 Make the source code of the menu interface more readable.
54052
54053 * normal/menu.c: Include grub/mm.h.
54054 (TERM_WIDTH): New macro.
54055 (TERM_HEIGHT): Likewise.
54056 (TERM_INFO_HEIGHT): Likewise.
54057 (TERM_MARGIN): Likewise.
54058 (TERM_SCROLL_WIDTH): Likewise.
54059 (TERM_TOP_BORDER_Y): Likewise.
54060 (TERM_LEFT_BORDER_X): Likewise.
54061 (TERM_BORDER_WIDTH): Likewise.
54062 (TERM_MESSAGE_HEIGHT): Likewise.
54063 (TERM_BORDER_HEIGHT): Likewise.
54064 (TERM_NUM_ENTRIES): Likewise.
54065 (TERM_FIRST_ENTRY_Y): Likewise.
54066 (TERM_ENTRY_WIDTH): Likewise.
54067 (TERM_CURSOR_X): Likewise.
54068 (draw_border): Use macros instead of magic numbers.
54069 (print_entry): Likewise.
54070 (print_entries): Likewise.
54071 (run_menu): Likewise. Also, handle the key 'e'.
54072 (run_menu_entry): Ignore empty command lines.
54073 (print_message): Added a new argument EDIT. If EDIT is true,
54074 print a different message.
54075 (init_page): Likewise.
54076 (edit_menu_entry): New function. Not implemented yet.
54077
54078 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54079
54080 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54081 can be loaded from normal mode.
54082
54083 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54084 `multiboot.mod'.
54085 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54086 (multiboot_mod_CFLAGS): New variables.
54087 * loader/i386/pc/linux_normal.c: New file.
54088 * loader/i386/pc/multiboot_normal.c: Likewise.
54089
54090 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54091 attribute `unused'.
54092
54093 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54094 `fdiro' to read the mode information from instead of `diro'.
54095
54096 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54097 looking up a symlink.
54098
54099 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54100 macro.
54101 * normal/command.c (grub_command_execute): Don't parse the
54102 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54103 flags of the command.
54104
54105 * normal/menu.c (grub_menu_run): Fix typo.
54106
54107 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54108
54109 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54110
54111 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54112 `y + 1' instead of `y - 1'.
54113
54114 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54115
54116 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54117
54118 From Hollis Blanchard <hollis@penguinppc.org>:
54119 * kern/misc.c (memmove): New alias for grub_memmove.
54120 (memcmp): New alias for grub_memcmp.
54121 (memset): New alias for grub_memset.
54122 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54123 Change "int handle" to "grub_ieee1275_phandle_t handle".
54124 * include/grub/powerpc/ieee1275/ieee1275.h
54125 (grub_ieee1275_get_property): Likewise.
54126
54127 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54128
54129 Added normal mode command `chainloader' as module chain.mod, which
54130 depends on normal.mod and _chain.mod.
54131
54132 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54133 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54134 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54135 Deleted prototype.
54136 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54137 but arguments parsing moved to ...
54138 (grub_chainloader_cmd): ... here. New function.
54139 * include/grub/i386/pc/chainloader.h: New file.
54140 * loader/i386/pc/chainloader_normal.c: Likewise.
54141
54142 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54143
54144 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54145 (grub_mkimage_LDFLAGS): Likewise.
54146 (grub_emu_SOURCES): Likewise.
54147 (kernel_img_HEADERS): Added fshelp.h.
54148 * fs/ext2.c: Include <grub/fshelp.h>.
54149 (FILETYPE_REG): New macro.
54150 (FILETYPE_INO_REG): Likewise.
54151 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54152 Changed all users.
54153 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54154 all users.
54155 (grub_fshelp_node): New struct.
54156 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54157 to a pointer.
54158 (grub_ext2_get_file_block): Removed function.
54159 (grub_ext2_read_block): New function.
54160 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54161 This function was written.
54162 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54163 (grub_ext2_find_file): Removed function.
54164 (grub_ext2_read_symlink): New function.
54165 (grub_ext2_iterate_dir): Likewise.
54166 (grub_ext2_open): Rewritten.
54167 (grub_ext2_dir): Rewritten.
54168 * include/grub/fshelp.h: New file.
54169 * fs/fshelp.c: Likewise.
54170
54171 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54172
54173 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54174 (print_message): Add a missing newline.
54175 (run_menu): Added timeout support.
54176 (run_menu_entry): New local function.
54177 (grub_menu_run): Added support for booting.
54178
54179 * kern/loader.c (grub_loader_is_loaded): New function.
54180
54181 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54182 (grub_get_rtc): Exported.
54183
54184 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54185 (grub_get_rtc): Exported.
54186
54187 * include/grub/normal.h (struct grub_command_list): Remove
54188 constant from the member `command'.
54189
54190 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54191
54192 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54193
54194 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54195
54196 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54197
54198 Add support for the JFS filesystem.
54199
54200 * fs/jfs.c: New file.
54201 * include/grub/fs.h (grub_jfs_init): New prototype.
54202 (grub_jfs_fini): New prototype.
54203 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54204 (grub_emu_SOURCES): Likewise.
54205 (pkgdata_MODULES): Add jfs.mod.
54206 (jfs_mod_SOURCES): New variable.
54207 (jfs_mod_CFLAGS): Likewise.
54208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54209 (grubof_SOURCES): Likewise.
54210 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54211
54212 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54213 endian to the host endian.
54214 (grub_fat_utf16_to_utf8): Move function from there...
54215 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54216 the endianness of the source string anymore.
54217 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54218
54219 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54220
54221 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54222 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54223 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54224 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54225
54226 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54227 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54228 for `node_found' and `it_dir'.
54229 (grub_hfs_dir): Add prototype for `dir_hook'.
54230
54231 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54232 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54233 and `indir32' to silence a gcc warning.
54234
54235 * include/grub/fs.h (grub_hfs_init): New prototype.
54236 (grub_hfs_fini): Likewise.
54237
54238
54239 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54240
54241 Each disk device has its own id now. This is useful to make use
54242 of multiple disk devices.
54243
54244 * include/grub/disk.h (grub_disk_dev_id): New enum.
54245 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54246 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54247
54248 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54249 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54250
54251 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54252 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54253
54254 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54255 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54256
54257 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54258 "id" which is used by the cache manager.
54259
54260 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54261 of just "GRUB".
54262
54263 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54264
54265 * fs/hfs.c: New file.
54266 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54267 (grub_emu_SOURCES): Likewise.
54268 (pkgdata_MODULES): Add hfs.mod.
54269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54270 (grubof_SOURCES): Likewise.
54271 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54272
54273 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54274 * kern/misc.c (grub_strncasecmp): Add function.
54275
54276 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54277
54278 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54279 with parentheses.
54280
54281 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54282 (grub_ext2_dir): In case the directory entry type is unknown, read
54283 it from the inode.
54284
54285 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54286
54287 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54288 grub_load_linux instead of grub_rescue_cmd_linux as second
54289 argument of grub_rescue_register_command.
54290
54291 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54292
54293 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54294
54295 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54296 function.
54297 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54298 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54299 `loader/powerpc/ieee1275/linux.c',
54300 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54301 * include/grub/powerpc/ieee1275/ieee1275.h
54302 (grub_ieee1275_release): New prototype.
54303 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54304 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54305 normal, boot, linux and linux_normal.
54306 * loader/powerpc/ieee1275/linux.c: New file.
54307 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54308
54309 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54310
54311 * normal/arg.c (grub_arg_parse): Correct error handling after
54312 reallocating the argumentlist (check if `argl' is not null instead
54313 of checking if `args' is not null).
54314 * kern/mm.c (grub_realloc): Return the same pointer when using the
54315 same region, instead of returning the header address.
54316
54317 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54318
54319 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54320 one block instead of two when looking for the initial partition.
54321 (grub_partition_probe): Initialize the local variable `p' with 0.
54322 Use base 10 for the grub_strtoul call.
54323 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54324 need for one local variable.
54325 (grub_strtoul): Don't add the new value to `num', instead of that
54326 just assign it.
54327
54328 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54329
54330 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54331 (pxeboot_img_SOURCES): New variable.
54332 (pxeboot_img_ASFLAGS): Likewise.
54333 (pxeboot_img_LDFLAGS): Likewise.
54334 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54335 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54336 <lode_leroy@hotmail.com>.
54337
54338 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54339
54340 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54341 there was no input.
54342
54343 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54344
54345 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54346 the history buffer logic.
54347
54348 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54349
54350 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54351 (FILETYPE_INO_SYMLINK): New macros.
54352 (grub_ext2_find_file): Check if the node is a directory using the
54353 inode stat information instead of using the filetype in the
54354 dirent. Exclude the first character of an absolute symlink.
54355 (grub_ext2_dir): Mask out the filetype part of the mode member of
54356 the inode.
54357
54358 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54359
54360 Add support for UFS version 1 and 2. Add support for the minix
54361 filesystem version 1 and 2, both the variants with 14 and 30 long
54362 filenames.
54363
54364 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54365 fs/minix.c.
54366 (grub_emu_SOURCES): Likewise.
54367 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54368 (ufs_mod_SOURCES): New variable.
54369 (ufs_mod_CFLAGS): Likewise.
54370 (minix_mod_SOURCES): Likewise.
54371 (minix_mod_CFLAGS): Likewise.
54372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54373 fs/minix.c.
54374 (grubof_SOURCES): Likewise.
54375 * fs/ufs.c: New file.
54376 * fs/minix.c: New file.
54377 * include/grub/fs.h (grub_ufs_init): New prototype.
54378 (grub_ufs_fini): Likewise.
54379 (grub_minix_init): Likewise.
54380 (grub_minix_fini): Likewise.
54381 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54382 minix fs.
54383
54384 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54385
54386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54387 commands/ls.c, commands/terminal.c, commands/boot.c,
54388 commands/cmp.c and commands/cat.c.
54389 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54390
54391 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54392 "env.h"
54393
54394 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54395
54396 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54397 and grub_, respectively. Because the conversion is trivial and
54398 mechanical, I omit the details here. Please refer to the CVS
54399 if you need more information.
54400
54401 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54402
54403 * include/pupa: Renamed to ...
54404 * include/grub: ... this.
54405 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54406 * util/i386/pc/grub-mkimage.c: ... this.
54407 * util/i386/pc/pupa-setup.c: Renamed to ...
54408 * util/i386/pc/grub-setup.c: ... this.
54409 * util/pupa-emu.c: Renamed to ...
54410 * util/grub-emu.c: ... this.
54411
54412 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54413
54414 Add support for the newworld apple macintosh (PPC). This has been
54415 tested on the powerbook 2000 only. It only adds support for
54416 generic ieee1275 functions, console and disk support. This should
54417 be easy to port to other architectures with support for Open
54418 Firmware.
54419
54420 * configure.ac: Accept the powerpc as host_cpu. In the case of
54421 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54422 specific tests are only executed while building for the i386.
54423 Inverse test for crosscompile.
54424 * genmk.rb (Utility): Allow assembler files.
54425 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54426 * conf/powerpc-ieee1275.rmk: New file.
54427 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54428 * disk/powerpc/ieee1275/partition.c: Likewise.
54429 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54430 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54431 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54432 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54433 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54434 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54435 * include/pupa/powerpc/ieee1275/loader.h
54436 * include/pupa/powerpc/setjmp.h: Likewise.
54437 * include/pupa/powerpc/types.h: Likewise.
54438 * kern/powerpc/ieee1275/init.c: Likewise.
54439 * kern/powerpc/ieee1275/openfw.c: Likewise.
54440 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54441
54442 These files were written by Johan Rydberg
54443 (jrydberg@night.trouble.net) and I only modified them slightly.
54444
54445 * boot/powerpc/ieee1275/cmain.c: New file.
54446 * boot/powerpc/ieee1275/crt0.S: Likewise.
54447 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54448 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54449
54450 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54451
54452 * Makefile.in: Update copyright.
54453 * genmodsrc.sh: Likewise.
54454 * gensymlist.sh: Likewise.
54455 * term/i386/pc/vga.c: Indent correctly.
54456
54457 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54458 bugreporting address.
54459 * util/i386/pc/pupa-setup.c (usage): Likewise,
54460 (main): Call pupa_ext2_init and pupa_ext2_fini.
54461
54462 * fs/fat.c (log2): Renamed to ...
54463 (fat_log2): ... this.
54464 All callers changed.
54465 * kern/misc.c (memcpy): Alias to pupa_memmove.
54466 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54467 lvalue cast.
54468 * util/console.c (pupa_ncurses_fini): Return 0.
54469
54470 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54471 Move fail label here.
54472 [__GNU__]: Don't warn when using stat.
54473 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54474 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54475 long int. Use strtol instead of strtoul.
54476
54477 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54478
54479 * commands/boot.c: New file.
54480 * commands/cat.c: Likewise.
54481 * commands/cmp.c: Likewise.
54482 * commands/ls.c: Likewise.
54483 * commands/terminal.c: Likewise.
54484 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54485 (pupa_register_command): Changed interface to match the new
54486 argument parser.
54487 (pupa_command_execute): Changed (almost rewritten) so it uses
54488 pupa_split_command. Added support for setting variables using the
54489 syntax `foo=bar'.
54490 (rescue_command): Changed to work with the new argument parser.
54491 (terminal_command): Moved from here to commands/terminal.c.
54492 (set_command): New function.
54493 (unset_command): New function.
54494 (insmod_command): New function.
54495 (rmmod_command): New function.
54496 (lsmod_command): New function.
54497 (pupa_command_init): Don't initialize the command terminal
54498 anymore. Initialize the commands set, unset, insmod, rmmod and
54499 lsmod.
54500 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54501 (kernel_img_HEADERS): Add arg.h and env.h.
54502 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54503 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54504 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54505 normal/arg.c.
54506 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54507 terminal.mod.
54508 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54509 (boot_mod_SOURCES): New variable.
54510 (terminal_mod_SOURCES): Likewise.
54511 (ls_mod_SOURCES): Likewise.
54512 (cmp_mod_SOURCES): Likewise.
54513 (cat_mod_SOURCES): Likewise.
54514
54515 * normal/arg.c: New file.
54516 * kern/env.c: Likewise.
54517 * include/pupa/arg.h: Likewise.
54518 * include/pupa/env.h: Likewise.
54519 * font/manager.c (font_command): Changed to match argument parsing
54520 interface changes.
54521 (PUPA_MOD_INIT): Likewise.
54522 * hello/hello.c (pupa_cmd_hello): Likewise.
54523 (PUPA_MOD_INIT): Likewise.
54524 * include/pupa/disk.h: Include <pupa/device.h>.
54525 (pupa_print_partinfo): New prototype.
54526 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54527 (pupa_dl_get_prefix): Likewise.
54528 * include/pupa/misc.h: Include <pupa/err.h>.
54529 (pupa_isgraph): New prototype.
54530 (pupa_isdigit): Likewise.
54531 (pupa_split_cmdline): Likewise.
54532 * include/pupa/normal.h: Include <pupa/arg.h>.
54533 (pupa_command): Changed the prototype of the member `func' to
54534 match the argument parsing interface. Added member `options'.
54535 (pupa_register_command): Updated to match function.
54536 (pupa_arg_parse): New prototype.
54537 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54538 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54539 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54540 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54541 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54542 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54543 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54544 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54545 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54546 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54547 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54548 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54549 * kern/disk.c: Include <pupa/file.h>.
54550 (pupa_print_partinfo): New function.
54551 * kern/dl.c: Include <pupa/env.h>.
54552 (pupa_dl_dir): Variable removed.
54553 (pupa_dl_load): Use the environment variable `prefix' instead of
54554 the variable pupa_dl_dir.
54555 (pupa_dl_set_prefix): Function removed.
54556 (pupa_dl_get_prefix): Likewise.
54557 * kern/i386/pc/init.c: Include <pupa/env.h>.
54558 (pupa_machine_init): Use the environment variable `prefix' instead of
54559 using pupa_dl_set_prefix to set the prefix.
54560 * kern/main.c: Include <pupa/env.h>.
54561 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54562 using pupa_dl_get_prefix to get the prefix.
54563 * kern/misc.c: Include <pupa/env.h>.
54564 (pupa_isdigit): New function.
54565 (pupa_isgraph): Likewise.
54566 (pupa_ftoa): Likewise.
54567 (pupa_vsprintf): Added support for printing values of the type
54568 `double'. Make it possible to format variable output when using
54569 formatting like `%1.2%f'.
54570 (pupa_split_cmdline): New function.
54571 * kern/rescue.c: Include <pupa/env.h>.
54572 (next_word): Removed function.
54573 (pupa_rescue_cmd_prefix): Likewise.
54574 (pupa_rescue_cmd_set): New function.
54575 (pupa_rescue_cmd_unset): New function.
54576 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54577 split the command line instead of splitting it here. Added
54578 support for setting variables using the syntax `foo=bar'. Don't
54579 initialize the prefix command anymore. Initialized the set and
54580 unset commands.
54581 * normal/cmdline.c: Include <pupa/env.h>.
54582 (pupa_tab_complete): Added prototypes for print_simple_completion,
54583 print_partition_completion, add_completion, iterate_commands,
54584 iterate_dev, iterate_part and iterate_dir. Moved code to print
54585 partition information from here to kern/disk.c.
54586 (pupa_cmdline_run): Don't check if the function exists anymore.
54587 * normal/main.c: Include <pupa/env.h>.
54588 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54589 instead of using pupa_dl_get_prefix to get the prefix.
54590 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54591 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54592 warning.
54593 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54594 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54595 ((unused))' to silence a gcc warning.
54596 (pupa_vga_setcolor): Likewise.
54597 (debug_command): Changed to match argument parsing
54598 interface changes.
54599 * util/pupa-emu.c: Include <pupa/env.h>.
54600 (options): Added 0's for unused fields to silence a gcc warning.
54601 (argp): Likewise.
54602 (main): Use the environment variable `prefix' instead of using
54603 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54604 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54605 and terminal.
54606
54607 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54608 * util/misc.c: Include <malloc.h>.
54609 (pupa_malloc): Rewritten so errors are correctly reported.
54610 (pupa_realloc): Likewise.
54611 (pupa_memalign): Likewise.
54612 (pupa_mm_init_region): Declare unused variables with
54613 `__attribute__ ((unused))' to silence a gcc warning.
54614 * normal/i386/setjmp.S: Remove tab at the end of the file to
54615 silence a gcc warning.
54616 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54617 variables with `__attribute__ ((unused))' to silence a gcc
54618 warning.
54619 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54620 local variable i unsigned to silence a gcc warning.
54621
54622 * kern/term.c: Include <pupa/misc.h>.
54623 (pupa_more_lines): New variable.
54624 (pupa_more): Likewise.
54625 (pupa_putcode): When the pager is active pause at the end of every
54626 screen.
54627 (pupa_set_more): New function.
54628 * include/pupa/term.h (pupa_set_more): New prototype.
54629
54630
54631 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54632
54633 Now this project is GRUB 2 rather than PUPA. The location of
54634 the CVS repository was moved to GRUB's.
54635
54636 * configure.ac: Use bug-grub as the reporting address.
54637 Use GRUB instead of PUPA.
54638 Change the version number to 1.90.
54639
54640 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54641
54642 * genkernsyms.sh: Updated copyright information.
54643 * genmk.rb: Likewise.
54644 * genmodsrc.sh: Likewise.
54645 * gensymlist.sh: Likewise.
54646 * boot/i386/pc/boot.S: Likewise.
54647 * boot/i386/pc/diskboot.S: Likewise.
54648 * disk/i386/pc/biosdisk.c: Likewise.
54649 * disk/i386/pc/partition.c: Likewise.
54650 * font/manager.c: Likewise.
54651 * fs/ext2.c: Likewise.
54652 * fs/fat.c: Likewise.
54653 * include/pupa/boot.h: Likewise.
54654 * include/pupa/device.h: Likewise.
54655 * include/pupa/disk.h: Likewise.
54656 * include/pupa/dl.h: Likewise.
54657 * include/pupa/elf.h: Likewise.
54658 * include/pupa/err.h: Likewise.
54659 * include/pupa/file.h: Likewise.
54660 * include/pupa/font.h: Likewise.
54661 * include/pupa/fs.h: Likewise.
54662 * include/pupa/kernel.h: Likewise.
54663 * include/pupa/loader.h: Likewise.
54664 * include/pupa/misc.h: Likewise.
54665 * include/pupa/mm.h: Likewise.
54666 * include/pupa/net.h: Likewise.
54667 * include/pupa/normal.h: Likewise.
54668 * include/pupa/rescue.h: Likewise.
54669 * include/pupa/setjmp.h: Likewise.
54670 * include/pupa/symbol.h: Likewise.
54671 * include/pupa/term.h: Likewise.
54672 * include/pupa/types.h: Likewise.
54673 * include/pupa/i386/setjmp.h: Likewise.
54674 * include/pupa/i386/types.h: Likewise.
54675 * include/pupa/i386/pc/biosdisk.h: Likewise.
54676 * include/pupa/i386/pc/boot.h: Likewise.
54677 * include/pupa/i386/pc/console.h: Likewise.
54678 * include/pupa/i386/pc/init.h: Likewise.
54679 * include/pupa/i386/pc/kernel.h: Likewise.
54680 * include/pupa/i386/pc/linux.h: Likewise.
54681 * include/pupa/i386/pc/loader.h: Likewise.
54682 * include/pupa/i386/pc/memory.h: Likewise.
54683 * include/pupa/i386/pc/multiboot.h: Likewise.
54684 * include/pupa/i386/pc/partition.h: Likewise.
54685 * include/pupa/i386/pc/time.h: Likewise.
54686 * include/pupa/i386/pc/vga.h: Likewise.
54687 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54688 * include/pupa/util/getroot.h: Likewise.
54689 * include/pupa/util/misc.h: Likewise.
54690 * include/pupa/util/resolve.h: Likewise.
54691 * kern/device.c: Likewise.
54692 * kern/disk.c: Likewise.
54693 * kern/dl.c: Likewise.
54694 * kern/err.c: Likewise.
54695 * kern/file.c: Likewise.
54696 * kern/fs.c: Likewise.
54697 * kern/loader.c: Likewise.
54698 * kern/main.c: Likewise.
54699 * kern/misc.c: Likewise.
54700 * kern/mm.c: Likewise.
54701 * kern/rescue.c: Likewise.
54702 * kern/term.c: Likewise.
54703 * kern/i386/dl.c: Likewise.
54704 * kern/i386/pc/init.c: Likewise.
54705 * kern/i386/pc/lzo1x.S: Likewise.
54706 * kern/i386/pc/startup.S: Likewise.
54707 * loader/i386/pc/chainloader.c: Likewise.
54708 * loader/i386/pc/linux.c: Likewise.
54709 * loader/i386/pc/multiboot.c: Likewise.
54710 * normal/cmdline.c: Likewise.
54711 * normal/command.c: Likewise.
54712 * normal/main.c: Likewise.
54713 * normal/menu.c: Likewise.
54714 * normal/i386/setjmp.S: Likewise.
54715 * term/i386/pc/console.c: Likewise.
54716 * term/i386/pc/vga.c: Likewise.
54717 * util/console.c: Likewise.
54718 * util/genmoddep.c: Likewise.
54719 * util/misc.c: Likewise.
54720 * util/pupa-emu.c: Likewise.
54721 * util/resolve.c: Likewise.
54722 * util/unifont2pff.rb: Likewise.
54723 * util/i386/pc/biosdisk.c: Likewise.
54724 * util/i386/pc/getroot.c: Likewise.
54725 * util/i386/pc/pupa-mkimage.c: Likewise.
54726 * util/i386/pc/pupa-setup.c: Likewise.
54727
54728 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54729
54730 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54731 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54732 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54733 reading and reset it after reading.
54734 (pupa_ext2_close): Return PUPA_ERR_NONE.
54735
54736 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54737 Correct value.
54738 (struct linux_kernel_header): Add kernel_version and
54739 initrd_addr_max.
54740 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54741 pupa_file_read succeeds.
54742 (pupa_rescue_cmd_initrd): Implement.
54743
54744 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54745
54746 * fs/ext2.c (pupa_ext2_label): New function.
54747 (pupa_ext2_fs): Added label.
54748 * fs/fat.c (pupa_fat_label): New function.
54749 (pupa_fat_fs): Added label.
54750 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54751
54752 * kern/misc.c (pupa_strndup): New function.
54753 * include/pupa/misc.h (pupa_strndup): New prototype.
54754
54755 * include/pupa/normal.h: Include <pupa/err.h>.
54756 (pupa_set_history): New prototype.
54757 (pupa_iterate_commands): New prototype.
54758 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54759 <pupa/disk.h>, <pupa/file.h>.
54760 (hist_size): New variable.
54761 (hist_lines): Likewise.
54762 (hist_end): Likewise.
54763 (hist_used): Likewise.
54764 (pupa_set_history): New function.
54765 (pupa_history_get): Likewise.
54766 (pupa_history_add): Likewise.
54767 (pupa_history_replace): Likewise.
54768 (pupa_tab_complete): Likewise.
54769 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54770 completion shows partitionnames while completing partitions, this
54771 feature was suggested by Jeff Bailey.
54772 * normal/command.c (pupa_iterate_commands): New function.
54773 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54774 (pupa_normal_init): Initialize history buffer.
54775 (PUPA_MOD_INIT): Likewise.
54776 (pupa_normal_fini): Free the history buffer.
54777 (PUPA_MOD_FINI): Likewise.
54778
54779 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54780 key.
54781
54782 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54783 * configure.ac [i386]: Check for regparam bug.
54784 (NESTED_FUNC_ATTR) [! i386]: Defined.
54785
54786 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54787
54788 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54789 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54790 (pupa_emu_SOURCES): New variable.
54791 (pupa_emu_LDFLAGS): Likewise.
54792 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54793 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54794 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54795 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54796 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54797 (pupa_jmp_buf): New typedef.
54798 (pupa_setjmp) [PUPA_UTIL]: New macro.
54799 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54800 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54801 (pupa_refresh): New prototype.
54802 * include/pupa/util/getroot.h: New file.
54803 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54804 it.
54805 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54806 (pupa_rescue_cmd_cat): Likewise.
54807 (pupa_rescue_cmd_ls): Likewise.
54808 (pupa_rescue_cmd_testload): Likewise.
54809 (pupa_rescue_cmd_lsmod): Likewise.
54810 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54811 * normal/menu.c (run_menu): Likewise.
54812 * kern/term.c (pupa_cls): Likewise.
54813 (pupa_refresh): New function.
54814 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54815 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54816 * util/console.c: New file.
54817
54818 * util/i386/pc/getroot.c: New file.
54819 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54820 (pupa_putchar): New function.
54821 (pupa_refresh): Likewise.
54822 (xgetcwd): Function moved to ...
54823 (strip_extra_slashes): Likewise.
54824 (get_prefix): Likewise.
54825 * util/i386/pc/getroot.c: ... here.
54826 (find_root_device): Function moved and renamed to...
54827 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54828 Changed all callers.
54829 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54830 and renamed to...
54831 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54832 Changed all callers.
54833 * util/misc.c (pupa_memalign): New function.
54834 (pupa_mm_init_region): Likewise.
54835 (pupa_register_exported_symbols): Likewise.
54836 (pupa_putchar): Function removed.
54837 * util/pupa-emu.c: New file.
54838
54839 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54840
54841 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54842 (_multiboot_mod_SOURCES): New variable.
54843 (_multiboot_mod_CFLAGS): Likewise.
54844 * loader/i386/pc/multiboot.c: New file.
54845 * include/pupa/i386/pc/multiboot.h: Likewise.
54846 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54847 (pupa_multiboot_real_boot): New function.
54848 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54849 (pupa_multiboot_real_boot): New prototype.
54850 (pupa_rescue_cmd_multiboot): Likewise
54851 (pupa_rescue_cmd_module): Likewise.
54852
54853 * kern/loader.c (pupa_loader_set): Continue when
54854 pupa_loader_unload_func() fails.
54855 (pupa_loader_unset): New function.
54856 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54857
54858 * kern/misc.c (pupa_stpcpy): New function.
54859 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54860
54861 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54862
54863 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54864 for available extensions.
54865
54866 * include/pupa/i386/pc/time.h: New file.
54867 * kern/disk.c: Include <pupa/machine/time.h>.
54868 (PUPA_CACHE_TIMEOUT): New macro.
54869 (pupa_last_time): New variable.
54870 (pupa_disk_open): Flush the cache when there was a timeout.
54871 (pupa_disk_close): Reset the timer.
54872 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54873 pupa_currticks.
54874 * util/misc.c: Include <sys/times.h>
54875 (pupa_get_rtc): New function.
54876
54877 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54878
54879 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54880 as blocks.
54881 (pupa_ext2_get_file_block): Use blocks member.
54882
54883 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54884 first block. Return -1 instead of pupa_errno on error.
54885
54886 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54887
54888 * README: In the pupa-mkimage example use _chain instead of chain
54889 and ext2 instead of fat.
54890 * TODO: Replace ext2fs with jfs as an example. Add an item for
54891 adding journal playback for ext2fs.
54892 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54893 (pkgdata_MODULES): Added ext2.mod.
54894 (ext2_mod_SOURCES): New variable.
54895 (ext2_mod_CFLAGS): Likewise.
54896 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54897 * include/pupa/misc.h (pupa_strncpy): New prototype.
54898 (pupa_strcat): Likewise.
54899 (pupa_strncmp): Likewise.
54900 * kern/misc.c (pupa_strcat): Enable function.
54901 (pupa_strncpy): New function.
54902 (pupa_strncmp): Likewise.
54903 * fs/ext2.c: New file.
54904
54905 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54906 when the read failed before retrying.
54907 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54908 (_FILE_OFFSET_BITS): Likewise.
54909 * configure.ac: Added AC_SYS_LARGEFILE.
54910
54911 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54912
54913 * genmk.rb (PModule#rule): Make sure to get only symbol names
54914 from the output of nm.
54915 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54916
54917 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54918
54919 I forgot to check in these changes for a long time. This adds
54920 incomplete support for VGA console, and this is still very
54921 buggy. Also, a lot of consideration is required for I18N,
54922 UNICODE, and VGA font issues. Therefore, assume that this is
54923 such that "better than nothing".
54924
54925 * font/manager.c: New file.
54926 * include/pupa/font.h: Likewise.
54927 * include/pupa/i386/pc/vga.h: Likewise.
54928 * term/i386/pc/vga.c: Likewise.
54929 * util/unifont2pff.rb: Likewise.
54930
54931 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54932 (pkgdata_MODULES): Added vga.mod and font.mod.
54933 (vga_mod_SOURCES): New variables.
54934 (vga_mod_CFLAGS): Likewise.
54935 (font_mod_SOURCES): Likewise.
54936 (font_mod_CFLAGS): Likewise.
54937
54938 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54939
54940 * include/pupa/term.h: Include pupa/err.h.
54941 (struct pupa_term): Added init and fini.
54942 Changed the argument of putchar to pupa_uint32_t.
54943
54944 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54945 (pupa_console_real_putchar): New prototype.
54946 (pupa_console_putchar): Removed.
54947 (pupa_console_checkkey): Exported.
54948 (pupa_console_getkey): Likewise.
54949
54950 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54951 characters.
54952
54953 * kern/term.c (pupa_term_set_current): Rewritten.
54954 (pupa_putchar): Likewise.
54955 (pupa_putcode): New function.
54956
54957 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54958 (pupa_console_real_putchar): ... this.
54959 (pupa_vga_set_mode): New function.
54960 (pupa_vga_get_font): Likewise.
54961
54962 * normal/command.c: Include pupa/term.h.
54963 (terminal_command): New function.
54964 (pupa_command_init): Register the command "terminal".
54965
54966 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54967 (DISP_UP): Likewise.
54968 (DISP_RIGHT): Likewise.
54969 (DISP_DOWN): Likewise.
54970 (DISP_HLINE): Likewise.
54971 (DISP_VLINE): Likewise.
54972 (DISP_UL): Likewise.
54973 (DISP_UR): Likewise.
54974 (DISP_LL): Likewise.
54975 (DISP_LR): Likewise.
54976
54977 * term/i386/pc/console.c (pupa_console_putchar): New function.
54978
54979 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54980
54981 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54982 FIX. Reverse the path_list.
54983
54984 * include/pupa/normal.h: Export pupa_register_command and
54985 pupa_unregister_command.
54986
54987 * hello/hello.c (pupa_cmd_hello): New module.
54988 * conf/i386-pc.rmk: Added hello.mod.
54989
54990 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54991
54992 * kern/i386/pc/lzo1x.S: New file.
54993
54994 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54995 (compress_kernel): New variable.
54996 (generate_image): Heavily modified to support compressing a
54997 large part of the core image.
54998
54999 * util/misc.c (pupa_util_read_image): Fix a file descriptor
55000 leak.
55001 (pupa_util_load_image): New function.
55002
55003 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55004 (pupa_compressed_size): New variable.
55005 (codestart): Enable Gate A20 here.
55006 Decompress the compressed part of the core image.
55007 Rearrange the code to put functions and variables which are
55008 required for initialization in the non-compressed part.
55009 Include lzo1x.S.
55010
55011 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55012 here.
55013
55014 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55015
55016 * include/pupa/i386/pc/kernel.h
55017 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55018 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55019 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55020 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55021 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55022
55023 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55024
55025 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55026 (Utility#rule): Likewise.
55027
55028 * configure.ac: Check if LZO is available.
55029
55030 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55031
55032 * include/pupa/normal.h: New file.
55033 * include/pupa/setjmp.h: Likewise.
55034 * include/pupa/i386/setjmp.h: Likewise.
55035 * normal/cmdline.c: Likewise.
55036 * normal/command.c: Likewise.
55037 * normal/main.c: Likewise.
55038 * normal/menu.c: Likewise.
55039 * normal/i386/setjmp.S: Likewise.
55040
55041 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55042 (pupa_rescue_cmd_initrd): Likewise.
55043
55044 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55045 Likewise.
55046
55047 * kern/i386/pc/startup.S (translation_table): New variable.
55048 (translate_keycode): New function.
55049 (pupa_console_getkey): Call translate_keycode.
55050
55051 * kern/rescue.c (attempt_normal_mode): New function.
55052 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55053 it failed, print a message.
55054
55055 * kern/mm.c (pupa_real_malloc): Print more information when a
55056 free magic is broken.
55057 (pupa_free): If the first free header is not free actually, set
55058 it to P.
55059
55060 * kern/main.c (pupa_load_normal_mode): Just load the module
55061 "normal".
55062 (pupa_main): Don't print the message
55063 "Entering into rescue mode..." here.
55064
55065 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55066 Declared.
55067 (pupa_rescue_cmd_initrd): Likewise.
55068 (pupa_rescue_cmd_initrd): Likewise.
55069
55070 * include/pupa/symbol.h (FUNCTION): Specify the type.
55071 (VARIABLE): Likewise.
55072
55073 * include/pupa/err.h (pupa_err_t): Added
55074 PUPA_ERR_UNKNOWN_COMMAND.
55075
55076 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55077 (pupa_dl_get_prefix): Likewise.
55078
55079 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55080 Added _chain.mod and _linux.mod instead of chain.mod and
55081 linux.mod.
55082 (chain_mod_SOURCES): Renamed to ...
55083 (_chain_mod_SOURCES): ... this.
55084 (chain_mod_CFLAGS): Renamed to ...
55085 (_chain_mod_CFLAGS): ... this.
55086 (linux_mod_SOURCES): Renamed to ...
55087 (_linux_mod_SOURCES): ... this.
55088 (linux_mod_CFLAGS): Renamed to ...
55089 (_linux_mod_CFLAGS): ... this.
55090 (normal_mod_SOURCES): New variable.
55091 (normal_mod_CFLAGS): Likewise.
55092 (normal_mod_ASFLAGS): Likewise.
55093
55094 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55095
55096 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55097 possible.
55098
55099 * kern/dl.c (pupa_dl_ref): Refer depending modules
55100 recursively.
55101 (pupa_dl_unref): Unrefer depending modules recursively.
55102 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55103 a module is unloaded before one depending on that module is
55104 unloaded.
55105 (pupa_dl_unload): Unload depending modules explicitly,
55106 if possible.
55107
55108 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55109
55110 * include/pupa/i386/pc/linux.h: New file.
55111 * loader/i386/pc/linux.c: Likewise.
55112
55113 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55114 Removed.
55115 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55116 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55117 of PUPA_CHAINLOADER_BOOT_SECTOR.
55118
55119 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55120 (pupa_linux_prot_size): New variable.
55121 (pupa_linux_tmp_addr): Likewise.
55122 (pupa_linux_real_addr): Likewise.
55123 (pupa_linux_boot_zimage): New function.
55124 (pupa_linux_boot_bzimage): Likewise.
55125
55126 * kern/i386/pc/init.c (struct mem_region): New structure.
55127 (MAX_REGIONS): New macro.
55128 (mem_regions): New variable.
55129 (num_regions): Likewise.
55130 (pupa_os_area_addr): Likewise.
55131 (pupa_os_area_size): Likewise.
55132 (pupa_lower_mem): Likewise.
55133 (pupa_upper_mem): Likewise.
55134 (add_mem_region): New function.
55135 (compact_mem_regions): Likewise.
55136 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55137 the size of the conventional memory and that of so-called upper
55138 memory (before the first memory hole).
55139 Instead of adding each found region to free memory, use
55140 add_mem_region and add them after removing overlaps.
55141 Also, add only 1/4 of the upper memory to free memory. The rest
55142 is used for loading OS images. Maybe this is ad hoc, but this
55143 makes it much easier to relocate OS images when booting.
55144
55145 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55146 (pupa_enter_rescue_mode): Don't register initrd and module.
55147
55148 * kern/mm.c: Include pupa/dl.h.
55149
55150 * kern/main.c: Include pupa/file.h and pupa/device.h.
55151
55152 * kern/loader.c (pupa_loader_load_module_func): Removed.
55153 (pupa_loader_load_module): Likewise.
55154
55155 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55156 ``.o''.
55157
55158 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55159 (pupa_linux_tmp_addr): Likewise.
55160 (pupa_linux_real_addr): Likewise.
55161 (pupa_linux_boot_zimage): Likewise.
55162 (pupa_linux_boot_bzimage): Likewise.
55163
55164 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55165 (pupa_upper_mem): Likewise.
55166 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55167 module is too dangerous.
55168
55169 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55170 (pupa_os_area_size): Likewise.
55171 (pupa_loader_set): Remove the first argument. Loader doesn't
55172 manage modules or initrd any longer.
55173 (pupa_loader_load_module): Removed.
55174
55175 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55176 (linux_mod_SOURCES): New variable.
55177 (linux_mod_CFLAGS): Likewise.
55178
55179 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55180
55181 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55182 the length of a blocklist correctly.
55183
55184 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55185 Use ioctl only if the OS file is a block device.
55186 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55187 not very useful for normal files.
55188
55189 * kern/main.c (pupa_set_root_dev): New function.
55190 (pupa_load_normal_mode): Likewise.
55191 (pupa_main): Call those above.
55192
55193 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55194 pupa_uint16_t.
55195
55196 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55197
55198 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55199
55200 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55201 (setup): Configure the installed partition information and the
55202 dl prefix.
55203
55204 * loader/i386/pc/chainloader.c (my_mod): New variable.
55205 (pupa_chainloader_unload): New function.
55206 (pupa_rescue_cmd_chainloader): Refer itself.
55207 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55208
55209 * kern/i386/pc/startup.S (install_partition): Removed.
55210 (version_string): Likewise.
55211 (config_file): Likewise.
55212 (pupa_install_dos_part): New variable.
55213 (pupa_install_bsd_part): Likewise.
55214 (pupa_prefix): Likewise.
55215 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55216
55217 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55218 and pupa/misc.h.
55219 (make_install_device): New function.
55220 (pupa_machine_init): Set the dl prefix.
55221
55222 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55223 (buf): Renamed to ...
55224 (linebuf): ... this.
55225 (pupa_rescue_cmd_prefix): New function.
55226 (pupa_rescue_cmd_insmod): Likewise.
55227 (pupa_rescue_cmd_rmmod): Likewise.
55228 (pupa_rescue_cmd_lsmod): Likewise.
55229 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55230 rmmod and lsmod.
55231
55232 * kern/mm.c (pupa_memalign): If failed even after invalidating
55233 disk caches, unload unneeded modules and retry.
55234
55235 * kern/misc.c (pupa_memmove): New function.
55236 (pupa_memcpy): Removed.
55237 (pupa_strcpy): New function.
55238 (pupa_itoa): Made static.
55239
55240 * kern/dl.c (pupa_dl_iterate): New function.
55241 (pupa_dl_ref): Likewise.
55242 (pupa_dl_unref): Likewise.
55243 (pupa_dl_unload): Return if succeeded or not.
55244 (pupa_dl_unload_unneeded): New function.
55245 (pupa_dl_unload_all): Likewise.
55246 (pupa_dl_init): Renamed to ...
55247 (pupa_dl_set_prefix): ... this.
55248 (pupa_dl_get_prefix): New function.
55249
55250 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55251 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55252 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55253 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55254 (pupa_install_dos_part): Declared.
55255 (pupa_install_bsd_part): Likewise.
55256 (pupa_prefix): Likewise.
55257 (pupa_boot_drive): Likewise.
55258
55259 * include/pupa/types.h: Fix a typo.
55260
55261 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55262 pupa_memmove.
55263 (pupa_memmove): Declared.
55264 (pupa_strcpy): Likewise.
55265
55266 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55267 pupa_mod_init takes one argument, its own module.
55268 (pupa_dl_unload_unneeded): Declared.
55269 (pupa_dl_unload_all): Likewise.
55270 (pupa_dl_ref): Likewise.
55271 (pupa_dl_unref): Likewise.
55272 (pupa_dl_iterate): Likewise.
55273 (pupa_dl_init): Renamed to ...
55274 (pupa_dl_set_prefix): ... this.
55275 (pupa_dl_get_prefix): Declared.
55276
55277 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55278 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55279 unloaded.
55280 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55281 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55282
55283 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55284 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55285
55286 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55287
55288 * util/i386/pc/pupa-setup.c (setup): Define the internal
55289 function find_first_partition_start at the top level, because GCC
55290 3.0.x cannot compile internal functions in deeper scopes
55291 correctly.
55292 (find_root_device): Use lstat instead of stat.
55293 Don't follow symbolic links.
55294 Fix the path-constructing code.
55295
55296 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55297 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55298 by a BLKGETSIZE ioctl first, because block devices don't fill
55299 the member st_mode of the structure stat on Linux.
55300 [__linux__] (linux_find_partition): Use a temporary buffer
55301 REAL_DEV for the working space. Copy it to DEV before returning.
55302 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55303 buffer cache consistent.
55304 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55305 strncmp. The previous value was merely wrong.
55306 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55307
55308 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55309 FAT size is 12. The previous value was merely wrong.
55310
55311 * kern/main.c (pupa_main): Don't split the starting message from
55312 newlines.
55313
55314 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55315 LF, because BIOS goes crazy about character attributes in this
55316 case.
55317
55318 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55319
55320 * include/i386/pc/util/biosdisk.h: New file.
55321 * util/i386/pc/biosdisk.c: Likewise.
55322 * util/i386/pc/pupa-setup.c: Likewise.
55323
55324 * Makefile.in (INCLUDE_DISTFILES): Added
55325 include/pupa/i386/pc/util/biosdisk.h.
55326 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55327 directory util/i386/pc.
55328 (install-local): Added a rule for sbin_UTILITIES.
55329 (uninstall): Likewise.
55330
55331 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55332
55333 * util/misc.c (xrealloc): New function.
55334 (pupa_malloc): Likewise.
55335 (pupa_free): Likewise.
55336 (pupa_realloc): Likewise.
55337 (pupa_stop): Likewise.
55338 (pupa_putchar): Likewise.
55339
55340 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55341
55342 * include/pupa/util/misc.h (xrealloc): Declared.
55343
55344 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55345 macro.
55346 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55347 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55348
55349 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55350 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55351
55352 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55353 way should be implemented.
55354 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55355
55356 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55357 the size of NAME for safety.
55358 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55359 0x88.
55360
55361 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55362 (pupa_setup_SOURCES): Likewise.
55363
55364 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55365
55366 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55367
55368 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55369 bunch of pushl's from pusha, because this destroys the return
55370 value.
55371
55372 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55373
55374 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55375 This means that any missing prototypes could be fatal. Also, you
55376 must take care when writing assembly code. See the comments at
55377 the beginning of startup.S, for more details.
55378
55379 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55380 compilation mechanism.
55381 (pupa_chainloader_real_boot): Likewise.
55382 (pupa_biosdisk_rw_int13_extensions): Likewise.
55383 (pupa_biosdisk_rw_standard): Likewise.
55384 (pupa_biosdisk_check_int13_extensions): Likewise.
55385 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55386 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55387 (pupa_get_memsize): Likewise.
55388 (pupa_get_mmap_entry): Likewise.
55389 (pupa_console_putchar): Likewise.
55390 (pupa_console_setcursor): Likewise.
55391 (pupa_getrtsecs): Use pushl instead of push.
55392
55393 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55394 memory instead of the stack for a mmap entry, because some
55395 BIOSes may ignore the maximum size and overflow.
55396
55397 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55398
55399 * genmk.rb (PModule#rule): Compile automatically generated
55400 sources with module-specific CFLAGS as well as other sources.
55401
55402 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55403
55404 * configure.ac: Check ld.
55405 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55406 respectively, before checking endianness and sizes.
55407
55408 * Makefile.in (LD): New variable.
55409
55410 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55411
55412 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55413
55414 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55415
55416 * Changelog: New file.
55417