]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Replace explicit sizeof divisions by ARRAY_SIZE.
[grub2.git] / ChangeLog
1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Replace explicit sizeof divisions by ARRAY_SIZE.
4
5 2015-01-19 Kris Moore <kris@pcbsd.org>
6
7 * grub-core/disk/geli.c: Support GELI v6 and v7.
8
9 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
10
11 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
12 option processing.
13
14 2014-12-07 David Kozub <zub.272@gmail.com>
15
16 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
17 in __aeabi_uidivmod
18 Fixes Savannah bug #43632.
19
20 2014-12-07 Peter Nelson <peterdn>
21
22 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
23 chunks.
24
25 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
26
27 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
28 non-portable '-n' echo option.
29 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
30 non-portable 'echo -n.
31 * util/grub.d/10_linux.in: Likewise (closes 43668).
32 * util/grub.d/20_linux_xen.in: Likewise.
33 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
34 non-portable 'echo -n'.
35
36 2014-12-07 Curtis Larsen <larsen@dixie.edu>
37
38 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
39 free when multiple empty segments were received (closes 42765).
40
41 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
42
43 * tests/util/grub-shell.in: Support --files also for netboot.
44 * tests/file_filter_test.in: New file with file filters tests.
45 * Makefile.util.def: Add file_filter_test.
46 * conf/Makefile.extra-dist: ... and here.
47 * tests/file_filter/file.gz: Test file for file_filter_test.
48 * tests/file_filter/file.gz.sig: Likewise.
49 * tests/file_filter/file.lzop: Likewise.
50 * tests/file_filter/file.lzop.sig: Likewise.
51 * tests/file_filter/file.xz: Likewise.
52 * tests/file_filter/file.xz.sig: Likewise.
53 * tests/file_filter/keys: Likewise.
54 * tests/file_filter/keys.pub: Likewise.
55 * tests/file_filter/test.cfg: Likewise.
56 * grub-core/commands/verify.c: Fix memory corruption doing
57 signature check for network files (closes 43601).
58
59 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
60
61 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
62 memory leak (CID 73645, 73782).
63 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
64 (CID 73635).
65
66 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
67
68 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
69 inline array (CID 73610).
70
71 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
72
73 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
74 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
75 (Coverity CID 73813, 73710)
76 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
77 and use after free (Coverity CID 73813, 73710, 73730)
78 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
79 CID 73854)
80 * util/grub-install-common.c (grub_install_get_target): Check return
81 value of grub_util_fd_read (Coverity CID 73819).
82 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
83 to hd.magic (Coverity CID 73587, 73888, bug 43690).
84
85 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
86
87 * tests/util/grub-fs-tester.in: Consistently print output
88 of grub ls if test fails.
89
90 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
91
92 * grub-core/kern/efi/init.c: check value of *path before
93 dereferencing.
94
95 2014-11-03 Michael Chang <mchang@suse.com>
96
97 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
98 of neighbor solicitation packet in grub_netbuff_pull.
99
100 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
101
102 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
103 avoid fatal warnings with older gcc (probably before 4.7).
104 * grub-core/loader/arm64/linux.c: Likewise.
105 * grub-core/loader/i386/linux.c: Likewise.
106 * grub-core/loader/i386/pc/linux.c: Likewise.
107 * grub-core/loader/ia64/efi/linux.c: Likewise.
108 * grub-core/loader/mips/linux.c: Likewise.
109 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
110 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
111
112 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
113
114 Fix in-tree --platform=none
115
116 * configure.ac: Only remove include/grub/cpu and
117 include/grub/machine in the --platform=none case, not all of
118 include/grub.
119
120 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
121
122 Add a new "none" platform that only builds utilities
123
124 * configure.ac: Add "none" platform. Default to it for unsupported
125 CPUs rather than stopping with a fatal error. Don't downgrade
126 x86_64-none to i386. Define COND_real_platform Automake conditional
127 if the platform is anything other than "none". Don't do any include
128 directory linking for "none".
129 * Makefile.am: Skip building grub-core and all bootcheck targets if
130 !COND_real_platform.
131 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
132 is defined.
133
134 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
135
136 Use grub_cpu_to_XXX_compile_time for constants.
137
138 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
139
140 The AML parser implements only a small subset of possible AML
141 opcodes. On the Fujitsu Lifebook E744 this and another bug in
142 the parser (incorrect handling of TermArg data types) would lead
143 to the laptop not turning off (_S5 not found).
144
145 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
146 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
147 aren't always simply strings!); Add function to skip TermArgs
148 * include/grub/acpi.h: Add new opcodes
149
150 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/normal/main.c: Don't drop to rescue console in
153 case of password-protected prompt and no menu entries.
154
155 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
156
157 * grub-core/commands/keylayouts.c: Ignore unknown keys.
158
159 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
160
161 * grub-core/gmodule.pl.in: Accept newer binutils which output
162 empty column rather than 0x0.
163
164 2014-09-21 Michael Chang <mchang@suse.com>
165
166 * grub-core/osdep/unix/config.c: Remove extraneous comma.
167
168 2014-09-21 Peter Jones <pjones@redhat.com>
169
170 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
171 we don't free a random pointer from the stack.
172 * grub-core/loader/arm64/linux.c: Likewise.
173 * grub-core/loader/i386/linux.c: Likewise.
174 * grub-core/loader/i386/pc/linux.c: Likewise.
175 * grub-core/loader/ia64/efi/linux.c: Likewise.
176 * grub-core/loader/mips/linux.c: Likewise.
177 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
178 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
179
180 2014-09-15 Khem Raj <raj.khem@gmail.com>
181
182 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
183 _BSD_SOURCE to avoid warnings under glibc 2.20+.
184
185 2014-09-08 Michael Chang <mchang@suse.com>
186
187 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
188 check; comparing &data->extent against addresses in the region it
189 points to is unpredictable.
190
191 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
192
193 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
194
195 * configure.ac: Remove -m64 from checks for -mcmodel=large and
196 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
197 already in TARGET_CFLAGS at this point, and they produce incorrect
198 results when building for x32.
199 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
200 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
201 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
202 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
203
204 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
205
206 * configure.ac: Remove several unnecessary semicolons.
207
208 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
209
210 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
211 Initialise pend to pacify GCC.
212
213 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
214
215 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
216 gettext_printf).
217
218 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * grub-core/term/at_keyboard.c: Retry probing keyboard if
221 scancode setup failed.
222
223 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
226
227 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
230 safety to avoid triggerring VirtualBox bug.
231
232 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
235
236 Fixes hang on virtualbox.
237
238 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
239
240 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
241 kernels whose paths contain regex metacharacters.
242 * util/grub.d/10_kfreebsd.in: Likewise.
243 * util/grub.d/10_linux.in: Likewise.
244 * util/grub.d/20_linux_xen.in: Likewise.
245
246 Reported by: Heimo Stranner.
247
248 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
249
250 * docs/grub-dev.texi (Finding your way around): The build system no
251 longer uses AutoGen directly.
252
253 2014-06-21 Роман Пехов <roman_pekhov>
254
255 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
256
257 2014-06-21 Glenn Washburn <development@efficientek.com>
258
259 * util/grub-install.c: Fix handling of --disk-module.
260
261 2014-06-21 Stephane Rochoy <sheda>
262
263 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
264 EFI system table.
265
266 2014-06-21 Stephane Rochoy <sheda>
267
268 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
269 EFI system table physical address.
270
271 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
272
273 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
274
275 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
276
277 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
278
279 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
282 check.
283
284 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
287
288 Reported by: Yves Blusseau <blusseau@zetam.org>.
289
290 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
291
292 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
293 GDT in conventional memory.
294
295 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
296
297 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
298 UUID. Other parts of grub-mkconfig tolerate these, they were
299 previously allowed here up to commit
300 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
301 practice when the system has active LVM snapshots.
302 Fixes Ubuntu bug #1287436.
303
304 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
305
306 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
307 "logical_volumes" block a little more accurately.
308
309 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
312
313 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
314
315 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
316 pulled from libgcc.
317
318 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
319
320 Replace few instances of memcmp/memcpy in the code that should be
321 grub_memcmp/grub_memcpy.
322
323 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
326 device names.
327
328 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
329
330 btrfs: fix get_root key comparison failures due to endianness
331
332 * grub-core/fs/btrfs.c (get_root): Convert
333 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
334
335 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
336
337 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
338
339 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
340 no longer to be forgiving of trailing spaces on grub-probe output
341 lines, which among other things means that util/grub.d/10_linux.in
342 no longer detects LVM. To fix this, make grub-probe's output
343 delimiting more consistent. As a bonus, this improves the coverage
344 of the -0 option.
345
346 Fixes Debian bug #735935.
347
348 * grub-core/disk/cryptodisk.c
349 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
350 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
351 Likewise.
352 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
353 Update prototype.
354 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
355 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
356 probe_mods): Adjust for extra user-data arguments.
357 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
358 probe_abstraction): Use configured delimiter. Update callers.
359
360 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
361
362 * util/grub-probe,c (options): Make -0 work again (broken by
363 conversion to argp).
364 (main): Simplify logic.
365
366 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
367
368 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
369
370 2014-03-26 Fu Wei <fu.wei@linaro.org>
371
372 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
373
374 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
375
376 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
377 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
378
379 Suggested by: Markus Müller.
380
381 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
382
383 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
384 if E820 failed to return any regions.
385
386 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
389 tables for low memory calculations.
390
391 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
394 location to 640K.
395
396 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
399 region.
400
401 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
404 exclusively.
405
406 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
407
408 Add bootpath parser for open firmware.
409
410 It enables net boot even when there is no bootp/dhcp server.
411
412 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
413 and call it at grub_ieee1275_net_config_real.
414 * grub-core/kern/ieee1275/init.c: Add bootpath to
415 grub_ieee1275_net_config.
416 * include/grub/ieee1275/ieee1275.h: Likewise.
417
418
419 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
420
421 Add grub_env_set_net_property function.
422
423 * grub-core/net/bootp.c: Remove set_env_limn_ro.
424 * grub-core/net/net.c: Add grub_env_set_net_property.
425 * include/grub/net.h: Likewise.
426
427 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
428
429 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
430
431 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
432
433 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
434
435 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
438 7 seconds to recover if last poweroff was bad.
439
440 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
441
442 * grub-core/disk/ahci.c: Properly handle transactions with no
443 transferred data.
444
445 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
446
447 * grub-core/disk/ahci.c: Add safety cleanups.
448
449 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
450
451 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
452 slots to avoid pointing to uninited area.
453
454 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
455
456 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
457 enabling busmaster for the end.
458
459 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * util/grub-mkfont.c: Downgrade warnings about unhandled features
462 to debug.
463
464 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
467
468 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
469
470 * .gitignore: add missing files and .exe variants.
471
472 2014-01-26 Mike Gilbert <floppym@gentoo.org>
473
474 grub-install: support for partitioned partx loop devices.
475
476 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
477 /dev/loopX as being the parent of /dev/loopXpY.
478
479 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
480
481 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
482 Ensure that pointers are inited to NULL and that pointers are not
483 accessed after free.
484
485 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
486
487 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
488 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
489 * include/grub/emu/misc.h: ... and here.
490 * include/grub/err.h: ... and here.
491 * util/import_gcry.py: ... and here (in files g10lib.h).
492
493 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
494
495 * util/grub-mkimage.c: Make prefix argument mandatory.
496
497 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
498
499 Fix several translatable strings.
500
501 Suggested by: D. Prévot.
502
503 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * util/grub-install.c: List available targets.
506
507 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
508
509 * util/grub-install.c (write_to_disk): Add an info message.
510
511 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
512
513 * Makefile.am: Allow adding extra files to generated Windows ZIP
514 archive by setting GRUB_WINDOWS_EXTRA_DIST.
515
516 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
517
518 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
519 Show detected font path in summary.
520
521 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
522
523 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
524 interval gradually.
525 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
526 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
527 * grub-core/net/tftp.c (tftp_open): Likewise.
528 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
529
530 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
531
532 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
533 infinite loops.
534
535 In net/net.c there is a while (1) that only exits if there is a stop
536 condition and more then 10 packages or if there is no package received.
537
538 If GRUB is idle and enter in this loop, the only condition to leave is
539 if it doesn't have incoming packages. In a network with heavy traffic
540 this never happens.
541
542 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
543
544 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
545 EPERM when modifying kern.geom.debugflags. It is only a problem for
546 such things as installing GRUB to the MBR, in which case there'll be
547 an error later anyway, not for opening files during tests.
548
549 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
550
551 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
552 instead of MOD_FILES.
553 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
554 both with and without .exe.
555 * grub-core/genemuinitheader.sh: Same.
556
557 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
558
559 * util/grub-install.c: Fix a typo.
560
561 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/normal/main.c (read_config_file): Buffer config file.
564 Reduces boot time.
565
566 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
567
568 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
569 symbolic link to directory. It fails in Msys shell on Windows 2003.
570
571 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
572
573 * Makefile.am (default_payload.elf): Add modules
574 multiboot cbmemc linux16 gzio echo help.
575
576 2014-01-18 Mike Gilbert <floppym@gentoo.org>
577
578 * Makefile.util.def: Link grub-ofpathname with zfs libs.
579
580 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
581
582 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
583 conflicts.
584
585 Reported by: Andrey Borzenkov.
586
587 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
588
589 * include/grub/misc.h: Move macros for compiler features to ...
590 * include/grub/compiler.h: ... new file.
591 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
592 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
593 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
594 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
595 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
596 * grub-core/video/capture.c: Include <grub/misc.h>.
597 * include/grub/command.h: Include <grub/misc.h>.
598 * include/grub/dl.h: Include <grub/misc.h>.
599 * include/grub/procfs.h: Include <grub/misc.h>.
600
601 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
602
603 * configure.ac: Add support for BUILD_EXEEXT and use it ...
604 * Makefile.am: ... here.
605 * Makefile.util.def: ... and here.
606 * grub-core/Makefile.am: ... and here.
607
608 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
609
610 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
611 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
612
613 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * grub-core/term/terminfo.c: Recognize keys F1-F12.
616
617 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
618
619 * configure.ac: Add support for BUILD_LDFLAGS.
620 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
621 * grub-core/Makefile.am: ... and here.
622 * INSTALL: Mention BUILD_LDFLAGS.
623
624 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
625
626 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
627
628 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
629
630 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
631 and has no //.
632
633 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
634
635 * NEWS: Add few missing entries.
636
637 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
638
639 * util/grub.d/00_header.in (make_timeout): Use && rather than test
640 -a.
641 * util/grub.d/10_windows.in: Likewise.
642 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
643 than test -o.
644 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
645 rather than test -o.
646
647 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
648
649 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
650 redundant preprocessor conditional.
651
652 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
653
654 * Makefile.util.def (grub-macbless): Change mansection to 8.
655
656 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
657
658 * grub-core/loader/arm64/linux.c: correctly set device path end length.
659
660 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
661
662 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
663 arm64 to comply with EFI specification. Also use grubaa64.efi for
664 consistency.
665 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
666
667 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
668
669 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
670 on MinGW-64 when compiling for 32 bits.
671
672 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
673
674 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
675
676 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
677
678 * NEWS: Add few missing entries. Correct existing ones.
679
680 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
681
682 Don't abort() on unavailable coreboot tables if not running on coreboot.
683
684 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
685
686 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
687 on mingw.
688
689 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
690
691 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
692 mention of it from 2.02.
693
694 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
695
696 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
697
698 As these functions are used on pre-ARMv6 CPUs as well we don't want
699 to make assembler assume that architecture is higher than default one.
700
701 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
702
703 * NEWS: First draft of 2.02 entry.
704
705 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
706
707 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
708 * docs/grub.texi (Getting the source code): Likewise.
709
710 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
711
712 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
713 detection.
714
715 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * configure.ac: Set version to 2.02~beta2.
718
719 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
722
723 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
724
725 * util/grub-probe.c: Improve help message and simplify list handling.
726
727 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
728
729 Fix buffer overflow in grub_efi_print_device_path.
730
731 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
732
733 Show SATA device path.
734
735 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Revert grub-file usage in grub-mkconfig.
738
739 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
740
741 Make newly-created files other than grub.cfg world-readable.
742
743 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
744
745 * util/grub.d/00_header.in: Improve compatibility with old config.
746
747 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
748
749 Make rijndael.c respect aliasing rules.
750
751 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
752
753 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
754
755 Make grub_util_device_is_mapped_stat available in grub-emu core.
756
757 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
758
759 Add -Qn to TARGET_CFLAGS if it's supported.
760 Fixes compilation on cygwin.
761
762 Reported by: Andrey Borzenkov.
763 Suggested by: Andrey Borzenkov.
764
765 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
766
767 Save TARGET_CC version in modinfo.sh.
768
769 Suggested by: Andrey Borzenkov.
770
771 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
772
773 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
774 follow the same algorithm to avoid method mismatch. Don't assume
775 DMRAID- UUID to mean full disk but instead check that mapping is linear.
776
777 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
778
779 Declare GRUB_EFI_VENDOR_APPLE_GUID.
780
781 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
782
783 Dump type and vendor specific data when printing device path.
784
785 2013-12-23 Colin Watson <cjwatson@debian.org>
786
787 Update some documentation to refer to Git rather than Bazaar.
788
789 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
790 than Bazaar.
791 * po/README: Likewise. Fix spelling mistake.
792
793 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
794
795 Don't distribute config.h.
796
797 * Makefile.am (platform_HEADERS): Move to ...
798 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
799 failure when building from a distributed tarball.
800
801 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
802
803 * configure.ac: Fix spelling.
804 * grub-core/commands/parttool.c: Fix grammar.
805 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
806 Embedding Partition".
807
808 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
809
810 ARM64 support for grub-mkrescue.
811
812 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
813
814 Install modinfo.sh to keep build information around.
815
816 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/modinfo.sh.in: Add build config information.
819
820 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
821
822 ARM64 grub-file and grub-mkconfig support.
823
824 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
825
826 Remove leftover options defines.
827
828 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
831
832 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * grub-core/loader/arm64/linux.c: Add missing bracket.
835
836 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
837
838 Add arm64-efi recognition to grub-file.
839
840 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
841
842 Fix ia64-efi recognition in grub-file.
843
844 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
845
846 Recognize raspberry pi kernel in grub-file.
847
848 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
849
850 Enable cache on ARM U-Boot port.
851
852 Without it the port is reidiculously slow.
853
854 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
855
856 Fix ARM cache maintainance.
857
858 More code was converted from ASM to C for easier handling.
859
860 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
861
862 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
863 algorithm on v5.
864
865 Suggested by: Leif Lindholm.
866
867 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
868
869 * util/grub-mkconfig.in: Fix Xen platform conditions.
870
871 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
872
873 * util/grub-mkrescue.c: Split single help message string in several
874 strings used in previous shell version.
875
876 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
877
878 Add arm64 Linux loader.
879
880 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
881
882 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
883
884 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
885
886 Add module loading and parsing boot time checkpoints.
887
888 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
889
890 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
891 platforms.
892
893 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
894
895 * util/grub-mkconfig.in: Skip non-executable files.
896
897 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
898
899 Workaround buggy timer in raspberry pie by using our own timer
900 implementation.
901
902 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
905 Increase to 16 MiB to allow loading the whole memdisk.
906
907 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
908
909 Fix ARM Linux Loader on non-FDT platforms.
910
911 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
912
913 * configure.ac: Choose link format based on host_os on emu.
914
915 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
916
917 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
918
919 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
920
921 * grub-core/kern/emu/main.c: Build fix for emu.
922
923 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
924
925 Build fixes for argp.h with older gcc.
926
927 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
928
929 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
930 in strings.
931
932 Suggested by: David Prévot.
933
934 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
937
938 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
939
940 Enable -Wformat=2 if it's supported.
941
942 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
943
944 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
945 -Wmissing-declarations if supported.
946
947 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
948
949 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
950 u32 as both HFS and HFS+ have 32-bit inodes.
951
952 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * include/grub/misc.h (grub_strtol): Fix overflow.
955
956 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
957
958 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
959 as return type in both conditionals.
960
961 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
962
963 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
964 to use uint8_t for color.
965
966 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
967
968 * util/misc.c (grub_util_get_image_size): Check for overflow.
969
970 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
971
972 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
973 for size.
974
975 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
978 for pointer difference.
979
980 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
981
982 * util/import_gcry.py: Skip sample keys.
983
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
985
986 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
987
988 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * configure.ac: Remove duplicate warning arguments.
991
992 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
993
994 Add missing static qualifiers.
995
996 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
997
998 Add missing includes.
999
1000 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 Inline printf templates when possible to enable format checking.
1003
1004 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1005
1006 * include/grub/crypto.h: Don't discard const attribute.
1007
1008 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1011 was intended.
1012
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * grub-core/lib/crypto.c: Don't discard const attribute.
1016
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/lib/disk.c: Fix potential overflow.
1020
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/lib/arg.c: Don't discard const attribute.
1024
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 * grub-core/kern/dl.c: Don't discard const attribute.
1028
1029 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * grub-core/kern/disk.c: Fix potential overflow.
1032
1033 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * conf/Makefile.common: Don't include non-existing directory
1036 grub-core/lib/libgcrypt-grub/include.
1037
1038 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 Clarify several translatable messages.
1041
1042 2013-12-21 David Prévot <david@tilapin.org>
1043
1044 Correct some translatable strings.
1045
1046 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1047
1048 * util/grub-mkrescue.c: Rephrase mkrescue description.
1049
1050 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1052
1053 Clarify several translatable messages.
1054
1055 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1056
1057 Be more verbose about some configure failures.
1058
1059 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1060
1061 Fix various build problems on GNU/Hurd.
1062
1063 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1064 !defined (__GNU__).
1065 (xgetcwd): Likewise.
1066 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1067 [__GNU__]: Add prototype.
1068 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1069 long int using %ld rather than %d.
1070
1071 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * util/grub-install.c: Inform user about install platform.
1074
1075 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 * configure.ac: Set version to 2.02~beta1.
1078
1079 2013-12-18 Allen Pais <allen.pais@oracle.com>
1080 2013-12-18 Bob Picco <bob.picco@oracle.com>
1081
1082 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1083
1084 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 Make grub_zlib_decompress handle incomplete chunks.
1087
1088 Fixes squash4.
1089
1090 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1093 on i386-multiboot.
1094
1095 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1096
1097 * grub-core/disk/usbms.c: Retry on unknown errors.
1098 Reuse the same tag on retries.
1099
1100 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1101
1102 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1103
1104 Avoid confusing them with already completed transfers.
1105
1106 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Remove xen VFB.
1109
1110 Due to XEN bug it prevents Linux boot. Remove it at least, until
1111 workaround is found.
1112
1113 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1114
1115 * po/exclude.pot: Add 2 missing excludes.
1116
1117 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1118
1119 Add missing license section in macbless.mod and macho.mod.
1120
1121 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 Allow compilation without thumb-interwork as long as no thumb is
1124 involved or only thumb2 is used.
1125
1126 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1129
1130 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 Add __attribute__ ((sysv_abi)) only if it's really needed.
1133
1134 Some compilers don't support it.
1135
1136 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1137
1138 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1139
1140 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1141
1142 Remove -Wold-style-definition.
1143
1144 Not very useful and interaction of it with regexp depends on GCC
1145 version.
1146
1147 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 Make grub_util_get_windows_path_real static.
1150
1151 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/commands/fileXX.c: Silence cast-align.
1154 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1155
1156 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1159 rather than LL suffix.
1160
1161 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1164
1165 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 * grub-core/loader/arm/linux.c: Use common initrd functions.
1168
1169 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 Decrease number of strings to translate.
1172
1173 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1176
1177 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 Mark strings for translation and add remaining ones to exclude list.
1180
1181 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 * util/grub-file.c (main): Fix sizeof usage.
1184
1185 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 Silence spurious warning.
1188
1189 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 Remove check_nt_hiberfil as it's been superseeded by file command.
1192
1193 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1196
1197 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1198
1199 Implement syslinux parser.
1200
1201 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1204
1205 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 Support cpuid --pae.
1208
1209 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 Use AT keyboard on Yeeloong 3A.
1212
1213 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Add Yeeloong 3A reboot and halt.
1216
1217 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1218
1219 Add Radeon Yeeloong 3A support.
1220
1221 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 Add bonito 3A support.
1224
1225 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1226
1227 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1228
1229 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1230
1231 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1232
1233 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 * grub-core/loader/macho.c: Fix compilation on non-i386.
1236
1237 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 Add missing format_arg attribute to check that printf with translated
1240 messages has proper arguments.
1241
1242 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Use grub_xasprintf to format translated error messages containing
1245 64-bit quantity.
1246
1247 2013-12-17 Jon McCune <jonmccune@google.com>
1248
1249 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1250
1251 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 Unify message for unsupported relocation.
1254
1255 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 Mark miscompile error for translation.
1258
1259 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 Use %I64 and not %ll when using OS printf if compiling for windows.
1262
1263 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 Update Mac code to match new register_efi prototype.
1266
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Implement better integration with Mac firmware.
1270
1271 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1272
1273 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1274 load_addr.
1275
1276 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 Include serial module in default_payload.elf.
1279
1280 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 Add explicit thumb interwork bx in asm files.
1283
1284 Shouldn't matter for armv >= 5 but let's be safe.
1285
1286 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 Implement Truecrypt ISO loader.
1289
1290 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1293
1294 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 Implement grub_file tool and use it to implement generating of config
1297 in separate root.
1298
1299 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Change to v1 xen grants.
1302
1303 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1306
1307 GRUB relied on %ebx being preserved across hypercall which isn't true.
1308
1309 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1312
1313 GRUB relied on %rdi being preserved across hypercall which isn't true.
1314
1315 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 Implement XEN VFB support.
1318
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 Remove grub_bios_interrupt on coreboot.
1322
1323 It's not used currently and cannot be used safely currently.
1324
1325 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 Update exclude.pot and mark few strings for translation.
1328
1329 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1332
1333 Reported by: Jon McCune
1334
1335 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1336
1337 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1338 Add verbose information which firmware directories were tried.
1339
1340 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1341
1342 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1343 function to optionally redirect all three standard descriptors.
1344 Redefine grub_util_exec, grub_util_exec_redirect and
1345 grub_util_exec_redirect_null to use it.
1346 * include/grub/emu/exec.h: Define it.
1347 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1348 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1349 Use grub_util_exec_redirect_all to redirect error to NULL.
1350
1351 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * grub-core/tests/sleep_test.c: Silence spurious warning.
1354
1355 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1358 linker trying to "fixup" the code.
1359
1360 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1363
1364 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1365
1366 Add support for converting PE+ to Elf64.
1367
1368 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1371
1372 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1373
1374 Remove practice of assigning random const pointers to device id.
1375
1376 This is not required as cache code already checks driver id as well.
1377
1378 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1379
1380 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1381 with mingw.
1382
1383 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1386 mingw or cygwin as API already matches.
1387
1388 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1389
1390 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1391
1392 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1395 not on long.
1396
1397 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 Handle X86_64_PC64 relocation.
1400
1401 Those are generated by some cygwin compilers.
1402
1403 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 Determine the need for mingw-related stubs at compile time rather than
1406 using not very significant $target_os.
1407
1408 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1411 may not work with ELF.
1412
1413 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 Use unix functions for temporary files and special files on cygwin.
1416
1417 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 Define functions explicitly rather than using --defsym in tests
1420 whenever possible. Respect locality in remaining cases.
1421
1422 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1425
1426 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1427
1428 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1429 unlikely errors when getting EFI variables and make exhaustive search
1430 for all BootNNNN variables to find matching one.
1431
1432 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1433
1434 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1435
1436 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1437
1438 New functional test for sleep function.
1439
1440 This test allows to check sleep without qemu. Keep qemu version as
1441 well as functional test won't notice if all clocks are going too fast
1442 or too slow.
1443
1444 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1445
1446 Add explicit sysv_abi on amd64 asm routines.
1447
1448 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1451 num_table_entries.
1452
1453 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1456 functions.
1457
1458 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1461 appropriate.
1462
1463 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1466
1467 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1468
1469 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1470 appropriate.
1471
1472 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1473
1474 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1475
1476 In case of quick removal of loopback and adding another one it may
1477 get same ID, confusing the cache system.
1478
1479 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1480
1481 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1482 appropriate.
1483
1484 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1487 than converting to long.
1488
1489 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1492
1493 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1496 than almost useless pointer.
1497
1498 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 Add gcc_struct to all packed structures when compiling with mingw.
1501
1502 Just "packed" doesn't always pack the way we expect.
1503
1504 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1507
1508 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * util/grub-pe2elf.c: Fix handling of .bss.
1511
1512 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 Implement windows flavour of EFI install routines.
1515
1516 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1519
1520 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1521
1522 Change grub_install_register_efi interface to pass GRUB device.
1523
1524 This allows grub_install_register_efi to request partition info
1525 directly.
1526
1527 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1530
1531 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 Do not use TCHAR string functions as they are not available on cygwin.
1534
1535 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 Workaround windows bug when querying EFI system partition parameters.
1538
1539 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1542 by using bitfields.
1543
1544 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1547
1548 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1549
1550 Make i386-* other than i386-pc compileable under cygwin.
1551
1552 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 Fix definition of grub_efi_hard_drive_device_path. Take care that
1555 existing code would work even if by some reason bogus definition is
1556 used by EFI implementations.
1557
1558 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1561
1562 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1563
1564 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1565 invocation.
1566
1567 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1568
1569 * util/config.c: Remove trailing newline from distributor in simple
1570 parsing.
1571
1572 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * include/grub/efi/api.h: Rename protocol and interface to avoid
1575 conflict.
1576
1577 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 * .gitignore: add .exe variants. add missing files. remove few outdated
1580 entries.
1581
1582 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 * grub-core/osdep/exec.c: Use unix version on cygwin.
1585
1586 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 Implement multiboot2 EFI BS specification.
1589
1590 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1593 Crash happened only in some cases like a string starting at the
1594 half of the screen of same length.
1595
1596 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1599 with EFI counterpart.
1600
1601 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 Propagate the EFI commits to x86-efi specific parts.
1604
1605 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1606
1607 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1608
1609 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 Introduce grub_efi_packed_guid and use it where alignment is not
1612 guaranteed.
1613
1614 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1615
1616 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1617 unaligned u16 rather than u8[2].
1618
1619 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1620
1621 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1622 for relocation range.
1623
1624 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1627 non-function pcrel21b relocation. It happens with .text.unlikely
1628 section.
1629
1630 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1631
1632 * make MAX_USABLE_ADDRESS platform-specific
1633 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1634
1635 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1636
1637 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1638
1639 2013-12-09 Jon McCune <jonmccune@google.com>
1640
1641 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1642 in grub-install and grub-bios-setup for x86 BIOS targets.
1643
1644 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 Add missing compile and link options for sparc64-emu.
1647
1648 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 Implement sparc64 trampolines (needed for sparc64-emu).
1651
1652 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1655 range of R_SPARC_HI22.
1656 Implement R_SPARC_LM22.
1657
1658 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1661 Do not explicitly check for symbol table as it's already checked in
1662 platform-independent layer.
1663
1664 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1667 on ia64 as __clear_cache is a dummy on ia64.
1668
1669 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1672 Do not explicitly check for symbol table as it's already checked in
1673 platform-independent layer.
1674
1675 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1676
1677 * util/grub-mkconfig.in: Add missing newline to output.
1678
1679 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1682 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1683
1684 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1687 compilation with GCC <= 4.2.
1688 * grub-core/kern/emu/argp_common.c: Likewise.
1689
1690 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1693 right platform rather than leaking to sparc64-emu.
1694
1695 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1696
1697 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1698 But ensure that the variables in question are indeed unsigned.
1699
1700 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1701
1702 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1703
1704 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 Remove grub_memalign on emu.
1707
1708 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1711 truncate incomplete lines but instead flushes them.
1712
1713 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1716 and implement windows variant.
1717
1718 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 Fix mips-emu compilation.
1721
1722 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1723
1724 * configure.ac: Check for freetype library usability.
1725
1726 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Make arm-emu work.
1729
1730 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1733
1734 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1735
1736 * docs/grub.texi (Environment): Update color_normal and color_highlight
1737 defaults (light-gray instead of white).
1738
1739 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1740
1741 * grub-core/normal/main.c (INIT): Set default color to light-gray
1742 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1743 and apparently BIOS defaults.
1744
1745 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1746
1747 Transform -C option to grub-mkstandalone to --core-compress available
1748 in all grub-install flavours.
1749
1750 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1751
1752 Merge GRUBFS and GRUB_FS variables.
1753
1754 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1755
1756 Revert commit 69ca97c820, it caused failures when using OS device name
1757 in grub-install. Instead just strip off parenthesis in grub-install
1758 if (hdX) was passed.
1759
1760 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1761
1762 * util/grub-install.c (push_partmap_module): Add helper to convert
1763 partmap names to module names and use it in probe_mods(). Fixes
1764 failure to find partmap modules in diskfilter case.
1765
1766 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * configure.ac: Make unifont mandatory on coreboot.
1769
1770 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * configure.ac: Skip unifont 6.3 pcf and bdf.
1773
1774 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * Makefile.am: Remove partial font files if generation failed.
1777
1778 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1779
1780 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1781 strings.
1782 * include/grub/util/misc.h: Define it ...
1783 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1784
1785 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1786
1787 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1788 ${grub_probe}.
1789
1790 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 Don't add -mlong-calls when compiling with clang.
1793
1794 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1795
1796 * configure.ac: Fix a typo.
1797
1798 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1799
1800 Revamp relocation handling.
1801
1802 Move more code to common dl.c. Add missing veneers for arm and arm64.
1803 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1804
1805 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1806
1807 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1808
1809 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1810
1811 * INSTALL: Raise minimum python version to 2.6.
1812 * gentpl.py: Use python3-style print function.
1813
1814 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 * util/grub-install.c: Mention Boot* variable.
1817
1818 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1819
1820 * grub-core/osdep/linux/hostdisk.c
1821 (grub_util_find_partition_start_os): Initialise start to avoid
1822 spurious compiler warning.
1823
1824 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1825
1826 On Linux, read partition start offsets from sysfs if possible, to
1827 cope with block device drivers that don't implement HDIO_GETGEO.
1828 Fixes Ubuntu bug #1237519.
1829
1830 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1831 function.
1832 (sysfs_partition_start): Likewise.
1833 (grub_util_find_partition_start_os): Try sysfs_partition_start
1834 before HDIO_GETGEO.
1835
1836 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1837
1838 * grub-core/kern/fdt.c: Update struct size when adding node.
1839
1840 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 Handle unaligned .bss on sparc64.
1843
1844 Current code improperly assumes that both __bss_start and _end are
1845 aligned to 8-bytes. Eliminating this assumption and explicitly align
1846 modules.
1847
1848 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1851 so it doesn't land in the middle of loaded image.
1852
1853 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * configure.ac: Move all warning options that may be absent in
1856 gcc >= 3.1 to optional.
1857
1858 Note: while this allows to compile with older GCC, official requirements
1859 remain the same and no support for older GCC.
1860
1861 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1862
1863 Copying the themes directory in grub-shell isn't
1864 parallel-test-friendly and breaks on the second test when the source
1865 directory is read-only (as in "make distcheck"). Instead, add a
1866 hidden --themes-directory option to grub-mkrescue et al, and use it
1867 in grub-shell.
1868
1869 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1872 as it's no longer necessarry.
1873
1874 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * configure.ac: Allow compilation with older GCC for ARM.
1877
1878 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1881 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1882 ppc.
1883
1884 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1887
1888 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 Pass font config to config.h and not by TARGET_CFLAGS as adding
1891 arguments doesn't work if TARGET_CFLAGS is specified on command
1892 line.
1893
1894 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * configure.ac: Add -Wvla if compiler supports it.
1897
1898 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1901 Remove variable length arrays.
1902 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1903
1904 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1907
1908 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * include/grub/types.h: Declare all byteswaps as inline functions
1911 except compile-time ones.
1912
1913 Solves variable shadowing in constructions like
1914 cpu_to_le (le_to_cpu(x) + 1).
1915
1916 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1917
1918 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1919
1920 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1921
1922 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1923 minutes.
1924
1925 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1926
1927 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1928 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1929
1930 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1931
1932 * grub-core/Makefile.core.def (setjmp): Distribute
1933 lib/arm64/setjmp.S.
1934
1935 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1936
1937 Add a new timeout_style environment variable and a corresponding
1938 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1939 controls hidden-timeout handling more simply than the previous
1940 arrangements, and pressing any hotkeys associated with menu entries
1941 during the hidden timeout will now boot the corresponding menu entry
1942 immediately.
1943
1944 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1945 generates a warning, and if it shows the menu it will do so as if
1946 the second timeout were not present. Other combinations are
1947 translated into reasonable equivalents.
1948
1949 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1950
1951 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1952
1953 * util/config.c: Add missing pointer adjustment.
1954 Reported by: qwertial
1955
1956 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1957
1958 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1959 directly, not via `cpu' link, to fix libgrub.pp generation.
1960
1961 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1962
1963 New port arm64-efi.
1964
1965 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1966
1967 * docs/grub.texi (sleep): Document exit codes.
1968
1969 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1970
1971 Ensure that -mno-unaligned-access or some equivalent option is used.
1972
1973 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1974
1975 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
1976 -march=armv3.
1977
1978 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1979
1980 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
1981
1982 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1983
1984 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
1985 builds, since we don't have an EPS version of font_char_metrics.png.
1986 Add leading dot to image extension per the Texinfo documentation.
1987
1988 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
1989
1990 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
1991 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
1992 * util/grub-gen-widthspec.c: Likewise.
1993 * util/grub-mkfont.c: Likewise.
1994
1995 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
1996
1997 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
1998 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
1999 failed to install on (hdX).
2000 * util/grub-setup.c (get_device_name): Remove, not needed after
2001 above change.
2002
2003 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2006
2007 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * util/grub-fstest.c: Remove variable length arrays.
2010
2011 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2014
2015 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2018 computing crc32 rather than handling with md fundtions directly.
2019
2020 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2023 checking fwstart.img rather than md fundtions directly.
2024
2025 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * util/grub-mkrescue.c (main): Check that fread succeeded.
2028
2029 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * conf/Makefile.common: Remove -mexplicit-relocs and
2032 -DUSE_ASCII_FALLBACK on yeeloong.
2033
2034 -DUSE_ASCII_FALLBACK is already added by font snippets.
2035 -mexplicit-relocs isn't needed is compiler/assemblera are
2036 configured properly.
2037 If they're not we shouldn't attempt to fix it by ourselves.
2038 Binary compare between before and after shows no difference.
2039
2040 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2043 sources in dependencies directly.
2044
2045 This was the only instance of "library" in core config. A bug was
2046 reported that -fno-stack-protector wasn't passed to it. Instead of
2047 figuring out why it failed just remove this construction used
2048 needlessly.
2049
2050 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2053 fgets succeeded.
2054
2055 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2056
2057 * docs/grub.texi (ls): Fix command description in case of a device name
2058 passed as argument.
2059
2060 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 Eliminate variable length arrays in grub_vsnprintf_real.
2063
2064 A bit tricky because this function has to continue to work without
2065 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2066 but make all stack references use 32-bit offset rather than 8-bit one.
2067 So split va_args preparsing to separate function and put the prealloc
2068 into the caller.
2069
2070 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2073 Fixes build for windows.
2074
2075 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * gentpl.py: Don't generate platform-dependent conditionals for
2078 platform-independent targets.
2079
2080 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2081
2082 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2083 references to mdadm from otherwise generic code.
2084 (grub_util_exec_pipe): Likewise.
2085 (grub_util_exec_pipe_stderr): Likewise.
2086 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2087 This function calls vgs, not mdadm; adjust variable names
2088 accordingly.
2089
2090 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2091
2092 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2093 of Autogen. The Autogen definitions files remain intact as they
2094 offer a useful abstraction.
2095
2096 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2097
2098 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2099 into no-ops, and use it in programs that copy files but do not need
2100 to take special care to sync writes (grub-mknetdir, grub-rescue,
2101 grub-mkstandalone).
2102
2103 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2104
2105 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2106 than hardcoding /usr/local/bin/xorriso.
2107
2108 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 Add PCI command activation to all PCI drivers as required for coreboot
2111 and maybe some other firmwares.
2112
2113 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2114
2115 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2116 and non-Apple variants of efiemu compile.
2117
2118 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2119
2120 * configure.ac: Add explicit check for linking format of
2121 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2122 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2123 hardcoding linking format.
2124
2125 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2128 and not pkgdatadir.
2129
2130 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2131 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 Add a --locale-directory option to grub-install and related tools.
2134
2135 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2136 --locale-directory option.
2137 (enum grub_install_options): Add
2138 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2139 * util/grub-install-common.c (grub_install_help_filter): Handle
2140 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2141 (grub_install_parse): Likewise.
2142 (get_localedir): New function to check for a user-provided option
2143 before trying grub_util_get_localedir.
2144 (copy_locales): Use get_localedir rather than
2145 grub_util_get_localedir. Handle differing locale directory layouts.
2146 (grub_install_copy_files): Likewise.
2147
2148 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2149
2150 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2151 Don't rely on PATH_MAX.
2152
2153 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * grub-core/genmoddep.awk: Use more portable && rather than and.
2156
2157 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2160 an object after data. While it doesn't seem right solution, it
2161 works well enough and OSX isn't main compilation platform.
2162
2163 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2166 While it doesn't seem right solution, it works well enough and
2167 OSX isn't main compilation platform.
2168
2169 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2170
2171 * configure.ac: Add -static to LDFLAGS when using apple linker to
2172 prevent it from pulling in dynamic linker.
2173
2174 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 Apple assembly doesn't handle symbol arithmetic well. So define an
2177 offset symbol in boot.S and use it.
2178
2179 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 Apple assembly doesn't handle symbol arithmetic well. So instead
2182 of getting addres of kernel_sector + 4 define kernel_sector_high.
2183 It also makes code more readable.
2184
2185 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 With Apple assembly in .macro environvemnt you have to use $$ instead
2188 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2189 to $$x on Apple and to $x on everything else.
2190
2191 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2192
2193 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2194 OBJCONV.
2195
2196 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2199 and non-Apple. This instruction is shorter and faster,
2200 so no reason not to use it on both.
2201
2202 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2205 .text when compiling for Apple.
2206
2207 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2210
2211 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2212
2213 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2214 %dx restore the probe worked on non-existant drive. Reorganize the
2215 code a little bit to free 2 bytes necessary for push/pop.
2216
2217 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2220 Add missing cast to silence warning.
2221
2222 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2223
2224 * util/grub-install.c (update_nvram): Support --no-nvram flag
2225 for EFI targets.
2226
2227 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2230
2231 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * util/garbage-gen.c: Add missing include of sys/time.h.
2234
2235 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 Don't add -mflush-func if it's not supported by compiler.
2238
2239 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2240
2241 Move common BIOS/coreboot memory map declarations to
2242 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2243
2244 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2245
2246 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2247
2248 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 * INSTALL: Document why older clang versions aren't appropriate.
2251
2252 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * INSTALL: Document about clang for mips.
2255
2256 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2259 clang.
2260
2261 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2262
2263 Add *-xen to the list of grub-install-common platforms.
2264
2265 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2268 3 last commits.
2269
2270 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2271
2272 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2273
2274 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2275
2276 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2277 with -mcmodel=large.
2278
2279 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2282 range-checking for 32-bit quantities.
2283
2284 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * configure.ac: Compile with -fPIC when compiling with clang on
2287 mips.
2288
2289 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2290
2291 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2292 when compiling with clang.
2293
2294 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 clang emits calls to abort () under some unknown conditions.
2297 Export abort () when compiling with clang.
2298
2299 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * docs/grub-dev.texi: Document stack and heap sizes.
2302
2303 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * include/grub/i386/pc/memory.h: Decrease
2306 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2307 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2308 The binary doesn't change (checked). It's more to better reflect actual
2309 usage.
2310
2311 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2312
2313 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2314 at compile time that enough of scratch size is available.
2315
2316 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2317
2318 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2319 Previously we misaligned stack by 8 in startup.S and compensated
2320 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2321 right behaviour is to align stack in startup.S and keep it aligned
2322 in callwrap.S. startup.S part was committed few commits before. This
2323 takes care of callwrap.S.
2324 Reported by: Gary Lin.
2325
2326 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2329 .data and .bss. May happen if compiler and assembly use different
2330 alignment.
2331
2332 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2333
2334 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2335 way.
2336
2337 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2338
2339 Add support for a new magic symbol _gp_disp on mips to handle PIC
2340 binaries.
2341
2342 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2345
2346 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2349 when rest of GRUB is compiled for hisher stepping. Instead use
2350 .set mips3/.set mips1 around cache and sync opcodes.
2351
2352 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2355 do essentially the same thing, do it in similar way.
2356
2357 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2358
2359 * util/grub-mkrescue.c (main): If a source directory is not
2360 specified, read platform-specific files from subdirectories of
2361 pkglibdir, not pkgdatadir.
2362
2363 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2364
2365 * grub-core/normal/progress.c: Remove unused file.
2366
2367 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2370 array.
2371
2372 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2375 than grub.cfg.
2376
2377 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 * coreboot.cfg: Add missing file.
2380
2381 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2384
2385 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2386
2387 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2388 selectively skipping systems.
2389
2390 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2391
2392 * Makefile.util.def (grub-mkimage): Add
2393 grub-core/osdep/aros/config.c to extra_dist.
2394 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2395 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2396 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2397 grub-core/gnulib-no-gets.diff.
2398
2399 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 Add automated filesystem checking based on scripts I've used now for
2402 quite some time locally. Most of the test require root so they are
2403 skipped when run without necessarry privelegies.
2404
2405 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2406
2407 * util/grub-install.c (main): Adjust info messages to match
2408 installed paths of grub-bios-setup and grub-sparc64-setup.
2409
2410 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2411
2412 * util/grub-install-common.c (copy_locales): Consistently use
2413 grub_util_get_localedir () rather than LOCALEDIR.
2414 (grub_install_copy_files): Likewise.
2415
2416 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2417
2418 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2419 16-byte boundary, as required by the x86-64 ABI, before calling
2420 grub_main. In some cases, GCC emits code that assumes this
2421 alignment, which crashes if not aligned. The EFI firmware is also
2422 entitled to assume that stack alignment without checking.
2423
2424 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2425
2426 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2427 4k page boundaries as expected by firmware rather than 1k
2428 boundaries.
2429 (grub_mmap_malign_and_register): Likewise.
2430
2431 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2434 fragmentation 512M is enough.
2435
2436 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2437
2438 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2439 pointer to 32K. This is the size of cache element which is the most
2440 common allocation >1K. This way the pointer is always around blocks
2441 of 32K and so we keep performance while decreasing fragmentation.
2442
2443 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2446 current memory when allocating large chunks. This significantly
2447 decreases memory fragmentation.
2448
2449 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2450
2451 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2452 but for symmetry).
2453 * tests/lzocompress_test.in: Skip if lzop is not installed.
2454 * tests/xzcompress_test.in: Skip if xz is not installed.
2455
2456 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2457
2458 * util/grub-mkrescue.c (main): Fix typo.
2459
2460 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2463 clock frequency to 200 MHz,
2464
2465 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2468
2469 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2470
2471 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2472 Load config file from (cbfsdisk)/etc/grub.cfg.
2473
2474 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * util/grub-install-common.c (grub_install_copy_files): Fix module
2477 destination directory.
2478
2479 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2480
2481 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2482 files have not been built.
2483
2484 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2485
2486 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2487 Handle errors from mkstemp.
2488 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2489
2490 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2493 on primary master on pseries.
2494
2495 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2498 already loaded. This saves memory needed for tests,
2499
2500 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2503 work again.
2504
2505 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2508 work again.
2509
2510 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2513 master since with some combinations of qemu and firmware only primary
2514 IDE channel is available.
2515
2516 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2519 low-memory platforms where we don't have enough memory for them.
2520 * grub-core/tests/videotest_checksum.c: Likewise.
2521
2522 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2523
2524 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2525 already loaded. This saves memory needed for tests,
2526
2527 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2528
2529 Fix handling of install lists.
2530
2531 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2534
2535 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2538 the devices before accessing them.
2539
2540 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2543 as file argument.
2544
2545 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2546
2547 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2548
2549 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2552 (grub_file_close): Free file->name.
2553
2554 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2557 (grub_load_public_key): Likewise.
2558 (grub_verify_signature_real): Likewise.
2559 (grub_cmd_verify_signature): Likewise.
2560
2561 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2564 memory leak.
2565
2566 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2569 (grub_longjmp): Restore r31.
2570 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2571
2572 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2575 modules to be in line with make_image_abs.
2576
2577 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2580
2581 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2582
2583 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2584
2585 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2586
2587 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2590 to leave some memory to firmware.
2591
2592 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2593
2594 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2595 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2596 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2597 Load gfxmenu.
2598
2599 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2602 now needs full arguments.
2603
2604 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2605
2606 * util/grub-mkrescue.c (main): Add trailing \n in
2607 .disk_label.contentDetails to be in line with previous shell script.
2608
2609 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2612
2613 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 * util/grub-install-common.c (grub_install_parse): Recognize
2616 --compress=none like shell script did.
2617
2618 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 * include/grub/misc.h: Replace check for __sparc64__ with one for
2621 __sparc__ as __sparc64__ isn't actually defined.
2622
2623 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2626 counterpart of fixing the naming of escc ports.
2627
2628 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2629
2630 * util/grub-install-common.c (platforms): Fix the order of entries and
2631 remove useless field val.
2632
2633 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2634
2635 * util/grub-install.c: Add new option --no-bootsector to skip
2636 installing of bootsector. Accept --grub-setup=/bin/true as
2637 backwards-compatible synonym.
2638
2639 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2640
2641 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2642 order of qsort arguments (number of elements vs. element size).
2643
2644 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2647 the function of these files exceeds what can be sanely handled in shell
2648 in posix-comaptible way. Also writing it in C extends the functionality
2649 to non-UNIX-like OS and minimal environments.
2650
2651 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2654 compiling to thumb2.
2655 * grub-core/kern/arm/cache_armv7.S: Likewise.
2656 * grub-core/lib/arm/setjmp.S: Likewise.
2657
2658 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2659
2660 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2661 in grub_uboot_syscall
2662
2663 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 Decrease stack usage in lexer.
2666
2667 We have only 92K of stack and using over 4K per frame is wasteful
2668
2669 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2670 as macros so that compiler would remove useless structure on stack.
2671 Better solution would be to fix flex not to put this structure on
2672 the stack but flex is external program.
2673
2674 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 Decrease stack usage in signature verification.
2677
2678 We have only 92K of stack and using over 4K per frame is wasteful
2679
2680 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2681 rather than stack.
2682 (grub_verify_signature_real): Likewise.
2683
2684 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2685
2686 Decrease stack usage in mdraid 0.9x.
2687
2688 We have only 92K of stack and using over 4K per frame is wasteful
2689
2690 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2691 rather than stack.
2692
2693 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2694
2695 Decrease stack usage in BtrFS.
2696
2697 We have only 92K of stack and using over 4K per frame is wasteful
2698
2699 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2700 rather than stack.
2701
2702 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 Decrease stack usage in JFS.
2705
2706 We have only 92K of stack and using over 4K per frame is wasteful
2707
2708 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2709 stack. Note: this function is recursive.
2710 (grub_jfs_read_inode): Read only part we care about.
2711
2712 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2713
2714 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2715 handling
2716
2717 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2718
2719 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2720
2721 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2722
2723 * docs/grub.texi (Environment): Document cmdpath.
2724
2725 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2726
2727 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2728 Remove "unused" attribute from arguments, they are used.
2729
2730 2013-11-15 Colin Watson <cjwatson@debian.org>
2731
2732 * .gitignore: Only ignore grub-mk* at the top level.
2733
2734 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2735
2736 * util/grub-reboot.in (usage): Fix a typo.
2737
2738 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2739
2740 Replace libgcc version of ctz with our own.
2741
2742 On upcoming arm64 port libgcc ctz* are not usable in standalone
2743 environment. Since we need ctz* for this case and implementation is
2744 in C we may as well use it on all concerned platforms.
2745
2746 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * configure.ac: Probe for linking format rather than guessing it based
2749 on target_os.
2750
2751 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2754 "1" prior to handoff.
2755
2756 Reported by: M A Young.
2757
2758 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2761 \0 to all files.
2762
2763 Reported by: M A Young.
2764
2765 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2766
2767 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2768 compilation on NetBSD.
2769
2770 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2771
2772 * acinclude.m4: Don't add -P on initial nm test.
2773
2774 Note: even though this patch postdates Andrey's it bears 14 Nov as
2775 date due to timezone difference.
2776
2777 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2778
2779 * grub-core/Makefile.core.def (signature_test): Add missing
2780 tests/signatures.h.
2781
2782 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2783
2784 * util/grub-install_header: Set localedir here, since this file is
2785 where it's used.
2786 * util/grub-install.in: Remove setting of localedir.
2787 * util/grub-mkrescue.in: Likewise.
2788
2789 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2792
2793 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * configure.ac: Move nm checks to the end.
2796 Call grub_PROG_NM_WORKS.
2797 * acinclude.m4: New check grub_PROG_NM_WORKS.
2798 Use $TARGET_CFLAGS -c when compiling test binary.
2799
2800 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2801
2802 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2803 unused variables.
2804
2805 2013-11-14 Matthew Garrett <mjg@redhat.com>
2806
2807 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2808 cmdpath to firmware directory.
2809
2810 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2813 at the start of second iteration.
2814
2815 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2818
2819 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * Makefile.am (default_payload.elf): New target for easier coreboot
2822 build.
2823
2824 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2825
2826 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2827 clang (not necessarry with -no-integrated-as).
2828 * include/grub/symbol.h [__arm__]: Likewise.
2829
2830 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 * configure.ac: Use -no-integrated-as on arm with clang.
2833 * INSTALL: Mention ARM compilation with clang.
2834
2835 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2838 -mthumb-interwork.
2839
2840 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2841
2842 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2843 code for indirect block handling.
2844
2845 Saves 185 bytes on compressed image.
2846
2847 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2848
2849 Fix make clean.
2850
2851 * Makefile.am: Remove build-grub-* in make clean.
2852
2853 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2854
2855 New files to gitignore.
2856
2857 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2858 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2859
2860 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2861
2862 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2863
2864 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2865
2866 * .gitignore: fix rules for .dep* and add *.a post git migration
2867
2868 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2869
2870 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2871 to match INSTALL.
2872
2873 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2874
2875 * grub-core/kern/misc.c: Don't redirect divisions in the
2876 GRUB_UTIL case.
2877 * include/grub/misc.h: Likewise.
2878
2879 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2880
2881 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2882 systems that require checking the return value of write.
2883
2884 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2885
2886 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2887 efibootmgr quiet when --debug is not used, rather than when it is.
2888
2889 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2890
2891 * gentpl.py (define_macro_for_platform_dependencies): Remove
2892 first (and thus unused) of two definitions for this function.
2893 (platform_dependencies): Likewise.
2894
2895 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2896
2897 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2898 functions, we only need to check this for the target, not the host.
2899 * configure.ac (grub_apple_cc): Likewise.
2900
2901 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2902
2903 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2904 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2905 asm to stay in arm even if surrounding is thumb.
2906
2907 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2910 helper functions are needed for thumb.
2911
2912 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2915 level / 3 division explicitly unsigned. Saves few bytes.
2916
2917 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2918
2919 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2920
2921 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2922
2923 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2924 division.
2925
2926 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2929 grub_uboot_boot_data to asm part.
2930
2931 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2934 literal load.
2935 (grub_uboot_syscall): Save/restore r9 and align stack.
2936
2937 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2940
2941 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2942
2943 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2944 occurencies with END.
2945
2946 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2947
2948 * util/grub-editenv.c (help_filter, argp): Document how to delete
2949 the whole environment block.
2950 Reported by Dan Jacobson. Fixes Debian bug #726265.
2951
2952 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2953
2954 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2955 sectioning.
2956
2957 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2958
2959 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2960 increment/decrement.
2961
2962 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2965 compiling with clang.
2966
2967 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2970 ".".
2971
2972 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2973
2974 Redirect all divisions to grub_divmod64.
2975
2976 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2977
2978 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
2979
2980 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 Add missing includes of loader.h.
2983
2984 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * configure.ac: Allow disabling themes.
2987
2988 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
2989
2990 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
2991
2992 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
2995 until it becomes operational.
2996
2997 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 * grub-core/Makefile.core.def (legacy_password_test): Disable
3000 on platforms where no legacycfg is compiled.
3001 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3002 load legacy_password_test.
3003
3004 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3007
3008 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3009
3010 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3011
3012 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3013
3014 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3015 strict-aliasing warning.
3016 (fsync): Silence cast warning.
3017
3018 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 * grub-core/commands/verify.c: Remove variable length arrays.
3021 Load gcry_dsa/gcry_rsa automatically.
3022
3023 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3024
3025 * grub-core/tests/signature_test.c: New test.
3026
3027 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3028
3029 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3030 API.
3031
3032 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3033
3034 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3035 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3036
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3040
3041 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3042
3043 * grub-core/fs/proc.c: Allow \0 in proc files.
3044
3045 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3046
3047 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3048
3049 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3052
3053 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/fs/ext2.c: Remove variable length arrays.
3056
3057 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3060 length arrays.
3061
3062 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3065 * grub-core/disk/cryptodisk.c: Likewise.
3066 * grub-core/disk/geli.c: Likewise.
3067 * grub-core/disk/luks.c: Likewise.
3068
3069 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/tests/legacy_password_test.c: New test.
3072 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3073
3074 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3077
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/tests/pbkdf2_test.c: New test.
3081
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3085
3086 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3087
3088 * grub-core/io/lzopio.c: Remove variable length arrays.
3089
3090 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * include/grub/crypto.h: Add maximums on hash size and cipher block
3093 size.
3094
3095 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3096
3097 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3098
3099 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/tests/xnu_uuid_test.c: New test.
3102
3103 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3106 covers it).
3107
3108 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/commands/hashsum.c: Remove variable length arrays.
3111
3112 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3115 condition.
3116 * tests/grub_func_test.in: Increase memory allocation.
3117
3118 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3119
3120 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3121 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3122 sys/mount.h.
3123
3124 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3127 (grub_util_get_fd_size_os): ...this.
3128 (grub_hostdisk_flush_initial_buffer): New empty function.
3129
3130 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3131
3132 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3133 without --defined-only.
3134
3135 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3138 rip-relative addressing in prologue.
3139
3140 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3141
3142 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3143 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3144
3145 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3146
3147 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3148 Add missing semicolon.
3149
3150 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3153
3154 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 * configure.ac: Check for lzma.h for enabling liblzma and allow
3157 manual disabling.
3158
3159 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3160
3161 Add missing includes of loader.h.
3162
3163 2013-11-11 Fam Zheng <famcool@gmail.com>
3164
3165 * util/grub.d/30_os-prober.in: Add minix entry.
3166
3167 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3170 right buffer for temporary load.
3171
3172 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3173
3174 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3175
3176 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3177
3178 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3179 payload.
3180
3181 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3184 not Types.h.
3185 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3186 environment.
3187 (LzmaDec_InitDicAndState): Make static.
3188
3189 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3190
3191 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3192
3193 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3196
3197 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3198
3199 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3200
3201 * docs/grub-dev.texi: Replace bzr references with git ones.
3202
3203 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3204
3205 * docs/grub.texi (Simple configuration): Remove reference to
3206 grub-reboot from saved default entry description - grub-default
3207 does not use it anymore.
3208
3209 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3210
3211 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3212 compiled with.
3213
3214 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3215
3216 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3217
3218 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 Fix grub_machine_fini bitrot.
3221
3222 Reported by: Glenn Washburn.
3223
3224 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3227
3228 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3231 -DELF.
3232 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3233 instead of ELF*.
3234
3235 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3238 Add -march=core2 when testing compile of efiemu64.
3239
3240 Thanks Andrey Borzenkov for spotting this.
3241
3242 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3245 XEN PV environment and load kernels.
3246
3247 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3250 * grub-core/loader/multiboot_mbi2.c: Likewise.
3251
3252 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3253
3254 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3255 handling.
3256
3257 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3258
3259 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3260
3261 Tested by: Denis 'GNUtoo' Carikli.
3262
3263 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3266
3267 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3270 Use to get rounded angle rather than truncated.
3271
3272 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * grub-core/term/serial.c: Add option for enabling/disabling
3275 RTS/CTS flow control.
3276
3277 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3280 divisions.
3281
3282 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3285 Use grub_fatal rather than divide by zero.
3286 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3287
3288 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3291 truncate.
3292 (grub_fixed_fsf_divide): Likewise.
3293
3294 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3297 division by-zero and senseless negative divisions.
3298
3299 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3300
3301 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3302 division by-zero and senseless negative divisions.
3303 (circprog_set_property): Don't accept negative num_ticks.
3304
3305 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3306
3307 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3308 division by-zero and senseless negative divisions.
3309
3310 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3311
3312 * configure.ac: Use elf_*_fbsd on kfreebsd.
3313
3314 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3315
3316 * grub-core/tests/div_test.c: New test.
3317
3318 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3319
3320 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3321 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3322 * grub-core/gfxmenu/view.c: Likewise.
3323 * grub-core/video/fb/video_fb.c: Introduce new functions:
3324 grub_video_set_area_status, grub_video_get_area_status,
3325 grub_video_set_region, grub_video_get_region.
3326 * grub-core/video/bochs.c: Likewise.
3327 * grub-core/video/capture.c: Likewise.
3328 * grub-core/video/video.c: Likewise.
3329 * grub-core/video/cirrus.c: Likewise.
3330 * grub-core/video/efi_gop.c: Likewise.
3331 * grub-core/video/efi_uga.c: Likewise.
3332 * grub-core/video/emu/sdl.c: Likewise.
3333 * grub-core/video/radeon_fuloong2e.c: Likewise.
3334 * grub-core/video/sis315pro.c: Likewise.
3335 * grub-core/video/sm712.c: Likewise.
3336 * grub-core/video/i386/pc/vbe.c: Likewise.
3337 * grub-core/video/i386/pc/vga.c: Likewise.
3338 * grub-core/video/ieee1275.c: Likewise.
3339 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3340 * include/grub/video.h: Likewise.
3341 * include/grub/video_fb.h: Likewise.
3342 * include/grub/fbfill.h: Updated render_target structure.
3343 grub_video_rect_t viewport, region, area
3344 int area_offset_x, area_offset_y, area_enabled
3345 * include/grub/gui.h: New helper function
3346 grub_video_bounds_inside_region.
3347 * docs/grub-dev.texi: Added information about new functions.
3348
3349 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3352 for alignment.
3353
3354 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3357 missing attribute.
3358 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3359
3360 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3363 simple division on arm and ia64.
3364
3365 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3366
3367 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3368 link with libgcc.
3369
3370 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3373
3374 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3377 prefix symbol, not @.
3378
3379 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * INSTALL: Add note about older gcc and clang.
3382
3383 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3384
3385 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3386
3387 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3388
3389 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3390 NULL pointer dereference.
3391
3392 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3395 clang.
3396
3397 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3400 warnings.
3401
3402 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3405 function.
3406 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3407 * grub-core/disk/geli.c (ascii2hex): Likewise.
3408
3409 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3410
3411 * configure.ac: Run linker tests without -Werror.
3412 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3413 Change all occurences of -static-libgcc resp -lgcc to
3414 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3415
3416 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3417
3418 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3419
3420 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 Allow compiling with clang (not really supported though).
3423
3424 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3425 unconditionally.
3426 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3427 Add -mrtd -mregparm=3 on i386 when not using clang.
3428 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3429
3430 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3433 bindings.
3434 * grub-core/lib/reed_solomon.c: Likewise.
3435 * include/grub/i386/gdb.h: Likewise.
3436 * include/grub/i386/pc/int.h: Likewise.
3437 * include/grub/i386/pc/pxe.h: Likewise.
3438 * include/grub/ieee1275/ieee1275.h: Likewise.
3439
3440 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 Import libgcrypt 1.5.3.
3443
3444 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3445
3446 * configure.ac: Don't add -Wcast-align on x86.
3447
3448 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3449
3450 * configure.ac: Add -freg-struct-return on all platforms that
3451 support it.
3452
3453 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3454
3455 * acinclude.m4: Use -Werror on parameter tests.
3456 * configure.ac: Likewise.
3457
3458 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3461
3462 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * configure.ac: Check that -malign-loops works rather than assuming that
3465 either -falign-loops or -malign-loops work.
3466
3467 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3470
3471 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * configure.ac: Prevent cflags leaking to subsequent tests by always
3474 resetting cflags to target_cflags in target tests.
3475
3476 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3479 function.
3480
3481 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3482
3483 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3484
3485 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3486
3487 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3488
3489 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/normal/cmdline.c (grub_cmdline_get):
3492 Remove nested functions.
3493
3494 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3495
3496 * tests/test_sha512sum.in: Make it work on emu.
3497
3498 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3501 functions.
3502 (grub_bidi_line_logical_to_visual): Likewise.
3503
3504 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 Remove vestiges of -Wunsafe-loop-optimisations.
3507
3508 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3509 -Wno-unsafe-loop-optimisations.
3510 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3511 pragma.
3512 * grub-core/io/gzio.c: Likewise.
3513 * grub-core/script/parser.y: Likewise.
3514 * grub-core/script/yylex.l: Likewise.
3515 * util/grub-mkfont.c: Likewise.
3516
3517 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * util/grub-mkfont.c (process_cursive): Remove nested function.
3520
3521 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3524 (grub_boot_time): Likewise.
3525
3526 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3527
3528 * include/grub/symbol.h (FUNCTION): Use @function rather than
3529 "function".
3530 (VARIABLE): Likewise.
3531
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3533
3534 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3535
3536 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3537
3538 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3539 (parse_dhcp_vendor): Likewise.
3540
3541 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3544
3545 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3548 Define after defining type and not before.
3549
3550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3553 type.
3554 (grub_gcm_decrypt): Likewise.
3555 (algo_decrypt): Likewise.
3556 (grub_zfs_decrypt_real): Transform error type.
3557
3558 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3561
3562 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3565 (grub_usbms_cbi_reset): Likewise.
3566 (grub_usbms_bo_reset): Likewise.
3567 (grub_usbms_reset): Likewise.
3568 (grub_usbms_attach): Likewise.
3569 (grub_usbms_transfer_cbi): Likewise.
3570
3571 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3574 "checksum = checksum;".
3575
3576 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3579 entry_type.
3580
3581 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3582
3583 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3584 BIOS disk check.
3585
3586 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3589 type.
3590 (grub_ehci_fini_hw): Likewise.
3591 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3592
3593 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3596 return grub_usb_err_t for cosistency. All users updated.
3597
3598 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3601 assigning to itself.
3602
3603 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3604 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3605
3606 Issue separate DNS queries for ipv4 and ipv6
3607
3608 Adding multiple questions on a single DNS query is not supportted by
3609 most DNS servers. This patch issues two separate DNS queries
3610 sequentially for ipv4 and then for ipv6.
3611
3612 Fixes: https://savannah.gnu.org/bugs/?39710
3613
3614 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3615 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3616 * (grub_net_dns_lookup): Now using separated dns packages.
3617 * (grub_cmd_nslookup): Add error condition.
3618 * (grub_cmd_list_dns): Print DNS option.
3619 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3620 --prefer-ipv4, and --prefer-ipv6.
3621 * include/grub/net.h (grub_dns_option_t): New enum.
3622 * (grub_net_network_level_address): option added.
3623
3624 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3625
3626 * grub-core/video/fb/video_fb.c: Merge two blit functions
3627 into one.
3628
3629 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * grub-core/term/terminfo.c: Add sequences for home and end.
3632
3633 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3634
3635 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3636 graphics console.
3637
3638 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3639
3640 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3641 add mode 0x12.
3642
3643 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3644
3645 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3646 e-mail by Per Öberg.
3647
3648 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3649
3650 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3651 name.
3652
3653 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3654
3655 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3656 emu platforms.
3657 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3658
3659 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * docs/grub.texi: Document usage of menuentry id.
3662
3663 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3666
3667 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3668
3669 * grub-core/commands/i386/nthibr.c: New command.
3670
3671 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3674
3675 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3678 coordinate.
3679
3680 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3681
3682 Support GRUB_DISABLE_SUBMENU config.
3683
3684 Inspired by patch from Prarit Bhargava.
3685
3686 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 * docs/grub.texi: Mention RSA support.
3689
3690 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/commands/verify.c: Add RSA support.
3693
3694 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3697 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3698 device is known to be ATAPI.
3699
3700 2013-11-03 Mike Frysinger <vapier>
3701
3702 * configure.ac: Don't add target-prefix.
3703
3704 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3707 variables.
3708
3709 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3710
3711 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3712 if language is English.
3713
3714 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3715
3716 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3717
3718 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * configure.ac: Don't add -m32/-m64 on emu.
3721
3722 2013-11-02 neil
3723
3724 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3725 broken linux headers.
3726
3727 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3730
3731 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3734 Reed-Solomon recovery if more than half of redundancy info is 0.
3735
3736 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3737
3738 * util/grub-mount.c: Handle symlinks to directories.
3739
3740 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3743 find_file recursively for symlink.
3744
3745 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * tests/util/grub-shell.in: Copy themes.
3748
3749 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3752
3753 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3754
3755 * configure.ac: Use 0x8000 for address instead of 8000.
3756
3757 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3760 signature.
3761
3762 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3763
3764 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3765 variable.
3766
3767 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3770
3771 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3774 file_progress_read_hook.
3775 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3776
3777 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3780 and double.
3781
3782 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3785
3786 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 Rewrite blocklist functions in order to get progress when
3789 reading large extents and decrease amount of blocklist hook calls.
3790
3791 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3794 of SI suffixes.
3795
3796 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 Support --base-clock for serial command to handle weird cards with
3799 non-standard base clock.
3800
3801 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3804 strncpy.
3805 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3806 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3807 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3808 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3809 + strcpy rather than strncpy.
3810
3811 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3814 (check_pool_label): Likewise. Fixes overflow.
3815 (nvlist_find_value): Fix comparison.
3816
3817 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3818
3819 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3820 more appropriate functions.
3821
3822 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3825 realloc.
3826
3827 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3830
3831 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3834 on core size.
3835
3836 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3839
3840 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3843 (initialize_tables): reset tl and td to NULL after freeing.
3844
3845 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3848
3849 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3850
3851 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3852 of supported tags.
3853
3854 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3857
3858 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3861 quirks.
3862
3863 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3864
3865 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3866 a page in protected space.
3867
3868 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3871 allocate space for zero-sized modules.
3872
3873 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3876
3877 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3878
3879 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3880
3881 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3884 safeguards. Fixes a crash with i386/pc/console.c.
3885
3886 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3889 and grub_hostfs_init.
3890
3891 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3892
3893 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3894 windows method on other platforms without good stat as well.
3895
3896 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3899
3900 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 Make / in btrfs refer to real root, not the default volume.
3903 Modify mkrelpath to work even if device is mounted with subvolid option.
3904
3905 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3906
3907 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3908 extra_dist.
3909 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3910 extra_dist.
3911
3912 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3915 fails.
3916
3917 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3918
3919 * docs/autoiso.cfg: New file.
3920
3921 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3924 COND_GRUB_PE2ELF conditions.
3925
3926 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3929 "vnd", "rd" and "fd" disks.
3930
3931 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3932
3933 Move grub_disk_write out of kernel into disk.mod.
3934
3935 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3938 handling.
3939
3940 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/kern/misc.c (grub_abort): Make static
3943
3944 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3947 transform invalid unicode codepoints.
3948
3949 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3952 \0 checking.
3953
3954 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3955
3956 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3957
3958 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 Consolidate cpuid code.
3961
3962 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 Move cpuid code to cpuid.h and TSC code to tsc.c.
3965
3966 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3967
3968 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3969
3970 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3971
3972 * util/grub-mkconfig.in: Replace $0 with $self.
3973 * util/grub-reboot.in: Likewise.
3974 * util/grub-set-default.in: Likewise.
3975
3976 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3977
3978 * docs/osdetect.cfg: New file.
3979
3980 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3981
3982 * tests/util/grub-shell.in: Add new --debug option.
3983
3984 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3985
3986 * tests/test_unset.in: New test.
3987
3988 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
3989
3990 * tests/test_sha512sum.in: New test.
3991
3992 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
3995 * include/grub/misc.h: Remove strncat.
3996 * grub-core/lib/posix_wrap/string.h: Likewise.
3997
3998 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4001 Try to handle more than 0xFFFF packets.
4002 Reported by: Bernhard Übelacker <bernhardu>.
4003 He also spotted few overflows in first version of this patch.
4004
4005 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 * tests/date_unit_test.c: New test.
4008
4009 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4012 of first three years after start of validity of unixtime.
4013
4014 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4017 division as the one making more sense.
4018 (update_screen): Likewise.
4019 (complete): Likewise.
4020
4021 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4024
4025 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 Make char and string width grub_size_t rather than grub_ssize_t.
4028
4029 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4030
4031 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4032 unsigned.
4033 (grub_history_replace): Likewise.
4034
4035 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4036
4037 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4038 appropriate.
4039
4040 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4043 appropriate.
4044
4045 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4048 Use unsigned divisions rather than signed variants.
4049
4050 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4053 unsigned arithmetics.
4054 Add missing break.
4055
4056 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4059
4060 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4063 rather than signed one.
4064 (recovery): Likewise.
4065
4066 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4067
4068 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4069
4070 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4073 than signed.
4074
4075 2013-10-25 Jon McCune <jonmccune@google.com>
4076
4077 * docs/grub.texi: Cleanup security documentation around signatures.
4078
4079 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4082
4083 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4086 than int.
4087
4088 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4091 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4092 functions when compiling for kernel.
4093
4094 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4095
4096 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4097 unsigned long long when using %llu.
4098
4099 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4102 terminal after updating progress.
4103
4104 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4107 argument. We don't disable Gate A20 in this code.
4108
4109 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4112 Conceptually based on change in branch "vbe-on-coreboot".
4113
4114 2013-10-24 Robert Millan <rmh@gnu.org>
4115
4116 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4117 numeric constants with their symbolic equivalent.
4118 Taken from branch "vbe-on-coreboot".
4119
4120 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4121
4122 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4123
4124 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4127 divmod64 for offset division.
4128
4129 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4130
4131 Rename .bzrignore to .gitignore. Add "*.o" rule.
4132
4133 * .bzrignore: Renamed to...
4134 * .gitignore: ...this.
4135
4136 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4137
4138 Add new progress module that displays the load progress of files.
4139
4140 * grub-core/lib/progress.c: New file.
4141 * grub-core/Makefile.core.def (progress): New module.
4142 * grub-core/kern/file.c (grub_file_open): File name added.
4143 * (grub_file_read): Progress hook added.
4144 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4145 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4146 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4147 * include/grub/file.h (struct grub_file): Add progress module members.
4148 * include/grub/term.h (struct grub_term_output): Likewise.
4149 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4150 Terminal velocity added.
4151 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4152 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4153 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4154 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4155 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4156 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4157 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4158 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4159 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4160 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4161 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4162 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4163
4164 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 Verify signatures of signatures unless --skip-sig is specified.
4167
4168 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4169
4170 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4171 \0 checking.
4172
4173 Saves 70 bytes on compressed image.
4174
4175 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4178 check.
4179
4180 Saves 10 bytes on compressed image.
4181
4182 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4183
4184 * grub-core/kern/misc.c (grub_isprint): Move to ...
4185 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4186
4187 Saves 20 bytes on compressed image due to remving exporting.
4188
4189 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4192
4193 Saves 5 bytes on compressed image.
4194
4195 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4198 function get_utf8.
4199
4200 Saves 379 bytes on compressed image.
4201
4202 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4205
4206 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4209
4210 Saves 40 bytes on compressed image.
4211
4212 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4215 mask rather than 64-bit type.
4216
4217 Saves 20 bytes on compressed image.
4218
4219 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4220
4221 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4222 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4223
4224 Saves 273 bytes on compressed image.
4225
4226 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4227
4228 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4229 variable length arrays.
4230
4231 Saves 50 bytes on compressed image.
4232
4233 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4234
4235 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4236
4237 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/fs/ufs.c: Remove variable length arrays.
4240
4241 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4244
4245 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/fs/zfs.c: Remove variable length arrays.
4248 Reduces zfs.mod by 160 bytes (208 compressed).
4249
4250 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4253
4254 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 * grub-core/net/arp.c: Remove variable length arrays.
4257 * grub-core/net/bootp.c: Likewise.
4258 * grub-core/net/dns.c: Likewise.
4259 * grub-core/net/icmp6.c: Likewise.
4260 * grub-core/net/net.c: Likewise.
4261
4262 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * grub-core/fs/ntfs.c: Remove variable length arrays.
4265 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4266 compressed).
4267
4268 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4269
4270 * grub-core/fs/hfs.c: Remove variable length arrays.
4271 Reduces hfs.mod by 8 bytes (52 compressed).
4272
4273 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4274
4275 * grub-core/fs/udf.c: Remove variable length arrays.
4276 Increases udf.mod by 128 bytes (but decreases by 13 when
4277 compressed).
4278
4279 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/fs/iso9660.c: Remove variable length arrays.
4282 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4283 compressed).
4284
4285 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4288 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4289 compressed).
4290
4291 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 * grub-core/fs/xfs.c: Remove variable length arrays.
4294 Reduces xfs.mod by 40 bytes (43 compressed).
4295
4296 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 * grub-core/fs/fshelp.c: Remove variable length arrays.
4299 Reduces fshelp.mod by 116 bytes (23 compressed).
4300
4301 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * grub-core/normal/completion.c: Remove variable length arrays.
4304 * grub-core/normal/menu_entry.c: Likewise.
4305
4306 Reduces normal.mod by 496 bytes.
4307
4308 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4311 by 356 bytes (158 compressed).
4312
4313 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4314
4315 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4316 by 364 bytes (169 compressed).
4317
4318 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4321 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4322 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4323
4324 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4327 bitmasks to small structures of size chosen to fit in registers.
4328
4329 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4330
4331 * conf/Makefile.common: Use -freg-struct-return on i386. This
4332 decreases code size and improves performance.
4333
4334 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4337
4338 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4341 "(null)" string.
4342 Simplify expressions to save around 256 bytes in kernel.img.
4343 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4344
4345 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4346
4347 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4348 Use GRUB_UTIL_FD_O_* rather than O_*.
4349
4350 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4351
4352 Add haiku-specific functions.
4353
4354 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4357
4358 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 Move stat () and device mode checking into OS-dependent files as
4361 long as performance doesn't suffer.
4362
4363 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 Split make_system_path_relative_to_its_root into separate file
4366 relpath.c from getroot.c as it's common between unix and haiku
4367 but otherwise haiku doesn't use any functions from unix getroot.c.
4368
4369 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4372 New function.
4373 (grub_util_is_special_file): Likewise.
4374
4375 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4378 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4379
4380 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4381
4382 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4383 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4384
4385 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4388 (load_image): Likewise.
4389
4390 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * util/grub-render-label.c: Move backend part to ...
4393 * util/render-label.c: ... here.
4394
4395 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4398 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4399
4400 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4403
4404 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4405
4406 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4407 CD-ROM in case when it's declared as having subpartitions.
4408
4409 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4410
4411 Don't add -lm on haiku.
4412
4413 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4414 and empty on haiku.
4415 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4416 -lm.
4417
4418 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4419
4420 * configure.ac: Use -melf_*_haiku as target on haiku.
4421
4422 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * Makefile.util.def: Add util/setup.c to extra_dist.
4425
4426 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4427
4428 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4429 unknown types through.
4430
4431 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4432
4433 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4434 (grub_util_check_char_device): Likewise.
4435 * include/grub/emu/getroot.h: Likewise.
4436
4437 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4440 memset rather than inline static function.
4441
4442 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4445 not doing embedded decompressor.
4446
4447 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4450 shadowing.
4451 * grub-core/kern/disk.c: Likewise.
4452 * grub-core/kern/misc.c: Likewise.
4453 * include/grub/parser.h: Likewise.
4454 * include/grub/script_sh.h: Likewise.
4455 * include/grub/zfs/zfs.h: Likewise.
4456
4457 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4460
4461 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4464 defined before trying to use it.
4465
4466 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4469 warning.
4470
4471 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4474 Use __unused__ rather than __used__ on gcc < 3.2.
4475
4476 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4479 gcc < 4.0.
4480 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4481
4482 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4485
4486 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4489 * include/grub/emu/misc.h: Likewise.
4490
4491 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4494 cur_color.
4495
4496 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4497
4498 * grub-core/tests/checksums.h: Regenerated due to progress bar
4499 get_minimal_size changes.
4500
4501 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4502
4503 Added `tr' command support.
4504
4505 * grub-core/commands/tr.c: New file.
4506 * grub-core/Makefile.core.def: Build rules for new module.
4507
4508 * tests/grub_cmd_tr.in: New test.
4509 * Makefile.util.def: Build rules for new test.
4510
4511 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4512
4513 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4514
4515 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4516
4517 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4518 * docs/gurb.texi: Likewise.
4519
4520 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4521
4522 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4523 Pixmap highlighted section with east and west slices was displayed
4524 incorrectly due to negative width of the central slice.
4525
4526 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4527
4528 * docs/grub.texi: Graphical options information update.
4529 Removed outdated. Updated current. Inserted missed.
4530
4531 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4532
4533 * docs/grub.texi: Mention few new platform-specific commands.
4534
4535 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4536
4537 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4538 currently used so this doesn't really have any effect.
4539 Reported by: Douglas Ray <dougray>
4540
4541 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4544 compilation but prevents gcc from displaying messages in non-Latin
4545 alphabets.
4546 * conf/Makefile.common: Likewise.
4547
4548 2013-10-16 Hiroyuki YAMAMORI
4549
4550 Handle Japanese special keys.
4551 Reported by: Hiroyuki YAMAMORI.
4552 Codes supplied by: Hiroyuki YAMAMORI.
4553
4554 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4555
4556 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4557
4558 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4559
4560 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4561 * docs/grub.texi: Likewise.
4562
4563 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4566 value in case of incomplete read.
4567 (grub_util_fd_write): Likewise.
4568
4569 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4572
4573 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4574
4575 * util/grub-editenv.c (create_envblk_file): More from here ...
4576 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4577
4578 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4581 canonicalize file name before doing the rest.
4582
4583 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4586 mingw32.
4587
4588 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 Define grub_util_is_directory/regular/special_file and
4591 use OS-dependent versions rather than to rely on stat().
4592
4593 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * util/grub-mkimage.c: Move backend part to ...
4596 * util/mkimage.c: ... here.
4597
4598 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 Allow compilation with mingw64 albeit with warnings due to lack of
4601 %llx/%llu.
4602
4603 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4604 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4605 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4606 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4607 on mingw64.
4608 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4609
4610 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 Remove leftover references to some of the system headers.
4613
4614 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4617 read.
4618
4619 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4622 of strerror.
4623
4624 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 Split out blocklist retrieving from setup.c to
4627 grub-core/osdep/blocklist.c and add windows implementation since
4628 generic version doesn't work on NTFS on Windows due to aggressive
4629 unflushable cache.
4630
4631 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4634 files.
4635
4636 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4639 Cut tailing newline. Remove arbitrary limitation. Always use
4640 grub_util_tchar_to_utf8.
4641
4642 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4645 * tests/printf_unit_test.c (printf_test): Add %% tests.
4646 Reported by: Paulo Flabiano Smorigo.
4647
4648 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4651 implement fsync.
4652
4653 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4656 use nvlist_lookup_string and don't use nvlist_print.
4657
4658 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4661 closedir to handle filename charset translation.
4662
4663 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * include/grub/emu/hostdisk.h: Move file operations to
4666 * include/grub/emu/hostfile.h: ... here.
4667
4668 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4671 unicode path.
4672
4673 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4676
4677 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4680 and remove export.h.
4681
4682 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4683
4684 * grub-core/kern/emu/error.c: Removed.
4685 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4686 explicitly as it's already in libgnu.a.
4687
4688 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4691 config-util.h include.
4692
4693 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 Split emunet into platform-dependent and GRUB-binding parts. Keep
4696 platform-dependent part in kernel for easy access to OS functions.
4697
4698 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4701 open/read/write.
4702
4703 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * grub-core/osdep/windows/emuconsole.c: New file.
4706
4707 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4708
4709 * conf/Makefile.extra-dist: Add osdep/*/init.c
4710
4711 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4712
4713 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4714
4715 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * util/grub-probe.c (probe): Separate different drives in hint-str
4718 by spaces and not newlines.
4719 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4720
4721 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4722
4723 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4724 Handle CD-ROMs.
4725
4726 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 Pass-through unknown E820 types. It required reorganisation of mmap
4729 module.
4730
4731 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4732
4733 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4734
4735 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4738 fseeko.
4739
4740 2013-10-14 qwertial <qwertial>
4741
4742 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4743
4744 2013-10-14 Jon McCune <jonmccune@google.com>
4745
4746 * docs/grub.texi: Document new signatures possibility.
4747
4748 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4749
4750 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4751
4752 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4753
4754 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4755 missing prototype.
4756 (grub_util_tchar_to_utf8): Likewise.
4757
4758 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4761 * grub-core/kern/emu/main.c: Add missing include.
4762 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4763 Don't call grub_util_init_nls.
4764 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4765 Likewise.
4766
4767 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4770 stat.
4771
4772 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4775
4776 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4779
4780 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4781
4782 Add a wrapper for fopen. On unix-like systems just pass-through. On
4783 windows use unicode version.
4784
4785 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 Move set_program_name and init_nls to host_init. On windows
4788 fix in this fuction console and argument charset as well.
4789
4790 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4791
4792 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4793 GRUB_ENABLE_CRYPTODISK.
4794
4795 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4796 GRUB_ENABLE_CRYPTODISK.
4797 * util/grub-mkconfig_lib.in: Likewise.
4798
4799 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4800
4801 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4802
4803 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4804
4805 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4806 error when enabling debug.
4807
4808 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4809
4810 * configure.ac: Use -melf_*_obsd on openbsd.
4811
4812 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4815
4816 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4817
4818 * include/grub/misc.h: Use gnu_printf rather than printf as format
4819 template since our functions are independent of libc.
4820
4821 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * util/grub-setup.c (setup): Move copying of partition table as
4824 futher up as possible to avoid possible overwrite by floppy routines.
4825
4826 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4829
4830 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4831
4832 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4833 * docs/grub.texi: Likewise.
4834
4835 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4836
4837 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4838 it's mostly unused. Move vestiges to the callers.
4839
4840 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4843 version of salt and hash. Use grub_snprintf rather than snprintf.
4844
4845 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 * docs/grub.texi: Fix problem with braces.
4848
4849 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * conf/Makefile.extra-dist: Fix extra-dist list.
4852 * grub-core/Makefile.core.def: Likewise.
4853
4854 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * docs/grub.texi: Document disk names used on Windows and AROS.
4857
4858 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4859
4860 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4861 with AROS devs.
4862 * grub-core/osdep/aros/hostdisk.c: Likewise.
4863
4864 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 Avoid including hostfile.h when not necessarry as it pulls
4867 in OS-specific headers which may redefine generic names
4868 like "far".
4869
4870 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4871
4872 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4873 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4874 scrollbar_bottom_pad
4875 * docs/grub.texi: Likewise.
4876
4877 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4878
4879 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4880
4881 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4884
4885 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4888 Removed.
4889 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4890 Made static.
4891
4892 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4893
4894 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4895 leftover.
4896
4897 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4898
4899 Move OS-specific driver configuration to grub_util_fd_open. This
4900 moves OS-dependent parts from kern/emu/hostdisk.c to
4901 grub-core/osdep/*/hostdisk.c.
4902
4903 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * util/grub-mkimage.c (generate_image): Use size_t instead of
4906 grub_size_t.
4907 * util/grub-mkimagexx.c (locate_sections): Likewise.
4908 (load_image): Likewise.
4909
4910 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4913 size_t.
4914 (grub_util_write_image): Likewise.
4915
4916 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4917
4918 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4919 get random when no RNG is available.
4920 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4921
4922 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * include/grub/util/lvm.h: Removed.
4925
4926 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4929 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4930
4931 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4932
4933 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4934
4935 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4938
4939 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/net/drivers/emu/emunet.c: Move to ..
4942 * grub-core/osdep/linux/emunet.c: ..here.
4943
4944 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * util/ieee1275/ofpath.c: Move to ...
4947 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4948 * grub-core/osdep/basic/ofpath.c: ..here.
4949
4950 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4951
4952 Move password-querying (util-version) routines to grub-core/osdep.
4953
4954 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 Move sleep routines to grub-core/osdep.
4957
4958 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4959
4960 Move OS-dependent files to grub-core/osdep and document it.
4961
4962 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4965 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4966
4967 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4968
4969 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4970
4971 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * util/misc.c: Remove leftover inclusion of malloc.h.
4974
4975 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 * include/grub/setjmp.h: Remove leftover GRUBOF.
4978
4979 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * util/raid.c: Fold into ...
4982 * util/getroot_linux.c: ... here. Make all functions static.
4983
4984 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
4987 macros to GRUB ones.
4988
4989 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
4990
4991 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
4992 occasional bug. If there are too many boot entries or too low
4993 scrollbar height then we need to use another formula to calculate
4994 the position and size of the scrollbar thumb.
4995
4996 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
4999
5000 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5001
5002 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5003 * docs/grub.texi: Likewise.
5004
5005 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5006
5007 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5008 viewport.
5009
5010 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5011
5012 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5013 minimal width calculations.
5014
5015 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * docs/grub.texi: Update note on colors on emu console.
5018
5019 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5022 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5023 it's FS and not GRUB limitation.
5024
5025 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5028
5029 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5030
5031 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5032
5033 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5034
5035 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5036 kernels by version order.
5037
5038 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5041
5042 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 Add AROS hostdisk and getroot routines.
5045
5046 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 Make cryptodisk and diskfilter probe data retrievable programmatically
5049 and not just printable.
5050
5051 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 Split random retrieving code into separate files.
5054
5055 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5058 R_ARM_V4BX.
5059
5060 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5061
5062 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5063 condition.
5064 * grub-core/tests/fake_input.c: Likewise.
5065 * grub-core/tests/cmdline_cat_test.c: Likewise.
5066
5067 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 * grub-core/video/capture.c: Do not do finalization when .fini
5070 is called as there is explicit capture_end.
5071
5072 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5073
5074 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5075 changing windows to avoid crash.
5076
5077 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5080
5081 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5082
5083 * po/exclude.pot: Add several strings to exclude.
5084
5085 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5088
5089 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5090
5091 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5092 ./util/grub-gen-asciih.c to exclude list.
5093
5094 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5097 and don't mark error strings for translation.
5098
5099 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5102 properly in case of missing block size.
5103
5104 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 * grub-core/lib/arm/setjmp.S: Add missing license section.
5107
5108 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5109
5110 * po/swiss.sed: Add replacement for key names and for term computer.
5111
5112 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5113
5114 * grub-core/gfxmenu/theme_loader.c: New global options for the
5115 theme background image handling. desktop-image-scale-method,
5116 desktop-image-h-align, desktop-image-v-align.
5117 * grub-core/gfxmenu/view.c: Likewise.
5118 * include/gfxmenu_view.h: Likewise.
5119 * include/bitmap_scale.h: Proportional scale functions introduced.
5120 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5121 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5122 cases of unexpected input variables for scale functions.
5123 * docs/grub.texi: Updated documentation for new options.
5124
5125 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5128
5129 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5130
5131 * grub-core/tests/checksums.h: Corrected due to changes in
5132 bilinear interpolation function.
5133
5134 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5135
5136 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5137 to eliminate artefacts in bilinear interpolation.
5138
5139 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5140
5141 * grub-core/video/readers/tga.c: Support paletted tga.
5142
5143 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5144
5145 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5146 incorrect cbcr setting when in color mode.
5147
5148 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 * grub-core/video/readers/png.c: Support paletted images and clean up
5151 greyscale support.
5152
5153 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5154
5155 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5156 usage of wrong table which resulted in mishandling of 4-byte
5157 sequences.
5158
5159 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * grub-core/term/terminfo.c: Add Home and End key sequences.
5162
5163 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5166 Fix formula for computing total number of bytes.
5167
5168 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5171 image processing, fix big-endian and support grayscale.
5172
5173 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5176 Correctly will with maximum transparency when using index color.
5177
5178 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/video/readers/png.c: Support grayscale
5181
5182 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/video/readers/jpeg.c: Support grayscale.
5185
5186 2013-09-26 Jon McCune <jonmccune@google.com>
5187
5188 * grub-core/commands/loadenv.c: Support skipping signature check
5189 and variable names filtering.
5190
5191 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5194 * grub-core/kern/emu/hostfs.c: Likewise.
5195 * util/getroot_unix.c: Likewise.
5196
5197 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5198
5199 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5200 Migrate all explicit defines to this new one.
5201
5202 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5203
5204 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5205 grub_util_fd_strerror when using grub_util_fd_*.
5206 (grub_util_fd_open_device): Likewise.
5207 (grub_util_biosdisk_read): Likewise.
5208 (grub_util_biosdisk_write): Likewise.
5209 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5210 (grub_util_fd_strerror): Likewise.
5211 (grub_util_fd_sync): Likewise.
5212 (grub_util_fd_close): Likewise.
5213 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5214 (grub_util_fd_close): Likewise.
5215 (grub_util_fd_strerror): Likewise.
5216 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5217 function proto rather than macro.
5218 (grub_util_fd_sync): Likewise.
5219 (grub_util_fd_open): Likewise.
5220 (grub_util_fd_strerror): New proto.
5221
5222 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5225 platforms on which it doesn't work.
5226
5227 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5230 stat immediately to where it's used.
5231
5232 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5233
5234 * util/getroot.c (grub_util_check_block_device): Move to ...
5235 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5236 * util/getroot.c (grub_util_check_char_device): Move to ...
5237 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5238
5239 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5240
5241 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5242 disk closing logic.
5243
5244 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5245
5246 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5247
5248 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5249
5250 * docs/grub.texi (File name syntax): Document ZFS filenames
5251 (/volume@snapshot/...).
5252
5253 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5254
5255 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5256 Always return full path. Fixes a problem with mkrelpath.
5257
5258 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5259
5260 * util/grub-install.in: Add GPT PReP support.
5261 * util/grub-probe.c (probe): Support GPT partition type.
5262 (main): Support -t gpt_parttype.
5263
5264 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5265
5266 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5267
5268 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5269
5270 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5271
5272 2013-09-23 Tim Hardeck <thardeck>
5273
5274 * util/grub.d/10_hurd.in: Filter out character for the class.
5275 * util/grub.d/10_kfreebsd.in: Likewise.
5276 * util/grub.d/10_linux.in: Likewise.
5277 * util/grub.d/20_linux_xen.in: Likewise.
5278
5279 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5280
5281 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5282 "changed".
5283
5284 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5285
5286 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5287 boot partition.
5288
5289 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5292 doesn't use posix_wrap. Keep literal -fno-builtin however.
5293
5294 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5297
5298 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5299 2013-09-23 neil
5300
5301 * configure.ac: Do not enable -Wmissing-noreturn as its
5302 usefulness is limited and creates problems on some OS notably with
5303 code generated by bison.
5304
5305 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5306 2013-09-23 neil
5307
5308 * configure.ac: Do not explicitly enable -Waddress as it's not
5309 supported by all gcc and when it is, it's already enabled by -Wall.
5310
5311 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5312
5313 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5314 desactivated use of EDID at all.
5315
5316 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5317 2013-09-23 neil
5318
5319 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5320 video if no text is available.
5321
5322 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5323 2013-09-23 neil
5324
5325 * configure.ac: Substitute TARGET_RANLIB.
5326
5327 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5328 2013-09-23 neil
5329
5330 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5331
5332 Based on patches from AROS.
5333
5334 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5335 2013-09-23 neil
5336
5337 * grub-core/Makefile.am: Override STRIP and RANLIB.
5338 * configure.ac: compute TARGET_RANLIB.
5339 * INSTALL: Document TARGET_RANLIB
5340
5341 Based on patches from AROS.
5342
5343 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5346 that floppies are unpartitioned.
5347
5348 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5351 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5352
5353 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5356 less nice but more portable.
5357 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5358
5359 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5360
5361 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5362 for cheat_fd.
5363 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5364 functions.
5365 (grub_cryptodisk_cheat_insert): Likewise.
5366 (grub_cryptodisk_close): Likewise.
5367
5368 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5371 Use windows path for DEFAULT_DIRECTORY.
5372
5373 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5376 difference was likely just gcc version, not anything mingw-related.
5377
5378 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 Use Winapi on both cygwin and mingw32 to share more code between both.
5381
5382 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5383
5384 * util/grub-install.in: Add --grub-editenv option.
5385 * util/grub-install_header (grub_compress_file): Explicitly check for
5386 plain file to avoid cp error.
5387
5388 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5389
5390 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5391 names; fix LVM driver name (lvm, not lv).
5392 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5393 names.
5394
5395 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5398 files rather than one file with loads of #if's.
5399 * util/getroot.c: Likewise.
5400
5401 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5402
5403 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5404
5405 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5408 GNU/Hurd to the list of checked PRNG.
5409
5410 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5413
5414 2013-09-21 Ales Nesrsta <starous@volny.cz>
5415
5416 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5417
5418 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5419
5420 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5421 * grub-core/disk/lvm.c: Add LVM UUIDs.
5422 * util/getroot.c: Use LVM UUIDs whenever possible.
5423
5424 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5425
5426 * docs/grub.texi (Networking commands): Add documentation for
5427 network related commands.
5428
5429 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5432 to determine if device is handled by devmapper.
5433 (convert_system_partition_to_system_disk): Likewise.
5434 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5435 already done in grub_util_open_dm.
5436
5437 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5438
5439 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5440 Clean up stack manipulation (sync_caches_armv*)
5441
5442 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5443
5444 * util/lvm.c: Remove since unused. Remove remaining references.
5445
5446 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5447
5448 Handle the case of partitioned LVM properly.
5449
5450 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5451 Stop on meeting LVM, mpath or DMRAID.
5452 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5453 (read_device_map): Likewise.
5454 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5455 device is full disk rather than erroring out on LVM and similar cases.
5456
5457 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5458
5459 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5460
5461 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5462
5463 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5464 4K before the end.
5465 Reported by: Leif Lindholm
5466
5467 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5468 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5469
5470 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5471 codes.
5472
5473 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5474
5475 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5476 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5477
5478 2013-09-18 Douglas Ray <dougray@cpan.org>
5479
5480 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5481 as secure.
5482
5483 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5484
5485 * docs/grub.texi: Fix broken link.
5486
5487 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5488
5489 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5490 to break endless loop.
5491
5492 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5493
5494 * util/grub-fstest.c: Fix several printf formats.
5495 * util/grub-mkimage.c: Likewise.
5496 * util/grub-mkimagexx.c: Likewise.
5497 * util/grub-script-check.c: Likewise.
5498
5499 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5500
5501 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5502 error.
5503
5504 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5505
5506 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5507
5508 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5511 removed in current versions cygwin_conv_*.
5512
5513 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 * configure.ac: Disable efiemu runtime on cygwin.
5516
5517 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5520 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5521
5522 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5523
5524 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5525 error message.
5526
5527 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5530 windows variant.
5531 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5532 data.
5533
5534 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5537 when on x86 and not cygwin.
5538 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5539 -Wl,-melf_x86_64.
5540
5541 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5542
5543 * configure.ac: Set CPP to build one when checkoing for freetype for
5544 build.
5545
5546 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5547
5548 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5549 [!GRUB_BUILD]: Remove has_argument.
5550
5551 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5552
5553 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5554 Replace with a dummy.
5555
5556 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5557
5558 * configure.ac: Don't change host_os from mingw to cygwin.
5559
5560 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * configure.ac: Change target_os from windows to cygwin.
5563
5564 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5565
5566 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5567
5568 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5569 (build-grub-gen-asciih): Likewise.
5570 (build-grub-gen-widthspec): Likewise.
5571 * Makefile.util.def (grub-pe2elf): Remove.
5572 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5573 * configure.ac: Separate tests for build.
5574 Move ./build-grub-pe2elf to grub-core.
5575 Fix typo.
5576 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5577 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5578 defined.
5579 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5580 constants.
5581 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5582 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5583 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5584
5585 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5588 mingw32 as well based on grub_util_get_disk_size.
5589 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5590 grub_util_get_fd_size.
5591 (sync): Removed.
5592 (fsync): Moved to ...
5593 * grub-core/kern/emu/misc.c (fsync): ... here.
5594
5595 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * include/grub/mm.h (grub_extend_alloc): Remove.
5598 * grub-core/loader/i386/pc/plan9.c: Use own version of
5599 grub_extend_alloc with appropriate types.
5600
5601 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5602
5603 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5604
5605 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5606
5607 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5608
5609 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5610
5611 Fix dependencies on cygwin.
5612
5613 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5614 dependencies when used and defined.
5615 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5616
5617 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5618
5619 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5620 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5621
5622 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5623
5624 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5625 implementation available to cause compile-time rather than runtime
5626 error.
5627
5628 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5629
5630 * util/grub-fstest.c: Don't check for symlinks on windows.
5631
5632 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5633
5634 * INSTALL: Mention unavailability of man pages when cross-compiling.
5635
5636 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5639 and gcry_log_bug.
5640 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5641
5642 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * INSTALL: Document cross-compilation.
5645 * acinclude.m4: Determine whether nm support -P and --defined-only.
5646 * configure.ac: Add TARGET_ to all variables pertaining to target
5647 that don't have it yet.
5648 * gentpl.py: Likewise.
5649 * grub-core/Makefile.am: Likewise.
5650 * grub-core/genmod.sh.in: Likewise.
5651 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5652 as well.
5653
5654 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5655
5656 * configure.ac: Remove -Wempty-body. It's not essential and needs
5657 recent gcc.
5658
5659 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5660
5661 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5662 * util/getroot.c: Likewise.
5663
5664 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/disk/ahci.c: Add needed explicit cast.
5667 * grub-core/lib/backtrace.c: Likewise.
5668 * grub-core/net/ip.c: Likewise.
5669 * grub-core/net/tcp.c: Likewise.
5670 * grub-core/net/udp.c: Likewise.
5671
5672 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5675
5676 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * util/import_gcry.py: Add final newline in visibility.h.
5679
5680 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5681
5682 * conf/Makefile.common: Fix typo.
5683
5684 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5687
5688 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 * Makefile.am (widthspec.h): Fix typo.
5691 * util/grub-gen-widthspec.c: Likewise.
5692
5693 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5694
5695 Move ascii.h and widthspec.h generation to a separate build-time-only
5696 tool.
5697
5698 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5699
5700 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5701 Always fill bootdisk info and improve check for NetBSD disklabel.
5702
5703 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * conf/Makefile.extra-dist: Add util/bin2h.c.
5706 Reported by: floppym.
5707
5708 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5711
5712 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * configure.ac: Disable unifont and starfield if no freetype was found.
5715
5716 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5719 on NetBSD and OpenBSD.
5720
5721 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5722
5723 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5724
5725 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5726
5727 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5728 reduced. Inheritant options are processed during the theme loading.
5729
5730 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5731
5732 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5733
5734 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5735
5736 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5737
5738 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5739
5740 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5741 using qemu.
5742
5743 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5744
5745 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5746 remove-potcdate.sed.
5747
5748 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5749
5750 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5751 unused attribute from pull argument.
5752
5753 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5754
5755 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5756 memory leak.
5757
5758 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5759
5760 * util/getroot.c (pull_lvm_by_command): add --separator option
5761 to vgs call to disable padding of output to 10 characters.
5762
5763 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5766 here ...
5767 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5768 here.
5769
5770 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5771
5772 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5773 length.
5774
5775 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5778 full Canadian cross. Tested with build=x86_64, host=arm,
5779 target=ppc-ieee1275.
5780
5781 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * configure.ac: Error if no $BUILD_CC could be found.
5784 Reported by: DevHC.
5785
5786 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5789 i386-multiboot.
5790
5791 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5792
5793 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5794 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5795
5796 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5797
5798 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5799 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5800 falling back to the partition device, otherwise a later call to this
5801 function may fail spuriously.
5802 Reported by Axel Beckert. Fixes Debian bug #708614.
5803
5804 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5805
5806 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5807
5808 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5809
5810 Prevent shadowing of stdlib's devname(3) on BSD.
5811
5812 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5813 and devlast to diskname and disklast, respectively.
5814
5815 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5816
5817 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5818
5819 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5820
5821 * docs/grub.texi: Introduce terminal window position options:
5822 terminal-left: terminal window's left position
5823 terminal-top: terminal window's top position
5824 terminal-width: terminal window's width
5825 terminal-height: terminal window's height
5826 terminal-border: terminal window's border width
5827 * grub-core/gfxmenu/theme-loader.c: Likewise.
5828 * include/grub/gfxmenu_view.h: Likewise.
5829 * po/exlude.pot: Likewise.
5830 * grub-core/gfxmenu/view.c: Likewise.
5831 Also updated minimal window size.
5832 Also terminal_sanity_check function has been introduced.
5833 * grub-core/tests/checksums.h: Update (terminal window height
5834 is adjusted now for low resolution screen)
5835
5836 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5839 position).
5840
5841 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * po/exclude.pot: Add few recent exceptions.
5844
5845 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 * tests/grub_func_test.in: Add unicode.pf2.
5848
5849 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5850
5851 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5852 standard rather than noral color, in line with other terminals.
5853
5854 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5857 analysis.
5858
5859 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5862
5863 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5866 inappropriate printf.
5867
5868 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5869
5870 * .bzrignore: Remove grub-core/lib/dtc-grub,
5871 grub-core/Makefile.libfdt.def
5872 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5873
5874 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * include/grub/video.h (grub_video_register): Keep double-linked as
5877 well as single-linked invariants.
5878 Reported by: qwertial.
5879
5880 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5881
5882 * grub-core/commands/nativedisk.c (get_uuid): Handle
5883 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5884
5885 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5886
5887 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5888 maximum of NW, N, NE heights instead of N's height and maximum of
5889 NW, W, SW widths instead of W's width. (So the box will be always
5890 correctly drawn)
5891
5892 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5893
5894 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5895 Fix misuse of variable count.
5896
5897 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5898 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5899 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 New ports to arm-uboot and arm-efi.
5902 Mostly by Leif Lindholm with some additions from
5903 Francesco Lavra and cleanup by Vladimir Serbinenko.
5904
5905 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5908 and not before.
5909 Reported by: Leon Drugi.
5910
5911 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5914 Reported by: Paulo Flabiano Smorigo.
5915
5916 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5917
5918 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5919
5920 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5921
5922 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5923
5924 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5927
5928 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5931
5932 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5933
5934 * grub-core/net/bootp.c: Export net_* variables.
5935 * grub-core/net/net.c: Likewise.
5936
5937 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5938
5939 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5940
5941 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5944
5945 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5948
5949 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5952
5953 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5954
5955 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5956 <= 0.
5957
5958 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5959
5960 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5961 functions.
5962
5963 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5964
5965 * grub-core/fs/zfs/zfs_lz4.c: New file.
5966 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5967
5968 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5969
5970 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5971
5972 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5973
5974 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
5975 (check_pool_label): Likewise.
5976 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
5977
5978 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5979
5980 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
5981
5982 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5983
5984 * docs/grub.texi (Commands): Document postition parameters
5985 for menuentry command.
5986
5987 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
5988
5989 * util/grub-mknetdir.in: Remove stray line from help output.
5990
5991 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 Remove early sm712 init as there is no reason for it (the "watchdog"
5994 effect was due to wrong GPIO map).
5995
5996 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * grub-core/commands/pcidump.c: Remove static variables.
5999
6000 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6003
6004 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * configure.ac: Move delimiter after the infos.
6007
6008 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6011
6012 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6013
6014 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6015 not filling whole 8x16 space.
6016
6017 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6018
6019 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6020
6021 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * configure.ac: Indicate which liblzma is used if any.
6024
6025 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6026 2013-06-21 Craig Sanders <savannah@taz.net.au>
6027
6028 * util/grub-reboot.in: Document submenu usage.
6029
6030 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6031
6032 * .bzrignore: Update with a number of new test-related files.
6033
6034 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6035
6036 * util/grub-script-check.c: Fail on scripts containing no
6037 commands, to guard against corrupted grub-mkconfig setups that
6038 produce no useful output.
6039 * tests/grub_script_no_commands.in: New test.
6040 * Makefile.util.def (grub_script_no_commands): Add.
6041 Reported by Hans Putter. Fixes Debian bug #713886.
6042
6043 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6044
6045 * grub-core/disk/diskfilter.c: Forgot to remove comment
6046 from previous commit.
6047
6048 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6049
6050 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6051 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6052
6053 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6054
6055 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6056
6057 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6058
6059 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6060 rescan diskfilter devices until nothing new is found.
6061
6062 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6065
6066 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6067
6068 Don't try to detect cbfs on *-emu.
6069
6070 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6073
6074 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6075
6076 Add support for processed coreboot payload chainloading.
6077
6078 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 Enable coreboot information commands even when not loaded as
6081 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6082
6083 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 Support for cbfs. Also factor out the part which is common
6086 for all archives to a separate module. This splits tar from cpio
6087 as they are very different but keeps cpio, cpio_be, odc and newc
6088 together since they're very similar.
6089
6090 2013-06-15 David Michael <fedora.dm0@gmail.com>
6091
6092 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6093 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6094
6095 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * tests/grub_script_eval.in: Really add the eval test.
6098
6099 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 Move flavour-specific parts out of common cpio.c file and
6102 rename remaining to cpio_common.c
6103
6104 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6105
6106 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6107 off new function grub_script_execute_new_scope. Change callers to use
6108 either of them as appropriate.
6109 * grub-core/commands/eval.c: New command eval.
6110 * docs/grub.texi (Commands): Document it.
6111
6112 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6113
6114 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6115 to fetch values when listing.
6116
6117 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6118
6119 Fix make dist on non-pc.
6120
6121 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6122
6123 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6124 without a device name.
6125
6126 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 Remove enable_executable_check as it's not needed anymore.
6129 Reported by: dougray.
6130
6131 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6134 ambigouos RAID before discovering RAIDs on top of it.
6135 Reported by: bodom.
6136
6137 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 Fix typo (failback vs fallback).
6140
6141 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6142
6143 * util/grub.d/30_os-prober.in: Add support for probing EFI
6144 System Partition (as of os-prober 1.58).
6145
6146 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 * configure.ac: Add yet another path to unifont. For parabola.
6149
6150 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6151
6152 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6153 handling to copy the killed characters to the kill buffer as
6154 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6155 stored as char. Eliminates UCS4 truncation and corruption
6156 observed when killing characters with Ctrl-u and yanking them
6157 back with Ctrl-y.
6158
6159 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 Detach optional parts of gfxterm and integrate in with coreboot init.
6162
6163 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6164
6165 Move blit and fill dispatcher to appropriate files to decrease export
6166 and relocation overhead.
6167
6168 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6169
6170 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6171 functions.
6172
6173 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6174
6175 * grub-core/Makefile.am: Fix compilation problem with some
6176 automake versions.
6177
6178 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6181
6182 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6185 automake versions.
6186
6187 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6190 SSDT.
6191
6192 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6193
6194 * grub-core/partmap/dfly.c: New partition map.
6195
6196 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6199 checking.
6200 Reported by: Francesco Lavra.
6201
6202 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6203
6204 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6205 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6206 false conditions.
6207 * conf/Makefile.common: define dist_grubconf_DATA
6208
6209 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6210
6211 Progressively skip menu elements on small terminals rather
6212 than crashing.
6213
6214 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6217 to avoid losing last column.
6218
6219 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6220
6221 * po/exclude.pot: Add missing string "%C".
6222
6223 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6226 after the test.
6227
6228 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6229
6230 * util/grub-install.in: Gettextize "Not found" message.
6231
6232 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6233
6234 Fix distfiles list.
6235 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6236
6237 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6238
6239 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6240 present.
6241 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6242
6243 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6244
6245 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6246
6247 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6250 attribute since structure is not necessarily aligned.
6251
6252 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6253
6254 * docs/grub.texi (Device syntax): Clarify description of network
6255 drives.
6256
6257 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6260 for vasprintf presence.
6261
6262 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * util/grub-install.in: Handle efibootmgr presence check.
6265 Reported by: Leif Lindholm.
6266
6267 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6268
6269 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6270 new strings to translate.
6271
6272 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6275 yet another string (pun intended) to translate.
6276
6277 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * po/POTFILES-shell.in: Autogenerate it.
6280
6281 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6282
6283 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6284
6285 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6286
6287 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6288 misnomer.
6289
6290 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6291
6292 * docs/grub.texi (Network): Add description of net_default_interface,
6293 net_default_ip and net_default_mac. Rewrite variables description
6294 to emphasize that they are per-interface.
6295
6296 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 New test: cmdline and cat.
6299
6300 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6301
6302 * grub-core/commands/cat.c: Show UTF-8 characters.
6303
6304 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * conf/Makefile.common: Poison float and double on non-emu.
6307
6308 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * configure.ac: Don't disable extended registers on emu.
6311
6312 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * configure.ac: Don't use extended registers on x86_64.
6315 Reported by: Peter Jones.
6316
6317 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * grub-core/term/efi/console.c: Fix compile error.
6320
6321 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 Compressed HFS+ support.
6324
6325 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6328 pixel".
6329
6330 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6331
6332 Menu color test.
6333
6334 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6335
6336 * grub-core/tests/setjmp_test.c: New test.
6337
6338 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6339
6340 New variables 'net_default_*' to determine MAC/IP of default interface.
6341
6342 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * tests/gettext_strings_test.in: A test to check for strings not
6345 marked for translation.
6346
6347 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * autogen.sh: Exclude unused libgcrypt files from translation.
6350
6351 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6352
6353 Simplify few strings.
6354
6355 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 Mark few forgotten strings for translation.
6358
6359 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6362 rather than printf.
6363
6364 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6365
6366 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6367 rather than printf.
6368 * grub-core/video/readers/tga.c: Likewise.
6369
6370 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6371
6372 * tests/priority_queue_unit_test.cc: New test.
6373
6374 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6377 than printf.
6378
6379 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6380
6381 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6382 variable for one time boot menu entry.
6383
6384 2013-05-05 Bean <bean123ch@gmail.com>
6385
6386 * grub-core/commands/testspeed.c: New command testspeed.
6387
6388 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 Factor-out human-size printing.
6391
6392 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 Agglomerate more mallocs to speed-up gfxterm.
6395
6396 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 Speed-up gfxterm by slightly agglomerating mallocs.
6399
6400 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6401
6402 More video checks.
6403
6404 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6405
6406 Speed-up gfxterm by saving intermediate results in index+alpha
6407 format.
6408
6409 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6412 test.
6413
6414 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6415
6416 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6417 line of timeout as it may contain the rest of long line.
6418
6419 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * grub-core/normal/main.c: Fix freed memory dereference.
6422
6423 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 Fix several memory leaks.
6426
6427 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6430
6431 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6434
6435 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 Fix test -a and -o precedence.
6438 Reported by: adrian15.
6439
6440 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6443
6444 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6445
6446 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6447 and add it as source to functional_test module.
6448
6449 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6450
6451 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6452
6453 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 New series of tests for gfxterm and gfxmenu.
6456
6457 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6460 the theme path relative to $prefix/themes.
6461
6462 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6463
6464 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6465 Fix order bug.
6466 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6467
6468 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6471 descriptor.
6472
6473 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6476 grub_gfxmenu_timeout_notifications.
6477 (grub_gfxmenu_view_destroy): Likewise.
6478
6479 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6480
6481 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6482
6483 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 Several fixes to ieee1275 and big-endian video.
6486
6487 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 Add missing exports on mips.
6490
6491 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6494 if no unifont is found.
6495 Restore original keyboard.
6496
6497 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6500 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6501
6502 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 First automated video test (running videotest and comparing results)
6505
6506 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6509 instead of 2 to have full RGB/CMY test pattern.
6510
6511 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6512
6513 Add few more tests.
6514
6515 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6518 ARCS. All users updated.
6519
6520 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6521
6522 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6523
6524 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6527
6528 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6531 Reported by: qwertial.
6532
6533 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6534
6535 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6536 with syntax "XXX deg"/"XXX °".
6537
6538 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6539
6540 Make PCI init in i386-qemu port more robust.
6541
6542 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6543
6544 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6545 cached view is reused.
6546 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6547 open boot menus.
6548
6549 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 Unify more code in grub-install_header.
6552
6553 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6554
6555 Add few new tests.
6556
6557 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6558
6559 Enforce disabling of firmware disk drivers when native drivers kick in.
6560
6561 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6562
6563 * grub-core/commands/nativedisk.c: Customize the list of modules on
6564 platform. Don't try to search for disks already using native drivers.
6565
6566 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6567
6568 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6569 platforms.
6570
6571 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6572
6573 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6574 handling of variables containing backslash.
6575
6576 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6579 dereference.
6580 Reported by: qwertial.
6581
6582 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6585
6586 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6589 dereference.
6590 Reported by: qwertial.
6591
6592 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6595
6596 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6599
6600 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6601
6602 New command `nativedisk'.
6603
6604 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6607 * grub-core/loader/i386/bsd.c: Likewise.
6608
6609 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6610
6611 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6612
6613 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6616 grub_get_unaligned16 rather than shifts.
6617
6618 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * grub-core/kern/file.c: Use const char * rather than casting to
6621 non-const.
6622
6623 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/commands/probe.c: Add missing grub_device_close.
6626
6627 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6628
6629 * INSTALL: Document linguas.sh.
6630
6631 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 Remove POTFILES.in and regenerate it in autogen.sh.
6634
6635 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 Move --directory/--override-directorry to grub-install_header and unify.
6638
6639 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6640
6641 * grub-core/term/morse.c: Macroify dih and dah.
6642
6643 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6644
6645 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6646
6647 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6648
6649 * grub-core/term/ns8250.c: Systematically probe ports by writing
6650 to SR before using them.
6651
6652 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6653
6654 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6655 disks.
6656 (check_sas): Get sas_adress info.
6657
6658 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6659
6660 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6661 ports.
6662
6663 2013-04-27 Leon Drugi <eyak>
6664
6665 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6666 BSS clearing.
6667
6668 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6669
6670 Core compression test.
6671
6672 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 Implement grub_machine_get_bootlocation for ARC.
6675
6676 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 Improve AHCI detection and command issuing.
6679
6680 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 Fix pseries test.
6683
6684 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Make 'make check' work on emu.
6687
6688 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 Replace libcurses with our own vt100 handling for the ease of testing
6691 and decreasing prerequisites.
6692
6693 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6696
6697 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6700 compile when not needed.
6701
6702 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * tests/pseries_test.in: New test.
6705
6706 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6707
6708 Add test to check that different boot mediums work.
6709
6710 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6713 ofw limited ISO support.
6714
6715 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6716
6717 * configure.ac: Fix loongson conditional.
6718
6719 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 Enable mipsel-arc.
6722
6723 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 Add serial on ARC platform.
6726
6727 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6730 commit.
6731
6732 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * tests/partmap_test.in: Add missing double semicolon.
6735
6736 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * util/grub-mkrescue.in: Fix loongson filename.
6739
6740 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * util/grub-mkrescue.in: Move all files that don't have a location
6743 set in stone under /boot/grub. Use ISO hard links rather than copies
6744 to save some space.
6745
6746 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6749 bogus SLOF values.
6750
6751 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 Make check work on mips-arc.
6754
6755 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6756
6757 * util/grub-mkrescue.in: Alias sashARCS as sash.
6758
6759 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6762 it's serial.
6763
6764 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * util/grub-install.in: Fix target fo qemu_mips.
6767 Fix extension on EFI.
6768
6769 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6770
6771 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6772 in front of chosen entry to mark it even if highlighting is lost.
6773
6774 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6777 gfxpayload=keep if cbfb is active.
6778
6779 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6780
6781 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6782
6783 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6784
6785 Add missing video ids to coreboot and ieee1275 video.
6786
6787 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6788
6789 * util/grub-mkrescue.in: Add mips-arc support.
6790
6791 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6794
6795 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 Move mips-arc link address. Previous link address was chosen
6798 in belief that RAM on SGI platforms grows down while in fact it
6799 grows up from an unusual base.
6800
6801 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6804 Fix a type which prevented CD-ROM and floppy boot.
6805
6806 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 Support coreboot framebuffer.
6809
6810 * grub-core/video/i386/coreboot/cbfb.c: New file.
6811
6812 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6815 detecting too small regions.
6816
6817 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6820
6821 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6824 Remove dprintf.
6825 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6826
6827 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6830 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6831 * grub-core/loader/powerpc/ieee1275/linux.c
6832 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6833
6834 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6837 Look for /boot-rom as well as /rom/boot-rom.
6838
6839 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6842 handling when creating text_layer failed.
6843 * grub-core/video/video.c (grub_video_create_render_target):
6844 Set result to 0 on error.
6845 (grub_video_delete_render_target): Do not dereference NULL.
6846
6847 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6850 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6851 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6852 (grub_linux_load64): Mask out 2 high bits.
6853
6854 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6855
6856 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6857 more place.
6858
6859 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 Add support for pseries and other bootinfo machines to grub-mkrescue.
6862
6863 Tested by: Paulo Flabiano Smorigo.
6864
6865 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6866
6867 * util/grub-mkrescue.in: Add GPT for EFI boot.
6868
6869 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6870
6871 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6872 It improves performance in qemu.
6873
6874 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 * build-aux/snippet: Add missing gnulib files.
6877
6878 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6879
6880 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6881
6882 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6883
6884 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6885
6886 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6887 2013-04-15 Peter Jones <pjones@redhat.com>
6888
6889 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6890 sectors.
6891 Based on patch by Peter Jones.
6892
6893 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 Fix DMRAID partition handling.
6896
6897 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6898
6899 * tests/grub_cmd_date.in: Skip on sparc64.
6900
6901 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6904 firmware error messages.
6905
6906 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6909 source and destination differ.
6910
6911 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6914 detection.
6915
6916 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6917
6918 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6919 match config-util.h to avoid warnings and increase compatibility.
6920
6921 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6922 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 Add option to compress files on install/image creation.
6925
6926 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * docs/grub-dev.texi: Rearrange menu to match the section order.
6929 Reported by: Bryan Hundven.
6930
6931 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6932
6933 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6934
6935 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6936
6937 Move GRUB out of system area when using xorriso 1.2.9 or later.
6938
6939 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * tests/grub_cmd_date.in: Add missing exit 1.
6942
6943 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 * tests/partmap_test.in: Skip on sparc64.
6946
6947 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 Support grub-shell on sparc64.
6950
6951 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 Support mkrescue on sparc64.
6954
6955 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6958 Needed on OpenBIOS due to incomplete device tree.
6959
6960 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6963 would be otherwise excluded.
6964
6965 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6968 Inline name defines used only once.
6969
6970 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 Fix memory leaks in ofnet.
6973 Reported by: Francesco Lavra.
6974
6975 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 * docs/man/grub-glue-efi.h2m: Add missing file.
6978
6979 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6980
6981 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
6982
6983 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6984
6985 Better support Apple Intel Macs on CD.
6986
6987 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6988
6989 Replace stpcpy with grub_stpcpy in tools.
6990
6991 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6992
6993 Handle Japanese special keys.
6994 Reported by: Hiroyuki YAMAMORI.
6995 Codes supplied by: Hiroyuki YAMAMORI.
6996
6997 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * util/grub-mkimage.c: Document memdisk implying --prefix.
7000
7001 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7002
7003 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7004 much we can do about it anyway.
7005
7006 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7007
7008 Fix handling of split transfers.
7009
7010 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/net/http.c: Fix bad free.
7013
7014 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7017 than buffer size.
7018
7019 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7022
7023 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7024
7025 * tests/util/grub-shell.in: Fix it on powerpc.
7026
7027 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7028
7029 Turn off QEMU ACPI-way since new releases don't have shutdown port
7030 anymore.
7031
7032 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7033
7034 * docs/grub.texi: Update coreboot status info.
7035
7036 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7037
7038 * tests/grub_cmd_date.in: New test for datetime.
7039
7040 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * tests/partmap_test.in: Fix missing qemudisk setting.
7043
7044 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 Support i386-ieee1275 grub-mkrescue and make check on it.
7047
7048 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7051 feature for it.
7052
7053 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7056 GRUB_CMDLINE_XEN_DEFAULT.
7057 Reported by: Marc Warne (GigaTux) <gigatux>
7058
7059 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 Import new gnulib.
7062
7063 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 Use ACPI shutdown intests as traditional port was removed.
7066
7067 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7068
7069 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7070 distinction.
7071
7072 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7073
7074 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7075 Fix few warining messages and leaks while on it.
7076
7077 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7078
7079 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7080 links under grub-core/lib/libgcrypt-grub/mpi.
7081
7082 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 Fix ia64-efi image generation on big-endian machines. Deduplicate
7085 some code while on it.
7086 Reported by: Leif Lindholm.
7087
7088 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7089
7090 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7091 as extra_dist.
7092
7093 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7094
7095 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7096
7097 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7098
7099 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7100 texinfo-5.1.
7101
7102 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * grub-core/normal/term.c: Few more fixes for menu entry editor
7105 rendering.
7106 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7107
7108 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 * grub-core/normal/term.c: Few more fixes for menu entry editor
7111 rendering.
7112 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7113
7114 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7115
7116 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7117 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7118
7119 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7120
7121 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7122 instead of hardcoding grub.mo.
7123
7124 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7125
7126 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7127
7128 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7131 grub-core/disk/geli.c.
7132
7133 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * util/grub-mkfont.c: Prefer enum to #define.
7136
7137 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7140
7141 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7142
7143 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7144
7145 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7146
7147 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7148
7149 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7152
7153 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 * include/grub/bsdlabel.h: Use enums.
7156
7157 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 Move GRUB_CHAR_BIT to types.h.
7160
7161 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7162
7163 * docs/grub.texi: Document more user commands.
7164
7165 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7166
7167 * docs/grub.texi: Document menuentry --id option.
7168
7169 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7170
7171 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7172
7173 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7174
7175 Unify file copying setup across different install scripts. Add
7176 options for performing partial install.
7177
7178 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7179 2013-04-04 Peter Jones <pjones@redhat.com>
7180
7181 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7182
7183 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7184
7185 Use TSC as a possible time source on i386-ieee1275.
7186
7187 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7188
7189 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7190 Init err.
7191
7192 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 * util/grub-setup.c (setup): Handle some corner cases.
7195
7196 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7197
7198 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7199
7200 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7201
7202 * grub-core/commands/verify.c: Save verified file to avoid it being
7203 tampered with after verification was done.
7204
7205 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7206
7207 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7208 reported width by one to compensate for curesor algorithm problem.
7209
7210 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7211
7212 Fix screen corruption in menu entry editor and simplify the code
7213 flow while on it.
7214
7215 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7216
7217 * util/grub-mount.c (fuse_init): Return error if fuse_main
7218 failed.
7219
7220 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7221
7222 * include/grub/elf.h: Add missing ARM relocation codes and fix
7223 existing ones.
7224
7225 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7226
7227 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7228
7229 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7230 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7233 into account when calculating radius.
7234
7235 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7236
7237 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7238
7239 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7240
7241 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7242
7243 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7244
7245 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7246 missing closing bracket.
7247
7248 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7249
7250 * INSTALL: Mention xorriso requirement.
7251
7252 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7253
7254 * grub-core/commands/verify.c: Fix hash algorithms values for
7255 the first three hashes - they start with 1, not with 0.
7256
7257 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7260 Try terminating EFI services several times due to quirks in some
7261 implementations.
7262
7263 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7264
7265 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7266 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7267 BankField extended opcodes.
7268 (get_sleep_type): Add minimal scope handling (just enough to
7269 handle setting the scope to the root path).
7270 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7271 * include/grub/acpi.h: Add enumeration values for Event, Device,
7272 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7273
7274 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7275
7276 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7277 memory leak.
7278
7279 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 * grub-core/disk/ahci.c: Give more time for AHCI request.
7282
7283 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7286 command.
7287
7288 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7289
7290 Replace the region at 0 from coreboot tables to available in BSD
7291 memory map.
7292
7293 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7294
7295 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7296 non-BIOS platforms.
7297
7298 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7299
7300 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7301 platforms.
7302
7303 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7304
7305 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7306 handling of multi-device filesystems.
7307
7308 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7311 platforms.
7312
7313 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 Add new 'proc' filesystem framework and put luks_script into it.
7316
7317 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7320 and qemu.
7321
7322 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7325
7326 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7327
7328 Add ability to generate newc additions on runtime.
7329
7330 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7333 description.
7334
7335 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7336
7337 * po/POTFILES.in: Regenerate.
7338
7339 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * grub-core/commands/verify.c (hashes): Add several hashes
7342 from the spec.
7343
7344 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Slight improve in USB-related boot-time checkpoints.
7347
7348 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7349
7350 * grub-core/commands/boottime.c: Fix copyright header.
7351
7352 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7353
7354 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7355 coreboot tables content. Support for cbmemc.
7356
7357 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7358
7359 Fix a conflict between ports structures with 2 controllers of
7360 same kind.
7361
7362 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7363
7364 * include/grub/boottime.h: Add missing file.
7365
7366 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 Initialize USB ports in parallel to speed-up boot.
7369
7370 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 Fix USB devices not being detected when requested
7373 due to delayed attach.
7374
7375 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7376
7377 Implement boot time analysis framework.
7378
7379 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 Remove get_endpoint_descriptor and change all functions needing
7382 descriptor to just receive it as argument rather than endpoint
7383 address.
7384
7385 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7386
7387 Better estimate the maximum USB transfer size.
7388
7389 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 Resend a packet if we got the wrong buffer in status.
7392
7393 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7394
7395 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7396 multiplication rather than division.
7397
7398 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7401 than divisions.
7402
7403 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7406 operations to have intended shifts and not divisions.
7407
7408 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7411 intended shifts rather than division.
7412
7413 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7416 computation for some years before epoch. Avode confusing division
7417 while on it.
7418
7419 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7420
7421 * grub-core/video/i386/pc/vbe.c
7422 (grub_video_vbe_print_adapter_specific_info): Replace division by
7423 shifts.
7424
7425 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7426
7427 Adjust types in gdb module to have intended unsigned shifts rather than
7428 signed divisions.
7429
7430 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7433 maximum size is 4G - 1 on hfs
7434
7435 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7438
7439 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7442 function.
7443
7444 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7445
7446 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7447 causing gcc error with gcc 4.7.1.
7448
7449 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7450
7451 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7452 dereference null pointer. While the code is technically correct, gcc
7453 may eliminate a null check if pointer is already dereferenced.
7454
7455 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7456
7457 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7458 OOM check.
7459 * grub-core/normal/term.c (read_terminal_list): Likewise.
7460
7461 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 Lift up core size limits on some platforms. Fix potential memory
7464 corruption with big core on small memory systems. Document remaining
7465 limits.
7466
7467 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7470 gotoxy to 0,0.
7471
7472 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7473
7474 Remove all trampoline support. Add -Wtrampolines when
7475 present. Remove symbols used for trampolines to make
7476 link fail if trampolines are present.
7477
7478 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7481 append out of its parent.
7482
7483 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7486 parent.
7487
7488 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7491 all vars to a macro. All users updated.
7492
7493 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7496 i386-ieee1275.
7497
7498 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7501
7502 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7503
7504 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7505
7506 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 Move to more hookless approach in IEEE1275 devices handling.
7509
7510 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * grub-core/kern/term.c (grub_term_normal_color),
7513 (grub_term_highlight_color): Add back lost defaults.
7514
7515 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 Make elfload not use hooks. Opt for flags and iterators instead.
7518
7519 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7520
7521 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7522 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7523
7524 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7527
7528 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7531 hook pass-through parameter. All users updated and unnested.
7532
7533 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7534
7535 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7536 out of its parent.
7537
7538 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7539
7540 * grub-core/fs/hfs.c: Remove nested functions.
7541
7542 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7545 the context through.
7546 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7547
7548 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 * util/grub-editenv.c (list_variables): Move print_var out of its
7551 parent.
7552
7553 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7556 function.
7557
7558 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/gentrigtables.c: Make tables const.
7561
7562 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 Remove nested functions from videoinfo iterators.
7565
7566 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7569 for 64-bit platforms.
7570
7571 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7572
7573 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7574 a FOR_CHILDREN macro.
7575
7576 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7579 platform from firmware path.
7580
7581 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 Enable linux16 on non-BIOS systems for i.a. memtest.
7584
7585 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7586 correctly.
7587 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7588
7589 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7592 Fix end of table condition.
7593
7594 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7595
7596 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7597 out of its parent.
7598
7599 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/fs/jfs.c: Remove nested functions.
7602
7603 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * grub-core/fs/minix.c: Remove nested functions.
7606
7607 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * grub-core/fs/iso9660.c: Remove nested functions.
7610
7611 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7612
7613 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7614 of parent function.
7615
7616 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 * util/grub-fstest.c: Remove nested functions.
7619
7620 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7621
7622 * grub-core/loader/machoXX.c: Remove nested functions.
7623
7624 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7625
7626 Remove nested functions from disk and file read hooks.
7627
7628 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7629 (struct grub_disk): Add read_hook_data member.
7630 * include/grub/file.h (struct grub_file): Likewise.
7631 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7632 argument.
7633
7634 Update all callers.
7635
7636 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7637
7638 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7639 Fix off by one error in enumerating extended partitions.
7640
7641 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7642
7643 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7644 memory leak if device name is not found.
7645
7646 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7647
7648 * grub-core/normal/menu_entry.c (update_screen): remove
7649 unused variable `off' which caused scroll down arrow to be always shown.
7650
7651 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7652
7653 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7654 access to unallocated memory.
7655
7656 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7657
7658 * Makefile.util.def: Add partmap/msdos.c to common library.
7659 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7660 * grub-core/disk/ldm.c: Check for existence of
7661 GRUB_PC_PARTITION_TYPE_LDM.
7662
7663 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7666 sizes and display sector size.
7667
7668 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7669
7670 Implement new command cmosdump.
7671
7672 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7673
7674 Support Openfirmware disks with non-512B sectors.
7675
7676 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7677 size of the disk.
7678 * (grub_ofdisk_get_block_size): New function.
7679 * (grub_ofdisk_prepare): Use the correct block size.
7680 * (grub_ofdisk_read): Likewise.
7681 * (grub_ofdisk_write): Likewise.
7682 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7683 New proto.
7684
7685 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7688
7689 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7692 on first error.
7693
7694 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7697 freeing it.
7698
7699 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 Implement USBDebug (full USB stack variant).
7702
7703 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7706 unless they have unexpected values.
7707
7708 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7709
7710 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7711 grub_print_error.
7712
7713 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7716 zero-out of port structure.
7717
7718 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7721 of extended attributes.
7722
7723 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7724
7725 * util/grub-install.in: change misleading comment about
7726 device.map creation
7727
7728 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7731 when menu highlight color isn't set.
7732
7733 2013-01-27 C. Masloch <pushbx@38.de>
7734
7735 Improve FreeDOS direct loading support compatibility.
7736
7737 * include/grub/i386/relocator.h (grub_relocator16_state):
7738 New member ebp.
7739 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7740 variable.
7741 (grub_relocator16_boot): Handle %ebp.
7742 * grub-core/lib/i386/relocator16.S: Likewise.
7743 * grub-core/loader/i386/pc/freedos.c:
7744 Load BPB to pass kernel which partition to load from.
7745 Check that kernel file is not too large.
7746 Set register dl to BIOS unit number as well.
7747
7748 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7749
7750 * util/grub-reboot.in (usage): Document the need for
7751 GRUB_DEFAULT=saved.
7752 * util/grub-set-default.in (usage): Likewise.
7753 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7754
7755 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7756
7757 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7758 than defining WORDS_BIGENDIAN manually.
7759
7760 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7763 invariants.
7764
7765 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7766
7767 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7768 nested.
7769 (blit_comb: add_device_width): Likewise.
7770
7771 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7772
7773 Remove nested functions from USB iterators.
7774
7775 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7776 (grub_usb_controller_iterate_hook_t): Likewise.
7777 (grub_usb_iterate): Add hook_data argument.
7778 (grub_usb_controller_iterate): Likewise.
7779 (struct grub_usb_controller_dev.iterate): Likewise.
7780
7781 Update all implementations and callers.
7782
7783 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7784
7785 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7786 margin when not needed.
7787
7788 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7789
7790 Make color variables global instead of it being per-terminal.
7791
7792 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7793
7794 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7795 asterisk.
7796
7797 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7798
7799 Fix powerpc and sparc64 build failures caused by un-nesting memory
7800 map iterators.
7801
7802 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7803
7804 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7805 parameter declarations.
7806
7807 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7808
7809 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7810
7811 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7812
7813 Improve spkmomdem reliability by adding a separator between bytes.
7814
7815 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7816
7817 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7818 an Acer registration utility with several sightings in the wild.
7819 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7820
7821 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7822
7823 Remove nested functions from filesystem directory iterators.
7824
7825 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7826 (struct grub_fs.dir): Add hook_data argument.
7827
7828 Update all implementations and callers.
7829
7830 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7831
7832 * docs/grub.texi (Multi-boot manual config): Fix typo for
7833 "recommended".
7834
7835 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7836
7837 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7838 until after its use in generate_image.
7839
7840 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7841
7842 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7843 initrd size to addr_min, since the initrd will be allocated after
7844 this address.
7845
7846 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7847
7848 * conf/Makefile.common: Fix autogen rules to pass definition
7849 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7850
7851 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7852
7853 * include/grub/elf.h: Update ARM definitions based on binutils.
7854
7855 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7856
7857 Split long USB transfers into short ones.
7858
7859 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7860
7861 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7862 is interrupted by ESC.
7863
7864 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 * util/grub-script-check.c (main): Uniform the error message.
7867
7868 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7869
7870 Remove nested functions from ELF iterators.
7871
7872 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7873
7874 Remove nested functions from device iterators.
7875
7876 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7877 (grub_arc_iterate_devs): Add hook_data argument.
7878 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7879 (struct grub_ata_dev.iterate): Add hook_data argument.
7880 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7881 (grub_device_iterate): Add hook_data argument.
7882 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7883 (struct grub_disk_dev.iterate): Add hook_data argument.
7884 (grub_disk_dev_iterate): Likewise.
7885 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7886 Likewise.
7887 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7888 Likewise.
7889 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7890 type.
7891 (struct grub_partition_map.iterate): Add hook_data argument.
7892 (grub_partition_iterate): Likewise.
7893 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7894 (struct grub_scsi_dev.iterate): Add hook_data argument.
7895
7896 Update all callers.
7897
7898 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7899
7900 Fix typos for "developer" and "development".
7901
7902 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7903
7904 Add license header to spkmodem-recv.c.
7905
7906 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7907
7908 Rewrite spkmodem to use PIT for timing. Double the speed.
7909
7910 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7911
7912 Add new command pcidump.
7913
7914 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7915
7916 New terminal outputs using serial: morse and spkmodem.
7917
7918 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7919
7920 Improve bidi handling in entry editor.
7921
7922 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7925 argument to prevent name collision.
7926
7927 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7928
7929 Remove nested functions from script reading and parsing.
7930
7931 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7932 getline_data argument, passed to getline.
7933 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7934 getline_data argument, passed to grub_parser_split_cmdline.
7935 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7936 lexerstate->getline_data to lexerstate->getline.
7937 (grub_script_lexer_init): Add getline_data argument, saved in
7938 lexerstate->getline_data.
7939 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7940 argument, passed to grub_script_parse.
7941 * grub-core/script/script.c (grub_script_parse): Add getline_data
7942 argument, passed to grub_script_lexer_init.
7943 * include/grub/parser.h (grub_parser_split_cmdline): Update
7944 prototype. Update all callers to pass appropriate getline data.
7945 (struct grub_parser.parse_line): Likewise.
7946 (grub_rescue_parse_line): Likewise.
7947 * include/grub/reader.h (grub_reader_getline_t): Add void *
7948 argument.
7949 * include/grub/script_sh.h (struct grub_lexer_param): Add
7950 getline_data member.
7951 (grub_script_parse): Update prototype. Update all callers to pass
7952 appropriate getline data.
7953 (grub_script_lexer_init): Likewise.
7954 (grub_normal_parse_line): Likewise.
7955
7956 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7957 data argument.
7958 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7959 static instead of nested. Rename to ...
7960 (grub_parser_execute_getline): ... this.
7961 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7962 data argument.
7963 * grub-core/normal/main.c (read_config_file: getline): Make static
7964 instead of nested. Rename to ...
7965 (read_config_file_getline): ... this.
7966 (grub_normal_read_line): Add unused data argument.
7967 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7968 getline): Make static instead of nested. Rename to ...
7969 (grub_script_execute_sourcecode_getline): ... this.
7970 * util/grub-script-check.c (main: get_config_line): Make static
7971 instead of nested.
7972
7973 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7974
7975 Remove nested functions from memory map iterators.
7976
7977 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
7978 argument, passed to hook.
7979 * grub-core/kern/i386/coreboot/mmap.c
7980 (grub_linuxbios_table_iterate): Likewise.
7981 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
7982 instead of nested.
7983 (grub_machine_mmap_iterate): Add hook_data argument.
7984 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
7985 Add hook_data argument, passed to hook.
7986 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
7987 Likewise.
7988 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
7989 Likewise.
7990 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
7991 Likewise.
7992 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
7993 Likewise.
7994 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
7995 Likewise.
7996 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
7997 Likewise.
7998 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
7999 (grub_machine_mmap_iterate): Likewise.
8000 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8001 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8002 prototype.
8003 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8004 Remove NESTED_FUNC_ATTR from here and from all users.
8005 (grub_mmap_iterate): Update prototype.
8006 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8007 pass appropriate hook data.
8008 (grub_machine_mmap_iterate): Likewise.
8009
8010 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8011 static instead of nested.
8012 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8013 Rename to ...
8014 (lsmmap_hook): ... this.
8015 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8016 Likewise.
8017 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8018 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8019 heap_init): Likewise.
8020 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8021 Rename to ...
8022 (mmap_iterate_hook): ... this.
8023 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8024 Likewise.
8025 * grub-core/lib/ieee1275/relocator.c
8026 (grub_relocator_firmware_get_max_events: count): Likewise.
8027 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8028 to ...
8029 (grub_relocator_firmware_fill_events_iter): ... this.
8030 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8031 hook): Likewise. Rename to ...
8032 (grub_relocator_alloc_chunk_align_iter): ... this.
8033 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8034 Rename to ...
8035 (generate_e820_mmap_iter): ... this.
8036 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8037 Rename to ...
8038 (count_hook): ... this.
8039 (grub_linux_boot: hook): Likewise. Rename to ...
8040 (grub_linux_boot_mmap_find): ... this.
8041 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8042 (grub_linux_boot_mmap_fill): ... this.
8043 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8044 hook): Likewise. Rename to ...
8045 (grub_fill_multiboot_mmap_iter): ... this.
8046 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8047 hook): Likewise. Rename to ...
8048 (count_hook): ... this.
8049 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8050 hook): Likewise. Rename to ...
8051 (grub_fill_multiboot_mmap_iter): ... this.
8052 * grub-core/loader/powerpc/ieee1275/linux.c
8053 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8054 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8055 Likewise. Rename to ...
8056 (alloc_phys_choose): ... this.
8057 (determine_phys_base: get_physbase): Likewise.
8058 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8059 find_hook): Likewise.
8060 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8061 (malloc_hook: count_hook): Likewise.
8062 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8063 Likewise. Rename to ...
8064 (lower_hook): ... this.
8065 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8066 (upper_hook): ... this.
8067 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8068 (post64_hook): ... this.
8069 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8070 Likewise. Rename to ...
8071 (lower_hook): ... this.
8072 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8073 (upper_hook): ... this.
8074 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8075 (grub_mmap_iterate: fill_hook): Likewise.
8076 (fill_mask): Pass addr and mask within a single struct.
8077 (grub_cmd_badram: hook): Make static instead of nested. Rename
8078 to ...
8079 (badram_iter): ... this.
8080 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8081 (cutmem_iter): ... this.
8082
8083 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8084
8085 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8086 delimit path in strings using quotes.
8087 * util/getroot.c (grub_guess_root_devices): Likewise.
8088 (grub_make_system_path_relative_to_its_root): Likewise.
8089 * util/grub-probe.c (probe): Likewise.
8090 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8091 (xrealpath): Likewise.
8092
8093 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 Fix compilation with older compilers.
8096
8097 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8098 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8099 declarations.
8100 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8101 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8102 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8103 identifier with b.
8104 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8105 * include/grub/crypto.h: Add type defines.
8106 * util/import_gcrypth.sed: Remove duplicate type defines.
8107
8108 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 New command list_trusted.
8111
8112 * grub-core/commands/verify.c (grub_cmd_list): New function.
8113
8114 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8115
8116 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8117 info message.
8118
8119 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8120
8121 Remove nested functions from PCI iterators.
8122
8123 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8124 passed to hook. Update all callers to pass appropriate hook data.
8125 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8126 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8127 Remove NESTED_FUNC_ATTR from here and from all users.
8128 (grub_pci_iterate): Update prototype.
8129 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8130 instead of nested. Rename to ...
8131 (grub_cs5536_find_iter): ... this.
8132 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8133 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8134 Likewise.
8135 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8136 Likewise.
8137 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8138 Likewise.
8139 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8140 Likewise.
8141 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8142 * grub-core/video/radeon_fuloong2e.c
8143 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8144 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8145 find_card): Likewise.
8146 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8147 Likewise.
8148
8149 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8150
8151 * grub-core/commands/verify.c: Mark messages for translating.
8152
8153 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8156 fatal.
8157
8158 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8159
8160 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8161 fatal.
8162
8163 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * autogen.sh: Do not try to delete nonexistant files.
8166 * util/import_gcrypth.sed: Add some missing header removals.
8167
8168 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8169
8170 Clean up dangling references to grub-setup.
8171 Fixes Ubuntu bug #1082045.
8172
8173 * docs/grub.texi (Images): Refer generally to grub-install rather
8174 than directly to grub-setup.
8175 (Installing GRUB using grub-install): Remove direct reference to
8176 grub-setup.
8177 (Device map) Likewise.
8178 (Invoking grub-install): Likewise.
8179 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8180 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8181 * util/grub-install.in (usage): Likewise.
8182
8183 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8184 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8185 grub-setup.
8186 * configure.ac: Remove grub_setup output variable.
8187
8188 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8189 to grub-bios-setup.
8190 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8191 grub-setup to grub-sparc64-setup.
8192
8193 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 Import gcrypt public-key cryptography and implement signature checking.
8196
8197 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/fs/ntfs.c: Ue more appropriate types.
8200 * grub-core/fs/ntfscomp.c: Likewise.
8201 * include/grub/ntfs.h: Likewise.
8202
8203 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8204
8205 Support Apple FAT binaries on non-Apple platforms.
8206
8207 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8208 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8209 Likewise.
8210 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8211 Apple FAT binaries.
8212
8213 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8214
8215 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8216 sector devices.
8217
8218 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8219
8220 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8221 explicitly zeroing elements.
8222 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8223 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8224 of elements in a structure already allocated using grub_zalloc.
8225 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8226
8227 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8228
8229 * docs/grub.texi (grub_cpu): New subsection.
8230 (grub_platform): Likewise.
8231
8232 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8233
8234 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8235
8236 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8237
8238 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8239 divisions.
8240
8241 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8242
8243 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8244 * grub-core/fs/ntfscomp.c: Likewise.
8245 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8246 (grub_ntfs_comp): Likewise.
8247
8248 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8251 Rename to ...
8252 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8253 of groups_per_block. All users updated.
8254
8255 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8258 grub_error properly.
8259 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8260 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8261
8262 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8263
8264 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8265 always in /boot/zfs.
8266 Reported by: Yuta Satoh.
8267
8268 2013-01-03 Yuta Satoh <nigoro>
8269
8270 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8271 ${grub_probe}
8272
8273 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * configure.ac: Extend -Wno-trampolines to host.
8276
8277 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8280 entry->len = 0.
8281
8282 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8283
8284 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8285 (Invoking grub-script-check): Likewise.
8286
8287 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8288
8289 * docs/grub.texi (Invoking grub-mount): New section.
8290 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8291
8292 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8293
8294 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8295 test failures, so that a failing unit test correctly causes 'make
8296 check' to fail.
8297
8298 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8299
8300 Fix failing printf test.
8301
8302 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8303 '$' in the correct order when collecting type information.
8304
8305 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8306
8307 * docs/grub.texi (configfile): Explain environment variable
8308 handling.
8309 (source): New section.
8310 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8311
8312 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8313
8314 Remove several trivially-unnecessary uses of nested functions.
8315
8316 * grub-core/commands/i386/pc/sendkey.c
8317 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8318 instead of nested.
8319 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8320 Rename to ...
8321 (legacy_file_getline): ... this.
8322 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8323 Likewise.
8324 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8325 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8326 to ...
8327 (probe_dummy_iter): ... this.
8328 * grub-core/kern/i386/coreboot/mmap.c
8329 (grub_linuxbios_table_iterate: check_signature): Likewise.
8330 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8331 check_varstate): Likewise. Mark inline.
8332 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8333 an additional parameter.
8334 (find_long: fnd_long): Likewise. Pass two additional parameters.
8335 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8336 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8337 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8338 Likewise. Rename to ...
8339 (grub_cmos_find_port_iter): ... this.
8340 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8341 Rename to ...
8342 (find_rtc_iter): ... this.
8343
8344 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8345 function directly into the function body, since it is only called
8346 once.
8347
8348 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8349
8350 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8351 __attribute__ ((unused)).
8352 * grub-core/video/bochs.c (find_card): Likewise.
8353 * grub-core/video/cirrus.c (find_card): Likewise.
8354 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8355 * grub-core/video/sis315pro.c (find_card): Likewise.
8356 * grub-core/video/sm712.c (find_card): Likewise.
8357
8358 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8359
8360 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8361 Fixes Savannah bug #37821.
8362
8363 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8364
8365 Apply program name transformations at build-time rather than at
8366 run-time. Fixes Debian bug #696465.
8367
8368 * acinclude.m4 (grub_TRANSFORM): New macro.
8369 * configure.ac: Create output variables with transformed names for
8370 most programs.
8371 * util/bash-completion.d/grub-completion.bash.in: Use
8372 pre-transformed variables for program names.
8373 * util/grub-install.in: Likewise.
8374 * util/grub-kbdcomp.in: Likewise.
8375 * util/grub-mkconfig.in: Likewise.
8376 * util/grub-mkconfig_lib.in: Likewise.
8377 * util/grub-mknetdir.in: Likewise.
8378 * util/grub-mkrescue.in: Likewise.
8379 * util/grub-mkstandalone.in: Likewise.
8380 * util/grub-reboot.in: Likewise.
8381 * util/grub-set-default.in: Likewise.
8382 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8383 * tests/util/grub-shell-tester.in: Remove unused assignment.
8384 * tests/util/grub-shell.in: Likewise.
8385 * util/grub.d/00_header.in: Likewise.
8386
8387 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8388
8389 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8390
8391 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8392 HAVE_RAW_DECL_GETS.
8393 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8394
8395 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8396
8397 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8398 Reported by: Eriks Latosheks <foresterlv>.
8399
8400 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * docs/grub.texi (Network): Update instructions on generating netboot
8403 image.
8404
8405 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8406
8407 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8408 around device name if necessarry.
8409
8410 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8411
8412 * util/grub-install.in: Follow the symbolic link parameter added
8413 to the file command.
8414
8415 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8416
8417 * util/grub-install.in: Remove stale TODO.
8418
8419 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8420
8421 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8422 dynamic allocation for the bootpath buffer.
8423
8424 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8425
8426 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8427 window too small.
8428
8429 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8432 argument rather than font name. All users updated.
8433 (grub_gfxterm_set_window): Likewise.
8434
8435 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8436
8437 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8438 from working.
8439
8440 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8441
8442 * util/getroot.c (convert_system_partition_to_system_disk): Support
8443 nbd disks.
8444
8445 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8448 infinite loop on corrupted FS.
8449
8450 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 Fix big-endian mtime.
8453
8454 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8455 together sec and usec.
8456 (grub_ufs_dir): Use correct byteswapping for UFS time.
8457
8458 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 Support big-endian UFS1.
8461
8462 * Makefile.util.def (libgrubmods): Add ufs_be.c
8463 * grub-core/Makefile.core.def (ufs1_be): New module.
8464 * grub-core/fs/ufs_be.c: New file.
8465 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8466 the file.
8467
8468 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8469
8470 * include/grub/types.h: Fix functionality unaffecting typo in
8471 GRUB_TARGET_WORDSIZE conditional macro.
8472
8473 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8474
8475 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8476
8477 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8478
8479 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8480 that /netbsd appears first (when it exists).
8481
8482 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8483
8484 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8485 Fixes Savannah bug #37558.
8486
8487 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8488
8489 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8490 description of extract_entries_configfile.
8491
8492 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8493
8494 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8495 preferred_address.
8496 (grub_cmd_linux): Likewise.
8497 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8498 preferred_lifetime. Update all users.
8499
8500 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8501
8502 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8503 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8504
8505 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8506
8507 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8508 errors from grub-probe to /dev/null, not stdout.
8509
8510 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8513 sector 1.
8514
8515 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8516
8517 * util/grub-install.in: Make the error message if $source_dir
8518 doesn't exist more useful.
8519
8520 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8521
8522 Fix grub-emu build on FreeBSD.
8523
8524 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8525 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8526 headers on Linux.
8527 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8528 implementation is currently Linux-specific.
8529 * util/getroot.c (exec_pipe): Define only on Linux or when either
8530 libzfs or libnvpair is unavailable.
8531 (find_root_devices_from_poolname): Remove unused path variable.
8532
8533 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8534
8535 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8536 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8537 should fit before end == 63.
8538
8539 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8540
8541 * util/grub-setup.c (write_rootdev): Remove unused core_img
8542 parameter. Update all callers.
8543 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8544 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8545 GRUB_SETUP_BIOS.
8546
8547 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8548
8549 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8550 (grub_add_tab): New function.
8551 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8552 * util/grub.d/10_illumos.in: Likewise.
8553 * util/grub.d/10_kfreebsd.in: Likewise.
8554 * util/grub.d/10_linux.in: Likewise.
8555 * util/grub.d/10_netbsd.in: Likewise.
8556 * util/grub.d/10_windows.in: Likewise.
8557 * util/grub.d/10_xnu.in: Likewise.
8558 * util/grub.d/20_linux_xen.in: Likewise.
8559 * util/grub.d/30_os-prober.in: Likewise.
8560
8561 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8562
8563 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8564 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8565 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8566 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8567 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8568 ieee1275-nocursor.
8569 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8570 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8571
8572 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8575 le-conversion.
8576 Reported by: BURETTE, Bernard.
8577
8578 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8579
8580 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8581 from comment.
8582
8583 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8584
8585 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8586 IEEE1275 machines. Fixes powerpc-emu compilation.
8587 * include/grub/terminfo.h: Likewise.
8588
8589 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8590
8591 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8592 a const pointer.
8593 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8594 const pointer.
8595 (efiemu_set_variable): Make vendor_guid a const pointer.
8596
8597 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 Don't require grub-mkconfig_lib to generate manpages for programs.
8600
8601 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8602 dependencies, don't add grub-mkconfig_lib.
8603 (program): Pass empty adddeps.
8604 (script): Pass grub-mkconfig_lib as adddeps.
8605
8606 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8609 * util/getroot.c (grub_find_device): Likewise.
8610 (get_mdadm_uuid): Likewise.
8611 (grub_util_is_imsm): Likewise.
8612 (grub_util_pull_device): Likewise.
8613 * util/grub-probe.c (probe): Likewise.
8614
8615 2012-09-10 Benoit Gschwind <gschwind>
8616
8617 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8618 (devs): Add devpath_8.
8619
8620 2012-09-08 Peter Jones <pjones@redhat.com>
8621
8622 * grub-core/Makefile.core.def (efifwsetup): New module.
8623 * grub-core/commands/efi/efifwsetup.c: New file.
8624 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8625 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8626 New define.
8627 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8628
8629 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8630
8631 * configure.ac: Add SuSe path.
8632
8633 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8634
8635 * NEWS: Fix typo.
8636
8637 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8638
8639 * util/import_gcry.py: Sort cipher_files, to make build system
8640 generation more deterministic.
8641
8642 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8645 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8646 (grub_set_datetime): Likewise.
8647
8648 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8651 warnings.
8652
8653 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8654
8655 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8656
8657 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8660
8661 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8662
8663 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8664 required for checkouts from bzr, but it may be useful for users or
8665 distributors wishing to update translations against a tarball
8666 distribution, and it can be helpful for the tarball to be a superset
8667 of what's in bzr.
8668
8669 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8670
8671 * Makefile.am (EXTRA_DIST): Add
8672 grub-core/tests/boot/linux.init-mips.S,
8673 grub-core/tests/boot/linux.init-ppc.S, and
8674 grub-core/tests/boot/linux-ppc.cfg.
8675
8676 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8677
8678 * grub-core/mmap/mips/loongson: Remove empty directory.
8679
8680 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8681
8682 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8683 gone.
8684
8685 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8686
8687 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8688 grub-sparc64-setup.
8689
8690 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8691
8692 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8693
8694 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8695
8696 * po/POTFILES.in: Regenerated.
8697
8698 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8699
8700 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8701 (NetBSD): New subsection.
8702
8703 2012-07-22 Ales Nesrsta <starous@volny.cz>
8704
8705 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8706 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8707
8708 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8709
8710 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8711 * util/grub.d/10_hurd.in: Add missing quoting.
8712 * util/grub.d/10_illumos.in: Likewise.
8713 * util/grub.d/10_kfreebsd.in: Likewise.
8714 * util/grub.d/10_linux.in: Likewise.
8715 * util/grub.d/20_linux_xen.in: Likewise.
8716
8717 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 New command `lsefi'.
8720
8721 * grub-core/Makefile.core.def (lsefi): New module.
8722 * grub-core/commands/efi/lsefi.c: New file.
8723 * include/grub/efi/api.h: Add more GUIDs.
8724
8725 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8726
8727 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8728 (grub_bsd_elf32_hook): Likewise.
8729 (grub_bsd_elf64_size_hook): Likewise.
8730 (grub_bsd_elf64_hook): Likewise.
8731 (grub_bsd_load_elf): Likewise.
8732
8733 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8736 if hash function is unavailable.
8737 (dec_stream_header): Likewise.
8738
8739 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8742 filter state.
8743
8744 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 Fix coreboot compilation.
8747
8748 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8749 (grub_vga_text_init_real): ... this.
8750 (grub_vga_text_fini): Rename to ...
8751 (grub_vga_text_fini_real): ... this.
8752
8753 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8756
8757 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8758
8759 * grub-core/lib/legacy_parse.c: Support clear and testload.
8760
8761 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8762
8763 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8764
8765 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8766
8767 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8768
8769 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 * grub-core/net/tftp.c (ack): Fix endianness problem.
8772 (tftp_receive): Likewise.
8773 Reported by: Michael Davidsaver.
8774
8775 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8778
8779 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8782 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8783 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8784
8785 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8786
8787 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8788 efi_mmap_size.
8789 Reported by: Stuart Hayes.
8790
8791 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8792
8793 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8794
8795 * grub-core/Makefile.core.def (mda_text): New module.
8796 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8797 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8798 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8799 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8800 here.
8801 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8802 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8803 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8804 here.
8805 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8806 to ..
8807 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8808 ... here
8809 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8810 here.
8811 * grub-core/term/i386/vga_common.c: Removed.
8812 * include/grub/i386/vga_common.h: Likewise.
8813 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8814 (grub_vga_cr_bw_read): Likewise.
8815 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8816 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8817 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8818 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8819 grub_vga_cr_read/grub_vga_cr_write.
8820 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8821
8822 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * configure.ac: Bump version to 2.00.
8825 * grub-core/normal/main.c (features): Add feature_200_final.
8826
8827 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8828 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8829
8830 * NEWS: Fix unclarity and language mistakes.
8831
8832 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8835 additional size to 3 pages.
8836 Reported by: Stuart Hayes.
8837
8838 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * NEWS: Add 2.00 entry.
8841
8842 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8845 put explicit "/" for empty path.
8846 (wildcard_expand): Improve dprintf.
8847
8848 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8849
8850 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8851 it's equal to currnode. This can happen with "" symlink.
8852
8853 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8854
8855 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8856 echo shell command by printf command.
8857
8858 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8861 the value returned by firmware is the maximal position, not diumension.
8862 (grub_terminfo_output_state): Use a more sane fallback.
8863
8864 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8867
8868 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8871 frequency to 150 MHz.
8872
8873 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 Apple fixes.
8876
8877 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8878 __APPLE_
8879 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8880 definition.
8881 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8882
8883 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 Handle slash in HFS label.
8886
8887 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8888 (grub_hfs_dir): Tanslate slash.
8889 (grub_hfs_label): Don't translate slash.
8890
8891 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8894 network protocol listing since it introduces problematic dependency on
8895 net module.
8896
8897 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8900
8901 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 Init video early on yeeloong to avoid being rebooted by watchdog.
8904
8905 * grub-core/Makefile.am (gensm712): New target.
8906 (sm712_start.S): Likewise.
8907 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8908 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8909 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8910 description.
8911 * include/grub/vga.h: Move registry definitions to...
8912 * include/grub/vgaregs.h: ... here.
8913
8914 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8915
8916 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8917 signedness.
8918
8919 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8920
8921 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8922 platforms with firmware disk drivers in the core.
8923
8924 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8925
8926 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8927 informative verbose message.
8928 (read_lv): Handle 64-bit segment size.
8929
8930 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8933
8934 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8935
8936 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8937 character but still remove trainling spaces.
8938 (grub_fat_label): Ignore archive flag.
8939
8940 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8941
8942 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8943 cast between linux_kernel_header and linux_kernel_params.
8944
8945 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8948 type for size.
8949 (grub_raid6_recover_func_t): Likewise.
8950 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8951 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8952
8953 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8956
8957 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8958
8959 Fix overflow.
8960
8961 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8962 [__NetBSD__]: Add explicit cast before bitshift.
8963
8964 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8965
8966 * configure.ac: Bump to 2.00~rc1.
8967
8968 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8971 half of $a0.
8972
8973 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8974 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
8975
8976 * docs/grub.texi: Fix search syntax.
8977 (Multi-boot manual config): Put msdos rather than GPT example.
8978 Grammar corrections.
8979
8980 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8981
8982 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
8983
8984 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8985
8986 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
8987
8988 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
8991 message on double free. Put the value of magic in case of mismatch.
8992
8993 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 Speed-up video on yeeloong.
8996
8997 * grub-core/video/sm712.c (framebuffer): Remove render_target and
8998 add cached_ptr.
8999 (grub_video_sm712_video_fini): Unmap cached_ptr.
9000 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9001 (grub_video_sm712_set_active_render_target): Removed.
9002 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9003 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9004 sync caches.
9005
9006 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9007
9008 Avoid flushing the same line multiple times on loongson.
9009
9010 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9011 Step in 32 bytes and not 1 byte.
9012 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9013 Likewise.
9014
9015 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9016
9017 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9018 subvolumes.
9019
9020 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9021
9022 Implement flow control for http.
9023
9024 * grub-core/net/http.c (parse_line): Handle response 206.
9025 (http_receive): Stall if too many packets are in the queue.
9026 (http_establish): Fix range header.
9027 (http_seek): Fix double free.
9028 (http_close): Likewise.
9029 (http_packets_pulled): New function.
9030 (grub_http_protocol): Set http_seek
9031 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9032 (ack_real): Set window depending on i_stall.
9033 (grub_net_send_tcp_packet): Likewise.
9034 (grub_net_tcp_stall): New function.
9035 (grub_net_tcp_unstall): Likewise.
9036 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9037 (grub_net_tcp_unstall): Likewise.
9038
9039 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9040
9041 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9042
9043 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9044
9045 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9046
9047 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * tests/util/grub-shell.in: Fix a typo.
9050
9051 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9052
9053 Implement flow control for tftp.
9054
9055 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9056 packets but stop only if stop condition is satisfied.
9057 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9058 `stall' instead of `eof' as stop condition.
9059 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9060 (http_err): Likewise.
9061 * grub-core/net/tftp.c (ack): Replace the first argument with data
9062 instead of socket.
9063 (tftp_receive): Stall if too many packets are in wait queue.
9064 (tftp_packets_pulled): New function.
9065 (grub_tftp_protocol): Set packets_pulled.
9066 * include/grub/net.h (grub_net_packets): New field count.
9067 (grub_net_put_packet): Increment count.
9068 (grub_net_remove_packet): Likewise.
9069 (grub_net_app_protocol): New field `packets_pulled'.
9070 (grub_net): New field `stall'.
9071
9072 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9075 sync part to handle them.
9076
9077 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9080 * grub-core/net/drivers/ieee1275/ofnet.c
9081 (grub_ieee1275_net_config_real): Likewise.
9082
9083 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9086 the direct route for server/gateway.
9087
9088 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9091 IP address to server name since we may not hame the DNS.
9092
9093 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9096 freeing random buffer on failure.
9097 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9098
9099 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9100
9101 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9102
9103 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9106 reserved bytes.
9107 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9108 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9109 Handle malloc error correctly.
9110
9111 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9114 blocks.
9115
9116 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9119 increment.
9120
9121 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9124 none is explicitly specified.
9125
9126 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9127
9128 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9129 while reallocating.
9130
9131 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9132
9133 Respect netmask from bootp/dhcp.
9134
9135 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9136 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9137 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9138 into ...
9139 (grub_net_add_ipv4_local): ... this.
9140 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9141 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9142 (grub_net_add_ipv4_local): New proto.
9143
9144 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9147 determining EFI memory map size.
9148
9149 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9152
9153 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9154
9155 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9156 when looking for partition separator.
9157
9158 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9159
9160 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9161 Escape commas.
9162
9163 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9164
9165 Restructure FAT driver to avoid hook in label reading as it hits a
9166 GCC bug.
9167
9168 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9169 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9170 (grub_fat_iterate_dir): Split into ...
9171 (grub_fat_iterate_init): ... this, ...
9172 (grub_fat_iterate_fini): ... this, ...
9173 (grub_fat_iterate_dir_next): ... and this. All users updated.
9174
9175 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9178 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9179 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9180 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9181 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9182 New fields last_key and last_key_time.
9183 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9184 extended key-esc into extended key-extended key.
9185
9186 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9187
9188 Avoid unnecessary memcpy of whole video buffer.
9189
9190 * grub-core/video/fb/video_fb.c (dirty): New struct.
9191 (framebuffer): Add members current_dirty and previous_dirty.
9192 (dirty): New function.
9193 (grub_video_fb_fill_rect): Update dirty.
9194 (common_blitter): Likewise.
9195 (grub_video_fb_scroll): Likewise.
9196 (doublebuf_blit_update_screen): Copy only dirty part.
9197 (doublebuf_pageflipping_update_screen): Likewise.
9198 (grub_video_fb_doublebuf_blit_init): Init dirty.
9199 (doublebuf_pageflipping_init): Likewise.
9200 (grub_video_fb_setup): Likewise.
9201
9202 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9203
9204 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9205 poll rate.
9206
9207 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9208
9209 Fix wildcard regexp dot and other special characters handling.
9210 Reported by: Robert Mabee.
9211
9212 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9213 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9214 (split_path): Trigger expansion on '?'.
9215 (unescape): New function.
9216 (wildcard_expand): Unescape parts copied without globbing.
9217 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9218 (grub_script_arglist_to_argv): Don't unescape expansions.
9219
9220 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * include/grub/net.h (grub_net_card): New member txbufsize.
9223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9224 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9225 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9226 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9227 txbufsize.
9228 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9229 compatible property to check for macs. Set
9230 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9231 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9232 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9233 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9234 (send_card_buffer): Use txbuf.
9235 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9236 nested function out of the parent while on it.
9237
9238 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9239
9240 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9241 presence check.
9242 (grub_ieee1275_net_config_real): Fix config pointer.
9243
9244 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9247 filename parsing to non-block devices.
9248
9249 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9252
9253 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9254
9255 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9256 All users updated.
9257
9258 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9259
9260 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9261 UUID search command even if hints probing failed.
9262
9263 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * po/POTFILES.in: Regenerated.
9266
9267 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 Speed-up video on fuloong.
9270
9271 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9272 New function.
9273 (grub_pci_device_unmap_range): Handle non-cached address.
9274 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9275 add direct_ptr.
9276 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9277 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9278 (grub_video_sis315pro_set_active_render_target): Removed.
9279 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9280 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9281 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9282 sync caches.
9283 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9284 New proto.
9285
9286 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9287
9288 * docs/grub.texi (Multi-boot manual config): New section.
9289
9290 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 Avoid slow read-back from VRAM.
9293
9294 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9295 Move from here ...
9296 * grub-core/video/fb/video_fb.c
9297 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9298 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9299 (front_target): Remove front_target. Add pages.
9300 (grub_video_fb_init): Skip setting front_pages.
9301 (grub_video_fb_fini): Likewise.
9302 (doublebuf_blit_update_screen): Use pages.
9303 (grub_video_fb_doublebuf_blit_init): Likewise.
9304 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9305 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9306 (grub_video_fb_setup): Prefer doublebuffing.
9307
9308 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9311 gzio.
9312
9313 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9314
9315 Add loongson tests.
9316
9317 * tests/util/grub-shell.in: Handle loongson.
9318 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9319 drivers.
9320 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9321 Reboot instead of shutdown if REBOOT is defined.
9322
9323 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9326 sized ports since unlike on real hardware qemu supports only 32-bit
9327 regs.
9328
9329 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9332 * util/grub-mkrescue.in: Handle loongson.
9333
9334 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9337 Set is_part appropriately.
9338 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9339 names. Canonicalize partition without full disk.
9340
9341 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9342
9343 Revert usb-quiesce since it's wrong.
9344
9345 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9346 (grub_ofdisk_init): Don't do quiesce.
9347
9348 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9349
9350 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9351 PowerMac workaround to Xserves as well.
9352 Information supplied by: Benjamin Herrenschmidt.
9353
9354 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 Don't assume that beginning address is also the entry point on ppc.
9357
9358 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9359 (grub_linux_boot): Use linux_entry.
9360 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9361 (grub_linux_load64): Likewise.
9362
9363 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9364
9365 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9366
9367 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9368
9369 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9370 needlessly lose the console.
9371
9372 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9373
9374 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9375 space.
9376
9377 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9380 than current grub_get_rtc() not implemented when booted with
9381 coreboot without TSC.
9382
9383 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9384 Add machine/time.h to kernel headers on loongson.
9385 * grub-core/Makefile.core.def (kernel): Remove
9386 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9387 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9388 (grub_get_rtc): Likewise.
9389 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9390 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9391 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9392 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9393 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9394 rather than installing known non-working time source.
9395 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9396 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9397 * include/grub/time.h: Don't include machine/time.h.
9398 * include/grub/efi/time.h: Removed.
9399 * include/grub/i386/efi/time.h: Likewise.
9400 * include/grub/i386/ieee1275/time.h: Likewise.
9401 * include/grub/powerpc/ieee1275/time.h: Likewise.
9402 * include/grub/sparc64/ieee1275/time.h: Likewise.
9403 * include/grub/x86_64/efi/time.h: Likewise.
9404
9405 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9406
9407 Remove dot on i and j when combining with above diacritics.
9408
9409 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9410 value.
9411 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9412 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9413 with dotless variants when any combining above is present.
9414
9415 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9418 text and not binary.
9419
9420 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9421
9422 Stop polling as soon as we have the packet we were waiting for.
9423
9424 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9425 All users updated.
9426 * grub-core/net/arp.c (have_pending): New var.
9427 (pending_req): Likewise.
9428 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9429 stop indicator.
9430 (grub_net_arp_receive): Set have_pending.
9431 * grub-core/net/dns.c (recv_data): New field stop.
9432 (recv_hook): Set stop.
9433 (grub_net_dns_lookup): Init stop and use as stop condition.
9434 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9435 condition.
9436 * grub-core/net/net.c (grub_net_poll_cards): New argument
9437 stop_condition. Stop when it goes true.
9438 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9439 indicator.
9440 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9441
9442 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9443
9444 Keep TX and RX buffers on EFI rather than always allocate new ones.
9445
9446 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9447 card. All users updated.
9448 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9449 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9450 (get_card_packet): Likewise.
9451 (grub_efinet_findcards): Init new fields.
9452
9453 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9456 compilation error on sparc64.
9457
9458 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 Use ITC on IA64 rather than broken routine based on daytime.
9461
9462 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9463 ia64.
9464 (grub_get_rtc) [__ia64__]: Likewise.
9465 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9466 (get_itc): New function.
9467 (grub_rtc_get_time_ms): Likewise.
9468 (grub_machine_init): Calibrate ITC.
9469 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9470 Keep only on non-ia64. Don't export since it's broken and used only
9471 if TSC is unavailable.
9472
9473 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9474
9475 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9476 even if it's used.
9477 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9478 Skip if parent is unused.
9479
9480 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9483
9484 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9485
9486 Fix wildcard escaping.
9487
9488 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9489 * grub-core/script/execute.c (wildcard_escape): .. to here.
9490 Don't escape dot.
9491 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9492 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9493 Don't escape dot.
9494 * grub-core/script/execute.c (gettext_append): Always escape.
9495 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9496 * grub-core/script/yylex.l: Don't cut away the escaping.
9497 * tests/grub_script_echo1.in: Add tests with wildcard.
9498
9499 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9502 (ftdi_hw_configure): Likewise.
9503 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9504 define.
9505 (real_config): Handle 1.5 stop bits.
9506 (pl2303_hw_configure): Likewise.
9507
9508 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * Makefile.am: Add ppc linux bootcheck.
9511 * grub-core/tests/boot/linux-ppc.cfg: New file.
9512 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9513
9514 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9515
9516 * tests/grub_script_expansion.in: Skip network protocols.
9517
9518 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9521
9522 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9525 --rom-directory.
9526 Add -graft-points.
9527
9528 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 ESCC serial driver for conducting sautomated tests in qemu.
9531 Not tested on real hardware.
9532
9533 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9534 * grub-core/term/ieee1275/escc.c: New file.
9535 * grub-core/Makefile.core.def (escc): New module.
9536
9537 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9540 invalid on error.
9541 (serial_hw_fetch): Don't read invalid handle.
9542 (serial_hw_put): Don't write into invalid handle.
9543
9544 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 Add a 1.5 stop bits value.
9547
9548 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9549 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9550 GRUB_SERIAL_STOP_BITS_1_5.
9551
9552 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9555 value rather than let it uninited.
9556
9557 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * grub-core/commands/wildcard.c (+check_file): New function.
9560 (wildcard_expand): Don't expand to non-existing files, expand with
9561 suffix and not attempt to expand if not needed.
9562
9563 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9566 out of partitions containing other partitions.
9567
9568 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9571 on some qemu versions with GRUB.
9572
9573 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9574 define.
9575 (grub_openbsd_bootarg_pcibios): New struct.
9576 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9577 Add PCIINFO.
9578
9579 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9580
9581 * tests/util/grub-shell.in: Trim firmware output on EFI.
9582
9583 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9586 and coreboot since it's already in kernel.
9587
9588 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9591 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9592 to here. New return value start. All users updated.
9593 Recursively scan linear mappings.
9594 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9595 proto.
9596 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9597 Use grub_util_get_dm_node_linear_info.
9598 * util/getroot.c (convert_system_partition_to_system_disk): Use
9599 grub_util_info rather than grub_dprintf.
9600 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9601
9602 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9605
9606 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9607 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9608
9609 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * include/grub/types.h (grub_set_unaligned64): New function.
9612 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9613 (setup): Likewise.
9614
9615 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9618 (grub_ofdisk_fini): Quiesce USB devices.
9619
9620 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9623 caches.
9624
9625 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9628
9629 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9630
9631 * grub-core/disk/pata.c (grub_pata_pio_read)
9632 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9633 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9634
9635 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 Extend automated tests to qemu-mips.
9638
9639 * Makefile.am: reorganise tests and enable qemu-mips.
9640 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9641 * grub-core/tests/boot/linux.init-mips.S: New file.
9642 * tests/partmap_test.in: Handle ata0 disks.
9643 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9644 non-pc i386.
9645
9646 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9649 ia64.
9650 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9651 quotes while on it.
9652
9653 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9656 (grub_halt): Likewise.
9657 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9658
9659 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * grub-core/term/serial.c (grub_serial_register)
9662 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9663 the behaviour in line with x86 platforms.
9664
9665 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9668 (grub_ata_strncpy): Likewise.
9669 (grub_ata_identify): Add missing byteswaps.
9670
9671 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9674 byte-swap.
9675 (screen_read_char): Likewise.
9676 (grub_vga_text_cls): Likewise.
9677
9678 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9681 filenames.
9682 (make_file_path): Likewise.
9683
9684 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9687 machines.
9688 Tested by: Paulo Flabiano Smorigo.
9689 Crucial information about API supplied by: Coleen <Last name unknown>.
9690 Reviewed by: Coleen <Last name unknown>.
9691
9692 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9693
9694 * util/grub-mkimage.c: Disable -Wcast-align.
9695
9696 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9699 as they are fatal.
9700
9701 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9702
9703 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9704
9705 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * util/grub-probe.c (escape_of_path): Fix double free.
9708
9709 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/commands/videoinfo.c (hook): Show pitch.
9712
9713 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9714
9715 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9716
9717 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9720 (probe): Add ieee1275 to OFW devices.
9721
9722 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9723
9724 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9725
9726 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 Handle IBM OFW path.
9729
9730 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9731 available.
9732 (of_path_of_scsi): Handle vdevice.
9733
9734 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9737 Allocate in multiples of 16 to avoid adding a few bytes free region the
9738 windows bugs upon.
9739
9740 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9741
9742 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9743 Allocate in multiples of 16 to avoid adding a few bytes free region the
9744 windows bugs upon.
9745 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9746
9747 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9750 resolutions.
9751 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9752 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9753
9754 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9755
9756 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9757
9758 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9759
9760 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9761 resulted in \\ at the end of the line.
9762
9763 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9764
9765 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9766 (grub_parser_cmdline_state): Likewise.
9767 (grub_parser_split_cmdline): Likewise.
9768
9769 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9770
9771 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9772 /dev/root and /dev/dm-*.
9773
9774 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9775
9776 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9777 fix partially stale display.
9778
9779 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9782 substraction.
9783
9784 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9787 Fix MBR remapping workaround.
9788 (grub_util_biosdisk_read) [__linux__]: Likewise.
9789
9790 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9793
9794 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * configure.ac: Bump to beta6.
9797
9798 2012-05-31 Christer Weinigel <christer@weinigel.se>
9799
9800 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9801
9802 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9805 (grub_cmd_linux): Likewise.
9806
9807 2012-05-31 Christer Weinigel <christer@weinigel.se>
9808
9809 Fix EHCI low-speed.
9810
9811 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9812 (GRUB_EHCI_MULT_TWO): Likewise.
9813 (GRUB_EHCI_MULT_THREE): Likewise.
9814 (GRUB_EHCI_CMASK_MASK): New enum value.
9815 (GRUB_EHCI_SMASK_MASK): Likewise.
9816 (GRUB_EHCI_CMASK_OFF): Likewise.
9817 (GRUB_EHCI_SMASK_OFF): Likewise.
9818 (grub_ehci_pci_iter): Enable periodic schedule.
9819 (grub_ehci_parse_notrun): Likewise.
9820 (grub_ehci_restore_hw): Likewise.
9821 (grub_ehci_setup_qh): Set flags for low speed transfers.
9822 (grub_ehci_find_qh): Use periodic list for low speed.
9823 (grub_ehci_setup_transfer): Check periodic queue as well.
9824 (grub_ehci_check_transfer): Likewise.
9825 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9826
9827 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9828
9829 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9830 parameter is used.
9831
9832 2012-05-31 Peter Jones <pjones@redhat.com>
9833
9834 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9835 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9836 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9837
9838 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9841 uninited variable. Allocate at least setup_sects.
9842
9843 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9844
9845 Fix handling of EFI with big memory maps.
9846
9847 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9848 (real_mode_mem): Likewise.
9849 (real_mode_target): Likewise.
9850 (real_mode_pages): Likewise.
9851 (prot_mode_pages): Likewise.
9852 (linux_params): New var.
9853 (linux_cmdline): Likewise.
9854 (free_pages): Don't set real mode variables.
9855 (allocate_pages): Don't allocate real mode memory.
9856 (grub_e820_add_region): Remove the limit.
9857 (grub_linux_boot): Allocate and copy real mode memory.
9858 (grub_linux_unload): Free linux_cmdline.
9859 (grub_cmd_linux): Use temporary storage for parameters.
9860 (grub_cmd_initrd): Likewise.
9861 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9862 (linux_kernel_params): Make it 1K big.
9863
9864 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9865
9866 * Makefile.util.def: Remove -Wno-format.
9867 * grub-core/Makefile.core.def: Likewise.
9868
9869 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 * tests/cmp_unit_test.c: Add missing failure message.
9872 * tests/example_unit_test.c: Likewise.
9873 * tests/printf_unit_test.c: Likewise.
9874
9875 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9876
9877 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9878 relaxation of protective MBR requirements.
9879
9880 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9881
9882 * configure.ac: Add condition for COND_HOST_XNU.
9883 * Makefile.util.def (10_xnu): New script.
9884 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9885
9886 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9889 objconv bug.
9890
9891 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9894 Binary on other platforms stays identical.
9895
9896 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9897
9898 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9899 Apple.
9900
9901 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9904
9905 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9908 rather than defining size_t ourselves to avoid conflict.
9909
9910 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9911
9912 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9913 initialisation to avoid __bzero reference.
9914
9915 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9916
9917 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9918 version.
9919 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9920 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9921 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9922 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9923 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9924
9925 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9928 * grub-core/kern/misc.c: Likewise.
9929 * grub-core/loader/i386/xnu.c: Likewise.
9930 * include/grub/i386/tsc.h: Likewise.
9931 * include/grub/symbol.h: Likewise.
9932
9933 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9936 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9937 on older compiler.
9938
9939 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9942 Implement Apple flavour.
9943 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9944
9945 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9946
9947 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9948 (memmove) [__APPLE__]: Likewise.
9949 (memcpy) [__APPLE__]: Likewise.
9950 (memset) [__APPLE__]: Likewise.
9951 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9952 (memmove) [__APPLE__]: Likewise.
9953 (memcpy) [__APPLE__]: Likewise.
9954 (memset) [__APPLE__]: Likewise.
9955
9956 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9959 dependency discard.
9960
9961 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9962
9963 * grub-core/normal/main.c (read_config_file): Provide config_file and
9964 config_directory.
9965 * util/grub.d/41_custom.in: Use config_directoy when available.
9966
9967 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9968
9969 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9970 (grub_bfs_dir): Likewise.
9971
9972 2012-05-27 Peter Jones <pjones@redhat.com>
9973
9974 The old code gives arguments to a printf function which can't work
9975 correctly, and the compiler complains.
9976
9977 * grub-core/tests/example_functional_test.c (example_test): Add
9978 missing text.
9979 * grub-core/tests/lib/test.c (add_failure): Rewrite.
9980 * include/grub/test.h (grub_test_assert_helper): New declaration.
9981 (grub_test_assert): Use grub_test_assert_helper.
9982
9983 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
9986 (exfctest): ... this to avoid overlong filenames.
9987 All users updated.
9988
9989 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 Handle "." and ".." on squashfs.
9992
9993 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
9994 Make inode numbers into stack.
9995 (grub_squash_read_symlink): Use stack.
9996 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
9997 (make_root_node): Fill stack.
9998 (grub_squash_open): Use stack.
9999
10000 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10001
10002 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10003 freeing.
10004
10005 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10006
10007 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10008 stderr on test calls.
10009
10010 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10011
10012 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10013
10014 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10017
10018 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10019
10020 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10021 "..".
10022
10023 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10024
10025 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10026 (grub_hfsplus_iterate_dir): Add "." and "..".
10027
10028 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10029
10030 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10031 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10032
10033 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10036 (find_path): Handle "." and "..".
10037
10038 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10041 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10042 (grub_affs_iterate_dir): Handle hardlinks.
10043
10044 2012-05-26 Matthew Garrett <mjg@redhat.com>
10045
10046 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10047 (grub_efi_console_fini): Likewise.
10048 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10049 (grub_video_gop_fill_mode_info): Rename to ...
10050 (grub_video_gop_fill_real_mode_info): ... this.
10051 (grub_video_gop_fill_mode_info): New function.
10052 (grub_video_gop_setup): Setup double framebuffer.
10053 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10054 Free offscreen.
10055 (grub_video_gop_swap_buffers): Copy framebuffer.
10056 (grub_video_gop_fini): Free offscreen buffer.
10057 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10058 New enum.
10059 (grub_efi_gop_blt_pixel): New struct.
10060
10061 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * gentpl.py: Remove error disabling for objconv.
10064
10065 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10066
10067 * configure.ac: Remove -Wunitialized as it's not available on older
10068 compilers.
10069
10070 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 Fix extent overflow comparator.
10073
10074 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10075 (grub_hfsplus_read_block): Set type.
10076 (grub_hfsplus_cmp_extkey): Compare type.
10077
10078 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10081
10082 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10085 than 0.
10086
10087 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10090 (dejavu_bold_14.pf2): New target.
10091
10092 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * configure.ac: Fix djvu font detection.
10095
10096 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10099 ext* instead of ext2.
10100
10101 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10104 name with \0.
10105
10106 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10107
10108 * docs/grub-dev.texi: Remove dot from .png.
10109
10110 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10113 protective entry in any slot.
10114 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10115 if protective entry is found in any slot.
10116
10117 Protective entry in non-first slot make no sense but is a widespread
10118 brain damage.
10119
10120 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10123
10124 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10127 with old reiserfs.
10128 (grub_reiserfs_open): Don't free root.
10129
10130 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10131
10132 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10133 after freeing for safety.
10134
10135 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10138 Reported by: Jordan Uggla.
10139
10140 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10141
10142 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10143 actual implementation. Specifically, clarify that the grub menu will
10144 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10145 passed.
10146
10147 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10148
10149 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10150 of r0.
10151
10152 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10153
10154 Remove unjustified hard dependency of normal.mod on gfxterm.
10155
10156 * include/grub/term.h (grub_term_output): New member fullscreen.
10157 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10158 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10159 (grub_gfxterm): Set .fullscreen.
10160 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10161 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10162
10163 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10166 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10167 Mention case-insensitive AFFS, SFS and JFS.
10168
10169 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10172
10173 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10176 a bad FS.
10177
10178 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10179
10180 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10181 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10182
10183 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10184
10185 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10186 (grub_jfs_mount): Fill caseins.
10187 (grub_jfs_find_file): Respect caseins.
10188
10189 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10192 through UTF-16.
10193
10194 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10197 New argument origpath. All users updated.
10198
10199 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10200
10201 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10202 (read_attr): Ensure that we read start of possibly compressed block.
10203
10204 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10205
10206 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10207 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10208 All users updated.
10209
10210 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10213 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10214 (dejavu.pf2): Replace with ...
10215 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10216 this.
10217
10218 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 * util/grub.d/20_linux_xen.in: Add missing line.
10221
10222 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10225 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10226 (grub_utf16_to_utf8): Likewise.
10227
10228 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10229
10230 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10231 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10232 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10233 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10234 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10235 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10236
10237 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10240 a bad FS.
10241
10242 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10243
10244 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10245 (grub_udf_read_symlink): Handle read_string failure.
10246
10247 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10250 comment.
10251
10252 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10253
10254 Fix handling of UDF symlinks.
10255
10256 * grub-core/fs/udf.c (read_string): New argument outbuf.
10257 All users updated.
10258 (grub_ufs_read_symlink): Rename to ...
10259 (grub_udf_read_symlink): ... this. All users updated.
10260 Handle symlinks with more than one component.
10261
10262 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10263
10264 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10265 symlinks. Replace leading colon with a slash.
10266
10267 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10270 filename.
10271
10272 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10273
10274 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10275 match in inner node.
10276
10277 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10280 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10281 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10282 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10283 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10284 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10285 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10286 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10287 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10288
10289 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10290
10291 Use grub-probe and not cmp to check that disk is empty.
10292
10293 * util/grub-install.in: Use grub-probe for zero-check.
10294 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10295 (probe): Handle PRINT_ZERO_CHECK.
10296 (argp_parser): Handle -t zero_check.
10297
10298 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 Flush block cache on adding disk to device map.
10301
10302 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10303 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10304 adding.
10305 (read_device_map): Likewise.
10306 (open_device): Flush on opening.
10307
10308 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10311 (handle_symlink): Fix off-by-one error.
10312 Canonicalize the target.
10313 (grub_cpio_dir): Canonicalize the name.
10314 Fix memory leak.
10315 Set directory.
10316 (grub_cpio_open): Canonicalize the name.
10317
10318 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10321 handling.
10322
10323 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10324
10325 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10326 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10327
10328 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10331 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10332 All users updated.
10333
10334 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10335
10336 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10337 counterpart.
10338
10339 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 Fix UFS1 big file support.
10342
10343 * grub-core/fs/ufs.c (INODE): Removed.
10344 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10345 64-bit.
10346 (INODE_MODE): Simplify.
10347 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10348 (grub_ufs_lookup_symlink): Don't use INODE.
10349
10350 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10351
10352 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10353
10354 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10355 (grub_minix_data): Replace log_block_size with block_size.
10356 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10357 (grub_minix_mount): Fill block_size.
10358
10359 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * configure.ac: Bump to beta5.
10362
10363 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 Fix wrapped HFS+ handling.
10366
10367 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10368 blocks_start. All users updated.
10369 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10370 wrapping offset.
10371 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10372
10373 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Fix long symlinks on reiserfs.
10376
10377 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10378 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10379 (grub_reiserfs_iterate_dir): Save size for non-directories.
10380 (grub_reiserfs_open): Don't reread stat block as we already know the
10381 size.
10382 (grub_reiserfs_read): Split into...
10383 (grub_reiserfs_read_real): ... and ...
10384 (grub_reiserfs_read): ...this.
10385
10386 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 Fix non-indexed JFS.
10389
10390 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10391 (grub_jfs_data): New field namecomponentlen.
10392 (grub_jfs_mount): Fill namecomponentlen.
10393 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10394
10395 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10398 * tests/grub_script_echo1.in: Add tests.
10399
10400 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * util/grub-install.in: Ignore empty devicetree directory.
10403
10404 2012-05-08 Bean <bean123ch@gmail.com>
10405
10406 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10407 All users updated.
10408 (free_rsm): Free header as well.
10409 (free_old_fragments): Fix memory leak.
10410 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10411 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10412 (destroy_pq): Likewise.
10413 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10414
10415 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10416
10417 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10418 resulting hash as a precaution.
10419
10420 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10423 '_' in variable names.
10424 * grub-core/net/net.c (grub_net_network_level_interface_register):
10425 Likewise.
10426
10427 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10428
10429 Fix AFFS with non-512B blocks.
10430
10431 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10432 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10433 (grub_affs_data): Replace blocksize with log_blocksize.
10434 (grub_affs_read_block): Fix non-512B blocks.
10435 (grub_affs_read_symlink): Likewise.
10436 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10437 (grub_affs_read): Fix non-512B blocks.
10438 (grub_affs_label): Likewise.
10439 (grub_affs_mtime): Likewise.
10440 (grub_affs_mount): Fix block detection routine.
10441
10442 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10443
10444 Add filesystem mtime to AFFS.
10445
10446 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10447 (aftime2ctime): New function.
10448 (grub_affs_dir): Use aftime2ctime.
10449 (grub_affs_label): Fix return value.
10450 (grub_affs_mtime): New function.
10451 (grub_affs_fs): Add mtime.
10452
10453 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10454
10455 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10456 UTF-8.
10457
10458 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10459
10460 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10461 UTF-8.
10462
10463 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10464
10465 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10466
10467 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10470 flags.
10471 (FLAGS_CASE_SENSITIVE): New enum value.
10472 (cache_entry): New struct.
10473 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10474 cache_size and cache.
10475 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10476 Add log_blocksize and fshelp_flags.
10477 (grub_sfs_read_extent): Handle non-512 blocks.
10478 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10479 (grub_sfs_read_file): Handle non-512 blocks.
10480 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10481 fshelp_flags.
10482 (grub_sfs_read_symlink): Handle non-512 blocks.
10483 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10484 (grub_sfs_dir): Free cache.
10485 (grub_sfs_close): Likewise.
10486
10487 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10490 filesystems.
10491
10492 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10495
10496 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10497
10498 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10499
10500 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10503 (grub_sfs_read_extent): Likewise.
10504 (grub_sfs_read_block): Likewise.
10505 (grub_sfs_mount): Likewise.
10506 (grub_sfs_iterate_dir): Likewise.
10507 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10508 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10509
10510 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 Fix errors on compressed NTFS with 512B clusters.
10513
10514 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10515 types.
10516 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10517 not 0.
10518 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10519 Relax check for inline extents.
10520 (ntfscomp): Return correct -1 on error and not 0.
10521
10522 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * util/grub-install.in: Fix handling of prefix containing spaces.
10525
10526 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10527
10528 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10529 (grub_squash_read_data): Fix offset byte-swapping.
10530
10531 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10532
10533 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10534 per common usage and preffered in several parts of code.
10535 (grub_memcmp): Likewise.
10536 (grub_strncmp): Likewise.
10537 * include/grub/misc.h (grub_strcasecmp): Likewise.
10538 (grub_strncasecmp): Likewise.
10539 * Makefile.util.def (cmp_test): New test.
10540 (grub_script_strcmp): Likewise.
10541 * tests/cmp_unit_test.c: New file.
10542 * tests/grub_script_strcmp.in: Likewise.
10543 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10544
10545 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10546
10547 * include/grub/pci.h: Move enums into no-asm part.
10548
10549 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10552
10553 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10554
10555 * util/getroot.c (find_hurd_root_device): Try to make error message
10556 and comments to translators clearer.
10557
10558 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10559
10560 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10561
10562 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10563
10564 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10565 btrfs.
10566
10567 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * docs/grub.cfg: Update.
10570
10571 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10572
10573 * docs/grub.texi (PXE): Remove not present variables.
10574
10575 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10576
10577 * grub-core/net/net.c (defserver_set_env): New function.
10578 (defserver_get_env): Likewise.
10579 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10580
10581 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10584 entries.
10585
10586 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10589 * grub-core/kern/emu/hostdisk.c: Likewise.
10590
10591 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10592
10593 Handle hurd userspace partitions.
10594
10595 * util/getroot.c (find_hurd_root_device): New function.
10596 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10597
10598 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10599
10600 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10601 names.
10602 Reported by: Bastian Blank.
10603
10604 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10605
10606 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10607 crossing page boundary.
10608
10609 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10610
10611 Fix B-tree search in BFS, especially in presence of non-ASCII
10612 characters.
10613
10614 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10615 (find_in_b_tree): Use standard bsearch + btree algorithm.
10616
10617 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10620 and so on.
10621
10622 2012-05-03 Matthew Garrett <mjg@redhat.com>
10623 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 Suspend broadcom cards in order to stop their DMA.
10626
10627 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10628 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10629 (pci): Don't build on x86 EFI.
10630 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10631 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10632 New function.
10633 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10634 stop_broadcom if running on EFI.
10635 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10636 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10637 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10638 (grub_pci_find_capability): New proto.
10639
10640 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * docs/grub.texi: Remove dot from the extension as it apparently
10643 doesn't work with some makeinfo versions.
10644
10645 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10648 with GRUB expectance.
10649
10650 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10653
10654 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10657 zero after directory block since last entry may be not 0-terminated if
10658 it ends on block boundary. Use continue instead of if spanning whole
10659 loop.
10660
10661 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10662
10663 Support 4K sectors UDF inline files.
10664
10665 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10666 (grub_udf_extended_file_entry): Likewise.
10667 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10668 All users updated.
10669 (get_fshelp_size): New function.
10670 (grub_udf_read_icb): Read whole block.
10671 (grub_udf_iterate_dir): Likewise.
10672 (grub_udf_dir): Likewise.
10673 (grub_udf_open): Likewise.
10674
10675 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10678
10679 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10682 inline symlinks in addition to workaround.
10683
10684 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10685
10686 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10687
10688 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10689
10690 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10691
10692 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10693
10694 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10695
10696 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10697
10698 Fix reiserfs big seek times.
10699
10700 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10701 exact. All users updated.
10702 (grub_reiserfs_read): Use nearest btree search for seeking.
10703 Fix return value on error.
10704
10705 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10706
10707 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10708 entries.
10709 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10710 * docs/grub.texi: Update menuentry description.
10711
10712 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10713
10714 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10715 crash when embedding onto filesystem.
10716
10717 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10720 name.
10721
10722 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10725
10726 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10727
10728 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10729 commit.
10730
10731 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10732 2012-05-01 Bean <bean123ch@gmail.com>
10733
10734 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10735
10736 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10737
10738 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10739 Special behaviour for len = 0 to read whole file isn't used anywhere and
10740 can cause buffer ovewrflows in several places.
10741
10742 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10745
10746 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 Handle RAIDZ on non-512B sectors.
10749
10750 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10751 max_children_ashift.
10752 (fill_vdev_info_real): Fill max_children_ashift.
10753 (read_device): Use max_children_ashift.
10754
10755 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10756
10757 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10758
10759 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10762 disk names.
10763 * docs/grub.texi: Update device.map parts.
10764
10765 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10766
10767 Don't scan into non-diskfilter devices having diskfilter names.
10768
10769 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10770 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10771 handling.
10772 (scan_disk_hook): New function.
10773
10774 2012-04-29 Bean <bean123ch@gmail.com>
10775
10776 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10777 allocation.
10778
10779 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10780
10781 * configure.ac: Detect starfield theme font path
10782 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10783
10784 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10787 geometry on serial consoles.
10788
10789 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10792 because of network consoles.
10793
10794 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10795
10796 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10797 handling.
10798
10799 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10800
10801 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10802 falls on Q syndrom.
10803
10804 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10805
10806 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10807 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10808
10809 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10812 Allocate at lest 8192 for temporary buffer as required for lzo.
10813
10814 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10817 to cluster_bits, since it's already added in.
10818 (grub_fat_read_data): Likewise.
10819
10820 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10821
10822 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10823 as long as cluster size is multiple of 512 bytes.
10824
10825 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * util/grub-mkrescue.in: Fix locale directory.
10828
10829 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * grub-core/kern/emu/hostdisk.c (map): Make static.
10832
10833 2012-04-23 Bean <bean123ch@gmail.com>
10834
10835 * util/grub-fstest.c (fstest): Add missing break.
10836
10837 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10838
10839 Fix hurd build.
10840
10841 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10842 not define nr variable.
10843 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10844 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10845 grub_find_device): Do not define.
10846
10847 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 Fix kfreebsd compile and behaviour.
10850
10851 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10852 format-security.
10853 * util/getroot.c: Fix wait.h include.
10854 (grub_guess_root_devices): Error if grub_find_device fails.
10855 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10856 (grub_util_get_dev_abstraction): Likewise.
10857 (grub_util_pull_device): Likewise.
10858 (grub_util_get_grub_dev): Likewise.
10859 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10860
10861 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10862
10863 Fix and unify wholedisk detection.
10864
10865 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10866 is_part. All users updated.
10867 (device_is_wholedisk): Removed.
10868 (grub_util_biosdisk_get_grub_dev): Use is_part.
10869
10870 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10873 mode.
10874
10875 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * configure.ac: Bump to beta4.
10878
10879 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10882 --fs-uuid --set UUID syntax.
10883
10884 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10885
10886 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10887 disunification.
10888
10889 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10890
10891 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10892
10893 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10894
10895 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10896
10897 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10898
10899 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10900
10901 2012-04-18 Bean <bean123ch@gmail.com>
10902
10903 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10904 place.
10905
10906 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10907
10908 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10909 users updated.
10910 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10911 corresponding to GRUB partitions.
10912 (grub_util_biosdisk_write): Likewise.
10913
10914 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 Scan mdraid before LVM.
10917
10918 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10919 (grub_diskfilter_register_front): ... this.
10920 (grub_diskfilter_register_back): New function.
10921 All users of grub_diskfilter_register updated.
10922
10923 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 * util/grub-install.in: Fix an automatic target detection bug.
10926
10927 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * util/grub-install.in: New option --efi-directory.
10930
10931 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10934 boot services if we have no other choice.
10935
10936 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10937
10938 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10939 document it.
10940 * tests/util/grub-shell.in: Update to --directory.
10941
10942 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10943
10944 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10945
10946 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10947
10948 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10949 (grub_minix_read_file): Likewise.
10950 (grub_minix_read_inode): Likewise.
10951 (grub_minix_find_file): Likewise.
10952 (grub_minix_dir): Likewise.
10953
10954 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10955
10956 * util/grub-setup.c (setup): Fix partition handling and blocklist
10957 check.
10958
10959 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10960
10961 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10962 redundant buggy overlap check.
10963
10964 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10965
10966 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10967 and grub-mknetdir.
10968
10969 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10972 kh.loadflags on pre-2.00 kernels.
10973
10974 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 Terminate UNDI and PXE before launching the payload to avoid problems
10977 with DMA.
10978
10979 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
10980 (grub_loader_flags): ... this. All users updated.
10981 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
10982 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
10983 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
10984 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
10985 function.
10986 (grub_pxe_restore): Likewise.
10987 (fini_hnd): New var.
10988 (GRUB_MOD_INIT): Register shutdown hook.
10989 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
10990 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
10991 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
10992 (grub_loader_set): Rename second argument to flags.
10993
10994 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
10997 written bytes.
10998 (grub_get_num_of_utf8_bytes): New function.
10999 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11000 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11001 executing it.
11002 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11003 (grub_ucs4_to_utf8): Change return type.
11004
11005 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11006
11007 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11008 warning.
11009 * grub-core/fs/bfs.c (hop_level): Likewise.
11010 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11011
11012 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11013
11014 * grub-core/lib/adler32.c: Recode due to license unclearness.
11015
11016 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11017
11018 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11019 (test_header): Likewise.
11020
11021 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11022
11023 Fix --help formatting.
11024
11025 * util/grub-mkconfig_lib.in (print_option_help): New function.
11026 (grub_fmt): Likewise.
11027 * util/grub-install.in: Use print_option_help and grub_fmt.
11028 * util/grub-kbdcomp.in: Likewise.
11029 * util/grub-mkconfig.in: Likewise.
11030 * util/grub-mknetdir.in: Likewise.
11031 * util/grub-mkrescue.in: Likewise.
11032 * util/grub-mkstandalone.in: Likewise.
11033 * util/grub-reboot.in: Likewise.
11034 * util/grub-set-default.in: Likewise.
11035 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11036
11037 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * linguas.sh: Remove autogenerated *.po.
11040
11041 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * po/README: Move language fetcing to ...
11044 * linguas.sh: ... here.
11045 * po/README: Point to linguas.sh.
11046
11047 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11048
11049 * po/README: Exclude ko.po due to disclaimer problems.
11050
11051 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11052
11053 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11054 len = 0.
11055 (grub_gettext_translate_real): Handle 0th string.
11056 (grub_gettext_translate): Ensure that "" isn't translated.
11057
11058 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11059
11060 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11061 TRANSLATORS comment.
11062 (grub_diskfilter_print_partmap): Propagate changing of error into
11063 warning.
11064
11065 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11068 to uint64_t to prevent overflow.
11069 (grub_diskfilter_lv): Increase start_extent and extent_count
11070 to uint64_t to prevent overflow.
11071
11072 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11073
11074 * configure.ac: Increase version.
11075
11076 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11079
11080 * po/Rules-translit: New file.
11081 * po/arabic.sed: Likewise.
11082 * po/cyrillic.sed: Likewise.
11083 * po/greek.sed: Likewise.
11084 * po/hebrew.sed: Likewise.
11085 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11086 * po/Makefile.in.in: Add extra_dist4.
11087
11088 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11089
11090 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11091
11092 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11093 modify names. Introduce MODE_BIGENDIAN.
11094 * grub-core/fs/minix_be.c: New file.
11095 * grub-core/fs/minix2_be.c: Likewise
11096 * grub-core/fs/minix3_be.c: Likewise.
11097 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11098 minix3_be.
11099 * grub-core/Makefile.core.def (minix_be): New module.
11100 (minix2_be): Likewise.
11101 (minix3_be): Likewise.
11102
11103 2012-04-01 Felix <email@hamburg.de>
11104
11105 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11106 (devs): Add MBP 2011.
11107
11108 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11109
11110 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11111
11112 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11113
11114 * grub-core/normal/cmdline.c (print_completion): New field
11115 prompt_len.
11116 (grub_cmdline_get): Handle width properly.
11117
11118 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11119
11120 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11121
11122 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11125 after 29th of February.
11126
11127 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11128
11129 Fix exfat endianness handling.
11130
11131 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11132 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11133 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11134 Byte-swap utf16 when necessary.
11135 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11136
11137 2012-03-31 Anton Blanchard <anton@samba.org>
11138 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11139
11140 Fix btrfs endianness handling.
11141
11142 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11143 (lower_bound): Make root uint64_t. Use root in le.
11144 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11145 (find_path): Fix template key init.
11146 (grub_btrfs_dir): Fix mtime byteswap.
11147 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11148
11149 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11150
11151 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11152 recursion_depth. Break infinite resursions. All users updated.
11153
11154 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11157 after free.
11158 Reported by: Peter Jones.
11159
11160 2012-03-31 Anton Blanchard <anton@samba.org>
11161
11162 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11163 8 bit values.
11164
11165 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 * util/grub-install.in: Fix nvram call for PreP.
11168
11169 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11170
11171 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11172 the error when some elements are missing into a warning.
11173
11174 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11177
11178 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11179
11180 * docs/grub.texi (Invoking grub-probe): New section.
11181 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11182
11183 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 Fix tab and wide character handling in editor and menu.
11186
11187 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11188 agglomerate control characters with combining marks.
11189 (bidi_line_wrap): Allow break on tab.
11190 (grub_unicode_get_comb_start): New function.
11191 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11192 and tab correctly.
11193 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11194 with a space.
11195 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11196 fixed_tab_size. All users updated.
11197 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11198 (grub_term_getcharwidth): Handle \t.
11199 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11200 and copy.
11201
11202 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 Handle big-endian mdraid.
11205
11206 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11207 * grub-core/Makefile.core.def (mdraid09_be): New module.
11208 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11209 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11210 * grub-core/disk/mdraid_linux_be.c: New file.
11211
11212 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11213
11214 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11215
11216 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11217
11218 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11219 missing quotes which caused confusion among translators.
11220
11221 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11222
11223 * util/grub-mkconfig_lib.in: Fix typo.
11224
11225 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11226
11227 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11228 spaces.
11229 * tests/grub_script_leading_whitespace.in: New file.
11230 * Makefile.util.def (grub_script_leading_whitespace): New test.
11231
11232 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11235 to work.
11236
11237 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11240 starts with control character.
11241
11242 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11245 overflow.
11246 (grub_gdb_outbuf): Likewise.
11247
11248 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11249
11250 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11251 zero terminator. Fixes a crash.
11252
11253 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11254
11255 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11256 beyond 4 GiB.
11257 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11258 images independently of preffered adderss field.
11259
11260 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11261
11262 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11263 * grub-core/commands/regexp.c: Likewise.
11264 * grub-core/loader/i386/linux.c: Likewise.
11265 * grub-core/partmap/msdos.c: Likewise.
11266 * grub-core/script/execute.c: Likewise.
11267 * grub-core/term/gfxterm.c: Likewise.
11268
11269 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 Add variable parsing in $"..." and fix several mismatches with bash.
11272
11273 * Makefile.util.def (grub_script_gettext): New test.
11274 * grub-core/script/execute.c (parse_string): New function.
11275 (gettext_append): Likewise.
11276 (grub_script_arglist_to_argv): Use gettext_append.
11277 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11278 * tests/grub_script_gettext.in: New file.
11279
11280 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 Fix handling of leading spaces in scripts.
11283
11284 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11285 spaces.
11286 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11287 other than skipping \r. All users updated.
11288 * tests/grub_script_echo1.in: Add space-related tests.
11289 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11290
11291 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11294
11295 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11296
11297 * configure.ac: Bump up the version to beta2.
11298
11299 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11300
11301 Fix gettext reload bugs (e.g. inability to disable gettext
11302 once enabled).
11303
11304 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11305 main_context and secondary_context. All functions updated.
11306 (grub_gettext_translate): Rename to ...
11307 (grub_gettext_translate_real): ... this. Return NULL on failed
11308 translate.
11309 (grub_gettext_translate): Handle secondary context.
11310 (grub_gettext_delete_list): Close file and zero-out the context.
11311 (grub_mofile_open): Don't call grub_gettext_delete_list.
11312 Don't close file.
11313 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11314 if locale="" to avoid pointless error message.
11315 (grub_gettext_env_write_lang): Update lang even if load fails.
11316 Handle secondary context.
11317 (grub_gettext_reread_prefix): New function.
11318 (read_main): Likewise.
11319 (read_secondary): Likewise.
11320 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11321 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11322 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11323 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11324
11325 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * configure.ac: Decrease warning level to avoid spurious warnings and
11328 to be able to compile with GCC 4.2.
11329 * Makefile.util.def: Remove -Wno-error=logical-op.
11330
11331 2012-03-10 William Bittner <william.bittner@gmail.com>
11332
11333 * util/import_unicode.py: Add missing brackets around string for
11334 python 3 support.
11335
11336 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11337
11338 Fix efi chainloader on network root.
11339
11340 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11341 network devices.
11342 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11343 New function.
11344
11345 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11346
11347 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11348 unused show_text member.
11349 * docs/grub.texi: Document "text" property.
11350
11351 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11352
11353 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11354 in dprintf.
11355
11356 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 Fix IMSM handling on Fedora.
11359
11360 * util/getroot.c (grub_util_is_imsm): New function.
11361 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11362
11363 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 * Makefile.am: Strip gold section.
11366 * conf/Makefile.common: Likewise.
11367 * gentpl.py: Likewise.
11368 * grub-core/Makefile.core.def: Likewise.
11369 * grub-core/genmod.sh.in: Likewise.
11370
11371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372
11373 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11374 * util/grub.d/20_linux_xen.in: Likewise.
11375 Based on Debian patch.
11376
11377 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11378
11379 * util/grub.d/10_linux.in: Fix syntax error resulting in
11380 Richard Laager's patch.
11381 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11382
11383 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11384
11385 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11386 dependencies.
11387
11388 2012-03-10 Richard Laager <rlaager@wiktel.com>
11389
11390 * util/grub.d/10_linux.in: Fix ZFS root passing.
11391
11392 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11393
11394 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11395 * grub-core/commands/xnu_uuid.c: Likewise.
11396 * grub-core/loader/efi/appleloader.c: Likewise.
11397 * grub-core/script/execute.c: Likewise.
11398 * grub-core/script/main.c: Likewise.
11399 * util/grub-mkfont.c: Likewise.
11400
11401 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 * util/grub-mkfont.c (options): Use more appropriate "select" that
11404 "set" for face index.
11405
11406 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11407
11408 * util/grub-editenv.c (options): Gettextize command summaries.
11409
11410 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11411
11412 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11413 "out of memory" error messagge.
11414
11415 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11418 of diskfilter for diskfilter on diskfilter support.
11419
11420 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11423
11424 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11425
11426 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11427 themes/starfield.
11428
11429 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11432
11433 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11436
11437 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11440 of error message.
11441
11442 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11443
11444 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11445
11446 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11447
11448 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11449 message.
11450 * util/grub-install.in: Fix and gettextize error message.
11451
11452 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11453
11454 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11455 Gettextize.
11456 * util/grub-mount.c (options): Likewise.
11457
11458 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11461 gettextize.
11462 * grub-core/commands/search_wrap.c (options): Likewise.
11463
11464 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11465
11466 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11467
11468 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11471 size calculation.
11472 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11473 none is known.
11474
11475 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11478 "temporary" since it's used in identifier and is limited in space.
11479
11480 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * po/POTFILES.in: Regenerate. Include *.h since they contain
11483 translatable strings as well.
11484
11485 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11488 byte-swap on big-endian.
11489 Reported by: Lennart Sorensen
11490
11491 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11494 (allocate_pages): Improve dprintf.
11495 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11496 code32_start. Fill code32_start and kernel_alignment in params.
11497 (grub_cmd_initrd): Use prot_init_space.
11498
11499 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11500
11501 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11502
11503 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * util/grub-install.in: Add missing dot at the end of sentence.
11506
11507 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11508
11509 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11510 * grub-core/commands/videotest.c: Likewise.
11511 * grub-core/loader/i386/linux.c: Likewise.
11512
11513 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11516 sentence.
11517 Reported by: Milo Casagrande.
11518
11519 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11522 * grub-core/commands/gptsync.c: Likewise.
11523 * grub-core/commands/hashsum.c: Likewise.
11524 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11525 * grub-core/commands/legacycfg.c: Likewise.
11526 * grub-core/io/gzio.c: Likewise.
11527 * grub-core/net/net.c: Likewise.
11528 * grub-core/term/gfxterm.c: Likewise.
11529 * grub-core/term/terminfo.c: Likewise.
11530 * grub-core/tests/test_blockarg.c: Likewise.
11531 * grub-core/video/video.c: Likewise.
11532 * util/grub-install.in: Likewise.
11533 * util/grub-mkfont.c: Likewise.
11534
11535 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11538
11539 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11540
11541 * grub-core/commands/search_wrap.c (options): Fix a typo.
11542 Reported by: David Prévot.
11543
11544 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11547 description.
11548
11549 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11550
11551 * util/grub-script-check.c (main): Fix a syntax error message which was
11552 unclear.
11553
11554 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11555
11556 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11557
11558 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11559
11560 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11561 messages.
11562
11563 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11564
11565 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11566 without argument.
11567 * util/grub-mount.c (options): Likewise.
11568
11569 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11570
11571 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11572
11573 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11574
11575 * grub-core/net/http.c: Add TRANSLATORS comments.
11576 * grub-core/normal/cmdline.c: Likewise.
11577 * grub-core/normal/misc.c: Likewise.
11578 * grub-core/partmap/msdos.c: Likewise.
11579 * grub-core/parttool/msdospart.c: Likewise.
11580 * grub-core/script/execute.c: Likewise.
11581 * grub-core/script/main.c: Likewise.
11582 * grub-core/term/terminfo.c: Likewise.
11583 * grub-core/video/bitmap.c: Likewise.
11584 * util/grub-install.in: Likewise.
11585 * util/grub-mkimage.c: Likewise.
11586 * util/grub-mklayout.c: Likewise.
11587 * util/grub-setup.c: Likewise.
11588
11589 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11590
11591 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11592 with similar messages in grub-fstest.
11593
11594 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 * util/grub-install.in: Unify "option requires an argument" message
11597 with similar messages in other files.
11598 * util/grub-mkconfig.in: Likewise.
11599
11600 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 * util/grub-set-default.in: Replace printf with gettext_printf (the
11603 string in in question is already translated from grub-reboot)
11604
11605 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11606
11607 * configure.ac: Bump up the version to beta1.
11608
11609 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11610
11611 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11612 case when min_align = 0.
11613
11614 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11617 and fix a case when line_start overflows.
11618
11619 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * util/grub-reboot.in (usage): Mention id posibility.
11622 * util/grub-set-default.in (usage): Likewise.
11623
11624 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11625
11626 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11627 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11628 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11629 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11630 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11631 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11632 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11633
11634 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11635
11636 * grub-core/commands/menuentry.c (options): Remove
11637 GRUB_ARG_OPTION_REPEATABLE.
11638 Reported by: Andreas Vogel
11639
11640 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11641
11642 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11643
11644 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11645
11646 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11647 error.
11648
11649 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11650
11651 Use sort -V by the idea of Georgi Georgiev.
11652
11653 * util/grub-mkconfig_lib.in (version_sort): New function.
11654 (version_test_numeric): Use version_sort.
11655
11656 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 Use submenus in grub-mkconfig.
11659
11660 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11661 * util/grub-mkconfig_lib.in (grub_quote): New function.
11662 (gettext_printf): Use gettext and not gettext_quoted to fix several
11663 messages.
11664 * util/grub.d/10_hurd.in: Use submenus.
11665 * util/grub.d/10_kfreebsd.in: Likewise.
11666 * util/grub.d/10_linux.in: Likewise.
11667 * util/grub.d/10_netbsd.in: Likewise.
11668 * util/grub.d/20_linux_xen.in: Likewise.
11669 * util/grub.d/30_os-prober.in: Likewise.
11670 * util/grub.d/10_illumos.in: Add missing quoting.
11671 * util/grub.d/10_windows.in: Likewise.
11672
11673 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11674
11675 Fix menu title instability bug.
11676
11677 * grub-core/commands/menuentry.c (options): New option --id.
11678 (grub_normal_add_menu_entry): New argument id. All users updated.
11679 (grub_cmd_menuentry): Handle --id.
11680 (grub_menu_init): Accept unknown arguments.
11681 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11682 feature_menuentry_options.
11683 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11684 saved_entry.
11685 (get_entry_number): Match with id as well.
11686 * include/grub/menu.h (grub_menu_entry): New member id.
11687 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11688 * util/grub.d/00_header.in: Define menuentry_id_option.
11689 * util/grub.d/10_hurd.in: Define id.
11690 * util/grub.d/10_illumos.in: Likewise.
11691 * util/grub.d/10_kfreebsd.in: Likewise.
11692 * util/grub.d/10_linux.in: Likewise.
11693 * util/grub.d/10_netbsd.in: Likewise.
11694 * util/grub.d/10_windows.in: Likewise.
11695 * util/grub.d/20_linux_xen.in: Likewise.
11696 * util/grub.d/30_os-prober.in: Likewise.
11697
11698 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11699
11700 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11701 "scope" with "body".
11702
11703 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11704
11705 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11706 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11707 prot_size and prot_file_size.
11708
11709 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11712 All users updated. If easily=1 require raid-5/-6 to be full.
11713 (is_node_readable): Likewise.
11714 (scan_devices): Scan incomplete but readable LVs at the end.
11715 (grub_diskfilter_memberlist): Pull missing devices.
11716 (insert_array): Skip scanning until device is complete or scan is
11717 done otherwise.
11718 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11719 check.
11720 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11721 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11722
11723 2012-03-03 Matthew Garrett <mjg@redhat.com>
11724 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11725
11726 Avoid EFI boot services when loading Linux.
11727
11728 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11729 avoid_efi_bootservices. All users updated.
11730 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11731 argument avoid_efi_bootservices. All users updated.
11732 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11733 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11734 align, min_align, relocatable, prefered_address. All users updated.
11735 Allocate avoiding boot services if kernel is relocatable.
11736 (grub_cmd_linux): Check if kernel is relocatable.
11737 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11738 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11739 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11740 avoid_efi_boot_services.
11741 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11742 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11743 (linux_kernel_params): Likewise.
11744
11745 2012-03-03 Matthew Garrett <mjg@redhat.com>
11746 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 Use EDID on EFI.
11749
11750 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11751 datasize_out.
11752 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11753 modes. Set gop_handle.
11754 (grub_video_gop_get_edid): New function.
11755 (grub_gop_get_preferred_mode): Likewise.
11756 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11757 (grub_video_efi_gop_adapter): Set .get_edid.
11758 * include/grub/efi/edid.h: New file.
11759 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11760
11761 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * util/grub-install.in: Load efivars unconditionally.
11764
11765 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 * po/Rules-piglatin: Change suffix from .po-update-en to
11768 .po-update-en-piglatin.
11769
11770 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 Add a pig farm.
11773
11774 * po/piglatin.sed: New file.
11775 * po/en@piglatin.header: Likewise.
11776 * po/Rules-piglatin: Likewise.
11777 * po/README: Add en@piglatin to autogenerated languages.
11778
11779 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11780
11781 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11782 "Command for ...".
11783 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11784 "Check" since we don't check anything.
11785 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11786 is 64-bit one.
11787 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11788 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11789 (grub_md_sha512_real): Likewise.
11790
11791 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 * grub-core/commands/gptsync.c: Fix typographic quoting.
11794 * grub-core/commands/ieee1275/suspend.c: Likewise.
11795 * grub-core/commands/parttool.c: Likewise.
11796 * grub-core/commands/search_wrap.c: Likewise.
11797 * grub-core/commands/videoinfo.c: Likewise.
11798 * grub-core/gfxmenu/gui_label.c: Likewise.
11799 * grub-core/hello/hello.c: Likewise.
11800 * grub-core/kern/emu/main.c: Likewise.
11801 * grub-core/net/net.c: Likewise.
11802 * grub-core/normal/menu.c: Likewise.
11803 * grub-core/normal/menu_text.c: Likewise.
11804 * grub-core/normal/misc.c: Likewise.
11805 * util/grub-editenv.c: Likewise.
11806 * util/grub-install.in: Likewise.
11807 * util/grub-kbdcomp.in: Likewise.
11808 * util/grub-mkconfig.in: Likewise.
11809 * util/grub-mknetdir.in: Likewise.
11810 * util/grub-mkrescue.in: Likewise.
11811 * util/grub-mkstandalone.in: Likewise.
11812 * util/grub-reboot.in: Likewise.
11813 * util/grub-set-default.in: Likewise.
11814 * util/grub-setup.c: Likewise.
11815 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11816
11817 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11818
11819 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11820 * grub-core/commands/keystatus.c: Likewise.
11821 * grub-core/commands/loadenv.c: Likewise.
11822 * grub-core/commands/probe.c: Likewise.
11823 * grub-core/commands/regexp.c: Likewise.
11824 * grub-core/commands/true.c: Likewise.
11825 * grub-core/commands/videoinfo.c: Likewise.
11826 * grub-core/disk/cryptodisk.c: Likewise.
11827 * grub-core/disk/ldm.c: Likewise.
11828 * grub-core/disk/loopback.c: Likewise.
11829 * grub-core/disk/luks.c: Likewise.
11830 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11831 * grub-core/kern/disk.c: Likewise.
11832 * grub-core/kern/emu/hostdisk.c: Likewise.
11833
11834 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11835
11836 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11837 * util/grub-install.in: Add missing quote in the comment.
11838
11839 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11840
11841 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11842 * grub-core/commands/lsmmap.c: Likewise.
11843 * grub-core/commands/minicmd.c: Likewise.
11844 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11845 * grub-core/commands/regexp.c: Likewise.
11846 * grub-core/gdb/gdb.c: Likewise.
11847 * grub-core/term/gfxterm.c: Likewise.
11848 * util/grub-mkconfig.in: Likewise.
11849 * util/grub-mkfont.c: Likewise.
11850 * util/grub-mklayout.c: Likewise.
11851 * util/grub-mknetdir.in: Likewise.
11852 * util/grub-mkrescue.in: Likewise.
11853 * util/grub.d/30_os-prober.in: Likewise.
11854
11855 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11856
11857 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11858 with "Direct color" and "Packed" with "Packed pixel".
11859 (grub_cmd_videoinfo): Simplify legend.
11860
11861 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11862
11863 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11864 absolutely unclear error message.
11865
11866 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11867
11868 * util/grub-mkstandalone.in: Remove confusing leftover print.
11869
11870 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11873 comments.
11874 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11875 (GRUB_MOD_INIT): Likewise.
11876 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11877 VGA mode.
11878 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11879 comments.
11880 * util/grub-install.in (usage): Likewise.
11881 Spell ID in whole letters.
11882 Add missing ending dot.
11883 Quote variables.
11884 * util/grub-reboot.in: Fix capitalisation.
11885 * util/grub-set-default.in: Likewise.
11886
11887 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11888
11889 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11890 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11891 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11892 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11893 Disable -Werror for -Wdeprecated-declarations.
11894 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11895 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11896 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11897 (grub_util_get_grub_dev): Make luks handling dependent on
11898 HAVE_DEVICE_MAPPER and not __linux__.
11899 (get_win32_path): Fix format security.
11900 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11901 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11902 Don't try grub_find_zpool_from_dir.
11903 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11904 #ifdef-out paresdir.
11905
11906 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11907
11908 * util/grub-pe2elf.c (usage): Add missing noreturn.
11909 (write_section_data): Rename name to shname to avoid shadowing.
11910 (write_symbol_table): Rename name to symname to avoid shadowing.
11911 Fix write_reloc_section call.
11912
11913 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11914
11915 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11916 to ensure that it's after the last byte of .text.
11917
11918 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * util/ieee1275/ofpath.c (my_isdigit): New function.
11921 (trailing_digits): Use my_isdigit.
11922 (strip_trailing_digits): Likewise.
11923
11924 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11927 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11928
11929 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 * grub-core/kern/i386/pc/startup.S: Define __start.
11932
11933 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11934
11935 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11936 strip already transforms he format.
11937
11938 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11941
11942 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 * util/grub-install.in: Add missing gettext init.
11945 * util/grub-kbdcomp.in: Likewise.
11946 * util/grub-mkconfig.in: Likewise.
11947 * util/grub-mknetdir.in: Likewise.
11948 * util/grub-mkrescue.in: Likewise.
11949 * util/grub-mkstandalone.in: Likewise.
11950 * util/grub-reboot.in: Likewise.
11951 * util/grub-set-default.in: Likewise.
11952 * util/grub.d/00_header.in: Likewise.
11953 * util/grub.d/10_hurd.in: Likewise.
11954 * util/grub.d/10_windows.in: Likewise.
11955 * util/grub.d/30_os-prober.in: Likewise.
11956 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11957
11958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * po/Rules-swiss: Fix header comment.
11961
11962 2012-02-29 Andreas Vogel <anvoit>
11963
11964 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11965 resulted in leak of arguments.
11966
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11970 reed_solomon_size const definition instead of computing it since
11971 Apple assembler doesn't support the later.
11972
11973 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11974
11975 * gentpl.py (kernel): Rewrite Apple part.
11976
11977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11978
11979 * include/grub/kernel.h (FOR_MODULES): Check module magic.
11980
11981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 * util/grub-mkimagexx.c (locate_sections): Support non-standard
11984 ELF section gap.
11985 (load_image): Likewise.
11986
11987 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11988
11989 * configure.ac: Fix a typo in previous commit.
11990
11991 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11992
11993 Don't add -Wl,-N on Apple platform.
11994
11995 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
11996 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
11997
11998 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * grub-core/Makefile.core.def (lzma_decompress): Use
12001 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12002
12003 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * grub-core/genmod.sh.in: Rewrite the Apple part.
12006
12007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12010 comparison.
12011
12012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12013
12014 * acinclude.m4 (grub_CHECK_PIC): New test.
12015 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12016
12017 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12020 to avoid the warning.
12021
12022 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12025 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12026 after. All users updated.
12027
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 Use the common size routine in hostfs so we can read disks as well.
12031
12032 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12033 (grub_util_get_fd_size): ... this. Return size in bytes.
12034 All users updated.
12035 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12036 grub_util_get_fd_size.
12037
12038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12039
12040 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12041 Add blocksize retrieval.
12042
12043 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * configure.ac: Restore CFLAGS after efiemu check.
12046
12047 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12050 Apple bug.
12051
12052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12053
12054 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12055
12056 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12057
12058 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12059 (grub_cmd_halt): Likewise.
12060
12061 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12062
12063 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12064 for local arithmetics.
12065 Break %sp init into 2 instructions.
12066 Add 0 byte at the end.
12067
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12071 before loops.
12072
12073 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12074
12075 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12076 for context.
12077
12078 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12079
12080 * grub-core/disk/ldm.c (make_vg): Init part.name.
12081 (grub_ldm_detect): Silence spurious warning.
12082 (grub_util_is_ldm): Likewise.
12083
12084 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085
12086 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12087 sane value to avoid a spurious warning.
12088
12089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12092 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12093
12094 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095
12096 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12097 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12098
12099 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12100
12101 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12102 hardcoding the relevant info.
12103
12104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12107 missing const qualifiers.
12108 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12109
12110 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * util/getroot.c [__APPLE__]: Add missing includes.
12113 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12114
12115 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12116
12117 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12118
12119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12122 avoid conflicts.
12123
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12127
12128 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12131 and grub_file_close call.
12132
12133 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 Add LZSS Mach-O support (needed for new xnu kernelcache).
12136
12137 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12138 * grub-core/loader/lzss.c: New file.
12139 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12140 on Mach-O open failure.
12141 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12142 Don't free cmdsXX in uncompressedXX is set.
12143 (grub_macho_file): Init new fields.
12144 New argument is_64bit. All users updated.
12145 Handle compressed. Error out if no suitable architecture is found.
12146 Don't close file.
12147 (grub_macho_open): New argument is_64bit. All users updated.
12148 * grub-core/loader/macho32.c: Add defines for new fields.
12149 * grub-core/loader/macho64.c: Likewise.
12150 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12151 (grub_macho_parse): Handle compressed.
12152 Defer actual processing if compressed.
12153 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12154 "filename". All users updated.
12155 (grub_macho_size): New argument "filename". All users updated.
12156 (grub_macho_get_entry_point): Likewise.
12157 (grub_macho_load): Handle compressed.
12158 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12159 (GRUB_MACHO_LZSS_OFFSET): New define.
12160 (grub_decompress_lzss): New proto.
12161 * include/grub/machoload.h (grub_macho_file): New fields to handle
12162 compressed.
12163 (grub_macho_contains_macho64): Remove proto.
12164 (grub_macho_contains_macho32): Likewise.
12165 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12166
12167 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12168
12169 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12170
12171 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 Fix make dist.
12174
12175 * Makefile.am (starfield_theme_files): New var.
12176 (starfield_DATA): Use starfield_theme_files.
12177 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12178 Add bootcheck-related files.
12179 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12180 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12181 and font_char_metrics.txt.
12182 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12183 (setjmp): Add lib/ia64/longjmp.S.
12184 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12185 * po/POTFILES.in: Regenerate.
12186 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12187 DISTFILES.common.extra1.
12188 * util/devicemap.c: Removed.
12189 * grub-core/lib/i386/relocator_backward.S: Likewise.
12190 * util/import_gcry.py: Remove unused files. Add extra_dist for
12191 ChangeLog.
12192
12193 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12194
12195 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12196 grub_gettext_delete_list before changing grub_gettext_max to avoid
12197 running out of array bounds.
12198
12199 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12202 grub_vga_text_init/grub_vga_text_fini.
12203
12204 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12207
12208 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 * configure.ac: Bump to 2.00~beta0.
12211
12212 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12213
12214 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12215 missing initialisation.
12216
12217 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12218
12219 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12220
12221 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12222
12223 Support v2 xnu boot arguments.
12224
12225 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12226 New argument fsbfreq_out.
12227 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12228 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12229 be used.
12230 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12231 darwin_version.
12232 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12233 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12234 (grub_xnu_boot_params): Rename to ...
12235 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12236 (grub_xnu_boot_params_v2): New struct.
12237
12238 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12239
12240 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12241 zeroing of CRC field before computing CRC.
12242
12243 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12244
12245 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12246 Change order of allocations to decrease fragmentation.
12247
12248 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12249
12250 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12251
12252 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12253
12254 Use write-combining MTRR to speed up video with buggy BIOSes.
12255
12256 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12257 (cpuid): New define.
12258 (rdmsr): Likewise.
12259 (wrmsr): Likewise.
12260 (mtrr_base): Likewise.
12261 (mtrr_mask): Likewise.
12262 (grub_vbe_enable_mtrr_entry): New function.
12263 (grub_vbe_enable_mtrr): Likewise.
12264 (grub_vbe_disable_mtrr): Likewise.
12265 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12266 control off to BIOS.
12267 (grub_video_vbe_init): Fill mtrr.
12268 (grub_video_vbe_fini): Disable mtrr.
12269 (grub_video_vbe_get_info_and_fini): Likewise.
12270 (grub_video_vbe_setup): Enable mtrr.
12271
12272 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12273
12274 * include/grub/partition.h (grub_partition_map): Change prototype of
12275 embed to take a maximum value for nsectors.
12276 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12277 * include/grub/fs.h (grub_fs): Likewise.
12278 * grub-core/partmap/msdos.c (embed_signatures): New array.
12279 (pc_partition_map_embed): Check for and avoid sectors matching any
12280 of the signatures in embed_signatures, up to max_nsectors.
12281 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12282 returned sector map to max_nsectors.
12283 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12284 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12285 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12286 * util/grub-setup.c (setup): Allow for the embedding area being
12287 split into multiple blocklists. Tell dest_partmap->embed the
12288 maximum number of sectors we care about.
12289
12290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12291
12292 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12293 Specify blocklist_install and reserver_first_sector for all fs.
12294 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12295 blocklists.
12296
12297 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12298
12299 * util/grub-install.in: Clarify strings.
12300 Fix source dir check.
12301
12302 2012-02-27 Richard Laager <rlaager@wiktel.com>
12303
12304 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12305 "zfs" and "fuse.zfs" as synonyms.
12306
12307 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12308
12309 * configure.ac: Put platform and target_cpu substitutions back since
12310 they are used for directories.
12311
12312 2012-02-27 Richard Laager <rlaager@wiktel.com>
12313 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12314
12315 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12316 * util/grub.d/20_linux_xen.in: Likewise.
12317
12318 2012-02-27 Richard Laager <rlaager@wiktel.com>
12319
12320 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12321 with full paths.
12322
12323 2012-02-27 Richard Laager <rlaager@wiktel.com>
12324
12325 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12326 unescape.
12327
12328 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12329
12330 Don't use insecure popen in getroot.
12331
12332 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12333 (exec_pipe): ... here.
12334 (find_root_devices_from_poolname): Use exec_pipe.
12335
12336 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12337
12338 Remove platform and target_cpu replacement.
12339
12340 * configure.ac: Remove platform and target_cpu substitutions.
12341 * tests/util/grub-shell.in: Use modinfo.
12342 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12343 explicitly.
12344
12345 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12346
12347 Autodetect platform in grub-install but allow override.
12348
12349 * util/grub-install.in: Autodetect platform. Support --target and
12350 --directory. Read platform from modinfo.sh.
12351
12352 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 Support btrfs multi-volume probe.
12355
12356 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12357 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12358 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12359 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12360 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12361 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12362 grub_find_root_devices_from_btrfs if on btrfs.
12363
12364 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12365
12366 Remove any awareness of *.c util files about target.
12367
12368 * Makefile.util.def (grub-setup): Split to ...
12369 (grub-bios-setup): ... and this.
12370 (grub-sparc64-setup): ... and this.
12371 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12372 * docs/man/grub-setup.h2m: Split into ...
12373 * docs/man/grub-sparc64-setup.h2m: ... this.
12374 * docs/man/grub-bios-setup.h2m: ... and this.
12375 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12376 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12377 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12378 (grub_target_addr_t): Remove.
12379 (grub_target_size_t): Remove.
12380 (grub_target_ssize_t): Remove.
12381 * util/grub-install.in: Use new grub-*-setup.
12382 * util/grub-mkimagexx.c (Elf_Word): New define.
12383 (Elf_Half): Likewise.
12384 (Elf_Section): Likewise.
12385 (ELF_ST_TYPE): Likewise.
12386 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12387 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12388
12389 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 Replace grub_target_addr with more appropriate types.
12392
12393 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12394 grub_target_addr with grub_addr.
12395 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12396 grub_target_addr with grub_port.
12397 (grub_cmd_write): Likewise.
12398 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12399 grub_target_addr with grub_addr.
12400 (grub_cmd_write): Likewise.
12401 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12402
12403 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12404
12405 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12406 const qualifier for vendor_guid.
12407
12408 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12409
12410 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12411 const qualifier.
12412 (efiemu_memequal): Likewise.
12413 (find_variable): Likewise.
12414
12415 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12416
12417 Fix missing console prototype on qemu-mips.
12418
12419 * include/grub/mips/qemu_mips/console.h: New file.
12420
12421 2012-02-27 Matthew Garrett <mjg@redhat.com>
12422 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12423
12424 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12425 * include/grub/efi/efi.h: Likewise.
12426 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12427 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12428 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12429 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12430 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12431 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12432
12433 2012-02-27 Matthew Garrett <mjg@redhat.com>
12434
12435 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12436
12437 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12438
12439 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12440 error.
12441
12442 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12443
12444 * configure.ac: Remove inappropriate use of program_transform_name
12445 on grubdir and bootdir but allow explicit specification of those
12446 variables.
12447
12448 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12449
12450 * util/grub-mknetdir.in (grub_prefix): Removed.
12451 (subdir): Use @bootdirname@ and @grubdirname@.
12452
12453 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12454
12455 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12456
12457 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12458
12459 * po/POTFILES.in: Regenerated.
12460
12461 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 Remove improper use of program_transform_name on pkglibrootdir.
12464
12465 * configure.ac (pkglibrootdir): Removed.
12466 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12467 * util/grub-mkimage.c: Likewise.
12468
12469 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12470
12471 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12472 warning.
12473
12474 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 * util/grub-install.in: Use file identifier if no UUID is available
12477 or user explicitly prompted for it.
12478
12479 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12480
12481 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12482 (freebsd_get_zfs): New function.
12483 (grub_freebsd_boot): Pass zfs UUID.
12484 (grub_cmd_freebsd): Set zfs UUID.
12485
12486 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12487
12488 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12489 pkglibrootdir.
12490
12491 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12492
12493 Add configure flag to control libzfs integration.
12494
12495 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12496
12497 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12498
12499 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12500 device.
12501 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12502 small devices.
12503
12504 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12507 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12508 be used on non-modules.
12509
12510 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12511 Rename to grub_boot_init.
12512 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12513 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12514 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12515 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12516 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12517 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12518 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12519 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12520 includes.
12521 (grub_machine_init): Remove empty inits.
12522 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12523 includes.
12524 (grub_machine_init): Remove empty inits.
12525 * grub-core/term/arc/console.c: Remove explicit proto.
12526 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12527 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12528 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12529 grub_at_keyboard_fini.
12530 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12531 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12532 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12533 grub_gfxterm_fini.
12534 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12535 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12536 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12537 grub_vgatext_fini.
12538 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12539 * grub-core/term/serial.c (GRUB_MOD_INIT)
12540 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12541 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12542 grub_serial_fini.
12543 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12544 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12545 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12546 grub_terminfo_fini.
12547 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12548 (GRUB_MOD_FINI): Likewise.
12549 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12550 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12551 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12552 grub_video_radeon_fuloong2e_fini.
12553 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12554 [LOONGSON]: Rename to grub_video_sis315pro_init.
12555 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12556 grub_video_sis315pro_fini.
12557 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12558 [LOONGSON]: Rename to grub_video_sm712_init.
12559 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12560 grub_video_sm712_fini.
12561 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12562 (grub_at_keyboard_fini): Likewise.
12563 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12564 Don't declare grub_{modname}_init.
12565 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12566 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12567 New proto.
12568 (grub_keylayouts_fini) [!EMU]: Likewise.
12569 * include/grub/serial.h (grub_serial_init) [!EMU]:
12570 New proto.
12571 (grub_serial_fini) [!EMU]: Likewise.
12572 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12573 New proto.
12574 (grub_terminfo_fini) [!EMU]: Likewise.
12575 * include/grub/video.h (grub_font_init) [!EMU]:
12576 New proto.
12577 (grub_font_fini) [!EMU]: Likewise.
12578 (grub_gfxterm_init) [!EMU]: Likewise.
12579 (grub_gfxterm_fini) [!EMU]: Likewise.
12580 (grub_video_sm712_init) [!EMU]: Likewise.
12581 (grub_video_sm712_fini) [!EMU]: Likewise.
12582 (grub_video_sis315pro_init) [!EMU]: Likewise.
12583 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12584 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12585 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12586
12587 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 Make nand a prefix for nand devices.
12590
12591 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12592
12593 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12594
12595 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12596 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12597
12598 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12599
12600 * include/grub/env.h (grub_env_find): Remove prototype.
12601 * grub-core/kern/env.c (grub_env_find): Make static.
12602 (grub_env_set): Remove useless set.
12603
12604 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 * grub-core/kern/i386/realmode.S: Remove useless align.
12607
12608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12609
12610 * include/grub/dl.h (grub_dl_load_file): Don't export.
12611
12612 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12615 grub_dprintf.
12616
12617 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12618
12619 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12620 grub_errors.
12621 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12622 not reloading whole superblock but only the part which is really needed.
12623 Remove useless grub_errors.
12624 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12625 grub_errors.
12626
12627 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12628
12629 Don't export grub_get_rtc.
12630
12631 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12632 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12633
12634 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12637
12638 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12639
12640 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12641 argument since it can be deduced from diskfilter. All users updated.
12642
12643 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12644
12645 Remove prio_list.
12646
12647 * include/grub/list.h (grub_prio_list): Removed.
12648 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12649 GRUB_COMMAND_PRIO_MASK.
12650 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12651 GRUB_COMMAND_FLAG_ACTIVE.
12652 (grub_prio_list_insert): Removed.
12653 (grub_prio_list_remove): Likewise.
12654 (GRUB_AS_PRIO_LIST): Likewise.
12655 (GRUB_AS_PRIO_LIST_P): Likewise.
12656 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12657 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12658 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12659 * grub-core/kern/command.c (grub_register_command_prio): Inline
12660 the prio_list code.
12661 (grub_unregister_command): Likewise.
12662
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 Fix interrupt mixup from previous commit.
12666
12667 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12668 (grub_realidt): New var.
12669 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12670 Load idt.
12671 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12672 New declaration.
12673 (grub_relocator16_boot): Set grub_relocator16_idt.
12674 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12675 (LOCAL(realidt)): ... this.
12676 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12677 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12678 (grub_realidt): New variable.
12679
12680 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12681
12682 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12683 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12684 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12685 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12686 Gettextize.
12687 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12688 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12689 * po/POTFILES.in: Regenerate.
12690
12691 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12692
12693 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12694 errors.
12695
12696 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12699 \0.
12700 (add_length): Likewise.
12701
12702 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12703 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12704
12705 GDB serial and backtrace support.
12706
12707 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12708 (prot_to_real): Likewise.
12709 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12710 * grub-core/Makefile.core.def (backtrace): New module.
12711 (gdb): Likewise.
12712 * grub-core/gdb/cstub.c: New file.
12713 * grub-core/gdb/gdb.c: Likewise.
12714 * grub-core/gdb/i386/idt.c: Likewise.
12715 * grub-core/gdb/i386/machdep.S: Likewise.
12716 * grub-core/gdb/i386/signal.c: Likewise.
12717 * grub-core/lib/i386/backtrace.c: Likewise.
12718 * grub-core/lib/backtrace.c: Likewise.
12719 * include/grub/backtrace.h: Likewise.
12720 * include/grub/gdb.h: Likewise.
12721 * include/grub/i386/gdb.h: Likewise.
12722
12723 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12726 New function.
12727 (add_length): Likewise.
12728 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12729 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12730 proto.
12731 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12732 __argp_get_display_len.
12733
12734 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12735
12736 $"..." support in scripts.
12737
12738 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12739 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12740 * grub-core/script/yylex.l: Likewise.
12741 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12742 value.
12743
12744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12745
12746 * gentpl.py: Remove obsolete pkglib_DATA handling.
12747
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12751 mailing list.
12752
12753 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12754 * util/grub-kbdcomp.in: Likewise.
12755 * util/grub-mkconfig.in: Likewise.
12756 * util/grub-mkconfig_lib.in: Likewise.
12757 * util/grub-mknetdir.in: Likewise.
12758 * util/grub-mkrescue.in: Likewise.
12759 * util/grub-mkstandalone.in: Likewise.
12760 * util/grub-reboot.in: Likewise.
12761 * util/grub-set-default.in: Likewise.
12762 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12763
12764 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 Remove GRUB_PREFIX.
12767
12768 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12769 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12770 used for backward compatibility.
12771
12772 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12773
12774 Add new all_video module.
12775
12776 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12777 * grub-core/Makefile.core.def (all_video): New module.
12778 * grub-core/genmoddep.awk: Generate dependency of all_video from
12779 video.lst.
12780 * grub-core/lib/fake_module.c: New file.
12781 * grub-core/normal/main.c (features): Add feature_all_video_module.
12782 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12783 don't do explicit search again.
12784 insmod all_video in load_video if available.
12785
12786 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 Another round of string clarification and adding TRANSLATORS comments.
12789
12790 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12793
12794 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12795
12796 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12797 to grub_ssize_t.
12798 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12799 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12800
12801 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12804 trailing newline implicitly. All users updated.
12805
12806 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 Implement serial on IEEE1275 and EFI.
12809
12810 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12811 on emu. Mention arc and emu as the only platforms without serial
12812 support.
12813 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12814 ieee1275 platforms.
12815 * grub-core/term/efi/serial.c: New file.
12816 * grub-core/term/ieee1275/serial.c: Likewise.
12817 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12818 specification if no ns8250 driver is available.
12819 (grub_cmd_serial): Likewise.
12820 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12821 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12822 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12823 (grub_efi_parity_type_t): New type.
12824 (grub_efi_stop_bits_t): Likewise.
12825 (grub_efi_serial_io_interface): New struct.
12826 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12827 available for all interfaces.
12828 Add EFI and IEEE1275 fields.
12829 (grub_ofserial_init): New proto.
12830 (grub_efiserial_init): Likeiwse.
12831 * util/grub.d/00_header.in: Don't check for the presence of serial
12832 module.
12833
12834 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12837 name as if it was an alias.
12838
12839 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12840
12841 * grub-core/commands/lsacpi.c (options): Fix typo.
12842
12843 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 Convert grub-emu to argp.
12846
12847 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12848 emu.
12849 * util/argp_common.c: Rename to ...
12850 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12851 Add missing includes.
12852 * grub-core/kern/emu/main.c: Convert to argp.
12853 * po/POTFILES.in: Regenerate.
12854 * util/grub-install.in (usage): Make first letter lowcase in messages
12855 for uniformity.
12856 * util/grub-setup.c (options): Likewise.
12857
12858 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12859
12860 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12861 Put back accidently commented-out code.
12862
12863 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12864
12865 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12866 loop check using Brent algorithm.
12867 (grub_hfsplus_btree_search): Likewise.
12868
12869 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12870
12871 * util/grub-install.in: Fix usage of wrong device for PreP install.
12872
12873 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12874
12875 * conf/Makefile.common (CFLAGS_GNULIB): Add
12876 -Wno-unsafe-loop-optimizations.
12877 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12878 on tools.
12879 * grub-core/commands/legacycfg.c: Add pragma to skip
12880 -Wunsafe-loop-optimizations.
12881 (check_password_md5_real): Fix loop counter type.
12882 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12883 reading.
12884 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12885 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12886 loop condition.
12887 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12888 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12889 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12890 condition.
12891 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12892 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12893 avoid possible infinite loops.
12894 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12895 and -Wunsafe-loop-optimizations.
12896 * grub-core/script/yylex.l: Likewise.
12897 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12898 (print_glyphs): Avoid infinite loops.
12899 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12900
12901 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12902
12903 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12904 to avoid infinite loop.
12905 (disp_acpi_rsdt_table): Likewise.
12906
12907 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12908
12909 * grub-core/font/font.c (grub_font_load): Add support for default
12910 path for fonts ($prefix/fonts).
12911 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12912 for checking if string is a path.
12913 * grub-core/normal/main.c (features): Add feature_default_font_path.
12914 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12915 * util/grub.d/00_header.in: Use default directory if possible.
12916 * util/grub-install.in: Install unicode.pf2.
12917
12918 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12921 * po/Rules-swiss: New file.
12922 * po/swiss.sed: Likewise.
12923
12924 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12925
12926 * grub-core/fs/btrfs.c (find_device): Fix typos.
12927 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12928 * util/grub-mkrelpath.c (argp_parser): Likewise.
12929 Reported by: Yuri Chornoivan.
12930
12931 2012-02-23 Dalet Omega <daletomega@gmail.com>
12932
12933 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12934 for usual informative messages.
12935
12936 2012-02-23 Dalet Omega <daletomega@gmail.com>
12937
12938 Starfield theme.
12939
12940 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12941 * conf/Makefile.common: Define starfielddir.
12942 * configure.ac: Configure starfield.
12943 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12944 * themes/starfield/README: Likewise.
12945 * themes/starfield/blob_w.png: Likewise.
12946 * themes/starfield/boot_menu_c.png: Likewise.
12947 * themes/starfield/boot_menu_e.png: Likewise.
12948 * themes/starfield/boot_menu_n.png: Likewise.
12949 * themes/starfield/boot_menu_ne.png: Likewise.
12950 * themes/starfield/boot_menu_nw.png: Likewise.
12951 * themes/starfield/boot_menu_s.png: Likewise.
12952 * themes/starfield/boot_menu_se.png: Likewise.
12953 * themes/starfield/boot_menu_sw.png: Likewise.
12954 * themes/starfield/boot_menu_w.png: Likewise.
12955 * themes/starfield/slider_c.png: Likewise.
12956 * themes/starfield/slider_n.png: Likewise.
12957 * themes/starfield/slider_s.png: Likewise.
12958 * themes/starfield/src/blob_nw.xcf: Likewise.
12959 * themes/starfield/src/bootmenu/: Likewise.
12960 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12961 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12962 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12963 * themes/starfield/src/slider_c.xcf: Likewise.
12964 * themes/starfield/src/slider_n.xcf: Likewise.
12965 * themes/starfield/src/slider_s.xcf: Likewise.
12966 * themes/starfield/src/terminalbox/: Likewise.
12967 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12968 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12969 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12970 * themes/starfield/starfield.png: Likewise.
12971 * themes/starfield/terminal_box_c.png: Likewise.
12972 * themes/starfield/terminal_box_e.png: Likewise.
12973 * themes/starfield/terminal_box_n.png: Likewise.
12974 * themes/starfield/terminal_box_ne.png: Likewise.
12975 * themes/starfield/terminal_box_nw.png: Likewise.
12976 * themes/starfield/terminal_box_s.png: Likewise.
12977 * themes/starfield/terminal_box_se.png: Likewise.
12978 * themes/starfield/terminal_box_sw.png: Likewise.
12979 * themes/starfield/terminal_box_w.png: Likewise.
12980 * themes/starfield/theme.txt: Likewise.
12981
12982 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12983
12984 * util/grub.d/00_header.in: Add missing export theme.
12985
12986 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12987
12988 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
12989 already included.
12990 Reported by: Eren D.
12991
12992 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12993
12994 * conf/Makefile.common (grubdatadir): Removed.
12995 (Makefile.am): Move eveything grubdata to pkgdata.
12996
12997 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
12998
12999 * grub-core/commands/acpihalt.c (get_sleep_type):
13000 Remove unused variable.
13001
13002 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13003
13004 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13005 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13006 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13007 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13008 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13009 i18n with gettext no-op.
13010 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13011 GRUB_ACPI_OPCODE_STRING_CONST.
13012 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13013 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13014
13015 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 * po/POTFILES.in: Regenerate.
13018
13019 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13020
13021 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13022 -Wno-error=missing-noreturn.
13023
13024 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13027 condition to avoid possibly infinite loops.
13028 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13029 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13030
13031 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13034 condition to avoid possibly infinite loops.
13035
13036 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13037
13038 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13039 on show_error.
13040
13041 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13044
13045 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13048
13049 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * util/bin2h.c (usage): Add missing attribute noreturn.
13052
13053 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13054
13055 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13056 if the size isn't divisible by 512.
13057
13058 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13059
13060 Make list_push and list_remove functions rather than inline functions
13061 to decrease size and avoid aliasing violations.
13062
13063 * include/grub/list.h (grub_list_push): Move to ...
13064 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13065 * include/grub/list.h (grub_list_remove): Move to ...
13066 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13067
13068 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13071 and -Wunused-result.
13072
13073 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13074
13075 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13076 Reported by: Seth Goldberg
13077
13078 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13081
13082 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13083
13084 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13085 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13086 command line.
13087 * docs/grub.texi (Simple configuration): Document
13088 GRUB_CMDLINE_GNUMACH.
13089
13090 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * conf/Makefile.common (platform_SCRIPTS): New variable.
13093 (platform_PROGRAMS): Likewise.
13094 * gentpl.py: Mark *,module and *.image for install.
13095 * grub-core/gdb_grub.in: Add a notice of expected environment.
13096 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13097 (gmodule.pl): Likewise.
13098
13099 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13100
13101 Replace grub_checkkey with grub_getkey_noblock.
13102
13103 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13104 (grub_getkey_noblock): ... this. All users updated.
13105
13106 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 * grub-core/kern/emu/console.c: Move to ...
13109 * grub-core/term/emu/console.c: ...here.
13110 (grub_ncurses_getkey): Fix return value if no key is detected.
13111
13112 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13115 (grub_unit_test_fini): Likewise.
13116 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13117
13118 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13119
13120 * include/grub/test.h (GRUB_UNIT_TEST)
13121
13122 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13123
13124 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13125 Better error handling.
13126 (grub_script_return): Likewise.
13127 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13128
13129 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13130
13131 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13132 rimplicit redifinition.
13133
13134 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13135
13136 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13137 GRUB.
13138
13139 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13140
13141 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13142 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13143 prompt here.
13144
13145 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13146
13147 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13148 as GRUB_ERR_BUG. Don't malloc if no device is available.
13149
13150 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13153 Mark calling with invalid term as GRUB_ERR_BUG.
13154
13155 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13158 packets rather than raising an error.
13159
13160 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13161
13162 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13163 in if.
13164
13165 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13168 diagnostic to dprintf.
13169 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13170
13171 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13174 device name.
13175
13176 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13177
13178 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13179 (grub_ntfs_iterate_dir): Likewise.
13180
13181 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13182
13183 Efiemu stylistic fixes and gettext.
13184
13185 * grub-core/efiemu/i386/loadcore32.c
13186 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13187 * grub-core/efiemu/i386/loadcore64.c
13188 (grub_arch_efiemu_relocate_symbols64): Likewise.
13189 * grub-core/efiemu/i386/pc/cfgtables.c
13190 (grub_machine_efiemu_init_tables): Likewise.
13191 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13192 (grub_efiemu_loadcore_initXX): Add a filename argument.
13193 All users updated.
13194 Improved error message.
13195 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13196 Add a filename argument.
13197 All users updated.
13198 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13199 Reclassify double relocation as GRUB_ERR_BUG.
13200
13201 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13204 handling.
13205
13206 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13209 on partition.
13210
13211 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13212
13213 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13214
13215 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13216
13217 Improve string. Gettextize.
13218
13219 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13222 utils.
13223 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13224
13225 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13228 [GRUB_UTIL]: New function.
13229 (insert_array) [GRUB_UTIL]: Store partmaps.
13230 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13231 partmaps.
13232 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13233 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13234 (probe_abstraction): Print diskfilter and not raid.
13235 Reported by: Lennart Sorensen
13236
13237 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13240 * util/grub-mkimagexx.c (MASK3): New define.
13241 (add_value_to_slot_20b): Use MASK3.
13242 (add_value_to_slot_21): Likewise.
13243 (relocate_addresses): Fix format specification.
13244 (load_image): Explicitly init symtab_section.
13245
13246 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13249 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13250
13251 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13252
13253 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13254 on powerpc.
13255 Reported by: Lennart Sorensen
13256
13257 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13258
13259 * gentpl.py: Add missing license header.
13260 * docs/grub.texi: Update copyright year.
13261
13262 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13263
13264 Source grub-mkconfig_lib from the build directory at build time.
13265 Suggested by: Vladimir Serbinenko.
13266
13267 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13268 * util/grub-install.in: Define pkgdatadir if not already set, and source
13269 grub-mkconfig_lib from there.
13270 * util/grub-kbdcomp.in: Likewise.
13271 * util/grub-mkconfig.in: Likewise.
13272 * util/grub-mknetdir.in: Likewise.
13273 * util/grub-mkrescue.in: Likewise.
13274 * util/grub-mkstandalone.in: Likewise.
13275 * util/grub-reboot.in: Likewise.
13276 * util/grub-set-default.in: Likewise.
13277 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13278
13279 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13280
13281 Increase warning level.
13282
13283 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13284 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13285 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13286 (TARGET_CFLAGS): Likewise.
13287 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13288 * grub-core/Makefile.core.def (decompressor_xz): Add
13289 -Wno-unreachable-code.
13290 (normal): Add -Wno-redundant-decls.
13291 (xzio): Add -Wno-unreachable-code.
13292 (lzopio): Add -Wno-redundant-decls -Wno-error.
13293 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13294 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13295 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13296 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13297 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13298 * grub-core/kern/i386/coreboot/init.c: Add exception to
13299 -Wsuggest-attribute=noreturn.
13300 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13301 * grub-core/kern/ia64/dl_helper.c: Likewise.
13302 * grub-core/kern/mips/dl.c: Likewise.
13303 * grub-core/kern/sparc64/dl.c: Likewise.
13304 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13305 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13306 (memcmp): Likewise.
13307 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13308 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13309 * grub-core/loader/mips/linux.c: Likewise.
13310 * grub-core/loader/multiboot_elfxx.c: Likewise.
13311 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13312 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13313 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13314 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13315 fixme.
13316 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13317 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13318 Fix prototype.
13319
13320 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13323 address.
13324
13325 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13326
13327 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13328 Avoid improper use of strings.
13329 (grub_cmd_legacy_initrdnounzip): Likewise.
13330
13331 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13332
13333 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13334 attribute.
13335 (grub_util_info): Likewise.
13336 (grub_util_error): Likewise.
13337
13338 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13339
13340 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13341 * util/grub-fstest.c (fstest): Likewise.
13342
13343 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13344
13345 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13346 (grub_md_sha512_real): Likewise.
13347 (grub_util_get_geli_uuid): Likewise.
13348 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13349 (grub_util_biosdisk_open): Fix format specification.
13350 Respect format security.
13351 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13352 (xrealloc): Likewise.
13353 (xasprintf): Likewise.
13354
13355 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * util/import_gcry.py: Include grub/crypto.h in init.c.
13358
13359 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13360
13361 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13362 (generate_image): Make prefix a const char *.
13363 Fix format specifications. Respect format security.
13364 Avoid void * arithmetics.
13365 Avoid shadowing.
13366 (argp_parser): Remove unused variable. Respect format security.
13367 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13368 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13369 (count_funcs): Remove unused variable.
13370 (relocate_addresses): Fix format specification.
13371 Disable x86-64 with elf32. Remove unused variables.
13372 (add_fixup_entry): Avoid shadowing.
13373 (make_reloc_section): Fix format specification.
13374 Use assert.
13375 (locate_sections): Fix format specifications.
13376 (load_image): Avoid shadowing.
13377
13378 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13379
13380 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13381 Fix format specifications. Respect format security.
13382 Don't translate already translated grub_errmsg.
13383 (argp_parser): Remove unused variable
13384
13385 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13386
13387 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13388
13389 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13390
13391 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13392 (main): Likewise. Use xmalloc. Respect format security.
13393
13394 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13395
13396 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13397 a const char *.
13398 (argp_parser): Remove unused variable.
13399
13400 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13401
13402 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13403 (add_pixel): Make static.
13404 (add_font): Likewise.
13405 (write_string_section): Make name and str a const char *.
13406 (write_be16_section): Make name a const char *.
13407 (print_glyphs): Make static.
13408 (write_font_ascii_bitmap): Likewise.
13409 (write_font_width_spec): Likewise.
13410 (write_font_pf2): Likewise.
13411 (argp_parser): Remove unused variable.
13412 Respect format security.
13413 (main): Avoid shadowing. Respect format security.
13414
13415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 * util/grub-editenv.c (argp_parser): Make static.
13418 (create_envblk_file): Use xmalloc.
13419 (open_envblk_file): Likewise.
13420 Resepect format security.
13421 (set_variables): Respect format security.
13422
13423 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * util/getroot.c (grub_find_device): Respect format security.
13426 (get_mdadm_uuid): Remove unused variable.
13427 (grub_util_pull_device): Dont call gettext on already translated
13428 grub_errmsg.
13429 (find_system_device): Remove unused variable.
13430 (grub_util_get_grub_dev): Likewise.
13431 (grub_make_system_path_relative_to_its_root): Respect format security.
13432
13433 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * util/grub-fstest.c (execute_command): Make first argument
13436 a const char *.
13437 (read_file): Avoid shadowing.
13438 Reuse underlying error message if device open fails.
13439 (cmd_cmp): Respect format security.
13440 (root): Make const char *.
13441 (fstest): Remove args argument and use global copy.
13442 Respect format security.
13443 (argp_parser): Make static.
13444 (main): Make default_root const char *.
13445
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * util/grub-mount.c (root): Make const char *.
13449 (execute_command): Make first argument a const char *.
13450 (fuse_init): Respect format security.
13451 (argp_parser): Make static. Remove unused variable.
13452 (main): Make default_root a const char *.
13453 Respect format security.
13454
13455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13456
13457 * util/grub-probe.c (probe): Don't call gettext on already translated
13458 grub_errmsg.
13459 Remove unused variables.
13460 (argp_parser): Remove unused variable.
13461
13462 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13463
13464 * util/grub-script-check.c (argp_parser): Remove unused variable.
13465 (main): Rename read to curread to avoid shadowing.
13466
13467 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * util/misc.c (grub_util_write_image_at): Fix format specification.
13470 (grub_util_write_image): Likewise.
13471 (grub_script_execute_argument_to_string): Removed (unused).
13472 (grub_script_execute_menuentry): Likewise.
13473 (grub_putchar): Likewise.
13474
13475 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13476
13477 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13478 (FUNCTION) [GRUB_UTIL]: Likewise.
13479 (VARIABLE) [GRUB_UTIL]: Likewise.
13480
13481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13484 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13485
13486 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13489 buffer.
13490
13491 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13494 (LzmaEnc_SaveState): Removed (unused).
13495 (LzmaEnc_RestoreState): Likewise.
13496 (LzmaEnc_InitPriceTables): Made static.
13497 (LzmaEnc_Construct): Likewise.
13498 (LzmaEnc_FreeLits): Likewise.
13499 (LzmaEnc_Destruct): Likewise.
13500 (LzmaEnc_Init): Likewise.
13501 (LzmaEnc_InitPrices): Likewise.
13502 (LzmaEnc_Finish): Likewise.
13503 (LzmaEnc_PrepareForLzma2): Removed (unused).
13504 (LzmaEnc_MemPrepare): Likewise.
13505 (LzmaEnc_GetNumAvailableBytes): Likewise.
13506 (LzmaEnc_GetCurBuf): Likewise.
13507 (LzmaEnc_CodeOneMemBlock): Likewise.
13508
13509 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13510
13511 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13512 (grub_util_ldm_embed): Likewise.
13513
13514 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13515
13516 * util/grub-editenv.c (print_var): Rename name to varname to
13517 avoid shadowing.
13518 (main): Rename index to curindex to avoid shadowing.
13519 Make filename a const char *.
13520
13521 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13522
13523 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13524 to arg_getline to avoid shadowing.
13525
13526 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13527
13528 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13529 disk_ to avoid shadowing.
13530
13531 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13532
13533 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13534 curindex to avoid shadowing.
13535 Make static.
13536 (MatchFinder_GetNumAvailableBytes): Make static.
13537
13538 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13541 avoid shadowing.
13542
13543 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13544
13545 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13546 argument from encrypt to do_encrypt to avoid shadowing.
13547
13548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13549
13550 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13551 incorrect nesting of #if's.
13552
13553 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13554
13555 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13556 checks which are always false on some platforms.
13557 (grub_cmd_lsacpi): Likewise.
13558 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13559 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13560 Likewise.
13561
13562 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13565 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13566
13567 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13568
13569 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13570 re_dfa_t to avoid breaking alignment invariants.
13571 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13572 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13573
13574 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13575
13576 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13577 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13578
13579 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13580
13581 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13582 Fix declaration.
13583
13584 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13587 conserve alignment invariants.
13588 (grub_ehci_ehcc_read16): Likewise.
13589 (grub_ehci_oper_read32): Likewise.
13590 (grub_ehci_oper_write32): Likewise.
13591 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13592 Conserve alignment invariants.
13593
13594 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13597 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13598 declarations.
13599
13600 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13601
13602 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13603 Remove unused variable.
13604
13605 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13606
13607 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13608 Remove set in if.
13609
13610 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13611
13612 * include/grub/net.h: Remove double declarations.
13613
13614 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 Remove "payload" command in ia64 Linux loader since I couldn't
13617 find any evidence of it being used for anything.
13618 Replace "relocate" command with an environment variable
13619
13620 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13621 fields.
13622 (ia64_boot_payload): Removed.
13623 (last_payload): Likewise.
13624 (RELOCATE_OFF): Likewise.
13625 (RELOCATE_ON): Likewise.
13626 (RELOCATE_FORCE): Likewise.
13627 (relocate): Likewise.
13628 (free_pages): Don't free payloads.
13629 (grub_load_elf64): Use common error messages.
13630 Use "linux_relocate" variable.
13631 Increase the space after boot_params.
13632 (grub_cmd_payload): Removed.
13633 (grub_cmd_relocate): Likewise.
13634 (grub_cmd_fpswa): Improve messages.
13635 (cmd_payload): Removed.
13636 (cmd_relocate): Likewise.
13637 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13638 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13639
13640 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13641
13642 Convert UHCI to DMA framework.
13643
13644 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13645 (grub_uhci_pci_iter): Fill new members
13646 (grub_alloc_td): Use P2V and V2P functions.
13647 (grub_free_queue): Likewise.
13648 (grub_alloc_qh): Likewise.
13649 (grub_uhci_setup_transfer): Likewise.
13650 (grub_uhci_check_transfer): Likewise.
13651
13652 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13655 Remove assignment in if while on it.
13656
13657 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * util/grub-mkstandalone.in: Fix modules directory.
13660
13661 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13662
13663 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13664 on i386-pc target.
13665 (argp_parser): Accept "auto" as compression specification.
13666
13667 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13668
13669 Fix `help' with unloaded modules.
13670
13671 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13672 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13673 (grub_dyncmd_dispatcher): Small stylistic fix.
13674 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13675 explicit help is requested.
13676
13677 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13678
13679 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13680 Explicitly init restart while on it.
13681
13682 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13685 uninited variable.
13686
13687 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13688
13689 * util/grub-mknetdir.in: Use . rather than source for POSIX
13690 compatibility.
13691
13692 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13695
13696 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13699 variable.
13700
13701 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13702
13703 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13704 without quotes.
13705
13706 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13707
13708 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13709
13710 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13711
13712 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13713 iteration of partitions.
13714
13715 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13716
13717 Improve gettext support. Stylistic fixes and error handling fixes while
13718 on it.
13719
13720 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13721
13722 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13723 part. Instead setup the correct stack in RM.
13724 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13725 for stack.
13726 * include/grub/i386/relocator_private.h: New file.
13727
13728 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13729
13730 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13731 argument.
13732 * util/grub-fstest.c (options): Add missing DEVICE part.
13733
13734 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13735
13736 Clarify and unify messages.
13737
13738 * grub-core/commands/hashsum.c (options): Unify messages.
13739 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13740 literal-only message as translatable.
13741 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13742 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13743 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13744 commands.
13745 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13746 key, not the key used to unlock. Clarify what it's used for.
13747 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13748 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13749 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13750 * util/grub-editenv.c (options): Unify "verbose" message.
13751 * util/grub-fstest.c (read_file): Unify error message.
13752 (fstest): Add quotes around commands.
13753 (options): Unify "verbose" message.
13754 * util/grub-install.in: Add quotes around variable name.
13755 * util/grub-kbdcomp.in: Unify error message.
13756 * util/grub-mkfont.c (main): Likewise.
13757 * util/grub-mkrescue.in: Likewise.
13758 * util/grub-mklayout.c (options): Unify "verbose" message.
13759 * util/grub-mkstandalone.in: Unify help and verbose messages.
13760 * util/grub-mount.c (options): Unify "verbose" message.
13761 * util/grub-probe.c (options): Likewise.
13762 * util/grub-script-check.c (options): Likewise.
13763 * util/grub-setup.c (setup): Unify no-terminator message.
13764 (options): Use DEVICE and not DEV.
13765 Unify "verbose" message.
13766 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13767
13768 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 Improve and unify messages.
13771
13772 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13773 name. All users updated.
13774 Print filename in error.
13775 (read_device_map): Print filename in error.
13776 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13777 (grub_util_get_os_disk): Likewise.
13778 (grub_util_biosdisk_get_grub_dev): Likewise.
13779 (grub_util_check_block_device): Likewise.
13780 (grub_util_check_char_device): Likewise.
13781 (grub_make_system_path_relative_to_its_root): Likewise.
13782 * util/grub-editenv.c (create_envblk_file): Likewise.
13783 (open_envblk_file): Likewise.
13784 (write_envblk): Likewise.
13785 * util/grub-fstest.c (cmd_cp): Likewise.
13786 (cmd_cat): Likewise.
13787 (cmd_cmp): Likewise.
13788 * util/grub-menulst2cfg.c (main): Likewise.
13789 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13790 (write_font_width_spec): Likewise.
13791 (write_font_pf2): Likewise.
13792 * util/grub-mkimage.c (generate_image): New argument outname.
13793 All users updated.
13794 Remove unreacheable message.
13795 (options): Unify messages.
13796 (help_filter): Likewise.
13797 * util/grub-mklayout.c (usage): Removed (unused).
13798 (main): Print filename in error.
13799 * util/grub-mkrescue.in: Fix wrong quoting.
13800 * util/grub-setup.c (setup): Print filename in error.
13801 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13802 (check_sas): Likewise.
13803 * util/misc.c (grub_util_get_fp_size): Removed.
13804 (grub_util_get_image_size): Print filename in error.
13805 (grub_util_read_at): Removed.
13806 (grub_util_read_image): Print filename in error.
13807 (grub_util_load_image): Likewise.
13808 (grub_util_write_image_at): New argument filename. All users updated.
13809 Print filename in error.
13810 (grub_util_write_image): New argument filename. All users updated.
13811 Print filename in error.
13812 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13813 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13814
13815 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/Makefile.core.def (pxechain): New module.
13818 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13819 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13820 function.
13821 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13822 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13823
13824 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13825
13826 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13827 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13828 * include/grub/err.h (grub_error_saved): New struct.
13829 (grub_errmsg): Make array size explicit.
13830 * include/grub/misc.h (grub_error_save): New function.
13831 (grub_error_load): Likewise.
13832 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13833 (grub_error_push): Update `errno' member name.
13834 (grub_error_pop): Likewise
13835 * grub-core/net/tftp.c (tftp_data): New member save_err.
13836 (tftp_receive): Save error.
13837 (tftp_open): Restore error.
13838
13839 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13840
13841 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13842 to real mode down to execute A20-related code in protected mode as
13843 intended.
13844
13845 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13846
13847 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13848 NULL when the argument `level' has an unexpected value.
13849
13850 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13851
13852 Move platform-dependent files from $prefix to $prefix/$platform.
13853
13854 * config.h.in (GRUB_TARGET_CPU): New definition.
13855 (GRUB_PLATFORM): Likewise.
13856 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13857 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13858 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13859 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13860 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13861 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13862 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13863 * grub-core/normal/term.c (read_terminal_list): Likewise.
13864 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13865 $prefix/locale.
13866 (grub_gettext_init_ext): Likewise.
13867 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13868 grub_platform.
13869 * util/grub-install.in: Update directories.
13870 * util/grub-mknetdir.in: Likewise.
13871 * util/grub-mkrescue.in: Likewise.
13872
13873 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13874
13875 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13876 grub_error framework. All users updated.
13877
13878 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13879
13880 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13881 lists (by always binsearching), improve caching (cache strings
13882 used for binsearch, not only results), improve
13883 maintainability (by using more structured binary search) and correct
13884 error handling.
13885
13886 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13887
13888 * grub-core/script/execute.c (grub_script_return): Fix warning.
13889
13890 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13891
13892 * grub-core/script/execute.c (grub_script_return): Fix potential
13893 NULL-dereference.
13894 Reported by: Jim Meyering.
13895
13896 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13897
13898 * po/POTFILES.in: Regenerate.
13899 * util/grub-install.in: Gettextize the strings missed in first pass.
13900
13901 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * Makefile.util.def (grub-mkdevicemap): Removed.
13904 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13905 * include/grub/util/deviceiter.h: Removed.
13906 * util/deviceiter.c: Likewise.
13907 * util/getroot.c (grub_util_get_os_disk): New function.
13908 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13909 replacement for EFI.
13910 * util/grub-mkdevicemap.c: Removed.
13911 * util/grub-probe.c (probe): Handle PRINT_DISK.
13912 (argp_parser): Handle -t disk.
13913
13914 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13915
13916 * util/grub-mkfont.c: Migrate to argp.
13917 * util/grub-mklayout.c: Likewise.
13918 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13919 * util/grub-mkrelpath.c: Likewise.
13920 * util/grub-probe.c: Likewise.
13921 * util/grub-script-check.c: Likewise.
13922
13923 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13924
13925 * util/grub-reboot.in: Add missing datarootdir.
13926 Add missing newline.
13927 * util/grub-set-default.in: Add missing datarootdir.
13928 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13929 * util/grub-mkrescue.in: Likewise.
13930
13931 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13932
13933 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13934
13935 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13936
13937 * util/grub-kbdcomp.in: Add decent help and gettextize.
13938 * docs/man/grub-kbdcomp.h2m: New file.
13939
13940 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 Migrate grub-mkimage.c to argp.
13943
13944 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13945 (grub-setup): Likewise.
13946 * util/grub-setup.c (print_version): Move to ...
13947 * util/argp_common.c (print_version): ... here.
13948 * util/grub-setup.c (argp_program_version_hook): Move to ...
13949 * util/argp_common.c (argp_program_version_hook): ... here.
13950 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13951 safety.
13952 * util/grub-mkimage.c (main): Migrate to argp.
13953
13954 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * util/grub-mkrescue.in: Use same message as
13957 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13958 for better translations.
13959
13960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13963 options with generic grub-mkrescue.in with the goal of future
13964 merge.
13965
13966 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * grub-core/kern/mm.c: Add missing include of i18n.h
13969 * grub-core/lib/relocator.c: Likewise.
13970
13971 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13974 error.
13975 (allocate_pages): Check return value.
13976 Replace fatal with error.
13977 (grub_linux_boot): Replace printf with dprintf.
13978 Check find_mmap_size return value.
13979 Replace fatal with error.
13980 Don't call grub_machine_fini.
13981 (grub_load_elf64): Replace printf with dprintf.
13982 (grub_cmd_linux): Likewise.
13983 (grub_cmd_initrd): Likewise.
13984 (grub_cmd_payload): Likewise.
13985
13986 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13987
13988 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
13989 message.
13990 * grub-core/video/radeon_fuloong2e.c
13991 (grub_video_radeon_fuloong2e_setup): Likewise.
13992 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
13993 * grub-core/video/video.c (grub_video_set_mode): Don't override
13994 standard out of memory message.
13995
13996 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
13997
13998 NetBSD disk wedge support.
13999
14000 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14001 [__NetBSD__]: Handle NetBSD disk wedges.
14002 * util/getroot.c (convert_system_partition_to_system_disk)
14003 [__NetBSD__]: Likewise.
14004
14005 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14006
14007 * util/grub-mkconfig.in: Use umask rather than chmod to create
14008 grub.cfg.new to avoid insecure grub.cfg.
14009
14010 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * grub-core/commands/ls.c: Gettextize.
14013 * grub-core/commands/setpci.c: Likewise.
14014 * grub-core/commands/videotest.c: Likewise.
14015 * grub-core/disk/geli.c: Likewise.
14016 * grub-core/kern/mm.c: Likewise.
14017 * grub-core/lib/relocator.c: Likewise.
14018 * grub-core/loader/efi/appleloader.c: Likewise.
14019 * grub-core/loader/i386/xnu.c: Likewise.
14020 * grub-core/loader/ia64/efi/linux.c: Likewise.
14021 * grub-core/loader/xnu.c: Likewise.
14022 * grub-core/net/dns.c: Likewise.
14023 * grub-core/net/net.c: Likewise.
14024 * grub-core/script/lexer.c: Likewise.
14025 * grub-core/script/parser.y: Likewise.
14026 * grub-core/script/yylex.l: Likewise.
14027 * util/getroot.c: Likewise.
14028 * util/grub-setup.c: Likewise.
14029
14030 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14033 number.
14034
14035 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14038
14039 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14040
14041 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14042 macro.
14043 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14044 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14045
14046 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14049 * util/grub-install.in: Gettextize.
14050 * util/grub-mkconfig.in: Likewise.
14051 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14052 if not available.
14053 (grub_warn): Gettextize.
14054 * util/grub-mknetdir.in: Gettextize.
14055 * util/grub-mkrescue.in: Likewise.
14056 * util/grub-mkstandalone.in: Likewise.
14057 * util/grub-reboot.in: Likewise.
14058 * util/grub-set-default.in: Likewise.
14059 * util/grub.d/00_header.in: Likewise.
14060 * util/grub.d/10_hurd.in: Likewise.
14061 * util/grub.d/10_kfreebsd.in: Likewise.
14062 * util/grub.d/10_linux.in: Likewise.
14063 * util/grub.d/10_netbsd.in: Likewise.
14064 * util/grub.d/10_windows.in: Likewise.
14065 * util/grub.d/20_linux_xen.in: Likewise.
14066 * util/grub.d/30_os-prober.in: Likewise.
14067 * po/POTFILES-shell.in: Regenerate.
14068
14069 2012-02-03 Richard Laager <rlaager@wiktel.com>
14070
14071 * util/grub-mkimage.c (main): Fix format-security warning.
14072 * util/grub-mkrelpath.c (main): Likewise.
14073 * util/grub-probe.c (main): Likewise.
14074
14075 2012-02-03 Richard Laager <rlaager@wiktel.com>
14076
14077 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14078 failure.
14079 Put back lost PRINT_DRIVE.
14080
14081 2012-02-03 Richard Laager <rlaager@wiktel.com>
14082
14083 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14084 (grub_guess_root_devices): Replace strlen with sizeof.
14085 Avoid crash.
14086 (find_root_devices_from_poolname): Remove unused variable.
14087 Handle raidzN.
14088
14089 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14090
14091 Support install on multi-device filesystems.
14092
14093 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14094 (grub_guess_root_devices): ...this. Return char **. All users updated.
14095 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14096 Removed.
14097 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14098 (find_root_devices_from_poolname): ... here.
14099 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14100 Support zfs-fuse.
14101 (grub_guess_root_device): Rename to ...
14102 (grub_guess_root_devices): ... this. Return char **. All users updated.
14103 * util/grub-install.in: Handle multi-device filesystems.
14104 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14105 argument. All users updated.
14106 Handle multi-device filesystems.
14107 Use 'delim' as separator.
14108 Remove device check to allow filesystems on file.
14109 (main): Support -0 argument. Handle multi-device.
14110 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14111 Fix a cross-device check while on it.
14112 (arguments): Remove root_dev.
14113 (argp_parser): Remove -r.
14114 (main): Remove root_dev.
14115
14116 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14119
14120 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14123 symbol.
14124 Reported by: NODA, Kai <nodakai>.
14125
14126 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 Fix ehci on amd64.
14129
14130 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14131 pointers.
14132 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14133 (grub_ehci_setup_qh): Likewise.
14134 (grub_ehci_find_qh): Likewise.
14135 (grub_ehci_transaction): Likewise.
14136 (grub_ehci_setup_transfer): Likewise.
14137 (grub_ehci_check_transfer): Likewise.
14138 (grub_ehci_portstatus): Likewise.
14139 (grub_ehci_detect_dev): Likewise.
14140 (grub_ehci_transfer_controller_data): New field td_last_phys.
14141 (grub_ehci_setup_transfer): Fill td_last_phys.
14142 (grub_ehci_check_transfer): Use td_last_phys.
14143
14144 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14145
14146 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14147 if no submenu is present.
14148
14149 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14150
14151 CBI support.
14152
14153 * include/grub/usb.h (grub_usbms_protocol_t): New values
14154 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14155 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14156 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14157 (grub_usbms_dev): Add subclass, protocol and intrpt.
14158 Remove in_maxsz and out_maxsz.
14159 (grub_usbms_reset): Rename to ...
14160 (grub_usbms_bo_reset): .. this.
14161 (grub_usbms_cbi_cmd): New function.
14162 (grub_usbms_cbi_reset): Likewise.
14163 (grub_usbms_reset): Likewise.
14164 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14165 (grub_usbms_transfer): Rename to ...
14166 (grub_usbms_transfer_bo): ... this.
14167 (grub_usbms_transfer_cbi): Likewise.
14168 (grub_usbms_transfer): Likewise.
14169
14170 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14171 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14174 the support for the CS5536 modification thereos and few bugfixes.
14175
14176 * grub-core/Makefile.core.def (ehci): New module.
14177 * grub-core/bus/usb/ehci.c: New file.
14178 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14179 port and hubaddr. All users updated.
14180 Save port and hubaddr into dev structure.
14181 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14182 define.
14183 * include/grub/pci.h (grub_dma_phys2virt): New function.
14184 (grub_dma_virt2phys): Likewise.
14185 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14186
14187 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14188
14189 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14190 check as some mkfs implementations omit it.
14191
14192 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14195
14196 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14199 Add new member volname2.
14200 (grub_jfs_label): Use volname2 if available.
14201
14202 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14203
14204 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14205 over last_mounted as seen in image generated by mkfs.nilfs2.
14206 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14207
14208 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14209
14210 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14211 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14212 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14213
14214 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14215
14216 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14217 over the sector.
14218
14219 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14222 subvolume name (by removing a bogus and useless check).
14223
14224 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14225
14226 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14227 sizeof while on it.
14228
14229 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14232 (grub_scsi_read_capacity10): ... this.
14233 (grub_scsi_read_capacity16): New function.
14234 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14235 0xffffffff.
14236 Fix off-by-one error.
14237 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14238 64-bit unsigned.
14239 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14240 (grub_scsi_read_capacity10): ... this.
14241 (grub_scsi_read_capacity_data): Rename to ...
14242 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14243 (grub_scsi_read_capacity16): New struct.
14244 (grub_scsi_read_capacity16_data): Likewise.
14245 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14246 grub_scsi_cmd_read_capacity10.
14247 New command grub_scsi_cmd_read_capacity16.
14248
14249 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 SCSI >2TiB support.
14252
14253 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14254 (grub_scsi_write16): Likewise.
14255 (grub_scsi_read): Use read16 when necessary.
14256 (grub_scsi_write): Likewise.
14257 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14258 (grub_scsi_write16): Likewise.
14259 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14260
14261 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 SCSI write support (for usbms mainly).
14264
14265 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14266 a const pointer.
14267 (grub_scsi_write): Implement.
14268 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14269
14270 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14273 variable.
14274
14275 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14278
14279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14280
14281 * po/POTFILES.in: Regenerate.
14282
14283 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14284
14285 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14286 with grub_printf to avoid unnecessary fatal failure.
14287
14288 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14289
14290 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14291 (INT_MAX): Likewise.
14292 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14293 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14294 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14295 (strcpy): Likewise.
14296 (strstr): Likewise.
14297 (strchr): Likewise.
14298 (strncpy): Likewise.
14299 (strcat): Likewise.
14300 (strncat): Likewise.
14301 (strcoll): Likewise.
14302 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14303 (GRUB_INT_MAX): Likewise.
14304
14305 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14306
14307 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14308 unexpected error.
14309 (optimize_utf8): Likewise.
14310 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14311
14312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 * grub-core/boot/i386/pc/lnxboot.S: Use
14315 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14316 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14317 location.
14318 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14319 definition.
14320 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14321
14322 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14323
14324 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14325 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14326 now to avoid double free.
14327 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14328 hostdisk.
14329 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14330 * util/grub-probe.c (escape_of_path): Always return a new copy.
14331 (print_full_name): Escape path.
14332 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14333 Fix hints on abstractions.
14334
14335 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14336
14337 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14338 Don't add "root" line if no compatibility hont is available.
14339 Suggested by: Seth Goldberg.
14340
14341 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342
14343 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14344 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14345 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14346 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14347
14348 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14349
14350 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14351
14352 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14353
14354 * util/grub-pe2elf.c (ehdr): Make static.
14355 (shdr): Likewise.
14356 (num_sections): Likewise.
14357 (offset): Likewise.
14358
14359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14360
14361 Eliminate ofpath limits and possible overflows.
14362
14363 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14364 (OF_PATH_MAX): Removed.
14365 (MAX_DISK_CAT): New const.
14366 (find_obppath): Use allocated rather than preallocated buffer.
14367 Return result. Argument of_path removed. All users updated.
14368 Add missing fdstat.
14369 (xrealpath): New function.
14370 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14371 Allocate rather than use preallocated buffer. All users updated.
14372 (__of_path_common): Use allocated rather than preallocatecd buffer.
14373 Return result. Argument of_path removed. All users updated.
14374 (vendor_is_ATA): Read only needed part form the file.
14375 (check_sas): Allocate depending on contents rather than fixed.
14376 (main) [STANDALONE]: Handle NULL result.
14377
14378 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14381
14382 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14383
14384 Cryptodisk write support.
14385
14386 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14387 (grub_cryptodisk_decrypt): Moved logic to ...
14388 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14389 (grub_cryptodisk_write): Implement.
14390 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14391 (grub_util_fd_write): ... this. Make global.
14392 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14393
14394 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14395
14396 * include/grub/list.h (grub_list_remove): Don't crash if element is
14397 removed twice.
14398
14399 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14400
14401 Rename ofconsole to console.
14402
14403 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14404 as sysnonym to console.
14405 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14406 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14407 Rename grub_ofconsole_ to grub_console_. All users updated
14408 (grub_console_term_output): Rename "ofconsole" to "console".
14409 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14410 as "console".
14411
14412 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14413
14414 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14415 handling.
14416 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14417 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14418 GRUB_DISK_DEVICE_FILE_ID.
14419
14420 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14423 and improve performance.
14424
14425 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14428 missing ieee1275/ prefix on whole disk.
14429
14430 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14431
14432 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14433 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14434
14435 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14436
14437 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14438
14439 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14440
14441 Merge common RAID and LVM logic to an abstract diskfilter.
14442 Add LDM support using the same framework.
14443
14444 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14445 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14446 (libgrubmods): Remove grub-core/disk/raid.c and
14447 grub-core/partmap/gpt.c.
14448 * grub-core/Makefile.core.def (ldm): New module.
14449 (raid): Renamed to diskfilter. All users updated.
14450 * grub-core/disk/raid.c: Moved to ...
14451 * grub-core/disk/diskfilter.c: ... here.
14452 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14453 (lv_num): New var.
14454 (find_array): Renamed to ...
14455 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14456 (grub_is_array_readable): Renamed to ...
14457 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14458 (insert_array): New argument id.
14459 (is_node_readable): New function.
14460 (scan_device): Rename to ...
14461 (scan_disk): .. this. Restrict to one disk.
14462 (scan_devices): New function.
14463 (grub_diskfilter_iterate): Support multi-LV.
14464 Skip invisible and nameless LVs.
14465 (grub_diskfilter_memberlist): Support multi-LV.
14466 (grub_diskfilter_read_node): New function.
14467 (grub_raid_read): Most of logic moved to ...
14468 (read_segment): ... here
14469 (read_lv): New function.
14470 (grub_diskfilter_get_vg_by_uuid): New function.
14471 (grub_diskfilter_make_raid): Likewise.
14472 * grub-core/disk/ldm.c: New file.
14473 * grub-core/disk/lvm.c (vg_list): Removed.
14474 (lv_count): Likewise.
14475 (scan_depth): Likewise.
14476 (is_lv_readable): Likewise.
14477 (grub_lvm_getvalue): Advance pointer past the number.
14478 (find_lv): Removed.
14479 (do_lvm_scan): Refactored into ...
14480 (grub_lvm_detect): ... this. Support raid.
14481 (grub_lvm_iterate): Removed.
14482 (grub_lvm_memberlist): Likewise.
14483 (grub_lvm_open): Likewise.
14484 (grub_lvm_close): Likewise.
14485 (read_lv): Likewise.
14486 (read_node): Likewise.
14487 (is_node_readable): Likewise.
14488 (is_lv_readable): Likewise.
14489 (grub_lvm_read): Likewise.
14490 (grub_lvm_write): Likewise.
14491 (grub_lvm_dev): Use diskfilter
14492 (GRUB_MOD_INIT): Likewise.
14493 (GRUB_MOD_FINI): Likewise.
14494 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14495 new interface.
14496 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14497 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14498 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14499 grub_diskfilter_read_node.
14500 Fix a bug with xor.
14501 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14502 grub_diskfilter_read_node.
14503 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14504 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14505 (grub_disk_dev_iterate): Move from here...
14506 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14507 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14508 Make global.
14509 (grub_hostdisk_find_partition_start): Likewise.
14510 (grub_hostdisk_os_dev_to_grub_drive): New function.
14511 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14512 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14513 * util/getroot.c (make_device_name): ... here.
14514 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14515 Move to ...
14516 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14517 * grub-core/kern/emu/hostdisk.c
14518 (convert_system_partition_to_system_disk): Move to ...
14519 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14520 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14521 * util/getroot.c (device_is_wholedisk): ... here.
14522 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14523 * util/getroot.c (find_system_device): ... here.
14524 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14525 Move to ...
14526 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14527 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14528 Move to ...
14529 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14530 Handle LDM.
14531 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14532 Move to ...
14533 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14534 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14535 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14536 DISKFILTER.
14537 * include/grub/raid.h: Renamed to ...
14538 * include/grub/diskfilter.h: ... this.
14539 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14540 (GRUB_RAID_LAYOUT_*): Make into array.
14541 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14542 (grub_diskfilter_vg): New struct.
14543 (grub_diskfilter_pv_id): Likewise.
14544 (grub_raid_member): Removed.
14545 (grub_raid_array): Likewise.
14546 (grub_diskfilter_pv): New struct.
14547 (grub_diskfilter_lv): Likewise.
14548 (grub_diskfilter_segment): Likewise.
14549 (grub_diskfilter_node): Likewise.
14550 (grub_diskfilter_get_vg_by_uuid): New proto.
14551 (grub_raid_register): Inline.
14552 (grub_diskfilter_unregister): Likewise.
14553 (grub_diskfilter_make_raid): New proto.
14554 (grub_diskfilter_vg_register): Likewise.
14555 (grub_diskfilter_read_node): Likewise.
14556 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14557 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14558 (grub_util_is_ldm): Likewise.
14559 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14560 (grub_hostdisk_find_partition_start): Likewise.
14561 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14562 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14563 New definition.
14564 (grub_gpt_partition_map_iterate): New proto.
14565 * include/grub/lvm.h (grub_lvm_vg): Removed.
14566 (grub_lvm_pv): Likewise.
14567 (grub_lvm_lv): Likewise.
14568 (grub_lvm_segment): Likewise.
14569 (grub_lvm_node): Likewise.
14570 * util/getroot.c [...]
14571 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14572 (probe_abstraction): Likewise.
14573 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14574 (main): Remove dead logic.
14575
14576 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14577
14578 Simplify root device discover and don't fail when trying to open
14579 incorrect devices.
14580
14581 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14582 function.
14583 (get_diskname_from_path): Likewise.
14584 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14585 of iterating.
14586
14587 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14588
14589 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14590
14591 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14592
14593 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14594 pastthe end.
14595
14596 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14597
14598 * util/grub-install.in: Add missing \.
14599 Reported by: gentoofan
14600
14601 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14604 (direct_read): Use correct compressed size.
14605 (grub_squash_read_data): Likewise.
14606
14607 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 * docs/grub.texi (Platform limitations): New section.
14610 (Platform-specific operations): Likewise.
14611 * docs/grub-dev.texi (Porting): Likewise.
14612
14613 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14614
14615 IEEE1275 disk write support.
14616
14617 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14618 const void *.
14619 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14620 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14621 and seek loginc to ...
14622 (grub_ofdisk_prepare): ... here.
14623 (grub_ofdisk_write): Implement.
14624
14625 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 ARC disk write support.
14628
14629 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14630 (reopen): New argument writable. All users updated.
14631 Handle required access mode.
14632 (grub_arcdisk_write): Implement.
14633 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14634 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14635
14636 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14637
14638 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14639 (read_sblock): Don't attempt to read superblocks outside the disk size.
14640
14641 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14642
14643 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14644 first superblock to find the second one when possible.
14645
14646 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 * util/grub-install.in: Fix an ARC bug.
14649 Print a warning if no platform-specific setup is available.
14650
14651 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14652
14653 Use static allocation rather than scratch pointer in reed_solomon.
14654 It decreases its size significantly and avoids a variable in .text.
14655
14656 * grub-core/lib/reed_solomon.c (scratch): Removed.
14657 (chosenstat): New const or static array.
14658 (sigma): Likewise.
14659 (errpot): Likewise.
14660 (errpos): Likewise.
14661 (sy): Likewise.
14662 (mstat): Likewise.
14663 (errvals): Likewise.
14664 (eqstat): Likewise.
14665 (pol_evaluate): Replace x with log_x argument. All users updated.
14666 (syndroms): Removed.
14667 (gauss_solve): Use statically allocated arrays.
14668 (rs_recover): Likewise.
14669 Calculate syndroms directly.
14670 (decode_block): Use statically allocated arrays.
14671 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14672 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14673
14674 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14675
14676 Eliminate fixed limit on reed solomon decoder length.
14677
14678 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14679 rather than hardcoding the address.
14680 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14681 no_reed_solomon_length.
14682 Move gate_a20 to no-reed-solomon part.
14683 Don't force a particular size of no reed-solomon part.
14684 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14685 Removed.
14686 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14687 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14688
14689 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14690
14691 * grub-core/commands/wildcard.c (match_files): Handle filenames
14692 without explicit device.
14693 (wildcard_expand): Don't add explicit device if not already present.
14694 * tests/grub_script_echo1.in: Add a new expansion test.
14695
14696 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14697
14698 Replace single-linked with double-linked lists. It results in more
14699 compact and more efficient code.
14700
14701 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14702 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14703 (grub_list_remove): Moved from here ...
14704 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14705 (grub_prio_list_insert): Set prev.
14706 * include/grub/list.h (grub_list): Add prev. All users updated.
14707
14708 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14709
14710 Handle newer autotools. Add some missing quotes while on it.
14711
14712 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14713 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14714 (pkgdata_DATA): ... here.
14715 * Makefile.util.def (update-grub_lib): Removed.
14716 * conf/Makefile.common (pkglib_DATA): Removed.
14717 (pkglib_SCRIPTS): Likewise.
14718 (pkgdata_DATA): New variable.
14719 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14720 needed.
14721 Add missing quotes.
14722 Remove unused variable while on it.
14723 * tests/util/grub-shell.in: Likewise.
14724 * util/grub-install.in: Likewise.
14725 * util/grub-mkconfig.in: Likewise.
14726 * util/grub-mknetdir.in: Likewise.
14727 * util/grub-mkrescue.in: Likewise.
14728 * util/grub-mkstandalone.in: Likewise.
14729 * util/grub.d/00_header.in: Likewise.
14730 * util/grub.d/10_hurd.in: Likewise.
14731 * util/grub.d/10_illumos.in: Likewise.
14732 * util/grub.d/10_kfreebsd.in: Likewise.
14733 * util/grub.d/10_linux.in: Likewise.
14734 * util/grub.d/10_netbsd.in: Likewise.
14735 * util/grub.d/10_windows.in: Likewise.
14736 * util/grub.d/20_linux_xen.in: Likewise.
14737 * util/grub.d/30_os-prober.in: Likewise.
14738 * util/update-grub_lib.in: Removed.
14739
14740 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14741
14742 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14743 a workaround for intel problem.
14744
14745 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14746 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14747 2012-01-23 pfsmorigo
14748
14749 * util/grub-install.in: Support dd'in into PreP partition.
14750 * util/grub-probe.c (probe): Support discovering partition type.
14751 (main): Support -t msdos_parttype.
14752
14753 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14756 infinite recursion using counter.
14757 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14758 init to skip it if the magic check fails.
14759 (dec_stream_header): Init s->crc32.
14760
14761 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14762 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14763 2012-01-22 Richard Laager <rlaager@wiktel.com>
14764
14765 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14766 All users updated.
14767 (find_bestub): Determine correct size.
14768 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14769 (scan_disk): Align the size down.
14770 Call check pool before find_bestub to have ashift.
14771
14772 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14775 dprintf in no-malloc zone.
14776
14777 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14778
14779 * configure.ac: Add back in test for limits.h.
14780
14781 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14782
14783 Support 4K-sector NTFS.
14784
14785 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14786 (grub_ntfs_data): Remove blocksize.
14787 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14788 Remove data argument. All users updated.
14789
14790 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14791
14792 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14793 being in .text to avoid dprel references.
14794 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14795 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14796 (grub_arch_highmemsize): Likewise.
14797 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14798 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14799 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14800
14801 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14802
14803 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14804
14805 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14806 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14807
14808 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14809
14810 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14811 GRUB_UTIL.
14812 (grub_set_datetime_cmos): Likewise.
14813
14814 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14815
14816 Make XZ compression parameters dependent on target and not host CPU.
14817
14818 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14819 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14820
14821 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14822
14823 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14824 set but not used variable.
14825
14826 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14829 created when no uuid support is compiled into mkfs.reiser.
14830
14831 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14832
14833 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14834 (utf8_to_macroman): Do the opposite.
14835 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14836
14837 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * configure.ac: Refise build qemu_mips w/o unifont.
14840
14841 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14842
14843 Eliminate grub_min/grub_max prone to overflow usage.
14844
14845 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14846 (poll_nonroot_hub): Likewise.
14847 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14848 (grub_affs_label): Likewise.
14849 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14850 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14851 (grub_hfs_label): Likewise.
14852 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14853 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14854 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14855 (zap_leaf_array_get): Likewise.
14856 (dnode_get_path): Likewise.
14857 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14858 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14859 * grub-core/script/execute.c (grub_script_break): Likewise.
14860 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14861 grub_max.
14862 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14863 * include/grub/misc.h (grub_min): Removed.
14864 (grub_max): Likewise.
14865
14866 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14867
14868 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14869 direct.inode = 0.
14870
14871 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14872
14873 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14874
14875 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14876
14877 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14878
14879 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14882 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14883
14884 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14885
14886 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14887 rather than a hack for grub_strncasemap.
14888
14889 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14890
14891 Support multiple initrds
14892 Note: part of this was accidently committed in r3739.
14893
14894 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14895 initrd.
14896 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14897 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14898 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14899 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14900 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14901
14902 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14905 disks with unknown size.
14906 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14907
14908 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14909
14910 Remove defines pertaining to arbitrary limits not affecting GRUB
14911 anymore.
14912
14913 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14914 (EXT2_MAX_SYMLINKCNT): Likewise.
14915 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14916 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14917 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14918 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14919 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14920 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14921 (DN_MAX_OBJECT_SHIFT): Likewise.
14922 (DN_MAX_OFFSET_SHIFT): Likewise.
14923 (DN_MAX_OBJECT): Likewise.
14924 (DNODES_PER_LEVEL_SHIFT): Likewise.
14925 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14926 (SPA_MAXBLOCKSIZE): Likewise.
14927 (SPA_BLOCKSIZES): Likewise.
14928 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14929 (MZAP_MAX_BLKSZ): Likewise.
14930
14931 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14932
14933 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14934 handle NULL appropriately.
14935 Remove MIN.
14936
14937 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 Fix efiemu.
14940
14941 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14942 cpu/types.h.
14943 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14944 * configure.ac: Fix efiemu check.
14945
14946 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14947
14948 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14949 grub_probe.
14950 Reported by: adamwill
14951
14952 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14953
14954 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14955
14956 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 Fix handling of wide characters in gfxterm.
14959
14960 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14961 (clear_char): Likewise.
14962 (paint_char): Skip code == NULL chars.
14963 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14964
14965 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14966
14967 * grub-core/normal/charset.c: Move comment to right place.
14968
14969 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14972 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14973 (grub_affs_mount): Revert the correct version checking.
14974
14975 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14976
14977 * docs/grub.texi (Unicode): Mention several other unsupported features.
14978
14979 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
14982 case statements as compile-time one.
14983 (direct_read): Prevent spurious warnings.
14984 (grub_squash_read_data): Likewise.
14985
14986 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 Various squash4 fixes and LZO and XZ support.
14989
14990 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
14991 Add xzembed source files.
14992 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
14993 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
14994 (grub_squash_inode): New subtype long_dir.
14995 (SQUASH_TYPE_LONG_DIR): New inode type.
14996 (COMPRESSION): New enum.
14997 (XZBUFSIZ): New const.
14998 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
14999 (read_chunk): Use data->decompress.
15000 (zlib_decompress): New function.
15001 (lzo_decompress): Likewise.
15002 (xz_decompress): Likewise.
15003 (squash_mount): Set new data fields.
15004 (grub_squash_iterate_dir): Handle long dir.
15005 (squash_unmount): Free xzdec and xzbuf.
15006 (grub_squash_open): Check ino type.
15007 (direct_read): Stylistic fixes. Use data->decompress.
15008 (grub_squash_read_data): Likewise.
15009 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15010 (get_byte): Likewise.
15011 (grub_zlib_disk_read): Removed.
15012 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15013 (GRUB_POSIX_BOOL_DEFINED): New define.
15014 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15015 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15016 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15017 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15018
15019 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 Don't override more informative errors.
15022
15023 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15024 * grub-core/font/font.c (open_section): Likewise.
15025 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15026 filename. Don't override errors.
15027 (grub_cmd_openbsd_ramdisk): Don't override errors.
15028 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15029 (grub_cmd_initrd): Likewise.
15030 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15031 (grub_cmd_initrd): Likewise.
15032 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15033 (grub_cmd_linux): Likewise.
15034 (grub_cmd_initrd): Likewise.
15035 (grub_cmd_payload): Likewise.
15036 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15037 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15038 (grub_cmd_module): Likewise.
15039 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15040 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15041 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15042 (grub_cmd_xnu_mkext): Likewise.
15043 (grub_cmd_xnu_ramdisk): Likewise.
15044 (grub_xnu_check_os_bundle_required): Likewise.
15045 (grub_xnu_load_kext_from_dir): Likewise.
15046 (grub_cmd_xnu_kextdir): Likewise.
15047 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15048
15049 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15050
15051 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15052 as 1024 in block size field. Found on one of my test images.
15053 Small optimisation while on it.
15054
15055 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15058 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15059 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15060 performance fixes while on it.
15061 (grub_sfs_close): Fix memory leak while on it.
15062 (grub_sfs_label): Convert Latin1 to UTF-8.
15063
15064 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15067 space to avoid overflows.
15068 (grub_hfs_label): Convert from macroman to UTF-8.
15069
15070 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15073
15074 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15077
15078 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 * unicode: Import Unicode 6.0 data.
15081
15082 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15083
15084 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15085 outside of range.
15086
15087 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15088
15089 Avoid cutting in the middle of UTF-8 character.
15090
15091 * include/grub/charset.h (grub_getend): New function.
15092 * grub-core/script/function.c (grub_script_function_find): Use
15093 grub_getend.
15094 * grub-core/normal/completion.c (add_completion): Likewise.
15095
15096 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15097
15098 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15099 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15100 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15101 (GRUB_UNICODE_TAG_END): Likewise.
15102 (GRUB_UNICODE_LAST_VALID): Likewise.
15103
15104 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15105
15106 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15107 len and make it smaller. All users updated.
15108 * util/import_unicode.py: Put length and not end character.
15109 Check length.
15110
15111 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15112
15113 Make better Unicode-compliant and unify some UTF-8 code pathes.
15114
15115 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15116 valid character.
15117 (grub_is_valid_utf8): Use grub_utf8_process.
15118 Check resulting code range.
15119 (grub_utf8_to_ucs4): Use grub_utf8_process.
15120 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15121 valid character.
15122
15123 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15124
15125 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15126
15127 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 * docs/grub.texi (Filesystems): Mention AFS.
15130
15131 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15132
15133 * docs/grub.texi (Filesystems): Clarify restrictions.
15134 (Regexp): Mention non-Unicode regexp behaviour.
15135 (Other): Mention non-Unicode matching behaviour.
15136
15137 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 Make HFS implementation use MacRoman.
15140
15141 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15142 (macroman): New const array.
15143 (macroman_to_utf8): New function.
15144 (utf8_to_macroman): Likewise.
15145 (grub_hfs_find_dir): Use utf8_to_macroman.
15146 (grub_hfs_dir): Use macroman_to_utf8.
15147 Set case_insensitive.
15148
15149 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15150
15151 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15152
15153 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15154
15155 Integrate hints into autogeneration scripts.
15156
15157 * docs/grub.texi (Filesystems): Add a hostdisk example.
15158 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15159 (grub-probe): Add ofpath.
15160 * gentpl.py: Remove group nosparc64.
15161 * grub-core/commands/search.c (cache_entry): New struct.
15162 (cache): New var.
15163 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15164 * grub-core/commands/search_wrap.c (options): Add platform-specific
15165 hint options.
15166 (grub_cmd_search): Handle platform-specific hints.
15167 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15168 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15169 (grub_util_biosdisk_data): Likewise.
15170 (grub_util_biosdisk_open): Set device_map.
15171 (read_device_map): Handle "" as indication of no map.
15172 Set device_map.
15173 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15174 (grub_util_biosdisk_get_compatibility_hint): New function.
15175 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15176 * include/grub/emu/hostdisk.h
15177 (grub_util_biosdisk_get_compatibility_hint): New proto.
15178 * util/grub-install.in: Don't call grub-mkdevicemap.
15179 Add platform-specific hint to load.cfg.
15180 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15181 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15182 hints. Set root preliminary to compatibility hint, not to OS name.
15183 * util/grub-probe.c (PRINT_*): Add hints.
15184 (print): Make static.
15185 (escape_of_path): New function.
15186 (guess_bios_drive): Likewise.
15187 (guess_efi_drive): Likewise.
15188 (guess_baremetal_drive): Likewise.
15189 (print_full_name): Likewise.
15190 (probe): Handle hints.
15191 (main): Likewise.
15192 * util/ieee1275/devicemap.c: Removed.
15193 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15194 updated.
15195 (grub_util_devname_to_ofpath): Return NULL on failure.
15196
15197 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15198 resource leak.
15199 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15200
15201 * po/POTFILES.in: Regenerated.
15202
15203 Allow purely long options
15204
15205 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15206 (SHORT_ARG_USAGE): Likewise.
15207 (grub_arg_show_help): Compare opt with help_options.
15208 (parse_option): Receive opt as argument. If makes big simplificatons.
15209 All users updated
15210
15211 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15214 Restructure to avoid warning.
15215
15216 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15217
15218 * util/grub-install.in: Account for possible escaped comma in device
15219 name.
15220
15221 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15222
15223 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15224 channel.
15225
15226 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15227
15228 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15229 allocation and zero-setting.
15230 (grub_ieee1275_get_devname): Check that alias is complete.
15231
15232 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15235 unaligned segments.
15236
15237 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15240 prefix.
15241 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15242 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15243 Add ieee1275 prefix.
15244
15245 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15246
15247 * docs/grub.texi (Filesystems): Update.
15248
15249 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15250
15251 Support odc, newc and bigendian cpio formats.
15252
15253 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15254 * grub-core/Makefile.core.def (newc): New module.
15255 (odc): Likewise.
15256 (cpio_be): Likewise.
15257 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15258 (MAGIC): Likewise.
15259 (MAGIC2): Likewise.
15260 (head) [MODE_ODC]: Adapt for the format.
15261 (head) [MODE_NEWC]: Likewise.
15262 (head) [!MODE_*]: Write fields of interest as arrays.
15263 (MAGIC_USTAR): Removed.
15264 (read_number) [MODE_NEWC]: Change to hex.
15265 (read_number) [!MODE_*]: Parse binary arrays.
15266 (grub_cpio_find_file): Factor out the code for better structure and
15267 always use read_number.
15268 (grub_cpio_mount): Use MAGIC and MAGIC2.
15269 (grub_cpio_dir): Exit on first hook non-0 return.
15270 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15271 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15272 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15273 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15274 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15275 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15276 * grub-core/fs/newc.c: New file.
15277 * grub-core/fs/odc.c: Likewise.
15278 * grub-core/fs/cpio_be.c: Likewise.
15279
15280 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 Fix handling of tar numbers occupying the whole field.
15283
15284 * grub-core/fs/cpio.c (read_number): New function.
15285 (grub_cpio_find_file): Use read_number instead of strtoull.
15286
15287 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15288
15289 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15290 occupying the whole field size.
15291
15292 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15293
15294 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15295
15296 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15297
15298 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15299
15300 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15301
15302 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15303 TARGET_IMG_LDFLAGS.
15304
15305 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15308 (mountinfo_entry): Increase the field size to take escaping into
15309 account.
15310 (find_root_device_from_libzfs): Add one byte to size of strings for
15311 security.
15312
15313 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15316 an assert.
15317 * util/grub-setup.c (setup): Likewise.
15318
15319 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15320
15321 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15322 _LzmaDecodeA.
15323
15324 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 * docs/grub.texi (Internationalisation): New section.
15327
15328 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15329
15330 * docs/grub.texi (Loopback booting): New section.
15331
15332 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15333
15334 * util/grub-mkstandalone.in: Fix minor typo errors.
15335
15336 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15339
15340 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15341 net/icmp.c and net/icmp6.c.
15342 (http): New module.
15343 (priority_queue): Likewise.
15344 * grub-core/io/bufio.c: Rewritten.
15345 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15346 TYPE_WITH_CONFIGFILE_OPTION.
15347 (legacy_commands): Add bootp and dhcp.
15348 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15349 (grub_legacy_parse): Likewise.
15350 * grub-core/lib/priority_queue.c: New file.
15351 * grub-core/net/arp.c: Add missing license header.
15352 (arp_find_entry): Removed.
15353 (arp_find_entry): Likewise.
15354 (grub_net_arp_resolve): Rename to ...
15355 (grub_net_arp_send_request): ...this.
15356 (grub_net_arp_receive): New card argument.
15357 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15358 Set router and DNS server.
15359 (grub_net_configure_by_dhcp_ack): Handle routing information.
15360 (grub_cmd_bootp): Set checksum.
15361 (grub_bootp_init): Remove net_dhcp.
15362 * grub-core/net/dns.c: New file.
15363 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15364 completion.
15365 (get_card_packet): Handle allocation.
15366 (grub_efinet_findcards): Set mtu.
15367 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15368 (get_card_packet): Handle allocation.
15369 (emucard): Set mtu.
15370 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15371 (GRUB_MOD_INIT): Set mtu.
15372 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15373 mtu.
15374 (get_card_packet): Handle allocation.
15375 (grub_ofnet_findcards): Set mtu.
15376 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15377 assert.
15378 (grub_net_recv_ethernet_packet): Handle IPv6.
15379 * grub-core/net/http.c: New file.
15380 * grub-core/net/icmp.c: Likewise.
15381 * grub-core/net/icmp6.c: Likewise.
15382 * grub-core/net/ip.c (ip6addr): New type.
15383 (ip6hdr): Likewise.
15384 (reassemble): Likewise.
15385 (cmp): New function.
15386 (reassembles): New variable.
15387 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15388 (id): New variable.
15389 (send_fragmented): New function.
15390 (grub_net_send_ip_packet): Rename to ...
15391 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15392 Handle non-UDP.
15393 (grub_net_recv_ip_packets): Rename to ...
15394 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15395 (free_rsm): New function.
15396 (free_old_fragments): Likewise.
15397 (grub_net_recv_ip4_packets): New function.
15398 (grub_net_send_ip6_packet): Likewise.
15399 (grub_net_send_ip_packet): Likewise.
15400 (grub_net_recv_ip6_packets): Likewise.
15401 (grub_net_recv_ip_packets): Likewise.
15402 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15403 (LINK_LAYER_CACHE_SIZE): New const.
15404 (link_layer_find_entry): New function.
15405 (grub_net_link_layer_add_address): Likewise.
15406 (grub_net_link_layer_resolve_check): Likewise.
15407 (grub_net_link_layer_resolve): Likewise.
15408 (grub_net_ipv6_get_slaac): Likewise.
15409 (grub_net_ipv6_get_link_local): Likewise.
15410 (grub_cmd_ipv6_autoconf): Likewise.
15411 (parse_ip): Handle one number representation.
15412 (parse_ip6): New functoion.
15413 (match_net): Handle IPv6.
15414 (grub_net_resolve_address): Handle IPv6 and DNS.
15415 (grub_net_resolve_net_address): Handle IPv6.
15416 (route_cmp): New function.
15417 (grub_net_route_address): Find best route.
15418 (grub_net_addr_to_str): Handle IPv6.
15419 (grub_net_addr_cmp): New function.
15420 (grub_net_add_addr): Register local route.
15421 (print_net_address): Handle net address.
15422 (grub_net_poll_cards): Retransmit TCP.
15423 (grub_net_poll_cards_idle_real): Likewise.
15424 (have_ahead): New function.
15425 (grub_net_seek_real): Use underlying seek.
15426 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15427 * grub-core/net/tcp.c: New file.
15428 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15429 (cmp): New function.
15430 (ack): Likewise.
15431 (tftp_receive): Handle unordered input.
15432 (destroy_pq): New function.
15433 (tftp_close): Close pq.
15434 * grub-core/net/udp.c: Put missing license header.
15435 (grub_net_udp_socket): New function.
15436 (udp_socket_register): Likewise.
15437 (grub_net_udp_close): Likewise.
15438 (grub_net_recv_udp_packet): Check checksum.
15439 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15440 * include/grub/misc.h (grub_memchr): New function.
15441 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15442 (grub_net_card_driver): Return buf in recv.
15443 (grub_net_slaac_mac_list): New struct.
15444 (grub_network_level_protocol_id): Add ipv6.
15445 (grub_net_network_level_addr): Likewise.
15446 (grub_net_network_level_net_addr): Likewise.
15447 (grub_net_app_protocol): Add seek.
15448 (grub_net_socket): Removed.
15449 (grub_net_sockets): Likewise.
15450 (grub_net_socket_register): Likewise.
15451 (grub_net_socket_unregister): Likewise.
15452 (FOR_NET_SOCKETS): Likewise.
15453 (grub_net_add_addr): Add const.
15454 (GRUB_NET_BOOTP_*): New enum.
15455 (grub_net_addr_cmp): New proto.
15456 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15457 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15458 (grub_net_hwaddr_to_str): NEw proto.
15459 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15460 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15461 (grub_dns_init): New proto.
15462 (grub_dns_fini): Likewise.
15463 (grub_net_tcp_retransmit): Likewise.
15464 (grub_net_link_layer_add_address): Likewise.
15465 (grub_net_link_layer_resolve_check): Likewise.
15466 (grub_net_link_layer_resolve): Likewise.
15467 (grub_net_dns_lookup): Likewise.
15468 (grub_net_add_dns_server): Likewise.
15469 (grub_net_remove_dns_server): Likewise.
15470 (GRUB_NET_TRIES): New const.
15471 (GRUB_NET_INTERVAL): Likewise.
15472 * include/grub/net/arp.h: Mostly rewritten.
15473 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15474 * include/grub/net/ip.h: Mostly rewritten.
15475 * include/grub/net/netbuff.h: Indent.
15476 * include/grub/net/tcp.h: New file.
15477 * include/grub/net/udp.h: Mostly rewritten.
15478 * include/grub/priority_queue.h: New file.
15479 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15480 (grub_swap_bytes64_compile_time): Likewise.
15481 (grub_cpu_to_be16_compile_time): Likewise.
15482 (grub_cpu_to_be32_compile_time): Likewise.
15483 (grub_cpu_to_be64_compile_time): Likewise.
15484 (grub_be_to_cpu64_compile_time): Likewise.
15485
15486 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15489 UINT_TO_PTR with cast.
15490
15491 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15492
15493 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15494 don't use them.
15495
15496 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15497
15498 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15499 already there.
15500
15501 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15502
15503 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15504 confusing ipxe.
15505
15506 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15509 Add missing const attribute.
15510 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15511 Likewise.
15512 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15513 Likewise.
15514
15515 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15516
15517 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15518 misaligned access.
15519 (serpent_setkey): Likewise.
15520 (serpent_encrypt_internal): Likewise.
15521 (serpent_decrypt_internal): Likewise.
15522 (serpent_encrypt): Don't put an alignment-increasing cast.
15523 (serpent_decrypt): Likewise.
15524 (serpent_test): Likewise.
15525
15526 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15529
15530 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15533
15534 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15535 grub_addr_t casts.
15536 (PTR_TO_UINT64): Likewise.
15537 (PTR_TO_UINT32): Likewise.
15538
15539 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15540
15541 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15542 because of stack.
15543 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15544 limit.
15545
15546 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15547
15548 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15549 text_width > available width a bit more gracefully.
15550
15551 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15554 current address calculation.
15555
15556 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15557
15558 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15559 stack.
15560 (encode_block): Likewise.
15561
15562 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15563
15564 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15565 certainety.
15566
15567 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15568
15569 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15570 non-RS part to avoid RS messing with GDT.
15571 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15572 Increase to suit in realmode routines.
15573
15574 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15575
15576 * grub-core/kern/i386/realmode.S: Increase alignment.
15577 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15578
15579 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15580
15581 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15582 be deterministic.
15583 (syndroms): Compute 0 syndrom.
15584 (rs_recover): Use 0 syndrom.
15585
15586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15589
15590 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15591
15592 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15593 brackets.
15594
15595 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15596
15597 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15598 account.
15599 (get_top_pad): Likewise.
15600 (get_right_pad): Likewise.
15601 (get_bottom_pad): Likewise.
15602
15603 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15606
15607 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15608
15609 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15610 attribute as the structure isn't guaranteed to be properly aligned.
15611 (grub_efi_pci_device_path): Likewise.
15612 (grub_efi_pccard_device_path): Likewise.
15613 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15614 specify the size of `memory_type'.
15615 (grub_efi_vendor_device_path): Likewise.
15616 (grub_efi_controller_device_path): Likewise.
15617 (grub_efi_acpi_device_path): Likewise.
15618 (grub_efi_expanded_acpi_device_path): Likewise.
15619 (grub_efi_atapi_device_path): Likewise.
15620 (grub_efi_scsi_device_path): Likewise.
15621 (grub_efi_fibre_channel_device_path): Likewise.
15622 (grub_efi_1394_device_path): Likewise.
15623 (grub_efi_usb_device_path): Likewise.
15624 (grub_efi_usb_class_device_path): Likewise.
15625 (grub_efi_i2o_device_path): Likewise.
15626 (grub_efi_mac_address_device_path): Likewise.
15627 (grub_efi_ipv4_device_path): Likewise.
15628 (grub_efi_ipv6_device_path): Likewise.
15629 (grub_efi_infiniband_device_path): Likewise.
15630 (grub_efi_uart_device_path): Likewise.
15631 (grub_efi_vendor_messaging_device_path): Likewise.
15632 (grub_efi_hard_drive_device_path): Likewise.
15633 (grub_efi_cdrom_device_path): Likewise.
15634 (grub_efi_vendor_media_device_path): Likewise.
15635 (grub_efi_file_path_device_path): Likewise.
15636 (grub_efi_protocol_device_path): Likewise.
15637 (grub_efi_piwg_device_path): Likewise.
15638 (grub_efi_bios_device_path): Likewise.
15639
15640 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15641
15642 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15643 (grub_ucs4_to_utf8_alloc): Likewise.
15644 (grub_ucs4_to_utf8): Likewise.
15645 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15646 (grub_ucs4_to_utf8_alloc): Likewise.
15647
15648 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 AFFS never uses unicode.
15651
15652 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15653 (grub_latin1_to_utf8): New inline function.
15654 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15655
15656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15657
15658 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15659 overflow.
15660
15661 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15662
15663 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15664 (grub_squash_dirent_header): Likewise.
15665 (read_chunk): Don't double swap.
15666 (grub_squash_iterate_dir): Fix swap sizes.
15667
15668 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15671
15672 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15673
15674 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15675 (grub_hfs_iterate_dir): Likewise.
15676
15677 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15678
15679 Fix video on platforms where unaligned access is forbidden.
15680 Make several optimisations while on it.
15681
15682 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15683 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15684 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15685 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15686 Disable.
15687 (grub_video_fbblit_replace_16bit_1bit):
15688 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15689 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15690 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15691 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15692 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15693 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15694 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15695 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15696 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15697 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15698 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15699 (grub_video_fbblit_replace_index_RGB888): Likewise.
15700 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15701 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15702 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15703 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15704 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15705 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15706 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15707 Disable.
15708 (grub_video_fbblit_blend_XXX565_1bit):
15709 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15710 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15711 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15712 void *.
15713 * grub-core/video/fb/video_fb.c (common_blitter)
15714 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15715 (grub_video_fb_create_render_target_from_pointer)
15716 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15717 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15718 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15719 definition.
15720 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15721
15722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15725 HH22 and HM10 relocations.
15726
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15728
15729 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15730
15731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15732
15733 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15734 allocation succeeded.
15735
15736 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15739 argument a u8 pointer. All users updated.
15740 Handle unaligned buffers.
15741
15742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15743
15744 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15745 add_part to workaround compiler bug.
15746
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15750
15751 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15754 Reserve alignment invariants.
15755 (grub_multiboot_load): Likewise.
15756 (retrieve_video_parameters): Likewise.
15757 (grub_multiboot_make_mbi): Likewise.
15758
15759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15760
15761 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15762 incorrect pointer.
15763
15764 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15767 (grub_pata_pio_write): Likewise.
15768
15769 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15770
15771 Add noreturn attributes and remove unreachable code.
15772
15773 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15774 code.
15775 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15776 code. Mark as noreturn.
15777 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15778 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15779 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15780 unreachable code.
15781 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15782 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15783 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15784 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15785 * include/grub/kernel.h (grub_main): Mark as noreturn.
15786 * include/grub/reader.h (grub_rescue_run): Likewise.
15787
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15789
15790 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15791 redundant declaration.
15792
15793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15796 redundant declaration.
15797 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15798
15799 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15802 to ensure alignment.
15803 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15804 alignment. Ensure tmp alignment.
15805 (grub_cmd_hdparm): Ensure buf alignment.
15806 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15807 to ensure alignment.
15808 (grub_ata_dumpinfo): Ensure text alignment.
15809 (grub_atapi_identify): Preserve alignment invariant.
15810 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15811
15812 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15813
15814 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15815 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15816 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15817 * include/grub/misc.h (grub_reboot)
15818 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15819 (grub_halt) [__mips__]: Likewise.
15820
15821 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15822
15823 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15824 Remove redundant declaration.
15825 (grub_mmap_get_post64): Likewise.
15826 (grub_mmap_get_upper): Likewise.
15827 (grub_mmap_get_lower): Likewise.
15828
15829 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15832 uint32_t * to ensure alignment.
15833 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15834
15835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15836
15837 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15838 uint16_t * to ensure alignment.
15839 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15840 alignment.
15841
15842 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15843
15844 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15845 to ensure alignment.
15846 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15847
15848 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15851 Handle unaligned pointers.
15852 (u32at): Likewise.
15853 (u64at): Likewise.
15854 (fixup): Use byte access instead of v16at.
15855 (find_attr): Fix imporper usage of v32at.
15856 (read_data): Likewise.
15857 (list_file): Handle byte-swapping and unaligned strings.
15858 (grub_ntfs_label): Likewise.
15859
15860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15863 as it's not necessarily aligned.
15864
15865 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15866
15867 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15868 redundant declaration.
15869 (grub_serial_init): Likewise.
15870 (grub_terminfo_init): Likewise.
15871
15872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15873
15874 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15875 function.
15876 (ZAP_HASH_IDX): Likewise.
15877 (ZAP_LEAF_HASH_SHIFT): Likewise.
15878 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15879 (LEAF_HASH): Likewise.
15880 (ZAP_LEAF_NUMCHUNKS): Likewise.
15881 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15882 alignment invariants. Return pointer. All users updated.
15883 (ZAP_LEAF_ENTRY): Make into inline function.
15884 (NBBY): Removed.
15885 (xor): LIkewise.
15886 (xor_out): Use grub_crypto_xor.
15887 (dnode_get_path): Use grub_get_unaligned.
15888 (nvlist_find_value): Likewise.
15889 (grub_zfs_nvlist_lookup_uint64): Likewise.
15890 (grub_zfs_nvlist_lookup_string): Likewise.
15891 (get_nvlist_size): Likewise.
15892 (grub_zfs_open): Likewise.
15893 (fill_fs_info): Likewise.
15894 (grub_zfs_dir): Likewise.
15895 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15896 alignment invariants.
15897 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15898 necessarily aligned.
15899
15900 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15901
15902 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15903
15904 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15905
15906 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15907 arithmetic to conserve alignment invariants.
15908
15909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15910
15911 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15912 redundant declaration.
15913 (grub_efiemu_mm_obtain_request): Likewise.
15914 (grub_efiemu_prepare): Likewise.
15915
15916 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15917
15918 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15919 to match types.
15920
15921 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15924 case of aunaligned recptr.
15925 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15926 alignment.
15927 (grub_hfsplus_btree_search): Handle unaligned index.
15928
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15930
15931 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15932 to get freetag and skip.
15933
15934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15937 array.
15938 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15939 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15940
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15944 name for checksum and fix allocation algorithm.
15945
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * include/grub/types.h (grub_properly_aligned_t): New type.
15949 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15950 (grub_get_unaligned16): Add explicit casts.
15951 (grub_get_unaligned32): Likewise.
15952 (grub_get_unaligned64): Likewise.
15953 (grub_set_unaligned16): New function.
15954 (grub_set_unaligned32): Likewise.
15955
15956 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15957
15958 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15959
15960 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15961
15962 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15963 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15964 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15965
15966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15967
15968 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15969 conditionals.
15970
15971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15972
15973 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15974 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
15975
15976 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15977
15978 Unify and improve RAID and crypto xor.
15979
15980 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
15981 changed to grub_crypto_xor
15982 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
15983 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
15984 Use bigger types when possible.
15985
15986 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * grub-core/disk/raid.c (scan_devices): Fix condition.
15989
15990 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15991
15992 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
15993 Make name a const ptr.
15994
15995 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15996
15997 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
15998 first argument a const pointer.
15999 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16001 proto.
16002 (grub_children_iterate): Likewise.
16003 (grub_machine_mmap_iterate): Remove redundant declaration.
16004
16005 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16006
16007 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16008 (grub_cmd_acpi) [!x86]: Disable EBDA.
16009
16010 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16011
16012 Enable UTF8 in gnulib regexp.
16013
16014 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16015 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16016 (isupper): Use grub_isupper.
16017 (isascii): New inline function.
16018 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16019 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16020 * grub-core/normal/charset.c (grub_utf8_process): New function.
16021 (grub_utf8_to_utf16): Use grub_utf8_process.
16022 (grub_encode_utf8_character): New function.
16023 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16024 * include/grub/charset.h (grub_utf8_process): New declaration.
16025 (grub_encode_utf8_character): Likewise.
16026 * include/grub/misc.h (grub_islower): New inline function.
16027 (grub_isupper): Likewise.
16028 (grub_strchrsub): Moved down to fix the definitions.
16029
16030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16033 specification.
16034
16035 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * include/grub/loader.h (grub_loader_register_preboot_hook):
16038 Use struct preboot * and not void * for handle. All users updated.
16039 (grub_loader_unregister_preboot_hook): Likewise.
16040
16041 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16042
16043 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16044 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16045 UTF-16-BE. All users updated.
16046 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16047 (grub_hfsplus_iterate_dir): Likewise.
16048 (grub_hfsplus_label): Likewise.
16049
16050 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16051
16052 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16053
16054 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16055
16056 Add missing const qualifiers.
16057
16058 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16059 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16060 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16061 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16062 (grub_lvm_check_flag): Likewise.
16063 * grub-core/efiemu/i386/coredetect.c
16064 (grub_efiemu_get_default_core_name): Likewise
16065 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16066 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16067 * grub-core/fs/ntfs.c (fixup): Likewise.
16068 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16069 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16070 (fzap_lookup): Likewise.
16071 (zap_lookup): Likewise.
16072 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16073 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16074 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16075 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16076 (grub_freebsd_add_meta_module): Likewise.
16077 (grub_cmd_freebsd_module): Likewise.
16078 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16079 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16080 (grub_xnu_writetree_get_size): Likewise.
16081 (grub_xnu_writetree_toheap_real): Likewise.
16082 (grub_xnu_find_key): Likewise.
16083 (grub_xnu_create_key): Likewise.
16084 (grub_xnu_create_value): Likewise.
16085 (grub_xnu_register_memory): Likewise.
16086 (grub_xnu_check_os_bundle_required): Likewise.
16087 (grub_xnu_scan_dir_for_kexts): Likewise.
16088 (grub_xnu_load_kext_from_dir): Likewise.
16089 * grub-core/normal/color.c (color_list): Likewise.
16090 * grub-core/normal/completion.c (current_word): Likewise.
16091 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16092 * grub-core/term/serial.c (grub_serial_find): Likewise.
16093 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16094 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16095 Likewise.
16096 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16097 (grub_freebsd_add_meta_module): Likewise.
16098 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16099 * include/grub/net.h (grub_net_card_driver): Likewise.
16100 (grub_net_card): Likewise.
16101 (grub_net_app_protocol): Likewise.
16102 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16103 * include/grub/serial.h (grub_serial_find): Likewise.
16104 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16105 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16106 (grub_xnu_create_value): Likewise.
16107 (grub_xnu_find_key): Likewise.
16108 (grub_xnu_scan_dir_for_kexts): Likewise.
16109 (grub_xnu_load_kext_from_dir): Likewise.
16110
16111 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16112 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16113 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16114 Moved from here ...
16115 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16116
16117 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16118
16119 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16120
16121 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16122
16123 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16124 (read_device): Fix size calculation.
16125
16126 2011-11-25 Robert Millan <rmh@gnu.org>
16127
16128 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16129 (find_root_device_from_libzfs): Add zpool output parser to be used
16130 as fallback when libzfs isn't available.
16131
16132 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16133
16134 * po/Makefile.in.in: Add missing escape-continuation.
16135
16136 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16139
16140 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16143
16144 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16145
16146 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16147
16148 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16151
16152 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * grub-core/lib/adler32.c: Add missing license specification.
16155 * grub-core/lib/crc64.c: Likewise.
16156 * grub-core/loader/i386/pc/plan9.c: Likewise.
16157 * grub-core/partmap/plan.c: Likewise.
16158
16159 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16160
16161 Add facility to debug GRUB with gdb under qemu.
16162
16163 * grub-core/gdb_grub.in: New file.
16164 * grub-core/gmodule.pl.in: Likewise.
16165 * grub-core/Makefile.core.def (gmodule.pl): New script.
16166 (gdb_grub): Likewise.
16167
16168 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16169
16170 * util/grub-mount.c (argp_parser): Accept relative pathes.
16171 * util/grub-fstest.c (argp_parser): Likewise.
16172
16173 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 Plan9 support.
16176
16177 * Makefile.util.def (libgrubmods): Add
16178 grub-core/partmap/plan.c.
16179 * docs/grub.texi: Notice Plan9 support.
16180 * grub-core/Makefile.core.def (plan9): New module.
16181 (part_plan): Likewise.
16182 * grub-core/loader/i386/pc/plan9.c: New file.
16183 * grub-core/partmap/plan.c: Likewise.
16184 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16185 define.
16186 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16187 * include/grub/mm.h (grub_extend_alloc): New inline function.
16188
16189 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16190
16191 Make Reed-Solomon faster by using power of generator representation of
16192 GF(256)*.
16193
16194 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16195 (gf_double_t): Likewise.
16196 (gf_invert): Removed.
16197 (gf_powx): New array.
16198 (gf_powx_inv): Likewise.
16199 (scratch): Move higher.
16200 (gf_reduce): Removed.
16201 (gf_mul): Use powx.
16202 (gf_invert): Likewise.
16203 (init_inverts): Replaced with ...
16204 (init_powx): ...this. All users updated.
16205 (pol_evaluate): Replace multiplications with additions.
16206 (rs_encode): Likewise.
16207 (gauss_eliminate): Call gf_invert.
16208 (grub_reed_solomon_add_redundancy): Call init_powx.
16209 (grub_reed_solomon_recover): Call init_powx unconditionally.
16210
16211 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16212
16213 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16214
16215 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16216
16217 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16218 disk->partiton for safety.
16219
16220 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16221
16222 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16223 Fix a memory leak.
16224 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16225
16226 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16227
16228 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16229
16230 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16231
16232 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16233
16234 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16235
16236 Fix spaces handling in proc/self/mountinfo.
16237
16238 * util/getroot.c (unescape): New function.
16239 (grub_find_root_device_from_mountinfo): Use unescape.
16240
16241 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 Support ZFS embedding.
16244
16245 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16246 (grub_zfs_fs): Register grub_zfs_embed.
16247
16248 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16249
16250 Fix MIPS compilation.
16251
16252 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16253 * include/grub/offsets.h: Rename decompressor fields from
16254 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16255 * util/grub-mkimage.c (image_targets): Use new names.
16256
16257 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 Defer multiboot device parsing until we're in compressed part.
16260
16261 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16262 bsd_part. setdevice has fallen into disuse.
16263 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16264 (bsd_part): Likewise.
16265 (boot_dev): New variable.
16266 (multiboot_trampoline): Don't parse multiboot device.
16267 Pass multiboot device in %edx.
16268 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16269 grub_boot_device.
16270 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16271 Likewise.
16272 * grub-core/kern/i386/pc/startup.S: Save edx.
16273 (grub_boot_drive): Removed.
16274 (grub_install_dos_part): Likewise.
16275 (grub_install_bsd_part): Likewise.
16276 (grub_boot_device): New variable.
16277 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16278 (grub_install_bsd_part): Likewise.
16279 (grub_boot_drive): Likewise.
16280 (grub_boot_device): New variable.
16281 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16282 Removed.
16283 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16284 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16285 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16286 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16287 * util/grub-install.in: Remove redundant condition.
16288
16289 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16290
16291 Fix bug introduced by previous commit.
16292
16293 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16294
16295 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16296
16297 Use decompressors framework on i386-pc. It increases core size
16298 by 46 bytes but improves compatibility and maintainability.
16299
16300 * grub-core/Makefile.core.def (lzma_decompress): New image.
16301 (kernel): Add i386_pc_ldflags.
16302 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16303 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16304 to real_to_prot, prot_to_real and device info.
16305 * include/grub/offsets.h: Renamed decompressor offsets.
16306 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16307 (image_target_desc): Remove raw_size and rename decompressor fields.
16308 (compress_kernel): Handle lzma.
16309 (generate_image): Handle decompressors on i386-pc.
16310
16311 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16312
16313 * configure.ac: Add -fno-asynchronous-unwind-tables.
16314
16315 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16316
16317 Move assembly code to C by using intwrap. It increases core size
16318 by 88 bytes but improves compatibility and maintainability.
16319
16320 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16321 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16322 ... here. Translated to C.
16323 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16324 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16325 ... here. Translated to C.
16326 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16327 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16328 ... here. Translated to C.
16329 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16330 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16331 ... here. Translated to C.
16332 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16333 * grub-core/term/i386/pc/console.c (grub_console_cls):
16334 ... here. Translated to C.
16335 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16336 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16337 ... here. Translated to C.
16338 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16339 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16340 Translated to C.
16341 * grub-core/term/i386/pc/console.c (int10_9): New function.
16342 (grub_console_putchar): Likewise.
16343 * include/grub/i386/pc/console.h: Removed the not anymore shared
16344 functions.
16345
16346 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16347
16348 Move grub_chainloader_real_boot out of the kernel.
16349
16350 * grub-core/Makefile.am: Remove machine/loader.h.
16351 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16352 Removed.
16353 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16354 variable.
16355 (grub_relocator16_keep_a20_enabled): Likewise.
16356 (grub_relocator16_boot): Fill new variables.
16357 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16358 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16359 relocator.
16360 (grub_chainloader_unload): Likewise.
16361 (grub_chainloader_cmd): Likewise.
16362 * include/grub/i386/pc/loader.h: Removed.
16363 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16364 and esi. All initialisers updated.
16365
16366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16367 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16368
16369 * Makefile.util.def (grub-mount): New util.
16370 * .bzrignore: Add grub-mount.
16371 * configure.ac: Check for fuse and enable grub-mount if available.
16372 * docs/man/grub-mount.h2m: New file.
16373 * util/grub-mount.c: Likewise.
16374
16375 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 * grub-core/commands/efi/fixvideo.c: Gettextize.
16378 * grub-core/commands/hashsum.c: Likewise.
16379 * grub-core/commands/i386/cmostest.c: Likewise.
16380 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16381 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16382 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16383 * grub-core/commands/lsmmap.c: Likewise.
16384 * grub-core/commands/menuentry.c: Likewise.
16385 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16386 * grub-core/commands/setpci.c: Likewise.
16387 * grub-core/loader/i386/bsd.c: Likewise.
16388 * grub-core/loader/i386/linux.c: Likewise.
16389 * util/getroot.c: Likewise.
16390 * util/grub-editenv.c: Likewise.
16391 * util/grub-fstest.c: Likewise.
16392 * util/grub-mkfont.c: Likewise.
16393 * util/grub-mkimage.c: Likewise.
16394 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16395 * util/grub-pe2elf.c: Likewise.
16396 * util/grub-probe.c: Likewise.
16397 * util/grub-setup.c: Likewise.
16398 * util/ieee1275/ofpath.c: Likewise.
16399 * util/misc.c: Likewise.
16400 * util/raid.c: Likewise.
16401
16402 2011-11-11 Robert Millan <rmh@gnu.org>
16403
16404 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16405 __attribute__((unused)) from `os_dev', which *is* being used.
16406
16407 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16408
16409 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16410 forgotten define.
16411 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16412 GRUB_IA64_DL_GOT_ALIGN.
16413 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16414 GRUB_IA64_DL_TRAMP_ALIGN.
16415
16416 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 Replace grub_fatal with normal errors in i386 linux loader.
16419
16420 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16421 (allocate_pages): Check find_efi_mmap_size return value.
16422 (grub_e820_add_region): Return error.
16423 (grub_linux_boot): Check mmap return value.
16424
16425 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16426
16427 * grub-core/commands/acpihalt.c: Gettextized.
16428 * grub-core/commands/cacheinfo.c: Likewise.
16429 * grub-core/commands/cmp.c: Likewise.
16430 * grub-core/commands/efi/loadbios.c: Likewise.
16431 * grub-core/commands/gptsync.c: Likewise.
16432 * grub-core/commands/ieee1275/suspend.c: Likewise.
16433 * grub-core/commands/legacycfg.c: Likewise.
16434 * grub-core/commands/memrw.c: Likewise.
16435 * grub-core/commands/minicmd.c: Likewise.
16436 * grub-core/commands/parttool.c: Likewise.
16437 * grub-core/commands/time.c: Likewise.
16438 * grub-core/commands/videoinfo.c: Likewise.
16439 * grub-core/disk/geli.c: Likewise.
16440 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16441 * grub-core/disk/luks.c: Likewise.
16442 * grub-core/disk/lvm.c: Likewise.
16443 * grub-core/font/font_cmd.c: Likewise.
16444 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16445 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16446 * grub-core/gfxmenu/view.c: Likewise.
16447 * grub-core/kern/emu/hostdisk.c: Likewise.
16448 * grub-core/kern/emu/main.c: Likewise.
16449 * grub-core/kern/emu/misc.c: Likewise.
16450 * grub-core/kern/emu/mm.c: Likewise.
16451 * grub-core/kern/mips/arc/init.c: Likewise.
16452 * grub-core/kern/mips/loongson/init.c: Likewise.
16453 * grub-core/kern/partition.c: Likewise.
16454 * grub-core/lib/i386/halt.c: Likewise.
16455 * grub-core/lib/mips/arc/reboot.c: Likewise.
16456 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16457 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16458 * grub-core/loader/i386/xnu.c: Likewise.
16459 * grub-core/loader/multiboot.c: Likewise.
16460 * grub-core/net/bootp.c: Likewise.
16461 * grub-core/net/net.c: Likewise.
16462 * grub-core/normal/term.c: Likewise.
16463 * grub-core/partmap/bsdlabel.c: Likewise.
16464 * grub-core/parttool/msdospart.c: Likewise.
16465 * grub-core/term/gfxterm.c: Likewise.
16466 * grub-core/term/terminfo.c: Likewise.
16467 * grub-core/video/i386/pc/vbe.c: Likewise.
16468 * util/grub-menulst2cfg.c: Likewise.
16469 * util/grub-mkdevicemap.c: Likewise.
16470 * util/grub-mklayout.c: Likewise.
16471 * util/grub-mkrelpath.c: Likewise.
16472 * util/grub-script-check.c: Likewise.
16473 * util/ieee1275/grub-ofpathname.c: Likewise.
16474 * util/resolve.c: Likewise.
16475
16476 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 Support %1$d syntax.
16479
16480 * tests/printf_unit_test.c: New file.
16481 * Makefile.util.def (printf_test): New test.
16482 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16483
16484 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16485
16486 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16487 fix.
16488
16489 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16490
16491 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16492 dprintf.
16493 * grub-core/font/font.c (grub_font_load): Likewise.
16494
16495 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16496
16497 * util/grub-macho2img.c: Add comment concerning gettext.
16498 * grub-core/lib/legacy_parse.c: Likewise.
16499
16500 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16503 (grub_xvasprintf): Likewise.
16504
16505 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 Add const keyword to grub_env_get and gettextize week days.
16508
16509 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16510 (grub_read_hook_datetime): Return const char *.
16511 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16512 updated.
16513 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16514 Mark for gettext.
16515 (grub_get_weekday_name): Return const char *. Call gettext.
16516 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16517 char * and len as the argument. All users updated.
16518 (grub_script_argv_split_append): Receive const char *.
16519 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16520 * include/grub/env.h (grub_env_get): Likewise.
16521 (grub_env_read_hook_t): Return const char *.
16522 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16523 (grub_script_argv_split_append): Likewise.
16524
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16526
16527 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16528
16529 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16530
16531 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16532 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16533
16534 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16537 Fix prototype.
16538
16539 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 Fix mips compilation.
16542
16543 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16544 normal decoder.
16545 (hashes): Use in embed decoder as well (for sizes).
16546 (dec_stream_header): Fix embed decompressor logic.
16547 (dec_stream_footer): Likewise.
16548
16549 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16550
16551 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16552 an error and not a fatal on unrecognised relocation types.
16553
16554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16557 Issue error rather than printf on unknown arguments.
16558
16559 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16562 Make buf a const.
16563
16564 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16567 Fix module name.
16568
16569 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16572 leftover debug printf.
16573
16574 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16575
16576 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16577
16578 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16579
16580 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16581 A stylistic fix.
16582
16583 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16584
16585 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16586
16587 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16588
16589 Allow all modules to perform serial IO
16590
16591 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16592 * include/grub/serial.h (grub_serial_port_configure): New inline
16593 function.
16594 (grub_serial_port_fetch): Likewise.
16595 (grub_serial_port_put): Likewise.
16596 (grub_serial_port_fini): Likewise.
16597 (grub_serial_find): New proto.
16598
16599 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 Put symlink at the end of the node and fix a potential
16602 memory corruption.
16603
16604 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16605 Make symlink into an array.
16606 (set_rockridge): Set have_symlink and alloc_dirents.
16607 (grub_iso9660_read_symlink): Use new layout.
16608 (grub_iso9660_iterate_dir): Fix memory corruption.
16609 Use new layout.
16610 (grub_iso9660_dir): Set have_symlink.
16611 (grub_iso9660_open): Likewise.
16612
16613 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16614
16615 Remove local keyword.
16616
16617 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16618 (version_test_gt): Likewise.
16619 (version_find_latest): Likewise.
16620 (gettext_printf): Likewise.
16621 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16622
16623 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16624
16625 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16626
16627 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16628
16629 Fix ZFS memory and resource leaks.
16630
16631 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16632 All users updated.
16633 Free type on exit.
16634 (fill_vdev_info): New parameter inserted. All users updated.
16635 (check_pool_label): Likewise.
16636 (scan_disk): Likewise.
16637 (scan_devices): Close non-inserted disks.
16638 (fzap_iterate): Free l.
16639 (unmount_device): Free children descripto memory.
16640
16641 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16644 argument (access out of bounds).
16645
16646 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16647
16648 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16649 >= 6 drives.
16650
16651 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16654 Fix declaration.
16655
16656 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 Fix several memory leaks.
16659
16660 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16661 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16662 (grub_cpio_dir): Likewise.
16663 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16664 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16665 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16666 (grub_romfs_label): Likewise.
16667 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16668 (squash_unmount): New function.
16669 (grub_squash_dir): Fix memory leak.
16670 (grub_squash_open): Likewise.
16671 (grub_squash_read): Likewise.
16672 (grub_squash_mtime): Likewise.
16673 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16674 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16675 * util/grub-fstest.c (fstest): Likewise.
16676
16677 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16680 avoid accessing beyond the array.
16681
16682 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16685
16686 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 Several AFFS fixes.
16689
16690 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16691 (GRUB_AFFS_FLAG_FFS): Removed.
16692 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16693 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16694 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16695 (grub_fshelp_node): Make block 32-bit.
16696 Add block_cache and last_block_cache.
16697 (grub_affs_read_block): Fill and use block cache.
16698 (grub_affs_read_file): Removed.
16699 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16700 boot block.
16701 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16702 safety.
16703 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16704 space.
16705 (grub_affs_close): Free block cache.
16706 (grub_affs_read): Use grub_fshelp_read_file directly.
16707
16708 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16711 with no error set.
16712
16713 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16716 used variable.
16717 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16718 Likewise.
16719
16720 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16721
16722 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16723
16724 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16725 byteswap when needed.
16726
16727 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16728
16729 Fix FreeBSD compilation.
16730
16731 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16732 to avoid circular dependency.
16733 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16734 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16735 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16736
16737 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16738
16739 Fix ZFS crypto error types.
16740
16741 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16742 (grub_gcm_decrypt): Likewise.
16743 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16744 from PBKDF2.
16745
16746 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 Illumos support.
16749
16750 * Makefile.util.def (10_illumos): New script.
16751 * configure.ac: Set COND_HOST_ILLUMOS.
16752 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16753 Support Illumos calls.
16754 (find_partition_start) [__sun__]: Likewise.
16755 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16756 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16757 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16758 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16759 device.
16760 * util/grub-probe.c (probe) [__sun__]: Do character check.
16761 * util/grub.d/10_illumos.in: New file.
16762
16763 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 Support escaped commas in hostdisk.
16766
16767 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16768 (find_grub_drive): Use unescape_cmp.
16769 (make_device_name): Escape commas.
16770
16771 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16774
16775 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16776
16777 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16778 variable.
16779
16780 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16781
16782 Support trampoline jumps on powerpc.
16783
16784 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16785 __ia64__ path.
16786 (grub_dl_load_segments): Set mod->sz.
16787 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16788 segments.
16789 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16790 (jump): Likewise.
16791 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16792 function.
16793 (trampoline): New struct.
16794 (trampoline_template): New const.
16795 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16796 * include/grub/dl.h (grub_dl): Add sz element.
16797 [__powerpc__]: Follow __ia64__.
16798 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16799 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16800 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16801 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16802
16803 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16804
16805 ZFS crypto support.
16806
16807 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16808 * grub-core/Makefile.core.def (zfscrypt): New module.
16809 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16810 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16811 it. All users updated.
16812 (grub_zfs_decrypt): New var.
16813 (grub_zfs_load_key): Likewise.
16814 (zio_checksum_functions): Add SHA256+MAC.
16815 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16816 (zio_read): Handle encrypted blocks.
16817 (zap_verify): Remove incorrect check.
16818 (fzap_iterate): Handle non-standard fzap.
16819 (zap_iterate): Likewise.
16820 (zap_iterate_u64): New function.
16821 (dnode_get_fullpath): Load keys.
16822 * grub-core/fs/zfs/zfscrypt.c: New file.
16823 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16824 (grub_crypto_ecb_encrypt): Make input const.
16825 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16826 (grub_crypto_ecb_encrypt): Make input const.
16827 (GRUB_CIPHER_AES): New macro.
16828 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16829 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16830 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16831 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16832 prefix. All users updated.
16833 (grub_zfs_add_key): New proto.
16834 (grub_zfs_decrypt): Likewise.
16835 (grub_zfs_load_key): Likewise.
16836 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16837 * util/grub-fstest.c (options): Add -K option.
16838 (argp_parser): Likewise.
16839
16840 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 Support zle compression on ZFS.
16843
16844 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16845 (decomp_table): Add zle.
16846 * include/grub/zfs/zio.h (zio_compress): Add zle.
16847
16848 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16849
16850 Support BtrFS embedding.
16851
16852 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16853 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16854 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16855 * util/grub-setup.c (setup): Use fs embedding if available.
16856 Add additional sanity check.
16857
16858 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16859
16860 * util/grub-install.in: Fix condition for config_opt.
16861
16862 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16863
16864 Support third redundancy strip on raidz3.
16865
16866 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16867 Return error on singularity. All users updated.
16868 (read_device): Don't stop on 3rd failure on raidz3.
16869
16870 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16871
16872 Support case-insensitive ZFS subvolumes.
16873
16874 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16875 All users updated.
16876 (zap_hash): Likewise.
16877 (name_cmp): New function.
16878 (zap_leaf_array_equal): New parameter case_insensitive.
16879 All users updated.
16880 (zap_leaf_lookup): Likewise.
16881 (fzap_lookup): Likewise.
16882 (zap_lookup): Likewise.
16883 (dnode_get_path): New parameter case_insensitive. Retrieve case
16884 sensitiviness of a volume. All users updated.
16885 (dnode_get_fullpath): New parameter case_insensitive.
16886 All users updated.
16887 (grub_zfs_dir): Set info.case_insensitiveness.
16888
16889 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16890
16891 Support second redundancy strip on raidz(2,3).
16892
16893 * grub-core/fs/zfs/zfs.c (powx): New array.
16894 (powx_inv): Likewise.
16895 (poly): New const.
16896 (xor_out): New function.
16897 (gf_mul): Likewise.
16898 (recovery): Likewise.
16899 (read_device): Use second redundancy strip.
16900
16901 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16902
16903 Use a power of generator representation of GF(256) multiplication group
16904 to save space time and complexity.
16905
16906 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16907 (raid6_table2): Likewise.
16908 (powx): New array.
16909 (powx_inv): Likewise.
16910 (poly): New const.
16911 (grub_raid_block_mul): Replace with ...
16912 (grub_raid_block_mulx): ...this.
16913 (grub_raid6_init_table): Rewritten.
16914 (grub_raid6_recover): Use power of generator representation.
16915
16916 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16917
16918 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16919 for the right device.
16920
16921 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16922
16923 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16924 expected by grub-mkimage and it's more clear since there is no implicit
16925 padding.
16926
16927 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16928
16929 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16930 disk.
16931 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16932
16933 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16934
16935 * util/grub-mkrescue.in: Fix handling xorriso option.
16936
16937 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16940 NULL.
16941
16942 2011-11-03 crocket <crockabiscuit@gmail.com>
16943
16944 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16945
16946 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16947
16948 XZ CRC64 and SHA256 support.
16949
16950 * Makefile.util.def (libgrubmods): Add crc64.c.
16951 * grub-core/Makefile.core.def (crc64): New module.
16952 * grub-core/lib/crc64.c: New file.
16953 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16954 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16955 Fix the type.
16956 (MAX_HASH_SIZE): New define.
16957 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16958 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16959 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16960 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16961 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16962 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16963 Handle non-crc32 hashes.
16964 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16965 (dec_stream_header): Handle non-crc32 hashes.
16966 (dec_stream_footer): Likewise.
16967 (dec_block_header): Likewise.
16968 (dec_main): Likewise.
16969 (xz_dec_init): Likewise.
16970 (xz_dec_reset): Likewise.
16971 (xz_dec_end): Likewise.
16972 * util/import_gcry.py: Add CRC64 line.
16973
16974 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16975
16976 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
16977 as well.
16978
16979 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 Make reiserfs label retrieval similar to other *_label functions.
16982
16983 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
16984 (REISERFS_MAX_LABEL_LENGTH): Removed.
16985 (REISERFS_LABEL_OFFSET): Likewise.
16986 (grub_reiserfs_label): Rewritten.
16987
16988 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16989
16990 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
16991 field.
16992
16993 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
16996
16997 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
16998
16999 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17000 drive failure on both raidz and raidz2.
17001
17002 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17003
17004 Fix RAIDZ(2) for >= 5 devices.
17005
17006 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17007 asize argument. All users updated.
17008
17009 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17010
17011 Fix RAIDZ(2).
17012
17013 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17014 (fill_vdev_info_real): Set ashift.
17015 (read_device): Rewrite RAIDZ part based on reverse engineering.
17016
17017 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17018
17019 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17020 don't report potentially unavialiable fields in debug output.
17021 (find_path): Fix double-free and memory leak.
17022
17023 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 Read label on UFS1.
17026
17027 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17028 (grub_ufs_fs): Always set .label.
17029
17030 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17031
17032 Use shifts in UFS.
17033
17034 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17035 (grub_ufs_data): New field log2_blksz.
17036 (grub_ufs_read_file): Use shifts.
17037 (grub_ufs_mount): Check block size and logarithm it.
17038
17039 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17040
17041 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17042 long symlinks.
17043
17044 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17045
17046 Handle symlinks and long names on tar and cpio.
17047
17048 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17049 (ATTR_FILE): Likewise.
17050 (ATTR_DIR): Likewise.
17051 (ATTR_LNK): Likewise.
17052 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17053 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17054 L and K entries.
17055 (grub_cpio_mount): Zero-fill data.
17056 (handle_symlink): New function.
17057 (grub_cpio_dir): Handle symlinks.
17058 (grub_cpio_open): Likewise.
17059 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17060
17061 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17062
17063 Fix iso9660 filename limitations and fix memory leaks.
17064
17065 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17066 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17067
17068 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 Fix JFS file name length limitations.
17071
17072 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17073 (grub_jfs_diropen): Fix maximum filename length.
17074 (grub_jfs_getent): Fix filename length.
17075 (grub_jfs_lookup_symlink): Fix size checks.
17076
17077 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17078
17079 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17080 string.
17081
17082 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 Leverage BFS implementation to read AFS.
17085
17086 * Makefile.util.def (libgrubmods): Add afs.c.
17087 * grub-core/Makefile.core.def (afs): New module
17088 * grub-core/fs/afs.c: New file.
17089 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17090
17091 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17092
17093 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17094
17095 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17096
17097 * grub-core/fs/bfs.c: Run indent.
17098
17099 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17100
17101 BFS implementation based on the specification.
17102
17103 * grub-core/fs/bfs.c: New file.
17104 * Makefile.util.def (libgrubmods): Add bfs.c.
17105 * grub-core/Makefile.core.def (bfs): New module.
17106
17107 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 * util/grub-fstest.c (cmd_cp): Clarify error message.
17110 (cmd_cmp): Likewise.
17111
17112 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17113
17114 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17115 and befs_be.
17116
17117 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 Remove afs and befs because of copyright problem.
17120
17121 * grub-core/fs/afs.c: Removed.
17122 * grub-core/fs/afs_be.c: Removed.
17123 * grub-core/fs/befs.c: Removed.
17124 * grub-core/fs/befs_be.c: Removed.
17125 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17126 * grub-core/Makefile.core.def (afs): Removed.
17127 (afs_be): Likewise.
17128 (befs): Likewise.
17129 (befs_be): Likewise.
17130
17131 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17132
17133 Prefer rockridge over Joliet.
17134
17135 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17136 to ...
17137 (set_rockridge): ... here.
17138 (grub_iso9660_mount): Check rockridge on the primary label when
17139 discovering. Ignore Joliet if Rockridge is present.
17140
17141 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17142
17143 Use shifts in nilfs2.
17144
17145 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17146 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17147 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17148 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17149 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17150 (grub_nilfs2_entries_per_block): Replaced with ...
17151 (grub_nilfs2_log_entries_per_block_log): ... this.
17152 (grub_nilfs2_blocks_per_group): Replaced with ...
17153 (grub_nilfs2_blocks_per_group_log): ... this.
17154 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17155 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17156 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17157 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17158 (grub_nilfs2_palloc_entry_offset): Replaced ...
17159 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17160 (grub_nilfs2_dat_translate): Use shifts.
17161 (grub_nilfs2_read_inode): Likewise.
17162 (GRUB_MOD_INIT): Ensure that logs are correct.
17163
17164 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17165
17166 Use shifts in minix filesystem.
17167
17168 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17169 (GRUB_MINIX_ZONE2SECT): Likewise.
17170 (grub_minix_data): Replace block_size with log_block_size.
17171 (grub_minix_read_file): Use shifts.
17172 (grub_minix_mount): Check block size and take a logarithm.
17173
17174 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17175
17176 Use shifts in squash4.
17177
17178 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17179 (squash_mount): Check block size and take logarithm.
17180 (direct_read): Use shifts.
17181
17182 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17183
17184 Correct befs block counting logic.
17185
17186 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17187 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17188 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17189 (grub_afs_read_inode): Use block_shift.
17190 (RANGE_SHIFT): New definition.
17191 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17192 unexpected conditions, use shifts and appropriate types.
17193 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17194
17195 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17196
17197 * grub-core/disk/raid.c (scan_devices): Check partition.
17198 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17199
17200 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 Support BFS (befs) UUID.
17203
17204 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17205 (grub_afs_small_data_element_header): New struct.
17206 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17207 (grub_afs_read_attribute) [MODE_BFS]: New function.
17208 (grub_afs_iterate_dir): Allocate for complete inode.
17209 (grub_afs_mount): Likewise.
17210 (grub_afs_uuid) [MODE_BFS]: New function.
17211 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17212
17213 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17214
17215 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17216 (zfs_unmount): Fix memory leak.
17217
17218 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17219
17220 Support NTFS reparse points.
17221
17222 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17223 (symlink_descriptor): New struct.
17224 (grub_ntfs_read_symlink): New function.
17225 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17226 (grub_ntfs_open): Likewise.
17227
17228 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17231
17232 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17233
17234 fstest xnu_uuid subcommand.
17235
17236 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17237 grub-core/commands/xnu_uuid.c.
17238 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17239 (fstest): Handle xnu_uuid.
17240 (options): Document xnu_uuid.
17241 (argp_parser): Parse xnu_uuid.
17242
17243 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17246 -l argument. Add newline at the end if printing.
17247 (GRUB_MOD_INIT): Document -l.
17248
17249 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17250
17251 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17252
17253 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17254
17255 ZFS multi-device and version 33 support.
17256
17257 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17258 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17259 (grub_zfs_data): Add multidev-ice-related fields.
17260 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17261 (dva_get_offset): Make dva const.
17262 (zfs_fetch_nvlist): New function.
17263 (fill_vdev_info_real): Likewise.
17264 (fill_vdev_info): Likewise.
17265 (check_pool_label): Likewise.
17266 (scan_disk): Likewise.
17267 (scan_devices): Likewise.
17268 (read_device): Likewise.
17269 (read_dva): Likewise.
17270 (zio_read_gang): Use read_dva.
17271 (zio_read_data): Likewise.
17272 (zap_leaf_lookup): Add missing endian conversion.
17273 (zap_verify): Add missing endian conversion. All users updated.
17274 (fzap_lookup): Likewise.
17275 (fzap_iterate): Likewise.
17276 (dnode_get_path): Handle SA bonus.
17277 (nvlist_find_value): Make input const. All users updated.
17278 (unmount_device): New function.
17279 (zfs_unmount): Use unmount_device.
17280 (zfs_mount): Use scan_disk.
17281 (zfs_mtime): New function.
17282 (grub_zfs_open): Handle system attributes.
17283 (fill_fs_info): Likewise.
17284 (grub_zfs_dir): Likewise.
17285 (grub_zfs_fs): Add mtime.
17286 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17287 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17288 (SA_MTIME_OFFSET): Likewise.
17289 (SA_SYMLINK_OFFSET): Likewise.
17290 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17291 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17292 (fstest): Support zfsinfo.
17293 (argp_parser): Likewise.
17294
17295 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17298 error.
17299
17300 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17301
17302 ZFS fixes.
17303
17304 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17305 sharing the same block. Iterate over correct number of indices.
17306 (dnode_get_path): Handle symlinks correctly.
17307
17308 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17311
17312 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17313
17314 Read label on HFS+.
17315
17316 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17317 (grub_hfsplus_btree_search): Fix types.
17318 (grub_hfsplus_label): Implement.
17319
17320 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17323
17324 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17327
17328 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17329
17330 Fix symlink handling on iso9660.
17331
17332 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17333 All users updated.
17334 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17335 (grub_iso9660_read_symlink): Moved most of code ...
17336 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17337
17338 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17341 Use union to avoid breaking strict-aliasing rules.
17342
17343 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17344
17345 Support multi-extent iso files.
17346
17347 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17348 Add node.
17349 (grub_fshelp_node): Revamp. All users updated.
17350 (FLAG_*): New enum.
17351 (read_node): New function.
17352 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17353 All users updated.
17354 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17355 (get_node_size): New function.
17356 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17357 entries.
17358 Fix memory leak on . and ..
17359 (grub_iso9660_read): Use read_node.
17360 (grub_iso9660_close): Free node.
17361
17362 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17363
17364 Fix tar 4G limit and handle paths containing dot.
17365
17366 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17367 (canonicalize): New function.
17368 (grub_cpio_find_file): Use canonicalize. Store offs in
17369 grub_disk_addr_t.
17370 (grub_cpio_dir): Use grub_disk_addr_t.
17371 (grub_cpio_open): Likewise.
17372
17373 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17374
17375 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17376
17377 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17378 unused flags.
17379 (grub_squash_inode): Add long_file and block_size.
17380 (grub_squash_cache_inode): New struct.
17381 (grub_squash_dirent): Make types into enum.
17382 (SQUASH_TYPE_LONG_REGULAR): New type.
17383 (grub_squash_frag_desc): Add field size.
17384 (SQUASH_BLOCK_FLAGS): New enum.
17385 (grub_squash_data): Use grub_squash_cache_inode.
17386 (grub_fshelp_node): Make ino_chunk 64-bit.
17387 (read_chunk): Minor argument change. All users updated.
17388 (squash_mount): Use correct le_to_cpu.
17389 (grub_squash_open): Handle LONG_REGULAR.
17390 (direct_read): New function.
17391 (grub_squash_read_data): Handle blocks correctly.
17392
17393 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17394
17395 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17396
17397 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17398
17399 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17400
17401 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17402
17403 Fix 2G limit on ZFS.
17404
17405 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17406 types.
17407 (uberblock_verify): Likewise.
17408 (dmu_read): Likewise.
17409 (grub_zfs_read): Likewise. Remove invalid cast.
17410
17411 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17412
17413 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17414 (grub_jfs_blkno): Fix incorrect shift.
17415 (grub_jfs_read_file): Use more appropriate types.
17416
17417 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17418
17419 Support triple indirect on minix2 and minix3.
17420
17421 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17422 Declare triple_indir_zone.
17423 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17424 indirect.
17425
17426 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 Minix FS fixes.
17429
17430 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17431 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17432 Rename ctime to mtime. All users updated.
17433 (grub_minix_get_file_block): Fix types and double indirect computations.
17434
17435 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17436
17437 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17438 if no label is found.
17439 (grub_fat_iterate_dir): Fix file size type.
17440 (grub_fat_iterate_dir): Likewise.
17441
17442 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17445 save some space.
17446 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17447 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17448
17449 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17450
17451 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17452
17453 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17454
17455 * util/import_gcry.py: Accept space between # and include.
17456
17457 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17460
17461 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17462
17463 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17464
17465 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17466 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17467 yylex_strncpy.
17468 * grub-core/script/yylex.l: Add fine-grained #pragma.
17469
17470 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17473 New inline function.
17474 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17475 Likewise.
17476 (memset) [GRUB_UTIL]: Likewise.
17477 (memcmp) [GRUB_UTIL]: Likewise.
17478
17479 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17480
17481 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17482 inline function rather than a define.
17483
17484 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17485
17486 * util/grub-setup.c: Add missing include.
17487
17488 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17489
17490 * util/ieee1275/grub-ofpathname.c: Add missing include.
17491
17492 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17493
17494 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17495 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17496 Likewise.
17497
17498 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17499
17500 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17501 grub_memcmp usage.
17502
17503 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * util/grub-install.in: Add datarootdir as per automake manual
17506 suggestion.
17507 * util/grub-mknetdir.in: Likewise.
17508
17509 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17510
17511 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17512 suggestion.
17513 * util/grub.d/10_kfreebsd.in: Likewise.
17514 * util/grub.d/10_linux.in: Likewise.
17515 * util/grub.d/10_netbsd.in: Likewise.
17516 * util/grub.d/10_windows.in: Likewise.
17517 * util/grub.d/20_linux_xen.in: Likewise.
17518
17519 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17520
17521 Remove redundant grub_kernel_image_size.
17522
17523 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17524 _edata and _start.
17525 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17526 the small code. It moves it only by few bytes but simplifies the code.
17527 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17528 _start.
17529 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17530 (grub_kernel_image_size): Removed.
17531 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17532 (grub_kernel_image_size): Removed.
17533 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17534 compiled with Apple toolchain.
17535 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17536 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17537 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17538 (grub_total_module_size): Likewise.
17539 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17540 Removed.
17541 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17542 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17543 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17544 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17545 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17546 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17547 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17548 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17549 Removed.
17550 (grub_total_module_size): Removed.
17551 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17552 (image_targets): Likewise.
17553 Set .compressed_size to no field on sparc.
17554 (generate_image): Remove kernel_image_size handling.
17555
17556 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17557
17558 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17559 NULL pointer dereference.
17560
17561 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17562
17563 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17564 done with a dedicated section.
17565
17566 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17567 Ensure the correct position of boot_path.
17568 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17569 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17570 other fields.
17571 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17572 * include/grub/boot.h: Removed. All references removed.
17573 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17574 Removed.
17575 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17576
17577 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17578
17579 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17580 name.
17581
17582 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17583
17584 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17585
17586 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17589 Don't add the bogus brackets.
17590
17591 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17592
17593 ExFAT support.
17594
17595 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17596 * grub-core/Makefile.core.def (exfat): New module.
17597 * grub-core/fs/exfat.c: New file.
17598 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17599 (GRUB_FAT_ATTR_*): Make into an enum.
17600 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17601 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17602 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17603 (GRUB_FAT_MAXFILE): Removed.
17604 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17605 (grub_current_fat_bpb_t): New type.
17606 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17607 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17608 (grub_fat_dir_node_t): New type.
17609 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17610 (fat_log2) [MODE_EXFAT]: Removed.
17611 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17612 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17613 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17614 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17615 (grub_fat_label) [MODE_EXFAT]: New function.
17616 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17617 reserved_first_sector to 0.
17618
17619 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 Move grub_reboot out of the kernel.
17622
17623 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17624 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17625 * grub-core/lib/efi/reboot.c: ... here.
17626 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17627 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17628 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17629 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17630 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17631 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17632 * grub-core/lib/ieee1275/reboot.c: ... here.
17633 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17634 * grub-core/lib/mips/arc/reboot.c: ... here.
17635 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17636 * grub-core/lib/mips/loongson/reboot.c: ...here.
17637 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17638 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17639 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17640 * include/grub/i386/reboot.h: New file.
17641 * include/grub/mips/loongson/ec.h: Fix includes.
17642 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17643 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17644 * grub-core/lib/i386/reboot.c: New file.
17645
17646 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17647
17648 Make grub_prefix into module to fix the arbitrary limit and save
17649 some space.
17650
17651 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17652 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17653 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17654 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17655 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17656 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17657 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17658 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17659 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17660 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17661 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17662 * include/grub/ia64/efi/kernel.h: Removed.
17663 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17664 (grub_prefix): Removed.
17665 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17666 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17667 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17668 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17669 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17670 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17671 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17672 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17673 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17674 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17675 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17676 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17677 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17678 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17679 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17680 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17681 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17682 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17683 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17684 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17685 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17686 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17687 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17688 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17689 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17690 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17691 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17692 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17693 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17694 from module.
17695 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17696 prefix_end.
17697 (image_targets): Likewise.
17698 (generate_image): Put prefix as a module.
17699
17700 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17701
17702 Replace grub_module_iterate with FOR_MODULES.
17703
17704 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17705 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17706 (grub_efi_modules_addr): ...this.
17707 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17708 (grub_efi_init): Set grub_modbase.
17709 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17710 (grub_modbase): New variable.
17711 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17712 (grub_modbase): New variable.
17713 (grub_machine_init): Set grub_modbase.
17714 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17715 (grub_modbase): New variable.
17716 (grub_machine_init): Set grub_modbase.
17717 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17718 (grub_modbase): New variable.
17719 (grub_machine_init): Set grub_modbase.
17720 * grub-core/kern/main.c (grub_module_iterate): Remove.
17721 (grub_modules_get_end): Use grub_modbase.
17722 (grub_load_modules): Use FOR_MODULES.
17723 (grub_load_config): Likewise.
17724 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17725 (grub_modbase): New variable.
17726 (grub_machine_init): Set grub_modbase.
17727 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17728 (grub_modbase): New variable.
17729 (grub_machine_init): Set grub_modbase.
17730 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17731 Removed.
17732 (grub_modbase): New variable.
17733 (grub_machine_init): Set grub_modbase.
17734 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17735 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17736 (grub_module_iterate): Likewise.
17737 (grub_modbase): New variable declaration.
17738 (FOR_MODULES): New macro.
17739
17740 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17741
17742 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17743 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17744
17745 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17746
17747 Fix few obvious type discrepancies.
17748
17749 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17750 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17751 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17752 variable.
17753 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17754 and connected types.
17755 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17756 offset.
17757 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17758 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17759 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17760 and connected types.
17761
17762 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17763
17764 Fix python 3.x incompatibilities.
17765
17766 * gentpl.py: Put brackets around print strings.
17767 * util/import_gcry.py: Open explicitly as utf-8.
17768 Use in instead of has_key.
17769
17770 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17771
17772 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17773 (GRUB_XFS_INO_AGBITS): Make into inline function.
17774 (GRUB_XFS_INO_INOINAG): Likewise.
17775 (GRUB_XFS_INO_AG): Likewise.
17776 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17777 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17778 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17779 (GRUB_XFS_EXTENT_SIZE): Likewise.
17780 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17781 (GRUB_XFS_NEXT_DIRENT): Likewise.
17782 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17783 (grub_xfs_read_file): Fix offset type.
17784
17785 2011-10-15 Robert Millan <rmh@gnu.org>
17786
17787 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17788
17789 2011-10-15 Robert Millan <rmh@gnu.org>
17790
17791 Fix build problem on FreeBSD and GNU/kFreeBSD.
17792
17793 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17794
17795 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17796
17797 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17798
17799 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17800 types.
17801 (grub_hfsplus_btree_recoffset): Likewise.
17802 (grub_hfsplus_btree_recptr): Likewise.
17803 (grub_hfsplus_find_block): Likewise.
17804 (grub_hfsplus_btree_search): Likewise.
17805 (grub_hfsplus_read_block): Likewise.
17806 (grub_hfsplus_read_file): Likewise.
17807 (grub_hfsplus_mount): Likewise.
17808 (grub_hfsplus_btree_iterate_node): Likewise.
17809 (grub_hfsplus_btree_search): Likewise.
17810 (grub_hfsplus_iterate_dir): Likewise.
17811 (grub_hfsplus_read): A small code simplification.
17812
17813 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * grub-core/kern/emu/hostdisk.c
17816 (convert_system_partition_to_system_disk): Don't assume that children
17817 of mapper nodes are mapper nodes.
17818
17819 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17822 * include/grub/misc.h (grub_isxdigit): New function.
17823 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17824 switched to grub_isxdigit.
17825 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17826 number starting with a letter.
17827
17828 2011-10-09 Robert Millan <rmh@gnu.org>
17829
17830 LVM support for FreeBSD and GNU/kFreeBSD.
17831
17832 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17833 GNU/kFreeBSD.
17834 (LVM_DEV_MAPPER_STRING): Move from here ...
17835 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17836 * util/getroot.c: Include `<grub/util/lvm.h>'.
17837 (grub_util_get_dev_abstraction): Enable
17838 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17839 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17840 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17841 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17842 support it.
17843 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17844 GNU/kFreeBSD.
17845 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17846 when LVM abstraction is required for ${GRUB_DEVICE}.
17847
17848 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17849
17850 Add support for LZO compression in GRUB:
17851 - import of minilzo library,
17852 - LZO decompression for btrfs,
17853 - lzop files decompression.
17854
17855 * grub-core/io/lzopio.c: New file.
17856 * grub-core/lib/adler32.c: Likewise.
17857 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17858 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17859 * grub-core/lib/minilzo/minilzo.c: Likewise.
17860 * grub-core/lib/minilzo/minilzo.h: Likewise.
17861 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17862 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17863 grub-core/lib/minilzo/minilzo.c to common.
17864 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17865 cflags in cppflags.
17866 * grub-core/Makefile.core.def (btrfs): Likewise.
17867 * grub-core/Makefile.core.def (lzopio): New module.
17868 (adler32): Likewise.
17869 * grub-core/fs/btrfs.c: Include minilzo.h.
17870 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17871 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17872 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17873 (grub_btrfs_lzo_decompress): New function.
17874 (grub_btrfs_extent_read): Add support for LZO compression type.
17875 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17876 (GRUB_USHRT_MAX): Likewise.
17877 (GRUB_UINT_MAX): Likewise.
17878 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17879 (UINT_MAX): Likewise.
17880 (CHAR_BIT): Likewise.
17881 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17882 grub-core/lib/posix_wrap/limits.h
17883 (UCHAR_MAX): Likewise.
17884 * include/grub/file.h (grub_file_filter_id): New compression filter
17885 GRUB_FILE_FILTER_LZOPIO.
17886 * include/grub/file.h (grub_file_filter_id): Set
17887 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17888 * include/grub/types.h (grub_get_unaligned16): New function.
17889 (grub_get_unaligned32): Likewise.
17890 (grub_get_unaligned64): Likewise.
17891 * util/import_gcry.py (cryptolist): Add adler32.
17892
17893 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17894
17895 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17896 in perspective decreases the complexity of build system and fixes
17897 compilation right now.
17898
17899 2011-10-01 Ales Nesrsta <starous@volny.cz>
17900
17901 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17902 (fixed problem related to using UHCI with coreboot).
17903
17904 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17905
17906 * gentpl.py: Use Autogen macros so that the output template file
17907 (Makefile.tpl) size is reduced.
17908
17909 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17910
17911 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17912 extra_dist.
17913
17914 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17915
17916 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17917 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17918
17919 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17920
17921 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17922 _fullpath.
17923
17924 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17925
17926 Remove extra declaration of sleep for mingw32.
17927
17928 * util/misc.c (sleep) [__MINGW32__]: Removed.
17929 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17930
17931 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17932
17933 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17934 type and packname.
17935 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17936 Resurrected.
17937 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17938 (grub_netbsd_btinfo_bootwedge): New struct.
17939 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17940 New function.
17941 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17942
17943 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17944
17945 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17946 loader.
17947
17948 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17949
17950 Fix incorrect identifiers in bash-completion.
17951
17952 * util/bash-completion.d/grub-completion.bash.in
17953 (_grub_mkpasswd-pbkdf2): Rename to ...
17954 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17955 (_grub_script-check): Rename to ...
17956 (_grub_script_check): ... this. All users updated.
17957
17958 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17961 Return 0 if disk isn't biosdisk.
17962
17963 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17964
17965 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17966 on NetBSD.
17967 * Makefile.util.def (grub-fstest): Likewise.
17968
17969 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17970
17971 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17972 Get sector size from disk label.
17973
17974 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
17975
17976 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
17977 */README* as well as README*.
17978 Reported by: Axel Beckert.
17979
17980 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17981
17982 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
17983 case of less than 256 MiB of RAM.
17984
17985 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * grub-core/commands/wildcard.c (make_regex): Handle @.
17988
17989 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
17990
17991 * util/grub-install.in: Move cryptodisk logic to appropriate place.
17992
17993 2011-08-21 Szymon Janc <szymon@janc.net.pl>
17994
17995 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
17996 AC_LANG_CONFTEST macros.
17997
17998 2011-08-20 Szymon Janc <szymon@janc.net.pl>
17999
18000 Add grub-fstest option to uncompress data for commands.
18001
18002 * util/grub-fstest.c (uncompress): New var.
18003 (options): New option -u.
18004
18005 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18006
18007 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18008 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18009
18010 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18011
18012 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18013 file type was not recognized correctly (not gzip or corrupted).
18014
18015 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18016
18017 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18018 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18019
18020 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18021
18022 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18023 loongson.
18024 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18025 video_radeon_fuloong2e.
18026 * grub-core/video/radeon_fuloong2e.c: New file.
18027 * include/grub/video.h (grub_video_id_t): Add new ID
18028 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18029
18030 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18031
18032 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18033 define.
18034 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18035 that PRID matches the detected subplatform and reset the subplatform
18036 if it doesn't.
18037
18038 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18039
18040 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18041
18042 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18043
18044 Fix PCI iterating on functions >= 4.
18045
18046 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18047 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18048 Removed.
18049 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18050 (grub_pci_read): Fix bitmask.
18051 (grub_pci_read_word): Likewise.
18052 (grub_pci_read_byte): Likewise.
18053 (grub_pci_write): Likewise.
18054 (grub_pci_write_word): Likewise.
18055 (grub_pci_write_byte): Likewise.
18056
18057 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18058
18059 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18060 can still be specified in TARGET_CFLAGS)
18061
18062 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18063
18064 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18065
18066 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18067 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18068 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18069 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18070 (FULOONG): Rename to ...
18071 (FULOONG2F): ... this. All users updated.
18072 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18073 (machtype_fuloong2f_str): ... this.
18074 (machtype_fuloong2e_str): New string.
18075 Check for machtype_fuloong2e_str.
18076 * grub-core/loader/mips/linux.c (loongson_machtypes)
18077 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18078 * grub-core/term/serial.c (loongson_defserial)
18079 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18080 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18081 loongson_defserial.
18082 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18083 Rename to ...
18084 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18085 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18086 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18087 to IMAGE_FULOONG2F_FLASH. All users updated.
18088 (image_targets): Rename images.
18089 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18090
18091 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18092
18093 Make enable of disk cache statistics code configurable.
18094
18095 * configure.ac: --enable-cache-stats added.
18096 * config.h.in (DISK_CACHE_STATS): New define.
18097 * grub-core/Makefile.core.def (cacheinfo): New command.
18098 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18099 * grub-core/commands/cacheinfo.c: New file.
18100 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18101 moved to cacheinfo.c.
18102 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18103 debug code.
18104 * include/grub/disk.h: Likewise.
18105
18106 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18107
18108 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18109 * grub-core/Makefile.am: Likewise.
18110
18111 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18112
18113 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18114 non-zero pull.
18115
18116 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18117
18118 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18119 All users updated.
18120 (grub_jfs_lookup_symlink): Use correct starting inode.
18121
18122 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18123
18124 * util/grub-setup.c (main): Add missing gcry initialisation.
18125
18126 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18127
18128 Don't accept text modes on EFI when booting Linux.
18129
18130 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18131 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18132
18133 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18134 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18135
18136 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18137 use of "/path/.." as in grub-install for EFI as well as handling
18138 symlinks correctly.
18139 Fixes Debian bug #637768.
18140
18141 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18142
18143 * util/grub-probe.c: Remove duplicate #include.
18144
18145 2011-08-10 Robert Millan <rmh@gnu.org>
18146
18147 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18148
18149 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18150 function.
18151 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18152 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18153
18154 2011-08-03 Robert Millan <rmh@gnu.org>
18155
18156 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18157 la_array as packed.
18158 Reported by: Zachary Bedell
18159
18160 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18161
18162 * configure.ac: The Loongson port requires grub-mkfont due to its
18163 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18164 be built.
18165
18166 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18167
18168 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18169 processing arguments (otherwise help2man fails when GRUB has not yet
18170 been installed).
18171
18172 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18173
18174 New script grub-mkstandalone.
18175
18176 * Makefile.util.def (grub-mkstandalone): New script.
18177 * docs/man/grub-mkstandalone.h2m: New file.
18178 * util/grub-mkstandalone.in: Likewise.
18179
18180 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18181
18182 Support ATA disks with 4K sectors.
18183
18184 * include/grub/ata.h (grub_ata): New member log_sector_size.
18185 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18186 (grub_ata_identify): Read sector size.
18187 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18188
18189 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18190
18191 * util/grub-install.in: Don't use uhci outside of x86.
18192
18193 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18194
18195 * util/grub-mkrescue.in: Add missing quotes.
18196
18197 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18198
18199 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18200 dereference.
18201
18202 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18203
18204 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18205
18206 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18207
18208 * include/grub/video.h: add missing EXPORT_FUND on
18209 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18210
18211 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18212
18213 * include/grub/mips/kernel.h: Fix define conflict.
18214
18215 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18216
18217 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18218 all four ways.
18219
18220 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18221
18222 Preferred resolution detection for VBE.
18223
18224 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18225 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18226 the Flat Panel extension, in line with the X.org VESA driver.
18227 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18228 New function.
18229 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18230 (grub_vbe_bios_read_edid): Likewise.
18231 (grub_vbe_get_preferred_mode): Likewise.
18232 (grub_video_vbe_setup): When the mode is "auto", try to get the
18233 preferred mode from VBE, and use the largest mode that is no larger
18234 than the preferred mode (some BIOSes expose a preferred mode that is
18235 not in their mode list!). If this fails, fall back to 640x480 as a
18236 safe conservative choice.
18237 (grub_video_vbe_get_edid): New function.
18238 (grub_video_vbe_adapter): Add get_edid.
18239 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18240 (struct grub_video_adapter): Add get_edid.
18241 (grub_video_edid_checksum): Add prototype.
18242 (grub_video_edid_preferred_mode): Likewise.
18243 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18244 structure.
18245
18246 * grub-core/commands/videoinfo.c (print_edid): New function.
18247 (grub_cmd_videoinfo): Print EDID if available.
18248
18249 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18250 is more appropriate on a wider range of platforms than 640x480.
18251 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18252 documentation.
18253
18254 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18255
18256 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18257
18258 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18259
18260 * po/POTFILES.in: Regenerate.
18261
18262 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18263
18264 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18265 incorrect memory usage.
18266
18267 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18268
18269 * util/grub-install.in: Source grub-mkconfig_lib.
18270
18271 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18272
18273 Remove getroot.c from core on emu platform.
18274
18275 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18276 kern/emu/raid.c.
18277 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18278 useless.
18279 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18280 * util/getroot.c (get_win32_path): ... here.
18281 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18282 * util/getroot.c (fini_libzfs): ... here.
18283 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18284 * util/getroot.c (grub_get_libzfs_handle): ... here.
18285 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18286 Moved from here...
18287 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18288 * grub-core/kern/emu/misc.c
18289 (grub_make_system_path_relative_to_its_root): Moved from here...
18290 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18291 * grub-core/kern/emu/getroot.c: Moved from here ...
18292 * util/getroot.c: ... here. All users updated.
18293 * grub-core/kern/emu/raid.c: Moved from here ...
18294 * util/raid.c: ... here. All users updated.
18295
18296 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 * po/POTFILES.in: Regenerate.
18299
18300 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 Fix compilation on GNU/Linux.
18303
18304 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18305 Disable geli.
18306 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18307 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18308 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18309
18310 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18311 2011-07-07 Michael Gorven <michael@gorven.za.net>
18312 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18313
18314 LUKS and GELI support.
18315
18316 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18317 grub-core/disk/luks.c, grub-core/disk/geli.c,
18318 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18319 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18320 grub-core/lib/arg.c.
18321 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18322 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18323 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18324 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18325 (grub-bin2h): Add libgcry.a.
18326 (grub-mkimage): Likewise.
18327 (grub-mkrelpath): Likewise.
18328 (grub-script-check): Likewise.
18329 (grub-editenv): Likewise.
18330 (grub-mkpasswd-pbkdf2): Likewise.
18331 (grub-pe2elf): Likewise.
18332 (grub-fstest): Likewise.
18333 (grub-mkfont): Likewise.
18334 (grub-mkdevicemap): Likewise.
18335 (grub-probe): Likewise.
18336 (grub-ofpath): Likewise.
18337 (grub-mklayout): Likewise.
18338 (example_unit_test): Likewise.
18339 (grub-menulst2cfg): Likewise.
18340 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18341 * grub-core/Makefile.core.def (cryptodisk): New module.
18342 (luks): Likewise.
18343 (geli): Likewise.
18344 * grub-core/disk/AFSplitter.c: New file.
18345 * grub-core/disk/cryptodisk.c: Likewise.
18346 * grub-core/disk/geli.c: Likewise.
18347 * grub-core/disk/luks.c: Likewise.
18348 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18349 grub_util_is_lvm.
18350 (grub_util_get_dm_abstraction): New function.
18351 (grub_util_follow_gpart_up): Likewise.
18352 (grub_util_get_geom_abstraction): Likewise.
18353 (grub_util_get_dev_abstraction): Use new functions.
18354 (grub_util_pull_device): Pull GELI and LUKS.
18355 (grub_util_get_grub_dev): Handle LUKS and GELI.
18356 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18357 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18358 (follow_geom_up): Removed.
18359 (grub_util_fd_seek): New function.
18360 (open_device): Use grub_util_fd_seek.
18361 (nread): Rename to ..
18362 (grub_util_fd_read): ... this. All users updated.
18363 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18364 (grub_crypto_cbc_decrypt): Likewise.
18365 (grub_crypto_hmac_write): Likewise.
18366 (grub_crypto_hmac_buffer): Likewise.
18367 (grub_password_get): Extend to util.
18368 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18369 New member modname.
18370 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18371 * include/grub/cryptodisk.h: New file.
18372 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18373 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18374 LUKS and GELI.
18375 (grub_util_follow_gpart_up): New proto.
18376 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18377 (grub_util_fd_read): Likewise.
18378 (grub_cryptodisk_cheat_mount): Likewise.
18379 (grub_util_cryptodisk_print_uuid): Likewise.
18380 (grub_util_get_fd_sectors): Likewise.
18381 * util/grub-fstest.c (mount_crypt): New var.
18382 (fstest): Mount crypto if requested.
18383 (options): New option -C.
18384 (argp_parser): Parse -C.
18385 (main): Init and fini gcry.
18386 * util/grub-install.in: Support cryptodisk install.
18387 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18388 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18389 cryptodisk.
18390 (prepare_grub_to_access_device): Likewise.
18391 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18392 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18393 (probe_cryptodisk_uuid): New function.
18394 (probe_abstraction): Likewise.
18395 (probe): Use new functions.
18396 * util/import_gcry.py: Create Makefile.utilgcry.def.
18397 Add modname member.
18398
18399 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18400
18401 Lazy device scanning.
18402
18403 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18404 (grub-setup): Remove util/raid.c.
18405 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18406 * grub-core/disk/lvm.c (scan_depth): New variable.
18407 (grub_lvm_iterate): Rescan if necessary.
18408 (find_lv): New function based on grub_lvm_open.
18409 (grub_lvm_open): Use find_lv. Rescan on error.
18410 (is_node_readable): New function.
18411 (is_lv_readable): Likewise.
18412 (grub_lvm_scan_device): Skip already found disks.
18413 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18414 Stop if searched device is found and readable.
18415 * grub-core/disk/raid.c (inscnt): New variable.
18416 (scan_depth): Likewise.
18417 (scan_devices): New function based on grub_raid_register. Abort if
18418 looked for device is found.
18419 (grub_raid_iterate): Rescan if needed.
18420 (find_array): NEw function based on -grub_raid_open.
18421 (grub_raid_open): Use find_array and rescan.
18422 (insert_array): Set became_readable_at.
18423 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18424 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18425 New function.
18426 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18427 (grub_util_pull_device): New function.
18428 (grub_util_get_grub_dev): Call grub_util_pull_device.
18429 * util/raid.c: Moved to ..
18430 * grub-core/kern/emu/raid.c: ... here.
18431 (grub_util_raid_getmembers): New parameter "bootable".
18432 All users updated. Support 1.x.
18433 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18434 All users updated.
18435 * include/grub/disk.h (grub_disk_pull_t): New enum.
18436 (grub_disk_dev): Change iterate prototype.
18437 All users updated.
18438 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18439 New proto.
18440 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18441 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18442 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18443 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18444 All users updated.
18445 * include/grub/util/raid.h: Removed.
18446
18447 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 * po/POTFILES.in: Regenerate.
18450
18451 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18452
18453 Unify sparc init with other ieee1275.
18454
18455 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18456 instead of kern/sparc64/ieee1275/init.c.
18457 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18458 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18459 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18460 grub/machine/kernel.h.
18461 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18462 (grub_claim_heap) [__sparc__]: Use sparc version.
18463 (grub_machine_init): Moved args parsing to
18464 (grub_parse_cmdline): ...this.
18465 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18466 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18467 New definition.
18468 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18469
18470 Move BOOTP to separate file.
18471
18472 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18473 * grub-core/net/net.c: Move all BOOTP functions to
18474 * grub-core/net/bootp.c: ... here.
18475
18476 Use frame interface on PXE.
18477
18478 * grub-core/Makefile.core.def (pxecmd): Removed.
18479 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18480 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18481 * grub-core/i386/pc/pxe.c: Moved from here ...
18482 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18483 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18484 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18485
18486 EFI network support.
18487
18488 * grub-core/Makefile.core.def (efinet): New module.
18489 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18490 here...
18491 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18492 All users updated.
18493 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18494 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18495 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18496 * grub-core/net/drivers/efi/efinet.c: New file.
18497 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18498 (grub_efi_net_config): New extern var.
18499
18500 Various cleanups and bugfixes.
18501
18502 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18503 error.
18504 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18505 disk declared as partition.
18506 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18507 leak on failure.
18508 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18509 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18510 (grub_debug_zalloc): Likewise.
18511 (grub_debug_realloc): Likewise.
18512 (grub_debug_memalign): Likewise.
18513 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18514 Check that target is IPv4.
18515 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18516 local-mac-address as fallback.
18517 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18518 memory leak.
18519 * grub-core/net/ip.c (ipchksum): Rename to ...
18520 (grub_net_ip_chksum): ... this. All users updated.
18521 (grub_net_recv_ip_packets): Special handling for DHCP.
18522 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18523
18524 Unify prefix handling
18525
18526 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18527 (grub_machine_get_bootlocation): ... this.
18528 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18529 (grub_machine_get_bootlocation): ... this.
18530 (grub_prefix): New variable.
18531 (prefix): Removed.
18532 (root_dev): New variable.
18533 (dir): Likewise.
18534 (main): Use new variables.
18535 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18536 Revamped into ...
18537 (grub_machine_get_bootlocation): ... this.
18538 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18539 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18540 (grub_machine_get_bootlocation): ... this.
18541 (grub_machine_set_prefix): Removed.
18542 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18543 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18544 Revamped into ...
18545 (grub_machine_get_bootlocation): ... this.
18546 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18547 (grub_set_prefix_and_root): ... this. All users updated.
18548 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18549 Revamped into ...
18550 (grub_machine_get_bootlocation): ... this.
18551 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18552 (grub_machine_get_bootlocation): New proto.
18553 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18554
18555 Less intrusive and more reliable seek on network implementation.
18556
18557 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18558 (grub_file_seek): Don't call grub_file_net_seek.
18559 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18560 (grub_net_fs_read_real): .. this.
18561 (grub_net_seek_real): Use net->offset.
18562 (grub_net_fs_read): Seek if necessary.
18563
18564 Unify IEEE1275 netwotk config with the other platforms.
18565
18566 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18567 New variable.
18568 (grub_machine_get_bootlocation): Support network.
18569 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18570 Support type and device parsing.
18571 (grub_ieee1275_get_device_type): New function.
18572 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18573 into ...
18574 (grub_ieee1275_net_config_real): ... this.
18575 (grub_ofnet_probecards): Removed.
18576 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18577 * include/grub/ieee1275/ofnet.h: Removed.
18578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18579 extern var.
18580 (grub_ieee1275_get_device_type): New function.
18581
18582 Unify network device closing across platforms and make more robust.
18583
18584 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18585 grub_grubnet_fini.
18586 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18587 already.
18588 * grub-core/net/net.c (grub_net_network_level_interface_register):
18589 Update num_ifaces.
18590 (grub_net_card_unregister): Close all interfaces.
18591 (receive_packets): Don't poll if no iterfaces are registered.
18592 Open if necessary.
18593 (grub_net_fini_hw): New function.
18594 (grub_net_restore_hw): Likewise.
18595 (fini_hnd): New variable.
18596 (GRUB_MOD_INIT): Register preboot hook.
18597 (GRUB_MOD_FINI): Run and unregister preboot hook.
18598
18599 Poll network cards when idle.
18600
18601 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18602 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18603 * grub-core/net/net.c (receive_packets): Save last poll time.
18604 (grub_net_poll_cards_idle_real): New function.
18605 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18606 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18607 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18608
18609 Rename ofnet interfaces.
18610
18611 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18612 (grub_ofnet_findcards): Use ofnet_%s names.
18613
18614 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18615
18616 Cleanup socket opening.
18617
18618 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18619 (grub_net_fs_close): Likewise.
18620 (grub_net_fs_read_real): Use eof member.
18621 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18622 (+grub_net_udp_close): New inline function.
18623
18624 * include/grub/net/tftp.h: Moved to the top of ...
18625 * grub-core/net/tftp.c: ... here.
18626 * include/grub/net/ip.h: Moved mostly to the top of ...
18627 * grub-core/net/ip.c: ... here.
18628 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18629 * grub-core/net/ethernet.c: ... here.
18630
18631 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18632
18633 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18634 FS name.
18635
18636 * include/grub/net/ip.h (ipv4_ini): Removed.
18637 (ipv4_fini): Likewise.
18638
18639 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18640 (grub_net_send_ip_packets): Likewise.
18641
18642 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18643
18644 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18645 grub_read_cmos prototype.
18646
18647 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18648
18649 VGA text support in qemu-mips
18650
18651 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18652 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18653 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18654 text.
18655 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18656 * grub-core/kern/vga_init.c: ... this.
18657 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18658 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18659 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18660 Adjust.
18661 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18662 GRUB_MACHINE_PCI_IO_BASE.
18663
18664 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18665
18666 MIPS qemu flash support.
18667
18668 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18669 magic.
18670 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18671 (grub_machine_init): Probe memory if its size isn't known.
18672 * util/grub-mkimage.c (image_targets): Add flash targets.
18673 (generate_image): Handle flash targets.
18674
18675 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18676
18677 MIPS qemu at_keyboard support.
18678
18679 * gentpl.py (videoinkernel): Add qemu-mips.
18680 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18681 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18682 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18683 modules.
18684 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18685 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18686 * grub-core/term/serial.c (grub_serial_register)
18687 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18688
18689 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18690
18691 CMOS support on sparc.
18692
18693 * gentpl.py (cmos): Add powerpc and sparc.
18694 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18695 powerpc and sparc.
18696 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18697 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18698 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18699 grub_set_datetime_cmos.
18700 * grub-core/lib/ieee1275/cmos.c: New file.
18701 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18702 (find_rtc): Set no_ieee1275_rtc on error.
18703 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18704 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18705 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18706 fail. Move value to argument. All users updated
18707 (grub_cmos_write): Likewise.
18708 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18709 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18710 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18711 grub_get_datetime_cmos and grub_set_datetime_cmos.
18712
18713 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18714
18715 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18716 sourcing grub-mkconfig_lib.
18717 * util/update-grub_lib.in: Likewise.
18718 * util/grub.d/00_header.in: Likewise.
18719 * util/grub.d/10_hurd.in: Likewise.
18720 * util/grub.d/10_kfreebsd.in: Likewise.
18721 * util/grub.d/10_linux.in: Likewise.
18722 * util/grub.d/10_netbsd.in: Likewise.
18723 * util/grub.d/10_windows.in: Likewise.
18724 * util/grub.d/20_linux_xen.in: Likewise.
18725 * util/grub.d/30_os-prober.in: Likewise.
18726
18727 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18728
18729 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18730 default_bg_color rather than black.
18731 (grub_gfxterm_fullscreen): Likewise.
18732 (grub_gfxterm_background_color_cmd): Save new background color in
18733 default_bg_color.
18734
18735 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18736
18737 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18738
18739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18740
18741 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18742 mismerge.
18743
18744 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18745
18746 Chainloading on coreboot support.
18747
18748 * grub-core/Makefile.core.def (chain): Add coreboot.
18749 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18750
18751 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18752
18753 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18754 if it happens.
18755
18756 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18757
18758 Implement time command.
18759
18760 * grub-core/Makefile.core.def (time): New module.
18761 * grub-core/commands/time.c: New file.
18762 * grub-core/script/parser.y: Remove "time" keyword.
18763 * grub-core/script/yylex.l: Likewise.
18764
18765 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18766
18767 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18768
18769 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18770
18771 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18772 when handling leftovers.
18773
18774 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18775
18776 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18777 so that help2man doesn't fail.
18778
18779 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18780
18781 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18782 type in pointers on sparc64.
18783 (get_card_packet): Likewise.
18784
18785 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18786
18787 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18788 with `*'.
18789 (grub_cmd_videoinfo): Fetch current video mode.
18790
18791 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18792
18793 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18794 because of underlying system restrictions.
18795
18796 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18797
18798 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18799 necessary.
18800
18801 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18802
18803 Coreboot video support.
18804
18805 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18806 (vbe): Likewise.
18807 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18808 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18809 here ...
18810 * grub-core/kern/i386/int.S: ... here.
18811 * grub-core/video/i386/pc/vbe.c: Updated includes.
18812 * grub-core/video/i386/pc/vga.c: Likewise.
18813 * include/grub/i386/coreboot/memory.h
18814 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18815 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18816 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18817 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18818 Disable interrupts.
18819 * include/grub/i386/pc/vga.h: Removed. All users updated.
18820
18821 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18822
18823 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18824 definitions for dprintf.
18825 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18826
18827 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18828
18829 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18830 prototype.
18831 (get_card_packet): Likewise.
18832
18833 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18834
18835 Display the path of the file when file is not found
18836
18837 * grub-core/fs/fat.c: Display the filename when file is not found.
18838 * grub-core/fs/fshelp.c: Likewise.
18839 * grub-core/fs/hfs.c: Likewise.
18840 * grub-core/fs/jfs.c: Likewise.
18841 * grub-core/fs/minix.c: Likewise.
18842 * grub-core/fs/ufs.c: Likewise.
18843 * grub-core/fs/btrfs.c: Likewise.
18844 * grub-core/commands/i386/pc/play.c: Likewise.
18845
18846 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18847
18848 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18849 pointer checks before calling grub_free().
18850 * grub-core/commands/wildcard.c (match_devices): Likewise.
18851 * grub-core/commands/wildcard.c (match_files): Likewise.
18852 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18853 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18854 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18855 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18856 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18857 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18858 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18859 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18860 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18861
18862 2011-06-25 Patrick <p55@mailinator.com>
18863
18864 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18865
18866 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18869 (grub_pxe_send): Likewise.
18870 (GRUB_MOD_INIT): Fix types.
18871
18872 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18873
18874 * grub-core/io/xzio.c: Fix code style issues
18875
18876 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18877 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18878
18879 Network infrastructure.
18880 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18881
18882 * include/grub/net/arp.h: New file.
18883 * include/grub/net/device.h: Likewise.
18884 * include/grub/net/ethernet.h: Likewise.
18885 * include/grub/net/ip.h: Likewise.
18886 * include/grub/net/netbuff.h: Likewise.
18887 * include/grub/net/tftp.h: Likewise.
18888 * include/grub/net/udp.h: Likewise.
18889 * include/grub/ieee1275/ofnet.h: Likewise.
18890 * include/grub/emu/export.h: Likewise.
18891 * include/grub/net.h: Likewise.
18892 * grub-core/net/arp.c: Likewise.
18893 * grub-core/net/ethernet.c: Likewise.
18894 * grub-core/net/ip.c: Likewise.
18895 * grub-core/net/udp.c: Likewise.
18896 * grub-core/net/tftp.c: Likewise.
18897 * grub-core/net/netbuff.c: Likewise.
18898 * grub-core/net/net.c: Likewise.
18899 * grub-core/net/drivers/emu/emunet.c: Likewise.
18900 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18901 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18902 export.h.
18903 * grub-core/Makefile.core.def (net): New module.
18904 (tftp): Likewise.
18905 (ofnet): Likewise.
18906 (emunet): Likewise.
18907 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18908 network protocols.
18909 * grub-core/kern/device.c (grub_net_open) : New variable.
18910 (grub_device_open): Handle network device.
18911 (grub_device_close): Likewise.
18912 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18913 (grub_grubnet_fini): Likewise.
18914 (grub_file_seek): Seek in network device.
18915 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18916 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18917 network root.
18918 (grub_machine_fini): Call grub_grubnet_fini.
18919 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18920 network.
18921 (grub_ieee1275_get_aliasdevname): New function.
18922 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18923 Add unofficial Solaris network info.
18924 (grub_multiboot_make_mbi): Likewise.
18925 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18926 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18927 * include/grub/device.h (grub_fs): Removed.
18928 * include/grub/err.h (grub_err_t): Add network-related values.
18929 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18930 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18931 (grub_ieee1275_get_aliasdevname): New proto.
18932 * include/grub/net.h: Rewritten.
18933
18934 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18935
18936 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18937 names.
18938
18939 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18942 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18943 it truncates the output.
18944 Reported by: Ximin Luo.
18945
18946 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18947
18948 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18949
18950 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18951
18952 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18953 partmap before abstraction.
18954
18955 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18956
18957 * util/grub-mkconfig_lib.in: Add missing quotes.
18958
18959 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18962 old method if mountinfo would return /dev/root and /dev/root doesn't
18963 exist.
18964
18965 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18966
18967 ZFS zlib support
18968
18969 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18970 (decomp_table): Add zlib entries.
18971 (zio_read): USe 8 bits for compression function rather than 3.
18972 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18973
18974 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18975
18976 * grub-core/disk/ahci.c: Add missing license statements.
18977 * grub-core/fs/romfs.c: Likewise.
18978 * grub-core/lib/ia64/setjmp.S: Likewise.
18979 * grub-core/loader/i386/pc/freedos.c: Likewise.
18980 * grub-core/loader/ia64/efi/linux.c: Likewise.
18981 * grub-core/video/colors.c: Likewise.
18982 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
18983
18984 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
18985
18986 AHCI support.
18987
18988 * grub-core/Makefile.core.def (ata_pthru): Removed.
18989 (ahci): New module.
18990 (pata): Likewise.
18991 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
18992 on unload.
18993 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
18994 readwrite.
18995 (grub_hdparm_do_check_powermode_cmd): Likewise.
18996 (grub_hdparm_do_smart_cmd): Likewise.
18997 (grub_hdparm_set_val_cmd): Likewise.
18998 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
18999 * grub-core/disk/ahci.c: New file.
19000 * grub-core/disk/ata.c: Factor out the low-level part into ...
19001 * grub-core/disk/pata.c: ... here.
19002 * grub-core/disk/ata_pthru.c: Contents moved to ...
19003 * grub-core/disk/pata.c: ... here.
19004 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19005 (grub_scsi_iterate): Use grub_scsi_names.
19006 (grub_scsi_open): Likewise.
19007 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19008 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19009 (grub_ata_regs_t): New struct.
19010 (grub_disk_ata_pass_through_parms): Likewise.
19011 (grub_ata_device): Renamed to ...
19012 (grub_ata): ... this.
19013 (grub_ata_dev): New struct.
19014 Removed all low-level inline functions.
19015 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19016 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19017 iterate hooks and open. All users updated.
19018 * util/grub-install.in: Handle AHCI disk module.
19019
19020 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19021
19022 Add support for DRI and RSTn markers in JPEG files.
19023
19024 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19025 (JPEG_MARKER_RST0): Likewise.
19026 (JPEG_MARKER_RST1): Likewise.
19027 (JPEG_MARKER_RST2): Likewise.
19028 (JPEG_MARKER_RST3): Likewise.
19029 (JPEG_MARKER_RST4): Likewise.
19030 (JPEG_MARKER_RST5): Likewise.
19031 (JPEG_MARKER_RST6): Likewise.
19032 (JPEG_MARKER_RST7): Likewise.
19033 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19034 (grub_jpeg_decode_dri): New function.
19035 (grub_jpeg_decode_sos): Move image data related part into
19036 grub_jpeg_decode_data function.
19037 (grub_jpeg_decode_data): New function.
19038 (grub_jpeg_reset): New function.
19039 (grub_jpeg_decode_jpeg): Handle new markers.
19040
19041 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19042
19043 * util/ieee1275/ofpath.c (check_sas): Close fd.
19044 (main): Free of_path.
19045 Reported by: David Volgyes <dvolgyes>.
19046
19047 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19048
19049 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19050 Reported by: David Volgyes <dvolgyes>.
19051
19052 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19053
19054 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19055 file after stat.
19056 Reported by: David Volgyes <dvolgyes>.
19057
19058 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19059
19060 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19061
19062 Reported by: David Volgyes <dvolgyes>.
19063
19064 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19065
19066 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19067 Prevent memory leak.
19068
19069 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19070
19071 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19072 (main): Close file.
19073 Reported by: David Volgyes <dvolgyes>.
19074
19075 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19076
19077 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19078 to continue if allocation is failed.
19079
19080 Reported by: David Volgyes <dvolgyes>.
19081
19082 2011-06-23 David Volgyes <dvolgyes>
19083
19084 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19085 dereference.
19086
19087 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19088
19089 Fix spurious warning.
19090
19091 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19092 (acorn_partition_map_find): Use .bin member.
19093
19094 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19095
19096 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19097 /dev/root as a valid device.
19098
19099 2011-06-23 Jim Meyering <meyering@redhat.com>
19100
19101 Avoid NULL deref in grub_device_open.
19102
19103 * grub-core/kern/device.c (grub_device_open): Don't dereference
19104 a NULL pointer upon failed grub_env_get.
19105
19106 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 Support non-512B sectors and agglomerate reads.
19109
19110 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19111 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19112 (disk_io_guid): Removed.
19113 (make_devices): Locate solely by BlockIO.
19114 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19115 (grub_efidisk_read): Use read_blocks.
19116 (grub_efidisk_write): Use write_blocks.
19117 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19118 log_sector_size.
19119 (get_safe_sectors): Handle non-512B sectors.
19120 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19121 sectors.
19122 (grub_biosdisk_write): Handle non-512B sectors.
19123 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19124 (grub_scsi_read): Remove special non-512B block handling (now handled
19125 one level up).
19126 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19127 and do sanity checks.
19128 (grub_disk_adjust_range): Handle non-512B sectors.
19129 (transform_sector): New function.
19130 (grub_disk_read_small): Likewise.
19131 (grub_disk_read): Rewritten.
19132 (grub_disk_write): Handle non-512B sectors.
19133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19134 log_sector_size.
19135 (open_device): Use log_sector_size.
19136 (grub_util_biosdisk_read): Likewise.
19137 (grub_util_biosdisk_write): Likewise.
19138 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19139 non-512B sectors.
19140 (pc_partition_map_embed): Likewise.
19141 * include/grub/disk.h (grub_disk): New field log_sector_size.
19142 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19143 (GRUB_DISK_CACHE_BITS): Increased to 6.
19144 * util/grub-fstest.c (fstest): New command testload.
19145 (argp_parser): Likewise.
19146
19147 2011-06-16 Robert Millan <rmh@gnu.org>
19148
19149 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19150 `ata' driver on kernel of FreeBSD 9.
19151
19152 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19153 (get_ataraid_disk_name): New functions.
19154 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19155 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19156 get_ataraid_disk_name() and get_ada_disk_name().
19157
19158 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19159
19160 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19161 input format.
19162
19163 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19164
19165 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19166 `ftp.gnu.org' for `alpha.gnu.org'.
19167
19168 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19169
19170 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19171 partitions under /dev/disk/by-id/.
19172
19173 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19174
19175 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19176 after ten consecutive open failures. Scanning all the way up to
19177 10000 is excessive and can cause serious performance problems in
19178 some configurations.
19179 Fixes Ubuntu bug #787461.
19180
19181 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19182
19183 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19184 opening new one.
19185
19186 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19187 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19188
19189 Don't stat devices unless we have to.
19190
19191 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19192 dir == /dev/mapper.
19193 (grub_guess_root_device): Use already known os_dev if possible.
19194 * grub-core/kern/emu/hostdisk.c
19195 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19196 if device is known to be a dm one.
19197
19198 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19199
19200 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19201 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19202 Reported by: Pawel Tecza.
19203
19204 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19205
19206 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19207 (lsefisystab): Likewise.
19208 (lssal): Likewise.
19209 (lsefimmap): Likewise.
19210 (hdparm): Enable on qemu-mips.
19211 (setjmp): Add ia64 nodist.
19212 (serial): Simplify tags.
19213
19214 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19215
19216 * Makefile.util.def (grub-ofpathname): Install manual page.
19217
19218 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19219
19220 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19221
19222 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19223
19224 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19225
19226 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19227
19228 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19229 into dprintf.
19230
19231 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19232
19233 Use full 64-bit division.
19234
19235 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19236 (grub_divmod64): ... this.
19237 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19238 version.
19239
19240 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19241
19242 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19243 `source'.
19244
19245 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19246
19247 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19248 to avoid accidents when debugging with 'sh -x'.
19249 * grub-core/gensyminfo.sh.in: Likewise.
19250 * tests/example_scripted_test.in: Likewise.
19251 * tests/grub_cmd_regexp.in: Likewise.
19252 * tests/grub_script_blanklines.in: Likewise.
19253 * tests/grub_script_dollar.in: Likewise.
19254 * tests/grub_script_expansion.in: Likewise.
19255 * tests/grub_script_final_semicolon.in: Likewise.
19256 * tests/partmap_test.in: Likewise.
19257 * tests/util/grub-shell-tester.in: Likewise.
19258 * tests/util/grub-shell.in: Likewise.
19259
19260 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19261
19262 Move gfxmenu color handling to video, so that gfxterm can use it
19263 too.
19264
19265 * grub-core/gfxmenu/named_colors.c: Move to ...
19266 * grub-core/video/colors.c: ... here. Rename
19267 grub_gui_get_named_color to grub_video_get_named_color.
19268 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19269 * grub-core/video/colors.c (my_isxdigit): ... here.
19270 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19271 Move to ...
19272 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19273 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19274 to ...
19275 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19276
19277 * include/grub/gui.h (grub_gui_color_t): Move to ...
19278 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19279 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19280 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19281 * include/grub/gui.h (grub_gui_map_color): Move to ...
19282 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19283 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19284 to ...
19285 * include/grub/video.h (grub_video_get_named_color): ... here.
19286 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19287 * include/grub/video.h (grub_video_parse_color): ... here.
19288
19289 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19290 video/colors.c.
19291 (gfxmenu): Remove gfxmenu/named_colors.c.
19292 (video) [videomodules]: Add video/colors.c.
19293
19294 Add a background_color command.
19295
19296 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19297 function.
19298 (GRUB_MOD_INIT): Register background_color command.
19299 (GRUB_MOD_FINI): Unregister background_color command.
19300 (redraw_screen_rect): Allow blend/replace of text layer to be
19301 controlled independently from whether there is a background bitmap.
19302 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19303 changing bitmap.
19304
19305 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19306
19307 Patch BPB in ntldr and chainloader --bpb.
19308
19309 * grub-core/fs/fat.c: Include grub/fat.h.
19310 (grub_fat_bpb): Moved to ...
19311 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19312 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19313 grub/ntfs.h.
19314 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19315 Moved from here...
19316 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19317 here.
19318 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19319 New function.
19320 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19321 (GRUB_MOD_INIT): Show --bpb.
19322 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19323 * grub-core/normal/main.c (features): New variable.
19324 (GRUB_MOD_INIT): Set feature_* variables.
19325 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19326 proto.
19327 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19328
19329 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19330
19331 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19332 for cleanness.
19333
19334 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19335
19336 FreeDOS direct loading support.
19337
19338 * docs/grub.texi (Supported OS): Add FreeDOS.
19339 * grub-core/Makefile.core.def (freedos): New module.
19340 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19341 variable.
19342 (grub_relocator16_boot): Handle %ebx.
19343 * grub-core/lib/i386/relocator16.S: Likewise.
19344 * grub-core/loader/i386/pc/freedos.c: New file.
19345
19346 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19347
19348 Long Linux command line support.
19349
19350 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19351 (maximal_cmdline_size): New variable.
19352 (allocate_pages): Use maximal_cmdline_size.
19353 (grub_cmd_linux): Set and use maximal_cmdline_size.
19354 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19355 (allocate_pages): Use maximal_cmdline_size.
19356 (grub_cmd_linux): Set and use maximal_cmdline_size.
19357 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19358 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19359 and cmdline_size.
19360
19361 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19362 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19363
19364 Improve devmapper support
19365
19366 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19367 (grub_util_is_lvm): New function.
19368 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19369 than lvm if not dmraid.
19370 Handle mapped md nodes.
19371 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19372 (grub_util_device_is_mapped): ... this. Make always available. All users
19373 updated.
19374 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19375 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19376 dmraid nodes.
19377 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19378
19379 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19380
19381 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19382
19383 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19384 * grub-core/modinfo.sh.in: New file.
19385 * grub-core/Makefile.core.def (modinfo.sh): New script.
19386 * util/grub-mknetdir.in: Use modinfo.sh.
19387 * util/grub-mkrescue.in: Likewise.
19388
19389 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19390
19391 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19392 Fix potential usage of Elf32 instead of Elf64 when compiling on
19393 32-bit architecture. Add endianness macros while on it.
19394
19395 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19396
19397 Use mipsel- rather than mips- in directories involving mipsel ports to
19398 allow both endiannesses coexist.
19399
19400 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19401 mips. All conditions adjusted.
19402 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19403 variable.
19404 * util/grub-install.in: Adjust conditions to take renaming into account.
19405 * util/grub-mkimage.c (image_targets): Likewise. New target
19406 mips-qemu_mips-elf for bigendian mips.
19407
19408 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19409
19410 Avoid unnecessary copying on MIPS.
19411
19412 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19413 early if src == dest.
19414 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19415 compression is none.
19416
19417 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19418
19419 Reduce memory footprint on SGI by putting modules before the kernel
19420 as opposed to after.
19421
19422 * grub-core/Makefile.core.def (kernel): Increase linking address.
19423 (none_decompress): Likewise.
19424 (xz_decompress): Likewise.
19425 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19426 address.
19427 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19428 layout change.
19429 (grub_arch_modules_addr): New function.
19430 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19431 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19432 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19433 here.
19434 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19435 (grub_total_modules_size): ... this. Make global.
19436 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19437 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19438 New definition.
19439 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19440 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19441 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19442 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19443 * util/grub-mkimage.c (image_target_desc): New flag
19444 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19445 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19446 (generate_image): Handle images with modules before kernel.
19447
19448 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19449
19450 Prevent potential loss of memory map by overwrite on qemu-mips.
19451
19452 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19453 Save ram size in $s4.
19454 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19455 All users changed to grub_arch_memsize.
19456 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19457 Loongson.
19458 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19459 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19460 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19461 external variable.
19462
19463 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19464
19465 * .bzrignore: Remove grub-dumpbios.
19466
19467 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19468
19469 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19470 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19471 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19472 existing options which append).
19473 * docs/grub.texi (Simple configuration): Document new options.
19474 Reported by: Ian Jackson. Fixes Debian bug #617538.
19475
19476 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19477
19478 * util/grub-fstest.c (cmd_cat): New function.
19479 (fstest): Handle CMD_CAT.
19480 (options): Add cat.
19481 (argp_parser): Handle cat.
19482
19483 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19484
19485 * Makefile.util.def (grub-bin2h): Don't install.
19486 * docs/man/grub-bin2h.h2m: Remove.
19487
19488 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19489
19490 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19491 place.
19492
19493 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19494
19495 Reenable qemu-mips port.
19496
19497 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19498 Fix small arc bug while on it.
19499 * gentpl.py: Handle qemu_mips.
19500 * grub-core/Makefile.am: Likewise.
19501 * grub-core/Makefile.core.def: Likewise.
19502 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19503 inappropriate includes.
19504 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19505 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19506 * grub-core/kern/main.c (grub_modules_get_end)
19507 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19508 * grub-core/kern/mips/qemu-mips: Moved to ..
19509 * grub-core/kern/mips/qemu_mips: ... this.
19510 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19511 (grub_machine_init): Call terminfo_init and serial_init.
19512 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19513 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19514 New variable.
19515 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19516 parameter passing.
19517 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19518 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19519 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19520 * include/grub/mips/qemu_mips/cmos.h: New file.
19521 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19522 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19523 Removed.
19524 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19525 Use correct mips-style address.
19526 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19527 (GRUB_TICKS_PER_SECOND): Removed.
19528 (grub_get_rtc): Likewise.
19529 (grub_cpu_idle): Likewise.
19530 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19531 New definition.
19532 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19533 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19534 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19535 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19536 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19537 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19538 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19539 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19540
19541 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19542
19543 SGI ARCS port.
19544
19545 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19546 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19547 platforms.
19548 * configure.ac: New target mips-arc.
19549 * gentpl.py: Likewise.
19550 * grub-core/Makefile.am: Likewise.
19551 * grub-core/Makefile.core.def: Likewise.
19552 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19553 (none_decompress): Likewise.
19554 (lsdev): New module.
19555 (datetime): Use lib/arc/datetime.c on ARC.
19556 (part_dvh): New module.
19557 * grub-core/commands/arc/lsdev.c: New file.
19558 * grub-core/disk/arc/arcdisk.c: Likewise.
19559 * grub-core/kern/mips/arc/init.c: Likewise.
19560 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19561 aligned addresses.
19562 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19563 support.
19564 (grub_arch_dl_relocate_symbols): Likewise.
19565 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19566 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19567 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19568 platforms.
19569 * grub-core/lib/arc/datetime.c: New file.
19570 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19571 pci.h on non-loongson.
19572 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19573 (grub_linux_boot): Set unused registers to 0.
19574 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19575 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19576 * grub-core/mmap/mips/uppermem.c: ...here.
19577 * grub-core/partmap/dvh.c: New file.
19578 * grub-core/term/arc/console.c: Likewise.
19579 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19580 (grub_terminfo_set_current): Add terminal "arc".
19581 (grub_terminfo_readkey): Support ARC sequences.
19582 * include/grub/arc/arc.h: New file.
19583 * include/grub/arc/console.h: Likewise.
19584 * include/grub/disk.h (grub_disk_dev_id): Add
19585 GRUB_DISK_DEVICE_ARCDISK_ID.
19586 * include/grub/mips/arc/kernel.h: New file.
19587 * include/grub/mips/arc/memory.h: Likewise.
19588 * include/grub/mips/arc/time.h: Likewise.
19589 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19590 * include/grub/mips/kernel.h (grub_halt): ... here.
19591 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19592 here...
19593 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19594 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19595 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19596 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19597 proto.
19598 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19599 from here ...
19600 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19601 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19602 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19603 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19604 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19605 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19606 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19607 (grub_phys_addr_t): Moved from here ...
19608 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19609 (grub_vtop): Moved from here ...
19610 * include/grub/mips/memory.h (grub_vtop): ... here.
19611 (grub_map_memory): Moved from here ...
19612 * include/grub/mips/memory.h (grub_map_memory): ... here.
19613 (grub_unmap_memory): Moved from here ...
19614 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19615 (grub_machine_mmap_iterate): Moved from here ...
19616 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19617 (grub_mmap_get_lower): Moved from here ...
19618 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19619 (grub_mmap_get_upper): Moved from here ...
19620 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19621 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19622 here ...
19623 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19624 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19625 here ...
19626 * include/grub/mips/time.h (grub_get_rtc): ... here.
19627 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19628 here ...
19629 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19630 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19631 here ...
19632 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19633 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19634 definition.
19635 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19636 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19637 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19638 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19639 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19640 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19641 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19642 (GRUB_MACHINE_LINK_ADDR): Likewise.
19643 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19644 to 6.
19645 * util/grub-install.in: Run dvhtool on ARC.
19646 * util/grub-mkimage.c (image_targets): Add mips-arc.
19647 (generate_image): Handle ECOFF output for mips-arc.
19648
19649 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19650
19651 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19652 blocks.
19653
19654 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19655
19656 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19657 after enabling port.
19658
19659 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19660
19661 Skip incorrect USB devices.
19662
19663 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19664 configcnt == 0.
19665 * include/grub/usb.h (grub_usb_err_t): New enum value
19666 GRUB_USB_ERR_BADDEVICE.
19667
19668 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19669
19670 Fuloong video init support.
19671
19672 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19673 well.
19674 (grub_vga_read_arx): New function.
19675 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19676 definition.
19677 (framebuffer): New members io, mmioptr and mmiobase.
19678 (read_sis_cmd): New function.
19679 (write_sis_cmd): Likewise.
19680 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19681 rather than 640x400.
19682 * grub-core/video/sis315_init.c: New file.
19683
19684 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19685
19686 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19687 non-loongson.
19688 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19689 to grub_dl_register_symbol.
19690
19691 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19692
19693 Fix compilation errors.
19694
19695 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19696 potentially unused.
19697 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19698 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19699 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19700 to loongson machines.
19701
19702 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19703
19704 Several FS mtime support.
19705
19706 * grub-core/fs/affs.c (grub_affs_time): New struct.
19707 (grub_affs_file): New field mtime.
19708 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19709 type. Removed 'size'. New field 'di'. All users updated.
19710 (grub_affs_mount): Simplify checsum checking.
19711 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19712 (grub_affs_dir): Handle mtime.
19713 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19714 (grub_cpio_dir): Likewise.
19715 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19716 (grub_hfs_filerec): New field mtime.
19717 (grub_hfs_dir): Handle mtime.
19718 (grub_hfs_mtime): New function.
19719 (grub_hfs_fs): Register grub_hfs_mtime.
19720 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19721 (grub_iso9660_dir): New field mtime.
19722 (grub_fshelp_node): New field dirent.
19723 (iso9660_to_unixtime): New function.
19724 (iso9660_to_unixtime2): Likewise.
19725 (grub_iso9660_read_symlink): Use node->dirent.
19726 (grub_iso9660_iterate_dir): Likewise.
19727 (grub_iso9660_dir): Set mtime.
19728 (grub_iso9660_mtime): New function.
19729 (grub_iso9660_fs): Register grub_iso9660_mtime.
19730 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19731 (grub_jfs_inode): New fields atime, ctime and mtime.
19732 (grub_jfs_dir): Set mtime.
19733 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19734 * grub-core/fs/ntfs.c (list_file): Set mtime.
19735 (grub_ntfs_dir): Likewise.
19736 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19737 (grub_reiserfs_iterate_dir): Set mtime.
19738 (grub_reiserfs_dir): Likewise.
19739 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19740 (grub_fshelp_node): Likewise.
19741 (grub_sfs_iterate_dir): Set mtime.
19742 (grub_sfs_dir): Likewise.
19743 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19744 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19745 (grub_xfs_inode): New fields atime, mtime, ctime.
19746 (grub_xfs_dir): Set mtime.
19747 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19748 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19749 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19750
19751 Support UDF symlinks.
19752
19753 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19754 (grub_ufs_read_symlink): New function. All users updated.
19755
19756 Check amiga partmap checksum.
19757
19758 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19759 (grub_amiga_partition): Likewise.
19760 (amiga_partition_map_checksum): New function.
19761 (amiga_partition_map_iterate): Check checksum.
19762
19763 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19764
19765 ROMFS support.
19766
19767 * Makefile.util.def (libgrubmods.a): Add romfs.
19768 * grub-core/Makefile.core.def (romfs): New module.
19769 * grub-core/fs/romfs.c: New file.
19770
19771 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19772
19773 Squashfs v4 support.
19774
19775 * Makefile.util.def (libgrubmods.a): Add squash4.
19776 * grub-core/Makefile.core.def (squash4): New module.
19777 * grub-core/fs/squash4.c: New file.
19778 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19779 disk_input_start, disk_input.
19780 (get_byte): Handle disk_input.
19781 (grub_zlib_disk_read): New function.
19782 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19783
19784 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19785 2011-05-15 Feiran Zheng <famcool@gmail.com>
19786
19787 * Makefile.util.def (libgrubmods.a): Add minix3.
19788 * grub-core/Makefile.core.def (minix3): New module.
19789 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19790 (GRUB_MINIX_BSIZE): Removed.
19791 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19792 (grub_minix_ino_t): New type.
19793 (grub_minix_le_to_cpu_ino): New macro.
19794 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19795 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19796 (grub_minix_data): New field block_size.
19797 (grub_minix_read_file): Handle 64-bit correctly.
19798 * grub-core/fs/minix3.c: New file.
19799
19800 2011-05-15 Tristan Gingold <gingold@free.fr>
19801 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19802 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19803
19804 IA64 support.
19805
19806 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19807 * configure.ac: Add ia64-efi target.
19808 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19809 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19810 * gentpl.py: Add ia64_efi platform.
19811 Rename x86_efi to efi and Add ia64-efi. All users updated.
19812 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19813 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19814 Remove kern/generic/rtc_get_time_ms.c on EFI.
19815 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19816 kern/ia64/dl_helper.c on ia64-efi.
19817 Add kern/emu/cache.c on emu.
19818 (linux): Use on loader/ia64/efi/linux.c on ia64.
19819 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19820 whether symbol is a function.
19821 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19822 (grub_symbol): New field 'isfunc'.
19823 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19824 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19825 (grub_dl_load_segments): Place all sections into the same region.
19826 [__ia64__]: Create trampolines and got.
19827 [GRUB_MACHINE_EMU]: Call mprotect.
19828 (grub_dl_resolve_symbols): Resolve symbol type as well.
19829 [__ia64__]: Create function descriptors.
19830 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19831 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19832 (grub_get_rtc): New function.
19833 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19834 * grub-core/kern/emu/cache.S: Renamed to ...
19835 * grub-core/kern/emu/cache_s.S: ... this.
19836 [__ia64__]: Add a nop.
19837 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19838 [__ia64__]: New function.
19839 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19840 * grub-core/kern/ia64/dl.c: New file.
19841 * grub-core/kern/ia64/dl_helper.c: Likewise.
19842 * grub-core/kern/ia64/efi/init.c: New file.
19843 * grub-core/kern/ia64/efi/startup.S: Likewise.
19844 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19845 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19846 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19847 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19848 * grub-core/loader/ia64/efi/linux.c: New file.
19849 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19850 (GRUB_MOD_DEP): Likewise.
19851 (grub_dl) [__ia64__]: New fields got and tramp.
19852 (grub_dl): New field 'base'.
19853 (grub_dl_register_symbol): New argument isfunc. All users updated.
19854 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19855 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19856 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19857 (grub_ia64_dl_get_tramp_got_size): New proto.
19858 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19859 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19860 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19861 * include/grub/efi/api.h: Skip call wrappers on ia64.
19862 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19863 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19864 * include/grub/elf.h (ELF_ST_INFO): New definition.
19865 * include/grub/ia64/efi/kernel.h: New file.
19866 * include/grub/ia64/efi/memory.h: Likewise.
19867 * include/grub/ia64/efi/time.h: Likewise.
19868 * include/grub/ia64/kernel.h: Likewise.
19869 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19870 * include/grub/ia64/time.h: New file.
19871 * include/grub/ia64/types.h: Likewise.
19872 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19873 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19874 New protos.
19875 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19876 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19877 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19878 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19879 All users updated.
19880 (EFI64_HEADER_SIZE): New definition. All users updated.
19881 (image_targets): Add ia64-efi.
19882 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19883 jumpers_addr. All users updated.
19884 Create function descriptors.
19885 (count_funcs): New function.
19886 (unaligned_uint32): New struct.
19887 (MASK20): New definition.
19888 (MASK19): Likewise.
19889 (MASKF21): Likewise.
19890 (add_value_to_slot_20b): New function.
19891 (add_value_to_slot_21_real): Likewise.
19892 (add_value_to_slot_21): Likewise.
19893 (ia64_kernel_trampoline): New struct.
19894 (nopm): New variable.
19895 (jump): Likewise.
19896 (make_trampoline): New function.
19897 (relocate_addresses): Handle ia64.
19898 (make_reloc_section): Likewise.
19899 (load_image): Likewise.
19900
19901 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19902
19903 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19904 warning. Move variables before code while on it.
19905
19906 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19907
19908 Fuloong support.
19909
19910 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19911 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19912 * grub-core/boot/mips/loongson/fuloong.S: New file.
19913 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19914 Explicitly init CS5536.
19915 [FULOONG]: Don't use serial until CS5536 is available.
19916 Set GPIO based on dumps.
19917 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19918 [FULOONG]: Handle GPIO and memory controller differences.
19919 Parse machine type in $a2.
19920 * grub-core/boot/mips/startup_raw.S: Determine and save the
19921 architecture.
19922 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19923 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19924 init on architecture type.
19925 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19926 SIS315E. Don't init at_keyboard on fuloong.
19927 (grub_halt): Support Fuloong.
19928 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19929 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19930 (loongson_machtypes): New array.
19931 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19932 type.
19933 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19934 config. All users updated. Handle CS5536 serial.
19935 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19936 default port on machine type. Register serial as inactive.
19937 * grub-core/video/sis315pro.c: New file.
19938 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19939 definition.
19940 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19941 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19942 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19943 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19944 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19945 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19946 to ...
19947 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19948 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19949 definition.
19950 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19951 (grub_arch_machine): New extern var.
19952 * include/grub/mips/loongson/serial.h
19953 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19954 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19955 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19956 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19957 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19958 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19959 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19960 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19961 * include/grub/term.h (grub_term_register_input_inactive): New inline
19962 function.
19963 (grub_term_register_output_inactive): Likewise.
19964 * include/grub/video.h (grub_video_driver_id): New value
19965 GRUB_VIDEO_DRIVER_SIS315PRO.
19966 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19967 New field "names". All users updated.
19968 New field value IMAGE_FULOONG_FLASH.
19969 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19970
19971 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19972
19973 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19974 and add some clarification.
19975
19976 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19977
19978 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
19979 platforms if kernel is compressed.
19980
19981 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19982
19983 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
19984 unused modules since currently referrence counter isn't reliable and
19985 there isn't much memory to recover there anyway.
19986
19987 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19988
19989 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
19990 rather than resetting it to allow modules to reference themselves
19991 in init.
19992
19993 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19994
19995 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
19996 counter on dependencies since grub_dl_unref already handles this.
19997
19998 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
19999
20000 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20001 on error if not already done.
20002
20003 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20004
20005 Fix few potential memory misusage.
20006
20007 * grub-core/font/font.c (load_font_index): Don't free char_index to
20008 avoid double free.
20009 (grub_font_load): Zero-fill font at alloc for safety.
20010 Close file on error.
20011 (free_font): Free bmp_idx.
20012
20013 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20014
20015 * docs/grub.texi (Installation): Fix several outdated claims.
20016
20017 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20018
20019 Handle module_license on windows.
20020
20021 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20022 sections shifted.
20023 (insert_string): Make argument const char * instead of char *.
20024 (write_section_data): Handle long section names.
20025 Handle module_license.
20026
20027 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20028
20029 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20030 handle class-free menuentries.
20031 (grub_normal_add_menu_entry): Add a check to be sure.
20032
20033 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20034
20035 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20036 PgUp and PgDown.
20037
20038 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20039
20040 * configure.ac: Bump version to 1.99.
20041
20042 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20043
20044 Give ATA device a bit more time on first try in order to allow disks
20045 to spin up.
20046
20047 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20048 if dev->present is 1. Reset dev->present on failure.
20049 (grub_ata_device_initialize): Set dev->present to 1.
20050 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20051 (grub_ata_device): New member 'present'.
20052
20053 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20054
20055 * util/grub-mkimage.c (generate_image): Update hash.
20056
20057 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20058
20059 Flush caches on DMA memory.
20060
20061 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20062 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20063 (grub_dma_free): Likewise.
20064 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20065
20066 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20067
20068 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20069 to avoid asm treating ld and sd as macros.
20070
20071 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20072
20073 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20074 decompressor.
20075
20076 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20077
20078 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20079 grub_decompress_core since later would fail if grub_decompress_core
20080 is too far.
20081
20082 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20083
20084 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20085 R_MIPS_JALR since it's used by newer compiler.
20086
20087 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20088
20089 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20090
20091 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20094 file_path to 0 for surety.
20095 (grub_chainloader_boot): Set exit_data to NULL.
20096 Unset the loader once done.
20097 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20098
20099 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20100
20101 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20102 unknown key into a dprintf.
20103
20104 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20105
20106 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20107 on first non-existant partition.
20108
20109 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20110
20111 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20112 openning fails.
20113 Reported by: Mark Korenberg.
20114
20115 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20116
20117 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20118 overflow.
20119
20120 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20123 before closing to ensure that it will be readable by grub-setup.
20124
20125 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20126
20127 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20128 (devpath_1): Use MAKE_PIWG_PATH.
20129 (devpath_2): Likewise.
20130 (devpath_3): Likewise.
20131 (devpath_4): Likewise.
20132 (devpath_5): Likewise.
20133 (devpath_6): Likewise.
20134
20135 The appleldr.mod was checked that to be binary identical to previous
20136 version.
20137
20138 2011-05-05 Zach <mikezackles>
20139
20140 Support 2010 Macbooks.
20141
20142 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20143 (devs): Add devpath_6.
20144
20145 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20148 /dev/random. /dev/urandom is good enough for our purposes (salting).
20149
20150 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20151
20152 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20153
20154 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20155
20156 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20157 hexadecimal.
20158
20159 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20162 and not 0 on failure.
20163
20164 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20165
20166 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20167 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20168 disk; otherwise grub_fs_probe will not fall back to the next
20169 filesystem.
20170 (grub_pxefs_open): Likewise, for consistency.
20171 Reported and tested by: Ezekiel Grave.
20172
20173 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20174
20175 * tests/partmap_test.in: Don't hardcode path to parted.
20176 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20177
20178 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20179
20180 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20181 of `ls' to find out which devices are available.
20182
20183 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20184
20185 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20186 than source address for efi mmap buffer.
20187
20188 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20189
20190 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20191 wrong action on non-detecting the magic.
20192
20193 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20194
20195 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20196 already supplied by another part of the module (fixes compilation on
20197 FreeBSD).
20198
20199 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20200
20201 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20202 match the one used by mdadm.
20203
20204 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20205
20206 * po/README: Add instructions for creating po/LINGUAS.
20207
20208 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20209
20210 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20211 #551428.
20212
20213 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20214 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20215 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20216 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20217 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20218 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20219 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20220 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20221 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20222 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20223 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20224 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20225 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20226 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20227 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20228 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20229 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20230 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20231 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20232 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20233 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20234 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20235
20236 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20237
20238 * grub-core/kern/emu/getroot.c
20239 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20240 test that was incorrectly reintroduced in r3214.
20241 Reported by: Ian Dall. Fixes Savannah bug #33133.
20242
20243 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20244
20245 Fix stack pointer handling in 16-bit relocator.
20246
20247 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20248 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20249 Fixes Ubuntu bug #683904.
20250
20251 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20252
20253 * configure.ac: Bump version to 1.99~rc2.
20254
20255 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20256
20257 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20258 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20259 * grub-core/lib/x86_64/setjmp.S: Likewise.
20260 * grub-core/lib/mips/setjmp.S: Likewise.
20261 * grub-core/lib/powerpc/setjmp.S: Likewise.
20262 * grub-core/lib/sparc64/setjmp.S: Likewise.
20263
20264 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20265
20266 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20267 * grub-core/lib/efi/datetime.c: Likewise.
20268
20269 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20270
20271 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20272 New function.
20273 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20274 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20275 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20276
20277 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20278
20279 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20280 bitmap.
20281 (grub_gfxterm_term_init): Likewise.
20282
20283 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20284
20285 Take into account the decorations the computing menu entry width.
20286
20287 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20288 (grub_gfxmenu_create_box): Register get_border_width.
20289 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20290 if available.
20291 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20292 get_border_width.
20293
20294 2011-04-18 Endres Puschner <code@e7p.de>
20295
20296 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20297 Don't skip first class.
20298
20299 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20300
20301 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20302 chunks.
20303 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20304
20305 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20306
20307 Complete 64-bit division support.
20308
20309 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20310 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20311 * include/grub/misc.h (grub_divmod64): Rename to ...
20312 (grub_divmod64_full): ... this.
20313 (grub_divmod64): New inline function.
20314
20315 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20316
20317 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20318
20319 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20322 performing the necessary test.
20323
20324 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20327 (kfreebsd.elf): Likewise.
20328 (pc-chainloader.elf): Likewise.
20329 (ntldr.elf): Likewise.
20330
20331 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20332
20333 Identify RAID by its UUID rather than (guessed) name.
20334
20335 * grub-core/disk/raid.c (ascii2hex): New function.
20336 (grub_raid_open): Accept mduuid/%s specification.
20337 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20338 (get_mdadm_uuid): ... this.
20339 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20340
20341 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20342
20343 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20344 to negative size.
20345
20346 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20347
20348 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20349 btrfs subvolume.
20350 * util/grub.d/20_linux_xen.in: Likewise.
20351
20352 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20353
20354 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20355 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20356
20357 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20358 Build a list of relevant visible mounts using the mnt_id and
20359 parent_mnt_id fields, and then scan that list at the end.
20360
20361 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20362
20363 * docs/grub.texi (normal): New section.
20364 (normal_exit): New section.
20365 (Embedded configuration): Add reference to normal.
20366 (GRUB only offers a rescue shell): Likewise.
20367 * docs/grub-dev.texi (Error Handling): Fix typo.
20368
20369 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20370
20371 * NEWS: Drop obsolete entry about probe-only btrfs support.
20372
20373 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20374
20375 * util/import_gcry.py: Fix typo.
20376
20377 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20378
20379 * NEWS: Add btrfs support.
20380
20381 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20382 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20383
20384 BtrFS support. Written by me (Vladimir) with important bugfixes and
20385 even more important testing by Colin.
20386
20387 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20388 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20389 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20390 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20391 mem_input_off and mem_input. All users updated to accept in-RAM input.
20392 (gzio_seek): New function.
20393 (test_zlib_header): Likewise.
20394 (grub_gzio_read): Likewise.
20395 (grub_zlib_decompress): Likewise.
20396 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20397 Accept partial and non-virtual mounts.
20398 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20399 avoid receiving /dev/dm-X as device.
20400 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20401 Handle bind and partial mounts.
20402 * grub-core/lib/crc.c: New file.
20403 * include/grub/deflate.h: Likewise.
20404 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20405 proto.
20406 * include/grub/lib/crc.h: New file.
20407
20408 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 Implement automatic module license checking according to new GNU
20411 guidelines.
20412
20413 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20414 (grub_dl_load_core): Use grub_dl_check_license.
20415 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20416 (GRUB_MOD_LICENSE): Likewise.
20417 (GRUB_MOD_DUAL_LICENSE): Likewise.
20418 All modules updated.
20419
20420 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20421
20422 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20423 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20424 loaders.
20425 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20426
20427 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20428
20429 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20430
20431 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20432
20433 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20434 failed.
20435
20436 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20437
20438 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20439 parenthesis in the middle of the filename.
20440
20441 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20442
20443 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20444 rather than trying to put initrd way too high.
20445 Reported by: Ryan Lortie <desrt@desrt.ca>
20446
20447 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20448
20449 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20450 improperly removed string.
20451
20452 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20453
20454 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20455 is_disk.
20456 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20457 (open_device) Likewise.
20458 (grub_util_biosdisk_close): Likewise.
20459 Reported by: Mark Korenberg.
20460
20461 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20462
20463 * util/grub-mkconfig_lib.in: Add missing quotes.
20464
20465 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20466
20467 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20468 is NULL.
20469
20470 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20471
20472 Dynamically count the number of lines for the lower banner.
20473
20474 * grub-core/normal/menu_entry.c (per_term_screen): New member
20475 num_entries.
20476 (print_down): Use num_entries.
20477 (update_screen): Likewise.
20478 (grub_menu_entry_run): Set num_entries.
20479 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20480 num_entries.
20481 (grub_print_message_indented): Move real part to ...
20482 (grub_print_message_indented_real): ... here. Additional argument
20483 dry_run.
20484 (draw_border): Additional argument num_entries.
20485 (print_message): Additional argument dry_run.
20486 (print_entries): Receive menu viewer data.
20487 (grub_menu_init_page): New argment num_entries.
20488 (menu_text_set_chosen_entry): Use num_entries.
20489 (grub_menu_try_text): Likewise.
20490 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20491 All users updated.
20492 (grub_ucs4_count_lines): New function.
20493 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20494 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20495 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20496 (grub_term_border_height): Likewise.
20497 (grub_term_num_entries): Likewise.
20498
20499 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20500
20501 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20502 Remove now unused string.
20503
20504 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20505
20506 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20507 build system.
20508 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20509
20510 (Comment): Fix typo.
20511 (Getting started): General copy-editing.
20512 (Typical Development Experience): Likewise.
20513 (Error Handling): Likewise.
20514 (Video API): Likewise.
20515
20516 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20517
20518 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20519 throughout.
20520
20521 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20522
20523 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20524 directory.
20525
20526 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20527
20528 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20529 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20530 "development".
20531
20532 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20533
20534 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20535 grub_strcpy since the lines aren't necessarily 0-terminated.
20536
20537 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20538
20539 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20540 root on legacy.
20541
20542 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20545 (GRUB_MOD_INIT): DEVICE isn't optional.
20546
20547 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20548
20549 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20550 word on new line if it's too long anyway. Fixes a hang.
20551
20552 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20553
20554 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20555 const.
20556 * util/grub-setup.c (main): Reuse md device name if available.
20557 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20558 not GRUB name as argument.
20559 Based on patch by: Florian Wagner <fwagner>.
20560
20561 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20562
20563 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20564 Place mbi on low memory for better compatibility.
20565
20566 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20567
20568 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20569
20570 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20571 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20572
20573 * autogen.sh: Ensure that collate and ctype locale is C.
20574 * conf/Makefile.common: Likewise.
20575
20576 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20577
20578 * grub-core/normal/menu.c: Add missing include.
20579
20580 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20581
20582 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20583
20584 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20585
20586 * util/grub-mkconfig.in: Ignore emacsen backup.
20587
20588 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20589
20590 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20591 on open.
20592 (grub_util_biosdisk_close): Likewise.
20593
20594 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20595
20596 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20597 const attribute and use grub_isdigit.
20598
20599 2011-04-06 Andrey <dev_null@ukr.net>
20600
20601 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20602 gcc warning.
20603
20604 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20605
20606 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20607 useful grub_dprintf's.
20608
20609 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20610
20611 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20612
20613 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20616
20617 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20618
20619 Output errors if theme loading failed.
20620
20621 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20622 grub_gfxterm_fullscreen on error paths to ...
20623 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20624 theme loading error.
20625
20626 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20627
20628 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20629 space for older compilers.
20630 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20631
20632 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20633
20634 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20635 and report them as not RAID members since they are useless for GRUB.
20636 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20637
20638 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20639
20640 Increase LVM implementation robustness in order not to crash on
20641 configurations like pvmove. Previously code assumed that in some places
20642 only lvs or only pvs are used whereas it seems that they are used
20643 interchangeably.
20644
20645 * grub-core/disk/lvm.c (read_node): New function.
20646 (read_lv): Use read_node.
20647 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20648 Match volumes only at the end when all lvs are found. Take both
20649 pvs (first) and lvs (second) into account.
20650 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20651 mirror_* into node_*. All users updated.
20652 (grub_lvm_stripe): Merge this ...
20653 (grub_lvm_mirror): ... and this ...
20654 (grub_lvm_node): ... into this. All users updated.
20655
20656 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20657
20658 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20659 of function to allow further scanning for LVMs.
20660
20661 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20662
20663 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20664 on failed seek as it breaks open fd reusage.
20665
20666 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20667
20668 * util/grub-install.in: Add a recommendation to use --recheck before
20669 reporting bugs.
20670
20671 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20672
20673 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20674 are obtained.
20675
20676 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20677
20678 GRUB developper manual based on existing Internals section and
20679 contributions by the various authors with active copyright assignment.
20680
20681 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20682 * docs/font_char_metrics.png: New file.
20683 * docs/font_char_metrics.txt: Likewise.
20684 * docs/grub-dev.texi: Likewise.
20685 * docs/grub.texi (Internals): Move from here ...
20686 * docs/grub-dev.texi: ... here.
20687
20688 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20689
20690 Store the loopback device as data on loopback grub_disk structures,
20691 rather than the file it points to. This fixes use of freed memory
20692 if an existing loopback device is replaced.
20693
20694 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20695 disk->data, not dev->file.
20696 (grub_loopback_read): Adjust file assignment to match.
20697 Fixes Ubuntu bug #742967.
20698
20699 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20700
20701 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20702 when replacing an existing device.
20703
20704 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20705
20706 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20707 memory corruptions.
20708
20709 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20710 unsigned.
20711 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20712 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20713 (grub_jfs_read_inode): Likewise.
20714 (grub_jfs_opendir): Likewise. Remove now useless casts.
20715 (grub_jfs_getent): Likewise.
20716 Make ino a grub_uint32_t rather than int.
20717 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20718 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20719 division and module with bit operations.
20720 (grub_jfs_find_file): Make ino a grub_uint32_t.
20721 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20722
20723 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20724
20725 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20726 warning. (This was in fact always initialised before use, but GCC
20727 wasn't smart enough to prove that.)
20728 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20729
20730 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20731
20732 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20733 stack alignment.
20734 (efi_wrap_1): Likewise.
20735 (efi_wrap_2): Likewise.
20736 (efi_wrap_3): Likewise.
20737 (efi_wrap_4): Likewise.
20738 (efi_wrap_5): Likewise.
20739 (efi_wrap_6): Likewise.
20740 (efi_wrap_10): Likewise.
20741 Based on information by: Red Hat/Peter Jones.
20742
20743 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20744
20745 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20746 set-but-not-used variable.
20747
20748 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20749
20750 * docs/grub.texi (Simple configuration): Be more explicit about
20751 GRUB_DEFAULT, and add an example.
20752 Reported by: Leslie Rhorer.
20753
20754 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20755
20756 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20757 shell".
20758
20759 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20760
20761 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20762 * util/grub.d/20_linux_xen.in: Likewise.
20763
20764 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20765
20766 * util/grub.d/10_linux.in: Try alternative config filenames where
20767 we parse config file.
20768 * util/grub.d/20_linux_xen.in: Likewise.
20769
20770 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20771
20772 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20773 * util/grub.d/20_linux_xen.in: Likewise.
20774
20775 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20776
20777 * grub-core/disk/raid.c (insert_array): Add few potentially
20778 useful grub_util_info.
20779 (grub_raid_register): Likewise.
20780
20781 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20782
20783 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20784 Preserve partition number in mdadm code path.
20785
20786 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20787
20788 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20789 few potentially useful grub_util_info.
20790
20791 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20792
20793 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20794
20795 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20796
20797 * docs/grub.texi (default): Use @example rather than nested
20798 itemized lists to avoid breaking gendocs.
20799
20800 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20801
20802 * docs/grub.texi (Future): Update.
20803
20804 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20805
20806 * docs/grub.texi (Environment): New chapter.
20807 (Changes from GRUB Legacy): Link to "Environment block" section for
20808 details of limitations.
20809 (Simple configuration): Likewise. Link to documentation of gfxmode
20810 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20811 respectively.
20812 (Shell-like scripting): Note that normal variables are stored in the
20813 environment.
20814 (gettext): Link to documentation of lang and locale_dir.
20815 (list_env): New section.
20816 (load_env): New section.
20817 (save_env): New section.
20818
20819 (Reporting bugs): Fix typo.
20820
20821 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20822
20823 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20824 the example.
20825
20826 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20827
20828 * grub-core/term/at_keyboard.c (set_scancodes)
20829 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20830
20831 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20832
20833 * docs/grub.texi (Menu-specific commands): Remove some semantics
20834 that were true in GRUB Legacy but not in GRUB 2.
20835 (submenu): New section.
20836 (false): New section.
20837 (read): New section.
20838 (true): New section.
20839
20840 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20841
20842 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20843
20844 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20845
20846 * docs/grub.texi (Simple configuration): Explain some of the
20847 current limitations of grub-mkconfig.
20848 Reported by: Leslie Rhorer.
20849
20850 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20851
20852 Old macs search for boot.efi rather than for bootia32.efi.
20853
20854 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20855 * util/grub-mkrescue.in: Likewise.
20856 Suggested by: Peter Jones.
20857
20858 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20859
20860 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20861
20862 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20865 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20866 (grub_lvm_mirror): New struct.
20867 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20868 (grub_lvm_iterate): Iterate only visible volumes.
20869 (grub_lvm_read): Factor out to ..
20870 (read_lv): ... this. Support mirrors.
20871 (grub_lvm_read): New wrapper function.
20872 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20873 stripped or mirrored.
20874
20875 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20876
20877 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20878
20879 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20880
20881 * docs/grub.texi (loopback): New section.
20882
20883 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20884
20885 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20886 removed -p option.
20887
20888 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20889
20890 * docs/grub.texi (BIOS installation): New section, partly based on
20891 previous text in other sections.
20892 (Installing GRUB using grub-install): Replace BIOS discussion with a
20893 cross-reference.
20894 (Images): Likewise.
20895
20896 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20899 [HAVE_DIOCGDINFO]: Add safety checks.
20900
20901 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20902
20903 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20904 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20905
20906 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20907
20908 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20909 real_sb->size is zero (e.g. RAID-0), get the disk size from
20910 real_sb->data_size instead.
20911 Fixes Ubuntu bug #743136.
20912
20913 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20914
20915 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20916 printf clauses for printing size and start.
20917
20918 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20919
20920 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20921 Reported and tested by: Timothy Nikkel.
20922
20923 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20924
20925 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20926 (dirty_region_add_real): ... this.
20927 (dirty_region_add): Don't discard margin refresh when performing
20928 scheduled repaint.
20929
20930 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20931
20932 * grub-core/lib/relocator.c (allocate_regstart)
20933 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20934 terminals are capabple of malloc-free operation.
20935 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20936 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20937
20938 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20939
20940 * util/grub-setup.c: Copy the partition table zone if floppy support
20941 is disabled, even if no partition table is found.
20942
20943 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20944 during POST if an invalid partition table is contained in the PBR
20945 of the active partition when GRUB is installed to a partition.
20946
20947 2011-03-28 Colin Watson <cjwatson@debian.org>
20948
20949 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20950 comment.
20951
20952 2011-03-28 Colin Watson <cjwatson@debian.org>
20953
20954 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20955 to be specific about what kind of RAID device we're scanning for.
20956
20957 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20958
20959 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20960 return freed string.
20961
20962 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20963
20964 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20965
20966 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20967
20968 Use libgeom on FreeBSD to detect partitions.
20969
20970 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20971 (grub-mkrelpath): Likewise.
20972 (grub-script-check): Likewise.
20973 (grub-editenv): Likewise.
20974 (grub-mkpasswd-pbkdf2): Likewise.
20975 (grub-fstest): Likewise.
20976 (grub-mkfont): Likewise.
20977 (grub-mkdevicemap): Likewise.
20978 (grub-probe): Likewise.
20979 (grub-setup): Likewise.
20980 (grub-ofpathname): Likewise.
20981 (grub-mklayout): Likewise.
20982 (example_unit_test): Likewise.
20983 (grub-menulst2cfg): Likewise.
20984 * grub-core/Makefile.core.def (grub-emu): Likewise.
20985 (grub-emu-lite): Likewise.
20986 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
20987 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
20988 define HAVE_DIOCGDINFO.
20989 (follow_geom_up) [FreeBSD]: New function.
20990 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
20991 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
20992 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
20993 unconditionally of HAVE_DIOCGDINFO.
20994
20995 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20996
20997 Fix FreeBSD compilation problem.
20998
20999 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21000 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21001
21002 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21003
21004 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21005 Switch back to page zero before loading a kernel, since some kernel
21006 drivers expect that.
21007 Thanks to: Felix Kuehling.
21008
21009 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21012 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21013 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21014
21015 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21016
21017 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21018 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21019
21020 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21023 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21024 malloc is disabled.
21025
21026 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21027
21028 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21029 for modules headers when counting the needed allocation size.
21030
21031 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21032
21033 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21034 if no ASCII character is found to prevent crash.
21035
21036 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21037
21038 * grub-core/video/bitmap.c (match_extension): Ignore case.
21039
21040 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21041
21042 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21043
21044 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21045
21046 * grub-core/script/parser.y: Declare "time" as valid argument.
21047
21048 2011-03-23 Peter Jones <pjones@redhat.com>
21049
21050 Fix incorrect assert failure reporting.
21051
21052 * grub-core/tests/example_functional_test.c (example_test): Add
21053 a failure comment.
21054 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21055 (failure_start): ...this. Check that malloc succeeded.
21056 Don't call xvasprintf. Return failure struct.
21057 (failure_append_vtext): New function.
21058 (failure_append_text): Likewise.
21059 (add_failure): Likewise.
21060 (grub_test_assert_helper): Likewise.
21061 * include/grub/test.h (grub_test_assert_helper): New declaration.
21062 (grub_test_assert): Macro rewritten.
21063
21064 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21067
21068 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21071
21072 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21073
21074 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21075 into GRUB-style one.
21076
21077 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21078
21079 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21080 error and not grub_errno.
21081 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21082
21083 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21084
21085 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21086 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21087
21088 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21089
21090 * grub-core/efiemu/i386/pc/cfgtables.c
21091 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21092 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21093 (grub_xnu_unlock): Likewise.
21094 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21095
21096 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21099 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21100 * grub-core/commands/hashsum.c (aliases): Likewise.
21101 * grub-core/commands/setpci.c (pci_registers): Likewise.
21102 * grub-core/disk/usbms.c (attach_hook): Likewise.
21103 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21104 (zio_checksum_table): Likewise.
21105 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21106 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21107 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21108 * grub-core/lib/relocator.c (leftovers): Likewise.
21109 (extra_blocks): Likewise.
21110 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21111 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21112 (modules_last): Likewise.
21113 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21114 (devices): Likewise.
21115 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21116 (modules_last): Likewise.
21117 * grub-core/normal/auth.c (users): Likewise.
21118 * grub-core/normal/context.c (initial_menu): Likewise.
21119 (current_menu): Likewise.
21120 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21121 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21122 (grub_serial_terminfo_input_template): Likewise.
21123 (grub_serial_terminfo_output_template): Likewise.
21124 (grub_serial_terminfo_input): Likewise.
21125 (grub_serial_terminfo_output): Likewise.
21126 (registered): Likewise.
21127 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21128
21129 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21130
21131 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21132 grub_video_mode_type_t.
21133 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21134 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21135 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21136
21137 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21138
21139 * util/grub-install.in: Correct the x86-64 name as x86_64.
21140
21141 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21142
21143 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21144 initial chunk read from the kernel always includes GRUB's multiboot
21145 header, which is now outside the first sector.
21146
21147 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21148
21149 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21150 cached mmap_size, so that this works correctly when called multiple
21151 times.
21152 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21153
21154 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21155
21156 * docs/grub.texi (Simple configuration): Tidy up formatting.
21157
21158 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21159
21160 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21161 Set-but-not-used variable removed.
21162
21163 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21164
21165 Workaround yet another IEEE1275 bug.
21166
21167 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21168 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21169 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21170 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21171 is set.
21172 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21173 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21174
21175 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21176
21177 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21178 error.
21179
21180 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21181
21182 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21183 empty, since in that case we can only generate either nothing or a
21184 syntactically invalid configuration file.
21185 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21186
21187 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21188
21189 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21190 (Making a GRUB bootable CD-ROM): Likewise.
21191 (Invoking grub-mkrescue): New section.
21192 Reported by: Yann Dirson. Fixes Debian bug #612585.
21193
21194 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21195
21196 * util/grub-install.in: Remove unnecessary brackets from tr
21197 arguments.
21198 * util/grub.d/10_hurd.in: Likewise.
21199 * util/grub.d/10_kfreebsd.in: Likewise.
21200 * util/grub.d/10_linux.in: Likewise.
21201 * util/grub.d/20_linux_xen.in: Likewise.
21202 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21203
21204 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21205
21206 * include/grub/file.h (not_easly_seekable): Rename to ...
21207 (not_easily_seekable): ... this. Update all users.
21208
21209 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21210
21211 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21212 grub-mkrescue.
21213
21214 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21215
21216 * util/grub-mkimage.c (generate_image): Refuse to create the images
21217 bigger than the actual flash (512K) in Loongson machines. 512K is also
21218 the biggest chip supported by them.
21219
21220 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21221
21222 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21223
21224 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21225
21226 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21227 super_offset field.
21228
21229 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21230
21231 * util/grub-install.in: Ignore install device on platforms
21232 where it doesn't make sense. Always use UUIDs except on pc, efi and
21233 sparc64.
21234 Reported by: Daniel Kahn Gillmor.
21235
21236 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21237
21238 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21239
21240 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21241
21242 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21243 (iterate_real): Don't rely on partition being non-NULL.
21244
21245 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21248 supported platforms. Put a compile time assert for this rather than
21249 generate a warning with 32-bit shift.
21250
21251 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21252
21253 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21254 logical expression more readable.
21255
21256 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21257
21258 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21259 even if some elements have a name.
21260 Reported by: Alexander GQ Gerasiov.
21261
21262 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21263
21264 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21265 path unreadable if `grub-probe -t abstraction' fails, for example if
21266 memberlist fails on an LVM volume group.
21267 Reported by: Darius Jahandarie.
21268
21269 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21270
21271 * docs/grub.texi (Simple configuration): Document
21272 GRUB_PRELOAD_MODULES.
21273
21274 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21275
21276 * .bzrignore: Remove nonexistent grub-pbkdf2.
21277
21278 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21279
21280 * configure.ac: Bump version to 1.99~rc1.
21281
21282 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21283
21284 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21285 for safety.
21286
21287 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21288
21289 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21290 module.
21291
21292 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21293
21294 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21295
21296 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21297
21298 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21299 diskdevid.
21300
21301 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21302
21303 Fix compilation on cygwin.
21304
21305 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21306 -R .drectve on cygwin.
21307 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21308 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21309 (COND_CYGWIN): New condition.
21310 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21311 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21312 not @TARGET_OBJ2ELF@.
21313 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21314 type to determine whether aux is to be used.
21315
21316 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21317
21318 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21319 realpath'ed device string.
21320 Handle floppy (somewhat).
21321 Issue error in unknown case rather than garbage.
21322 Reported by: Axel Beckert.
21323
21324 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21325
21326 * util/grub.d/00_header.in (load_video): Handle the case when no video
21327 drivers available.
21328 Thanks to: Axel Beckert.
21329
21330 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21331
21332 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21333 variable. Fixes problem on big endian platforms.
21334
21335 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21338 It doesn't work well there.
21339
21340 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21341
21342 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21343 warning.
21344 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21345 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21346 counter.
21347
21348 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21349
21350 Use alias->path rather than buggy "canon".
21351
21352 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21353 (ofdisk_hash_add): New argument curcan. All users updated.
21354
21355 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21356
21357 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21358
21359 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21360
21361 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21362 loadmask before doing any calculations. Use correct type for offset.
21363 (grub_linux_load64): Likewise.
21364
21365 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21366
21367 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21368 with NULL.
21369 (console_grub_equivalences_unshift): Likewise.
21370 Reported by: Daniel Dehennin.
21371
21372 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21373
21374 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21375 (set_env_limn_ro): Likewise.
21376 (GRUB_MOD_INIT): Likewise.
21377 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21378 ARRAY_SIZE while on it.
21379 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21380 * grub-core/normal/context.c (grub_env_export): Move from here ...
21381 * grub-core/kern/env.c (grub_env_export): ... here.
21382 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21383 prefix.
21384 * grub-core/kern/main.c (grub_main): Export root and prefix.
21385 * include/grub/env.h (grub_env_export): Export.
21386 Reported by: Seth Goldberg.
21387
21388 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21389
21390 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21391 Take into account space used by ELF sections and multiboot palette.
21392 Reported by: Grégoire Sutre.
21393
21394 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21395
21396 * BUGS: New file.
21397
21398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21399
21400 Pass more appropriate video id to Linux.
21401
21402 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21403 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21404 fill have_vga.
21405 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21406 shift params->lfb_size.
21407 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21408
21409 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21410
21411 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21412
21413 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21416 separator and pass bootpath/devid even if only one of them is available.
21417 Reported by: Seth Goldberg.
21418
21419 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21420
21421 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21422 implementations bug on them.
21423
21424 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21425 memory.
21426 (filter_memory_map): Likewise.
21427
21428 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21429
21430 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21431 Reported by: nebuchadnezzar.
21432
21433 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21434
21435 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21436 Reported by: nebuchadnezzar.
21437
21438 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21439
21440 Submenu default support.
21441
21442 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21443 auto_boot. All users updated.
21444 Declared static.
21445 Handle chosen and default with submenus.
21446 (grub_menu_execute_with_fallback): Declared static.
21447 Don't notify failure if autobooted. Upper level does it.
21448 (menuentry_eq): New function.
21449 (get_entry_number): Use menuentry_eq.
21450 (show_menu): New parameter "autobooted". All users updated.
21451 (grub_show_menu): Likewise.
21452 * include/grub/normal.h (grub_show_menu): Likewise.
21453 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21454 (grub_menu_execute_with_fallback): Likewise.
21455
21456 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 * util/grub-mklayout.c (usage): Update help text.
21459
21460 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21461
21462 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21463
21464 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21465
21466 * util/grub-menulst2cfg.c (main): Trim the line.
21467
21468 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21469
21470 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21471 (grub_machine_init): Don't check amount of low memory as reportedly
21472 INT 12h can be broken and if low memory is too low we wouldn't have
21473 gotten into grub_machine_init anyway.
21474
21475 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21476
21477 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21478 (grub_machine_mmap_iterate): Take low memory into account
21479
21480 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21481
21482 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21483 badfs.
21484 Reported by: TiCPU.
21485
21486 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21487
21488 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21489 members errors.
21490
21491 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21492
21493 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21494 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21495
21496 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21497
21498 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21499 openbsd and netbsd types being in part_bsd module.
21500
21501 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21502
21503 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21504 (_FILE_OFFSET_BITS): Likewise.
21505 Reported by: Seth Goldberg.
21506
21507 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21508
21509 * configure.ac: Check for libdevmapper header.
21510
21511 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21514 avoid aliasing.
21515 (fzap_lookup): Likewise.
21516 (dnode_get): Likewise.
21517 (make_mdn): Likewise.
21518 (zfs_mount): Likewise.
21519 (fzap_iterate): Use temporary pointer to avoid aliasing.
21520 (grub_zfs_read): Likewise.
21521 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21522 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21523 pointers to avoid aliasing.
21524 (grub_cmd_xnu_kernel64): Likewise.
21525 (grub_xnu_load_driver): Likewise.
21526
21527 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21528
21529 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21530 aliasing warning.
21531 (grub_cmd_terminal_output): Likewise.
21532 Reported and tested by: Grégoire Sutre.
21533
21534 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21535
21536 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21537 warning.
21538 Reported and tested by: Grégoire Sutre.
21539
21540 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21541
21542 * configure.ac: Do CPU substitution even if it's specified explicitly.
21543 Reported and tested by: Alain Greppin.
21544
21545 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21546
21547 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21548 Reported and tested by: Alain Greppin.
21549
21550 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21551
21552 Satisfy some bison versions need for inttypes.h.
21553
21554 * grub-core/lib/posix_wrap/inttypes.h: New file.
21555 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21556 (int16_t): Likewise.
21557 (int32_t): Likewise.
21558 (int64_t): Likewise.
21559 Reported and tested by: Alain Greppin.
21560
21561 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21562
21563 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21564 Silence spurious warning.
21565 Reported and tested by: Alain Greppin.
21566
21567 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21568
21569 * docs/grub.texi (Support automatic decompression): Update with xz
21570 decompression support.
21571
21572 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21573
21574 Improve loaders' kernel command line handling.
21575
21576 * grub-core/lib/cmdline.c: New file.
21577 * include/grub/lib/cmdline.h: Likewise.
21578 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21579 grub_create_loader_cmdline to create kernel command line.
21580 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21581 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21582 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21583 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21584 (linux): Add lib/cmdline.c on common.
21585
21586 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21589 inopos might be unaligned.
21590
21591 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21592
21593 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21594 endian transformations.
21595 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21596 Based on report by: Doug Nazar.
21597
21598 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21599
21600 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21601 array->members[i].start_sector.
21602 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21603
21604 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21605
21606 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21607 Reported and tested by: Grégoire Sutre.
21608
21609 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21610
21611 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21612 avoid causing test failures by clearing the screen.
21613
21614 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21615
21616 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21617 Fix prefix check to handle the case where dir ends with a slash
21618 (most significantly, "/" itself).
21619 Reported by: Michael Vogt.
21620
21621 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21622
21623 Run terminfo_cls on initing terminfo output to clear the screen and
21624 move the cursor to (0,0).
21625
21626 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21627 Call grub_terminfo_output_init.
21628 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21629 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21630 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21631
21632 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21633
21634 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21635 only when needed.
21636
21637 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21640 CTRL.
21641
21642 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21643
21644 The E820 type 5 is BADRAM, not EXEC_CODE.
21645
21646 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21647 (GRUB_E820_BADRAM): New define.
21648 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21649 into reserved. Propagate BADRAM.
21650 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21651 (GRUB_E820_BADRAM): New define.
21652
21653 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21654
21655 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21656 Ignore the memory post-4G.
21657 (grub_relocator_firmware_alloc_region): Additional debug statement.
21658
21659 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21660
21661 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21662 names.
21663 Reported by: David Pravec.
21664
21665 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21666
21667 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21668 BIOSes.
21669
21670 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21671
21672 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21673 Prevent overflow.
21674 (grub_reed_solomon_recover): Likewise.
21675
21676 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21677
21678 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21679
21680 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21681
21682 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21683 variable.
21684
21685 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21686
21687 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21688 descriptions of extract_legacy_entries_source and
21689 extract_legacy_entries_configfile.
21690 Reported by: Seung Soo, Ha.
21691
21692 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21693
21694 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21695 on devices that do not implement function 0.
21696
21697 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21698
21699 * grub-core/fs/hfsplus.c: Make parent unsigned.
21700 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21701 overflows.
21702 (grub_hfsplus_cmp_extkey): Likewise
21703
21704 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21705
21706 * util/grub-install.in: Correctly use bootloader_id and not
21707 GRUB_DISTRIBUTOR on efibootmgr line.
21708
21709 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21710
21711 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21712
21713 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21714
21715 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21716 Xen and reorder menu item wording to make it clearer that this entry
21717 will launch Xen. Print separate messages when loading Xen and
21718 Linux.
21719
21720 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21721
21722 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21723 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21724 loop in case of incorrect amiga partmap.
21725
21726 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21729 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21730 Reported by:EHeM.
21731
21732 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21733
21734 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21735 spurious warning.
21736 Reported by: crocket
21737
21738 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21739
21740 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21741 Preload EFIemu.
21742 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21743
21744 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21745
21746 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21747 is loaded
21748 (grub_cmd_xnu_kextdir): Likewise.
21749 (grub_cmd_xnu_splash): Likewise.
21750
21751 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21752
21753 Avoid using Reed-Solomon with 0 redundancy.
21754
21755 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21756 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21757 or 0 redundancy.
21758 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21759 (grub_reed_solomon_recover): Likewise.
21760
21761 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21762
21763 Don't use disk subsystem in freebsd_boot.
21764
21765 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21766 (freebsd_biosdev): Likewise.
21767 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21768 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21769
21770 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21771
21772 Handling of files of unknown size is currently limited. They can't be
21773 used e.g. for initrd or modules. Moreover gzip handling of not
21774 easily seekable files is buggy. Disable unknown file size for now. May
21775 be inefficient but works.
21776
21777 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21778 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21779
21780 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21781
21782 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21783 floppy probe.
21784
21785 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21786
21787 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21788
21789 2010-12-25 Shea Levy <shlevy>
21790
21791 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21792
21793 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21794
21795 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21796 Windows Server 2008.
21797 Reported by: Devin Giddings.
21798
21799 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21800
21801 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21802 writing an error message because of async power management.
21803 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21804 (grub_reboot): Likewise.
21805
21806 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21807
21808 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21809 keep unit tests from failing when they shouldn't.
21810
21811 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21812
21813 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21814 previous patch increased the size of the RS code by 20 bytes (at
21815 least with gcc-4.4), so increase this by 20 bytes to match.
21816 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21817
21818 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21819
21820 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21821 scratch area. Make sure to initialise chosen in standalone mode as
21822 well as non-standalone.
21823 Reported by: Robert Hooker and Andy Whitcroft.
21824 Tested by: Andy Whitcroft.
21825
21826 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21827
21828 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21829 constructing a new unescaped string and passing it to grub_xputs in
21830 one go, rather than passing characters to grub_printf one at a time.
21831
21832 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21833
21834 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21835 initialising utf16.
21836
21837 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21838
21839 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21840 comment. Add an extra layer of quotation, requiring the output of
21841 this function to be used in a printf format string.
21842 (gettext_printf): New function.
21843 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21844 Extract translatable strings from here-documents and use a temporary
21845 variable instead, so that xgettext can find them.
21846 * util/grub.d/10_kfreebsd.in: Likewise.
21847 * util/grub.d/10_linux.in: Likewise.
21848 * util/grub.d/20_linux_xen.in: Likewise.
21849
21850 * po/grub.d.sed: New file.
21851 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21852 arguments. Set c-format flags on all strings extracted from
21853 util/grub.d/ (xgettext refuses to include these itself for strings
21854 it extracted from a shell file, but these really are c-format).
21855
21856 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21857
21858 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21859 Avoid next pointing to nowhere.
21860
21861 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21862
21863 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21864 rather than assuming than rootblock is exactly in the middle.
21865 (grub_affs_label): Likewise.
21866
21867 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21868
21869 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21870 reserved_first_sector to 0.
21871 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21872 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21873 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21874
21875 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21876
21877 Fix handling of UTF-16 UDF labels.
21878
21879 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21880 (read_string): .. here.
21881 (grub_udf_label): Use read_string.
21882
21883 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21884
21885 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21886 editor under argument scope.
21887 Reported by: Jordan Uggla
21888
21889 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21892
21893 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21894
21895 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21896 line, and other keys scroll an entire page (previous handling was
21897 for \r and \n to scroll a page and other keys to scroll two lines).
21898
21899 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21900
21901 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21902 Set ptrdest to correct get_physical_target_address rather than
21903 incorrect get_virtual_current_address.
21904
21905 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21906
21907 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21908 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21909
21910 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21911
21912 * .bzrignore: Ignore grub-core/rs_decoder.S.
21913
21914 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21915
21916 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21917 .mo/.mo.gz opening sequence to ...
21918 (grub_mofile_open_lang): ... here.
21919 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21920 * util/grub.d/00_header.in (grub_lang): Include country part of
21921 locale.
21922 Reported by: Mario Limonciello.
21923
21924 2010-12-09 Robert Millan <rmh@gnu.org>
21925
21926 * NEWS: Document addition of ZFS support.
21927
21928 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21929
21930 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21931 rather than `/ 2', as the latter requires -Wa,--divide which would
21932 require bumping our minimum binutils version.
21933
21934 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21935
21936 * util/grub-script-check.c (main): Print script line number on
21937 error.
21938
21939 2010-12-01 Robert Millan <rmh@gnu.org>
21940
21941 * grub-core/fs/zfs/zfs.c: New file.
21942 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21943 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21944 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21945 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21946
21947 * include/grub/zfs/dmu.h: Likewise.
21948 * include/grub/zfs/dmu_objset.h: Likewise.
21949 * include/grub/zfs/dnode.h: Likewise.
21950 * include/grub/zfs/dsl_dataset.h: Likewise.
21951 * include/grub/zfs/dsl_dir.h: Likewise.
21952 * include/grub/zfs/sa_impl.h: Likewise.
21953 * include/grub/zfs/spa.h: Likewise.
21954 * include/grub/zfs/uberblock_impl.h: Likewise.
21955 * include/grub/zfs/vdev_impl.h: Likewise.
21956 * include/grub/zfs/zap_impl.h: Likewise.
21957 * include/grub/zfs/zap_leaf.h: Likewise.
21958 * include/grub/zfs/zfs.h: Likewise.
21959 * include/grub/zfs/zfs_acl.h: Likewise.
21960 * include/grub/zfs/zfs_znode.h: Likewise.
21961 * include/grub/zfs/zil.h: Likewise.
21962 * include/grub/zfs/zio.h: Likewise.
21963 * include/grub/zfs/zio_checksum.h: Likewise.
21964
21965 * Makefile.util.def: Build ZFS into libgrubmods.
21966 * grub-core/Makefile.core.def: Build zfs.mod.
21967
21968 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21969
21970 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21971 variable.
21972 * grub-core/commands/wildcard.c (match_files): Likewise.
21973
21974 2010-11-30 Robert Millan <rmh@gnu.org>
21975
21976 * grub-core/loader/i386/bsd.c
21977 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
21978 whether kernel is loaded using grub_loader_is_loaded(), rather
21979 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
21980 certain error conditions.
21981
21982 2010-11-30 Robert Millan <rmh@gnu.org>
21983
21984 * grub-core/commands/echo.c: Include `<grub/term.h>'.
21985 (grub_cmd_echo): Call grub_refresh() after printing a message.
21986
21987 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
21988
21989 Avoid using tricks for initialising endian variables.
21990
21991 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
21992 Make const.
21993 (GRUB_MOD_INIT): Don't byte-swap.
21994 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
21995 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
21996 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
21997 (grub_swap_bytes32_compile_time): Likewise.
21998 (grub_cpu_to_le32_compile_time): Likewise.
21999 (grub_cpu_to_le16_compile_time): Likewise.
22000
22001 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22002
22003 * util/grub-setup.c (setup): Stop recommending --force. People who
22004 understand the dangers of blocklists are able to find this option
22005 anyway and the ones who don't shouldn't use it anyway.
22006
22007 2010-11-26 Robert Millan <rmh@gnu.org>
22008
22009 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22010 Update all users.
22011
22012 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22013
22014 Fix LVM-on-RAID probing.
22015
22016 * util/grub-probe.c (probe): Remember which disk was detected as
22017 RAID (perhaps an LVM physical volume). Use that disk's raidname
22018 rather than that of the top-level disk.
22019
22020 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22021
22022 Fix cmdline argument quotes for setparams command of menuentry
22023 definitions.
22024
22025 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22026 quotes for arguments.
22027 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22028 grub_strchrsub function instead.
22029
22030 * include/grub/misc.h (grub_strchrsub): New function.
22031
22032 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22033
22034 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22035 effort by skipping "." and ".." entries up-front.
22036 Suggested by: Michael Lazarev.
22037
22038 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22039
22040 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22041 ldflags to ldadd, to fix link line ordering.
22042 (none_decompress): Likewise.
22043
22044 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22045
22046 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22047 platforms.
22048 (grub-emu-lite): Remove kern/emu/cache.S.
22049
22050 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22051
22052 * util/deviceiter.c (compare_devices): If the by-id link for a
22053 device couldn't be resolved, fall back to sorting by the by-id link
22054 rather than segfaulting.
22055 Reported and tested by: Daniel Mierswa.
22056
22057 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22058
22059 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22060 ldflags, to fix link line ordering.
22061
22062 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22063
22064 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22065 linkers are picky about this.
22066
22067 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22068
22069 * grub-core/Makefile.am (command.lst): Adjust sed expression
22070 ordering so that extended and priority commands aren't treated as
22071 ordinary commands.
22072
22073 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22074
22075 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22076 Remove byte-swapping function calls, which are not valid in
22077 structure initialisers.
22078 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22079 non-const.
22080 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22081 grub_gpt_partition_type_bios_boot.
22082
22083 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22084
22085 Fix test program build on GNU/kFreeBSD.
22086
22087 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22088 $(LIBNVPAIR)' library dependencies.
22089
22090 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22091
22092 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22093
22094 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22095
22096 * util/grub-install.in: Remove excessive quoting that broke
22097 installations to RAID devices.
22098
22099 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22100
22101 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22102 bootloader version instead of 0.
22103
22104 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22105
22106 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22107 warning.
22108
22109 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22110
22111 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22112 retrieve the metadat sector if size isn't known.
22113 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22114
22115 2010-11-18 Robert Millan <rmh@gnu.org>
22116
22117 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22118 with grub_memcmp().
22119
22120 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22121
22122 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22123 arrow.
22124 Reported by: Jordan Uggla.
22125
22126 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22127
22128 Make better UTF compliant.
22129
22130 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22131 sequences as incorrect.
22132 (grub_is_valid_utf8): Likewise.
22133 (grub_utf8_to_ucs4): Likewise.
22134 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22135 (grub_ucs4_to_utf8_alloc): Likewise.
22136 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22137
22138 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22139
22140 Make legacy_source behave like source.
22141
22142 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22143 grub_show_menu.
22144 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22145
22146 2010-11-16 Colin Watson <cjwatson@debian.org>
22147
22148 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22149 (-Wunused implies -Wunused-parameter, but not vice versa).
22150
22151 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22152
22153 * configure.ac: Make error messages less confusing by testing for
22154 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22155 accepted, but produces a diagnostic if something else is wrong).
22156
22157 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22158
22159 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22160 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22161 (now unused).
22162 (grub_keyboard_controller_init)
22163 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22164 read the initial state since controller isn't inited yet.
22165
22166 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22167
22168 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22169 allocate_regbeg may need to create new chunk header.
22170
22171 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22172
22173 Fix quoting in legacy parser.
22174
22175 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22176 single quotes.
22177 (grub_legacy_parse): Likewise.
22178 Reported by: Jordan Uggla.
22179 Tested by: Jordan Uggla.
22180
22181 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22182
22183 Don't add -lgcc on i386 and x86_64.
22184
22185 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22186 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22187 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22188
22189 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 * configure.ac: Add -Wno-trampolines when supported.
22192
22193 2010-11-14 Modestas Vainius <modax@debian.org>
22194
22195 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22196 fakeraid.
22197
22198 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22199
22200 Add generic logical block size support for UDF.
22201
22202 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22203 (GRUB_UDF_BLKSZ): Removed.
22204 (struct grub_udf_data): New field "lbshift" to hold the logical block
22205 size of the file system in log2 format. All users updated.
22206 (sblocklist): Change type to unsigned.
22207 (grub_udf_mount): Change type of "sblklist" to unsigned.
22208 Move AVDP search before VRS recognition, because the latter requires
22209 knowledge of the logical block size, which is detected during the
22210 former.
22211 Detect and validate logical block size during AVDP search, adding
22212 support for block sizes 512, 1024 and 4096.
22213 Make VRS recognition independent of block size.
22214
22215 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22216
22217 Properly handle deleted files on UDF.
22218
22219 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22220 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22221 set.
22222
22223 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22224
22225 Support reading files larger than 2 GiB.
22226
22227 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22228 "offset" to grub_off_t.
22229 (grub_udf_read_file): Likewise for parameter "pos".
22230
22231 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22232
22233 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22234 unavailable.
22235 (Simple configuration): Refer to Changes from GRUB Legacy about
22236 save_env availability.
22237
22238 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22239
22240 * util/grub-install.in: Ignore empty partition table detection
22241 instead of trying to include part_ module.
22242
22243 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22244
22245 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22246 LVM on RAID support.
22247
22248 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22249
22250 Properly define WORDS_BIGENDIAN in wrapped environments.
22251
22252 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22253 definition.
22254 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22255
22256 Reported by: Manoel Rebelo Abranches.
22257 Tested by: Manoel Rebelo Abranches.
22258
22259 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22260
22261 * util/grub-mkconfig.in: Fix quoting.
22262
22263 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 Support big ext2 files.
22266
22267 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22268 (grub_ext2_read_block): Support triple indirect blocks.
22269 (grub_ext2_read_file): Use 64-bit types and read size_high.
22270 (grub_ext2_open): Read size_high.
22271 Reported by: Ximin Luo.
22272 Tested by: Manoel Rebelo Abranches.
22273
22274 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22275
22276 * util/grub-install.in: Handle filenames containing spaces.
22277 Reported by: Jordan Uggla.
22278 Tested by: Jordan Uggla.
22279
22280 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22281
22282 * util/grub-mkconfig.in (grub_script_check): New variable.
22283 Use grub_script_check instead of grub-script-check.
22284 Reported by: Barry Jackson.
22285
22286 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * docs/grub.texi (menu): Correct the order.
22289 Reported by: D. Hugh Redelmeier.
22290
22291 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22292
22293 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22294 jump.
22295
22296 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22297
22298 * include/grub/elfload.h (grub_elf32_size): New parameter.
22299 All users updated.
22300 Return maximum segments alignment.
22301 (grub_elf64_size): Likewise.
22302 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22303 Return maximum segments alignment.
22304 (grub_elf64_size): Likewise.
22305 * grub-core/loader/powerpc/ieee1275/linux.c:
22306 (grub_linux_claimmap_iterate): New function. Uses the
22307 "available" property in the "memory" node for memory allocation
22308 for kernel in the PowerPC loader.
22309 (grub_linux_load32): Correctly find linux entry point offset.
22310 (grub_linux_load64): Likewise.
22311
22312 2010-11-07 Robert Millan <rmh@gnu.org>
22313
22314 On mips-yeeloong, build with -march=loongson2f when this flag is
22315 available (GCC >= 4.4).
22316 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22317 `-march=mips3'.
22318 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22319 or otherwise add -march=mips3.
22320
22321 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22322
22323 Suppress shell expansion on echo '*' and echo "*" like cases.
22324 Reported by: Jordan Uggla.
22325
22326 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22327 string arguments before shell expansion.
22328 * tests/grub_cmd_echo.in: New testcases.
22329
22330 2010-11-07 Robert Millan <rmh@gnu.org>
22331
22332 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22333 transition.
22334
22335 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22336
22337 * grub-core/kern/emu/hostdisk.c
22338 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22339
22340 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22341
22342 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22343 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22344 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22345
22346 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22347
22348 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22349
22350 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22351
22352 * util/grub-install.in: Replace useless recomendation to pass
22353 --modules with a recomendation to report a bug.
22354
22355 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22356
22357 Properly register serial terminfo.
22358 Reported by: Jordan Uggla
22359
22360 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22361 const.
22362 (grub_serial_terminfo_output_template): Likewise.
22363 (grub_cmd_serial): Register "serial" with terminfo.
22364 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22365 grub_serial_terminfo_output.
22366
22367 2010-11-05 Robert Millan <rmh@gnu.org>
22368
22369 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22370 needed).
22371
22372 2010-11-05 Robert Millan <rmh@gnu.org>
22373
22374 On Yeeloong, pass machine type information to Linux.
22375
22376 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22377 (LOONGSON_MACHTYPE): New macro, set to
22378 "machtype=lemote-yeeloong-2f-8.9inches".
22379 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22380 additional argument to Linux.
22381
22382 2010-11-04 Robert Millan <rmh@gnu.org>
22383
22384 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22385 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22386 (its SATA disks are detected as slaveless IDE master drives on
22387 kFreeBSD).
22388 Reported by Carsten Aulbert.
22389
22390 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22391
22392 * util/bin2h.c (main): Fix spelling error in generated output.
22393
22394 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22395
22396 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22397
22398 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22399
22400 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22401 vga= option is supplied.
22402
22403 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22406 * util/grub.d/10_kfreebsd.in: Likewise.
22407 * util/grub.d/10_linux.in: Likewise.
22408 * util/grub.d/20_linux_xen.in: Likewise.
22409
22410 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22411
22412 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22413 argument as an argument to no-argument option.
22414
22415 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22416
22417 * util/grub.d/10_linux.in: Add missing load_video with explicit
22418 GRUB_GFXPAYLOAD_LINUX.
22419
22420 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22421
22422 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22423
22424 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22425
22426 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22427 elements with invlid index.
22428 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22429 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22430 members.
22431 * include/grub/raid.h (grub_raid_member): New struct.
22432 (grub_raid_array): Transform devices and start_sector into usage of
22433 grub_raid_member. All users updated
22434 (allocated_devs): New member.
22435
22436 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22437
22438 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22439 is modified
22440
22441 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22442
22443 NetBSD build fix for getline function conflict from gnulib.
22444
22445 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22446 components that depend on gnulib headers.
22447 (libgrubmods.a): Renamed from earlier libgrub.a.
22448 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22449
22450 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22451
22452 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22453 install rather than creating a broken install.
22454
22455 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22456
22457 * util/grub-setup.c (argp): Remove misleading example of installing to
22458 a partition.
22459
22460 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22461
22462 * util/grub-setup.c (setup): Clarify the error message.
22463
22464 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22465
22466 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22467
22468 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22469
22470 * grub-core/kern/emu/misc.c
22471 (grub_make_system_path_relative_to_its_root)
22472 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22473
22474 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22475
22476 * grub-core/kern/emu/misc.c
22477 (grub_make_system_path_relative_to_its_root): Revert r2882.
22478
22479 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22482 useless field head. All users updated.
22483 (free_subchunk): Correct handling of IN_REGION subchunk.
22484
22485 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22486
22487 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22488 (Supported kernels): Likewise.
22489
22490 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22491
22492 Make mktemp invocations portable.
22493
22494 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22495 exit if mktemp fails.
22496 * tests/grub_script_blockarg.in: Likewise.
22497 * tests/partmap_test.in: Likewise.
22498 * tests/util/grub-shell-tester.in: Likewise.
22499 * tests/util/grub-shell.in: Likewise.
22500 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22501 * Makefile.am: Likewise, and chain shell commands with `&&'
22502 instead of ';'.
22503 * util/grub-mkrescue.in: Use the same explicit template as above, and
22504 exit if mktemp fails.
22505
22506 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22507
22508 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22509 Linux kernel, reported by Dennis Schridde.
22510
22511 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22512
22513 * grub-core/normal/auth.c (grub_auth_check_authentication):
22514 Set-but-not-used variable removed.
22515
22516 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22517
22518 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22519 32-bit linux protocol.
22520
22521 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22522
22523 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22524 cursor shape for sanity.
22525
22526 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22527
22528 * docs/grub.texi (Installation): Document buggy BIOS install.
22529
22530 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22531
22532 * docs/grub.texi (Installation): Indent.
22533
22534 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22535
22536 * util/grub-setup.c (setup): New parameter allow_floppy.
22537 (arguments): New member allow_floppy.
22538 (argp_parser): Handle --allow-floppy.
22539 (main): Pass allow_floppy.
22540 * util/grub-install.in: New option --allow-floppy passed though to
22541 grub-setup.
22542
22543 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22544
22545 * util/grub-install.in: Handle partitionless disks.
22546
22547 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22548
22549 * util/grub-setup.c (setup): Don't clean blocklists before readability
22550 verfification.
22551
22552 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22553
22554 * docs/grub.texi (Installation): Document embedding zone. Remove
22555 obsolete grub-install example.
22556
22557 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22558
22559 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22560 Set-but-not-used variable ifdef'ed.
22561 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22562 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22563 variable removed.
22564 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22565 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22566 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22567 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22568 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22569 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22570 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22571 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22572 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22573 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22574 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22575 Likewise.
22576
22577 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22580 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22581 enum value.
22582
22583 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22584
22585 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22586 synonym to _S5_. Needed for some DSDTs.
22587
22588 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22589
22590 Userspace ACPI parser debugging.
22591
22592 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22593 headers and add relevant defines. Don't include standard headers.
22594 (main) [GRUB_DSDT_TEST]: New function.
22595 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22596 Don't declare functions.
22597
22598 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22599
22600 Remove dead grub_efi_mm_fini.
22601
22602 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22603 (ALLOCATED_PAGES_SIZE): Likewise.
22604 (MAX_ALLOCATED_PAGES): Likewise.
22605 (allocated_pages): Likewise.
22606 (grub_efi_allocate_pages): Don't record allocated pages.
22607 (grub_efi_free_pages): Likewise.
22608 (grub_efi_mm_init): Likewise.
22609 (grub_efi_mm_fini): Removed.
22610
22611 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22612
22613 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22614 (grub_efi_mm_init): Take into account the memory map size increase.
22615
22616 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22617
22618 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22619 (serial_hw_put): Wait based on real time rather than port reads. Don't
22620 roken ports.
22621 * include/grub/serial.h (grub_serial_port): New field broken.
22622
22623 2010-10-16 Robert Millan <rmh@gnu.org>
22624
22625 * grub-core/kern/emu/misc.c
22626 (grub_make_system_path_relative_to_its_root): Fix premature return
22627 when processing non-root ZFS filesystems.
22628 Reported by Sergio Talens-Oliag.
22629
22630 2010-10-15 Robert Millan <rmh@gnu.org>
22631
22632 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22633 guarantee compressed ones are processed first.
22634
22635 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22636
22637 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22638 grub_efiemu_autocore.
22639
22640 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22643 rather than 0x1b.
22644 (grub_console_getkey): Use correct jae opcode rather than ja.
22645
22646 2010-10-12 Robert Millan <rmh@gnu.org>
22647
22648 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22649 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22650 variable. All references updated.
22651
22652 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22653
22654 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22655
22656 Correctly distinguish mdraid flavours.
22657
22658 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22659 (insert_array): New argument raid.
22660 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22661 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22662 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22663
22664 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22665
22666 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22667 handling of special keys.
22668
22669 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22670
22671 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22672 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22673
22674 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22675
22676 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22677 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22678 users updated.
22679 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22680 Use right endpoint when querying descriptor.
22681
22682 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22683
22684 Clear out 0x80 color bit on EFI.
22685 Tested by: decoder
22686 Reported by: decoder and meta tech.
22687
22688 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22689 (grub_console_setcolorstate): Clear out 0x80 bit.
22690 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22691 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22692 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22693
22694 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22695
22696 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22697 Set to "auto".
22698
22699 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22702 mo_file after freeing.
22703
22704 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22705
22706 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22707
22708 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22709
22710 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22711 flags.
22712
22713 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22714
22715 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22716 usage.
22717
22718 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22719
22720 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22721
22722 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22723 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22724 and terminfo.h when needed.
22725 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22726 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22727 (terminfo): Enable only on terminfokernel.
22728 (extcmd): Likewise.
22729 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22730 * include/grub/lib/arg.h: Likewise.
22731 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22732 incorrect usage of ->.
22733
22734 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22735
22736 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22737 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22738
22739 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22740
22741 Fix coreboot compilation.
22742
22743 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22744 Take VBE info into account even if only text is supported.
22745 (fill_vbe_info): Take into account the case when only VGA text
22746 is supported.
22747 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22748 on coreboot, multiboot and qemu.
22749
22750 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22751
22752 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22753 debug messages.
22754 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22755
22756 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22757
22758 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22759 parameters.
22760
22761 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22762
22763 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22764 if they were BSD-style.
22765
22766 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22767
22768 * grub-core/boot/i386/pc/lnxboot.S: Replace
22769 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22770 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22771
22772 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22773
22774 Write embedding zone using Reed-Solomon.
22775
22776 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22777 * grub-core/Makefile.am (rs_decoder.S): New target.
22778 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22779 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22780 (multiboot): Move to RS part.
22781 (post_reed_solomon): New label.
22782 (grub_boot_drive): Move to non-RS part since it's modified in memory
22783 on boot.
22784 Include rs_decoder.S.
22785 * grub-core/lib/reed_solomon.c: New file.
22786 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22787 New definition.
22788 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22789 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22790 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22791 * include/grub/partition.h (grub_partition_map): Change prototype of
22792 embed to allow returning additional sectors.
22793 * include/grub/reed_solomon.h: New file.
22794 * util/grub-setup.c (setup): Handle Reed-Solomon.
22795
22796 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22797
22798 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22799 i386 and x86-64 definedness tests.
22800
22801 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22802
22803 Fix generation of kernel_syms.lst
22804
22805 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22806 ASM_PREFIX
22807
22808 2010-09-26 Robert Millan <rmh@gnu.org>
22809
22810 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22811
22812 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22813 the pool is an array of devices, iterate through it and return the
22814 first device that passes a stat() test (instead of blindly returning
22815 the first one).
22816
22817 2010-09-26 Robert Millan <rmh@gnu.org>
22818
22819 Build fixes for GNU/kFreeBSD.
22820
22821 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22822 to programs that require ZFS conversion.
22823 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22824 kernels that don't have FLOPPY_MAJOR.
22825
22826 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22827
22828 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22829
22830 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22831
22832 Fix grub-emu build.
22833
22834 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22835 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22836 mdraid09 and mdraid1x.
22837
22838 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22839
22840 Re-enable grub-extras.
22841
22842 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22843 avoid confusing Automake. Run autogen only twice, once for the top
22844 level and once for grub-core. Add Makefile.util.def and
22845 Makefile.core.def from extra modules to the appropriate autogen
22846 invocations. If Makefile.common exists in an extra module, include
22847 it in both Makefile.util.am and grub-core/Makefile.core.am;
22848 similarly, include any Makefile.util.common file in Makefile.util.am
22849 and any Makefile.core.common file in grub-core/Makefile.core.am.
22850 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22851 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22852 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22853 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22854
22855 * gentpl.py (gvar_add): Turn GVARS into a set.
22856 (global_variable_initializers): Sort global variables on output.
22857 (vars_init): New function.
22858 (first_time): Likewise.
22859 (library): Ensure that non-global variable initialisations are
22860 emitted before the first time we emit code for a library block.
22861 Append to variables rather than setting them. Only emit
22862 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22863 each conditional path.
22864 (program): installdir() emits an Autogen macro, so must be passed to
22865 var_add rather than gvar_add.
22866 (data): Likewise.
22867 (script): Likewise.
22868 (rules): New function, centralising handling for different target
22869 types. Set up Guile association lists for first_time and vars_init,
22870 and send most output to a diversion so that variable initialisations
22871 can be emitted first.
22872 (module_rules): Use new rules function.
22873 (kernel_rules): Likewise.
22874 (image_rules): Likewise.
22875 (library_rules): Likewise.
22876 (program_rules): Likewise.
22877 (script_rules): Likewise.
22878 (data_rules): Likewise.
22879
22880 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22881
22882 * .bzrignore: Add contrib and grub-core/contrib. Remove
22883 grub-core/Makefile.gcry.am.
22884
22885 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22886
22887 * grub-core/lib/LzFind.c: Add missing include.
22888 * grub-core/lib/LzmaEnc.c: Likewise.
22889 * grub-core/script/lexer.c: Likewise.
22890 * grub-core/script/yylex.l: Likewise.
22891 * util/grub-macho2img.c: Likewise.
22892 * util/grub-menulst2cfg.c: Likewise.
22893 * util/grub-mklayout.c: Likewise.
22894 * util/grub-mkpasswd-pbkdf2.c
22895 * util/grub-mkrelpath.c: Likewise.
22896 * util/resolve.c: Likewise.
22897
22898 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22899
22900 * Makefile.util.def (example_unit_test): Add
22901 grub-core/gnulib/libgnu.a.
22902
22903 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22904
22905 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22906
22907 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22908
22909 Support xz compression on yeeloong.
22910
22911 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22912 * configure.ac: Check for LZMA.
22913 * grub-core/Makefile.core.def (xz_decompress): New target.
22914 (none_decompress): Likewise.
22915 * grub-core/boot/decompressor/minilib.c: New file.
22916 * grub-core/boot/decompressor/none.c: Likewise.
22917 * grub-core/boot/decompressor/xz.c: Likewise.
22918 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22919 * grub-core/kern/mips/cache_flush.S: Likewise.
22920 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22921 * grub-core/kern/mips/startup.S: Move first stage to ...
22922 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22923 nomacro.
22924 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22925 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22926 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22927 Allocate statically.
22928 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22929 Allocate statically or use scratch. Don't check CRC32.
22930 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22931 Allocate statically. Don't check CRC32.
22932 * include/grub/decompressor.h: New file.
22933 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22934 Removed.
22935 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22936 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22937 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22938 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22939 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22940 * util/grub-mkimage.c (grub_compression_t): New type.
22941 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22942 (image_target_desc): New field default_compression.
22943 (image_targets): Adjust yeeloong targets.
22944 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22945 (compress_kernel): New parameter comp.
22946 (generate_image): Likewise. Handle new compression case.
22947 (options): New option --compression
22948 (help): Likewise.
22949 (main): Handle new option.
22950
22951 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22952
22953 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22954
22955 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22956
22957 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22958 typo in __i386__ conditional.
22959
22960 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22961
22962 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22963 include.
22964
22965 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22966
22967 Implement EFI and ACPI multiboot2 extensions.
22968
22969 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22970 new tags as supported.
22971 (acpiv2_size): New function.
22972 (grub_multiboot_get_mbi_size): Take new tags into account.
22973 (grub_multiboot_make_mbi): Add new tags.
22974 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
22975
22976 2010-09-21 Aleš Nesrsta <starous@volny.cz>
22977
22978 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
22979 Added missing configuration of USB device.
22980
22981 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22982
22983 * grub-core/normal/menu_entry.c (run): Make sure we always return
22984 a value.
22985
22986 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22987
22988 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
22989 NumberOfPages is UINT64 according to the UEFI specification, not
22990 UINTN. Fix printf format.
22991
22992 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22993
22994 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
22995 `err' to grub_usb_err_t.
22996 Reported and tested by: KESHAV P.R.
22997
22998 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
22999
23000 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23001 tpart non-const, so that we can assign to it. (Since this is a
23002 typedef, the constness refers to the pointer rather than what it
23003 points to.)
23004
23005 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23006
23007 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23008 $(top_srcdir)/grub-core/gnulib as well as
23009 $(top_builddir)/grub-core/gnulib.
23010 Reported by: KESHAV P.R.
23011
23012 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23013
23014 * util/grub-install.in: Fix the bootloader ID option to be
23015 consistently --bootloader-id, not --bootloader_id.
23016 Reported by: KESHAV P.R.
23017
23018 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23019
23020 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23021 check hash checksum." consistently translatable.
23022
23023 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23024
23025 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23026 $(top_builddir).
23027
23028 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23029
23030 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23031 (GRUB_MOD_INIT): Register sha1sum command.
23032 (GRUB_MOD_FINI): Unregister sha1sum command.
23033
23034 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23035
23036 Keep boot and grub directory names in sync with utils scripts
23037
23038 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23039 * config.h.in: Add previous macros.
23040 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23041 * util/grub-install.in: Use $bootdir and $grubdir variables.
23042
23043 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23044
23045 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23046 convert partition names to disk names if the new `convert' parameter
23047 is set.
23048 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23049 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23050 disk in its own right. This can happen with Xen disk images.
23051
23052 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23053
23054 * util/grub-editenv.c: Update strings to avoid warnings when generating
23055 grub.pot file.
23056 * util/grub-setup.c: Likewise.
23057
23058 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23059
23060 * configure.ac: Change version to 1.99~beta0.
23061
23062 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23063
23064 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23065 Add BADRAM.
23066 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23067 Likewise.
23068 * include/multiboot.h: Resynced with specification.
23069 * include/multiboot2.h: Likewise.
23070
23071 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23072
23073 Fix po directory handling.
23074
23075 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23076 * grub-core/gnulib/Makefile.am: Import gettext module.
23077 * m4/gnulib-cache.m4: Likewise.
23078 * m4/gnulib-comp.m4: Likewise.
23079 * m4/gettext.m4: New file, from gnulib.
23080 * m4/glibc2.m4: Likewise.
23081 * m4/iconv.m4: Likewise.
23082 * m4/intdiv0.m4: Likewise.
23083 * m4/intl.m4: Likewise.
23084 * m4/intldir.m4: Likewise.
23085 * m4/intlmacosx.m4: Likewise.
23086 * m4/intmax.m4: Likewise.
23087 * m4/inttypes-pri.m4: Likewise.
23088 * m4/lcmessage.m4: Likewise.
23089 * m4/lib-ld.m4: Likewise.
23090 * m4/lib-link.m4: Likewise.
23091 * m4/lib-prefix.m4: Likewise.
23092 * m4/lock.m4: Likewise.
23093 * m4/nls.m4: Likewise.
23094 * m4/po.m4: Likewise.
23095 * m4/printf-posix.m4: Likewise.
23096 * m4/progtest.m4: Likewise.
23097 * m4/threadlib.m4: Likewise.
23098 * m4/uintmax_t.m4: Likewise.
23099 * m4/visibility.m4: Likewise.
23100 * po/Makefile.am: Remove.
23101 * po/Makefile.in.in: New file, from gettext.
23102 ($(DOMAIN).pot-update): Support POTFILES-shell.
23103 * po/Makevars: New file.
23104 * po/POTFILES-shell: Rename to ...
23105 * po/POTFILES-shell.in: ... this. Update.
23106 * po/POTFILES: Rename to ...
23107 * po/POTFILES.in: ... this. Update.
23108 * po/Rules-quot: New file, from gettext.
23109 * po/boldquot.sed: Likewise.
23110 * po/en@boldquot.header: Likewise.
23111 * po/en@quot.header: Likewise.
23112 * po/insert-header.sin: Likewise.
23113 * po/quot.sed: Likewise.
23114 * po/remove-potcdate.sin: Likewise.
23115
23116 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23117
23118 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23119
23120 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23121
23122 * util/grub.d/20_linux_xen.in: Use submenus.
23123
23124 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23125
23126 Support submenus.
23127
23128 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23129 parameter submenu. All users updated.
23130 * grub-core/normal/main.c (free_menu): Rename to ...
23131 (grub_normal_free_menu): ... this. Made global.
23132 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23133 if requested.
23134 * grub-core/normal/menu_entry.c (screen): New field submenu.
23135 (make_screen): Set submenu.
23136 (run): Open new context if requested.
23137 * include/grub/menu.h (grub_menu_entry): New field submenu.
23138 * include/grub/normal.h (grub_normal_free_menu): New proto.
23139
23140 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23141
23142 Menu entries extractor.
23143
23144 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23145 variants.
23146 (GRUB_MOD_INIT): Register new variants.
23147 (GRUB_MOD_FINI): Unregister new variants.
23148 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23149 into grub_cmd_legacy_source.
23150 (grub_cmd_legacy_source): Implement extractor variants.
23151 (GRUB_MOD_INIT): Register new variants.
23152 (GRUB_MOD_FINI): Unregister new variants.
23153 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23154 as an extractor.
23155 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23156 search as an extractor.
23157 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23158 test as an extractor.
23159 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23160 as an extractor.
23161 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23162 (grub_env_new_context): New function.
23163 (grub_env_context_open): Likewise.
23164 (grub_env_extractor_open): Likewise.
23165 (grub_env_extractor_close): Likewise.
23166 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23167 grub_extractor_level.
23168 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23169 * include/grub/env.h (grub_env_extractor_open): New proto.
23170 (grub_env_extractor_close): Likewise.
23171 * include/grub/normal.h (grub_extractor_level): New external variable.
23172
23173 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23174
23175 Make cutmem accept a region specification.
23176 Suggested by: Samuel Thibault
23177
23178 * grub-core/mmap/mmap.c (parsemem): New function.
23179 (grub_cmd_cutmem): Handle new arguments.
23180
23181 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23182
23183 New command cutmem.
23184
23185 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23186 (GRUB_MOD_INIT): Register new command.
23187 (GRUB_MOD_FINI): Unregister new command.
23188
23189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23190
23191 Support some annoying BSD and Minix subpartitions.
23192
23193 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23194 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23195 Properly handle concatenation.
23196 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23197 * grub-core/normal/completion.c (iterate_partition): Likewise.
23198 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23199 contain partition. All users updated.
23200 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23201 struct.
23202 (grub_openbsdlabel_partition_map): Likewise.
23203 (bsdlabel_partition_map_iterate): Rename to ..
23204 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23205 (bsdlabel_partition_map_iterate): New function.
23206 (netopenbsdlabel_partition_map_iterate): Likewise.
23207 (netbsdlabel_partition_map_iterate): Likewise.
23208 (openbsdlabel_partition_map_iterate): Likewise.
23209 (GRUB_MOD_INIT): Register new partmaps.
23210 (GRUB_MOD_FINI): Unregister new partmaps.
23211 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23212 (grub_partition_msdos_iterate): ... this. All users updated.
23213 Don't support embedding other than in a minix partition.
23214 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23215 proto.
23216 * include/grub/partition.h (grub_partition): New field msdostype.
23217 * util/grub-install.in: Handle openbsd and netbsd types being in
23218 part_bsd module.
23219
23220 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23223
23224 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23225 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23226 (mdraid09): ... this.
23227 (mdraid1x): New module.
23228 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23229 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23230
23231 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23232
23233 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23234 vsprintf.
23235
23236 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23237
23238 * grub-core/commands/efi/lsefimmap.c: Correct header.
23239 * NEWS: Update.
23240
23241 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23242
23243 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23244 as printf format strings; the translations might contain '%' which
23245 could cause a crash.
23246 (main): Likewise.
23247 * util/grub-fstest.c (argp_parser): Likewise.
23248 * util/grub-setup.c (argp_parser): Likewise.
23249 (main): Likewise.
23250
23251 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 Use argp in grub-fstest.
23254
23255 * util/grub-fstest.c: Don't include getopt.h.
23256 Include argp.h.
23257 (root): New variable.
23258 (args_count): Likewise.
23259 (nparm): Likewise.
23260 (num_disks): Likewise.
23261 (images): Likewise.
23262 (cmd): Likewise.
23263 (debug_str): Likewise.
23264 (args): Likewise.
23265 (options): Transformed to argp.
23266 (usage): Removed.
23267 (main): Split argument parsing into ...
23268 (argp_parser): ... this. Changed to argp format.
23269 (argp): New variable.
23270 (main): Use argp_parse.
23271
23272 2010-09-20 Tristan Gingold <gingold@free.fr>
23273 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23274 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23275
23276 * grub-core/commands/efi/lsefimmap.c: New file.
23277 * grub-core/Makefile.core.def (lsefimmap): New module.
23278 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23279
23280 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23281
23282 Pause the execution (10s max) if any errors are displayed so the user
23283 has a chance to see them.
23284
23285 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23286 (grub_print_error): Increment grub_err_printed_errors.
23287 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23288 execution if any errors were displayed.
23289 (show_menu): Remove old code for pause.
23290 * grub-core/normal/menu_entry.c (run): Likewise.
23291 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23292 users updated.
23293 (grub_normal_get_char_counter): Likewise.
23294 * include/grub/err.h (grub_err_printed_errors): New external variable.
23295 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23296
23297 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23298
23299 Support multiboot VBE info.
23300
23301 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23302 Take VBE info into account.
23303 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23304 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23305 Call fill_vbe_info when appropriate.
23306 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23307 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23308 as supported.
23309 (grub_multiboot_get_mbi_size): Take new tags into account.
23310 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23311 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23312 Call fill_vbe_tag when appropriate.
23313 (grub_multiboot_make_mbi): Properly align tags.
23314 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23315 function.
23316 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23317 proto.
23318 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23319
23320 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23321
23322 Suport manual terminal geometry specification.
23323
23324 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23325 Save state in grub_ofconsole_terminfo_output.
23326 (grub_ofconsole_term): Use grub_terminfo_getwh.
23327 (grub_ofconsole_getwh): Removed.
23328 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23329 (grub_serial_term): Use grub_terminfo_getwh.
23330 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23331 (options): New struct.
23332 (OPTION_*): New enum.
23333 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23334 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23335 width and height.
23336 (grub_terminfo_getwh): New proto.
23337 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23338
23339 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23340
23341 Handle legacy "terminal" command.
23342
23343 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23344 and FLAG_TERMINAL.
23345 (legacy_commands): Add terminal and title.
23346 (grub_legacy_parse): Handle terminal. Simplify title handling.
23347
23348 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23349
23350 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23351 parameters overflow.
23352
23353 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23354
23355 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23356 widthspec.h.
23357
23358 * docs/grub.texi (Shell-like scripting): Document `!'.
23359 (Network): Simplify using new i386-pc-pxe format. Mention
23360 grub-mknetdir.
23361
23362 * NEWS: Update.
23363
23364 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23365
23366 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23367 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23368 when needed.
23369
23370 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23371
23372 * grub-core/commands/efi/lsefisystab.c: Correct header.
23373 * grub-core/commands/efi/lssal.c: Likewise.
23374 * grub-core/commands/testload.c: Likewise.
23375
23376 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23377
23378 * util/grub-mkrescue.in: Add explicit root argument to --set to
23379 prevent the UUID being interpreted as an argument to --set (matches
23380 previous change to prepare_grub_to_access_device).
23381
23382 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23383
23384 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23385 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23386 the verbosity of later #ifs.
23387 (find_partition_start): Define this function on FreeBSD too.
23388 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23389 function.
23390 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23391 on FreeBSD.
23392
23393 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23394
23395 * util/grub-editenv.c: Use argp instead of getopt.
23396
23397 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23398
23399 * util/grub-setup.c: Use argp instead of getopt.
23400
23401 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23402
23403 Use gnulib-tool to create gnulib source files.
23404
23405 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23406 grub-core/gnulib directories
23407 * .bzignore: Add **/.deps and autogenerated gnulib files
23408 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23409 of gnulib macros, add grub-core/gnulib/Makefile
23410 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23411 include m4 directory to aclocal.
23412 * Makefile.util.def: Remove direct compilation of gnulib source files
23413 and use the new grub-core/gnulib/libgnu.a.
23414 * build-aux/config.rpath: move config.rpath from top directory to
23415 build-aux
23416 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23417 in gnulib headers
23418 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23419 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23420 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23421 header.
23422 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23423 string.
23424
23425 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23426
23427 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23428 grub-core/genmod.sh and grub-core/gensyminfo.sh
23429
23430 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23431
23432 Add a test for echo command options.
23433
23434 * tests/grub_cmd_echo.in: New test.
23435 * Makefile.util.def: Rules for new test.
23436
23437 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23438
23439 Remove crc.mod and move crc command to hashsum.mod.
23440 Remove lib/crc.c - users updated to use gcrypt implementation.
23441
23442 * grub-core/commands/crc.c: Removed.
23443 * grub-core/Makefile.core.def (crc): Module removed.
23444 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23445 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23446 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23447 * grub-core/lib/crc.c: Removed.
23448 * include/grub/lib/crc.h: Removed.
23449 * Makefile.util.def (crc): Remove lib/crc.c
23450 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23451 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23452 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23453 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23454 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23455 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23456
23457 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23458
23459 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23460
23461 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23462
23463 Split config.h for util and core.
23464
23465 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23466 (ADDR32): Likewise.
23467 (DATA32): Likewise.
23468 (BSS_START_SYMBOL): Likewise.
23469 (END_SYMBOL): Likewise.
23470 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23471 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23472 * config.h.in: New file.
23473 * configure.ac: Use config-util.h as config define file.
23474 Rename MACHINE into GRUB_MACHINE. All users updated.
23475 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23476 updated.
23477 (NESTED_FUNC_ATTR): Likewise.
23478 Substitue new variables.
23479 (COND_HAVE_ASM_USCORE): New conditional.
23480 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23481 (kernel_syms.lst): Use ASM_PREFIX.
23482 * grub-core/kern/emu/console.c: Include config-util.h.
23483 * grub-core/kern/emu/misc.c: Likewise.
23484 * grub-core/kern/emu/mm.c: Likewise.
23485 * include/grub/emu/misc.h: Likewise.
23486 * include/grub/libgcc.h: Likewise.
23487
23488 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23489
23490 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23491 constants usage.
23492 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23493 Fix GRUB_TERM_KEY_* constants usage.
23494 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23495
23496 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23497
23498 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23499 print pointer.
23500 * grub-core/bus/usb/uhci.c: Remove empty define.
23501 (grub_uhci_check_transfer): Add missing cast.
23502 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23503 print pointer.
23504 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23505 PRIuGRUB_SIZE.
23506 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23507
23508 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23509
23510 * grub-core/Makefile.core.def (legacycfg): Add
23511 lib/i386/pc/vesa_modes_table.c on emu.
23512
23513 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23514
23515 Reduce number of temporary files generated by build system.
23516
23517 * grub-core/gencmdlist.sh: Removed.
23518 * grub-core/genfslist.sh: Removed.
23519 * grub-core/genhandlerlist.sh: Removed.
23520 * grub-core/genmodsrc.sh: Removed.
23521 * grub-core/genpartmaplist.sh: Removed.
23522 * grub-core/genparttoollist.sh: Removed.
23523 * grub-core/gentermiinallist.sh: Removed.
23524 * grub-core/genvideolist.sh: Removed.
23525
23526 * grub-core/genmod.sh.in: New file.
23527 * grub-core/gensyminfo.sh.in: New file.
23528
23529 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23530 * conf/Makefile.extra-dist: Update with new files.
23531 * gentpl.py: Remove rules related to unnecessary temporary files.
23532 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23533 and und-* files.
23534 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23535 genmod.sh scripts.
23536 * grub-core/bus/usb/uhci.c: Remove empty #define.
23537 * grub-core/genmoddep.awk: Updated with new syminfo format.
23538 * util/bash-completion.d/Makefile.am: Add config.log to
23539 CLEANFILES.
23540
23541 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23542
23543 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23544
23545 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23546
23547 * util/grub-mkconfig.in: Check the config script for syntax errors
23548 before saving.
23549
23550 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23551 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23552
23553 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23554 platforms.
23555 * util/grub-install.in: Add EFI and IEEE1275 support.
23556 * util/i386/efi/grub-install.in: Removed.
23557 * util/ieee1275/grub-install.in: Likewise.
23558
23559 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23560
23561 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23562 (grub_cmd_cmosclean): Likewise.
23563 (GRUB_MOD_INIT): Register command cmosclean.
23564 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23565 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23566
23567 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23568 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23569 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23570
23571 Add keyboard layouts support.
23572
23573 * Makefile.util.def (grub-mklayout): New file.
23574 (grub-kbdcomp): New script.
23575 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23576 Add keyboard_layouts.h.
23577 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23578 commands/boot.c on yeeloong.
23579 (keylayouts): New module.
23580 * grub-core/bus/usb/ohci.c
23581 * grub-core/bus/usb/uhci.c
23582 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23583 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23584 (attach_root_port): Likewise.
23585 (poll_nonroot_hub): Likewise.
23586 (grub_usb_poll_devices): Likewise.
23587 (detach_device): Close transfer.
23588 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23589 function.
23590 (grub_usb_bulk_setup_readwrite): Likewise.
23591 (grub_usb_bulk_finish_readwrite): Likewise.
23592 * grub-core/commands/keylayouts.c: New file.
23593 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23594 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23595 aliases.
23596 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23597 support scancode 2.
23598 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23599 * include/grub/keyboard_layouts.h: New file.
23600 * util/grub-mklayout.c: New file.
23601 * util/grub-kbdcomp.in: Likewise.
23602
23603 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23604
23605 Unify memory types.
23606
23607 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23608 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23609 types.
23610 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23611 (grub_upper_mem): Likewise.
23612 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23613 * include/grub/memory.h (grub_memory_type_t): New enum.
23614 All users updated.
23615
23616 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23617
23618 * grub-core/Makefile.core.def (lsapm): New module.
23619 * grub-core/commands/i386/pc/lsapm.c: New file.
23620 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23621 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23622 Likewise.
23623 * include/grub/i386/pc/apm.h: New file.
23624 * include/multiboot.h (multiboot_apm_info): New struct.
23625
23626 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23627
23628 GRUB-legacy configuration file support.
23629
23630 * Makefile.util.def (grub-menulst2cfg): New util.
23631 * docs/man/grub-menulst2cfg.h2m: New file.
23632 * grub-core/Makefile.core.def (legacycfg): New module.
23633 * grub-core/commands/legacycfg.c: New file.
23634 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23635 (grub_normal_add_menu_entry): ... this.
23636 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23637 (grub_normal_set_password): ...this.
23638 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23639 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23640 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23641 * grub-core/lib/legacy_parse.c: New file.
23642 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23643 * include/grub/i386/pc/vesa_modes_table.h: New file.
23644 * include/grub/legacy_parse.h: Likewise.
23645 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23646 * util/grub-menulst2cfg.c: New file.
23647
23648 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23649
23650 * grub-core/kern/emu/hostdisk.c
23651 (convert_system_partition_to_system_disk): Initialise node.
23652
23653 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23654
23655 * grub-core/kern/emu/hostdisk.c
23656 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23657 leak.
23658 Reported and based on patch by: Modestas Vainius.
23659
23660 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23661
23662 Fix DM-RAID probing with recent versions of device-mapper udev
23663 rules.
23664
23665 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23666 canonicalise device paths under /dev/mapper/.
23667 (convert_system_partition_to_system_disk): Compare the
23668 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23669 path, since device nodes under /dev/mapper/ are often symlinks.
23670
23671 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23672
23673 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23674
23675 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23676
23677 * configure.ac: Avoid some annoying error messages if freetype-config
23678 program is not found.
23679
23680 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23681
23682 Support RAID on virtio devices, and others.
23683
23684 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23685 Rename to ...
23686 [__MINGW32__] (grub_find_device): ... this.
23687 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23688 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23689 reasonable default if dir is NULL.
23690 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23691 ...
23692 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23693 (grub_guess_root_device): Update callers.
23694 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23695
23696 * util/raid.c (grub_util_getdiskname): Remove.
23697 (grub_util_raid_getmembers): Use grub_find_device rather than
23698 grub_util_getdiskname.
23699
23700 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23701
23702 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23703 needing to be compiled with serial support.
23704 (ls): Indicate that multiple files are accepted.
23705 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23706 indicate that multiple files are accepted.
23707
23708 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23709
23710 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23711 libgrub_a_init.c, and util/bash-completion.d/grub.
23712
23713 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23714
23715 * util/grub-setup.c (setup): Fix incorrect container semantics.
23716
23717 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23718
23719 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23720 misusage.
23721 Reported by: J. Nick Terry
23722
23723 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23724
23725 Move embedding routines to partmap sources files.
23726
23727 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23728 [GRUB_UTIL]: New variable.
23729 (gpt_partition_map_iterate): Set part.parent.
23730 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23731 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23732 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23733 New function.
23734 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23735 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23736 (grub_partition_map) [GRUB_UTIL]: New field embed.
23737 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23738 (setup): Use ->embed.
23739
23740 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23741
23742 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23743 function.
23744 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23745 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23746
23747 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23748
23749 Add function to get completions from usage.
23750
23751 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23752 completions from usage. Use LC_ALL=C to get options properly.
23753
23754 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23755
23756 * grub-core/gnulib/basename-lgpl.c: Imported.
23757 * grub-core/gnulib/basename.c: Likewise.
23758 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23759 * grub-core/gnulib/dirname.c: Likewise.
23760 * grub-core/gnulib/dirname.h: Likewise.
23761 * grub-core/gnulib/stripslash.c: Likewise.
23762
23763 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23764
23765 * grub-core/gnulib/error.c: Resynced.
23766 * grub-core/gnulib/getopt.c: Likewise.
23767 * grub-core/gnulib/getopt_int.h: Likewise.
23768 * grub-core/gnulib/regex.h: Likewise.
23769 * grub-core/gnulib/regex_internal.c: Likewise.
23770 * grub-core/gnulib/regex_internal.h: Likewise.
23771
23772 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23773
23774 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23775 CRC calculations and validity checks.
23776 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23777 calculations.
23778
23779 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23780
23781 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23782
23783 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23784
23785 Fix incorrect echo options handling.
23786 Reported by: Yves Blusseau.
23787
23788 * include/grub/command.h (grub_command_flags_t): New flags
23789 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23790 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23791 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23792
23793 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23794
23795 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23796 users updated.
23797 (GRUB_COMMAND_FLAG_MENU): Likewise.
23798 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23799 (GRUB_COMMAND_FLAG_TITLE): Removed.
23800 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23801 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23802 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23803 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23804 (grub_command_flags_t): New enum. All users updated.
23805
23806 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23807
23808 Fix solaris compilation.
23809
23810 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23811 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23812 (grub-emu-list): Likewise.
23813
23814 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23815
23816 Remove deprecated root command.
23817
23818 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23819 updated.
23820
23821 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23822
23823 * util/i386/pc/grub-setup.c: Merge this ...
23824 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23825 * util/grub-setup.c: ... into this.
23826 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23827 New struct.
23828
23829 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23830
23831 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23832 possible.
23833
23834 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23835
23836 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23837 allocate p.
23838
23839 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23840
23841 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23842 explicit root argument to set to prevent UUID to be interpreted as
23843 argument to set.
23844
23845 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23846
23847 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23848
23849 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23850
23851 Don't export grub_gate_a20.
23852
23853 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23854 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23855 to ...
23856 (grub_gate_a20): ... this. All users updated.
23857 * include/grub/i386/pc/init.h: Removed. All users updated.
23858
23859 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23860
23861 Create euro.pf2 which supports most European languages.
23862
23863 * Makefile.am (grubdata_DATA): Add euro.pf2.
23864 (euro.pf2): New target.
23865 (CLEANFILES): Add euro.pf2.
23866
23867 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23868
23869 * configure.ac: Disable emu-usb by default to prevent inadvertent
23870 device takeover.
23871
23872 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23873
23874 Disable usbserial on grub-emu since our libusb code isn't good enough
23875 yet.
23876
23877 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23878 (usbserial_pl2303): Likewise.
23879 (usbserial_ftdi): Likewise.
23880
23881 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23882
23883 * include/grub/disk.h (grub_disk): Remove has_partitions.
23884 All users updated.
23885 * disk/loopback.c (grub_loopback): Remove has_partitions.
23886 All users updated.
23887 (options): Remove partitions. All users updated.
23888 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23889 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23890 actual partition table is found.
23891
23892 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23893
23894 Remove readability checks (too many false negatives).
23895
23896 * util/grub-install.in: Remove readability checks.
23897 * util/grub-mkconfig.in: Likewise.
23898 * util/grub.d/10_hurd.in: Likewise.
23899 * util/grub.d/10_kfreebsd.in: Likewise.
23900 * util/grub.d/10_linux.in: Likewise.
23901 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23902 way.
23903
23904 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23905
23906 Enable acpi shutdown on all ACPI platforms.
23907
23908 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23909 on coreboo, multiboot and EFI.
23910 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23911 (grub_acpi_halt): Likewise.
23912 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23913 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23914 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23915 * grub-core/lib/i386/halt.c (grub_halt)
23916 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23917
23918 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23919
23920 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23921 context.
23922
23923 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23924
23925 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23926 * grub-core/video/efi_uga.c: Likewise.
23927
23928 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23929
23930 Filter devaliases and never open same device twice.
23931
23932 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23933 (last_ihandle): Likewise.
23934 (ofdisk_hash_ent): New member shortest.
23935 (ofdisk_hash_add): Add canonical path too.
23936 (scan): New function.
23937 (grub_ofdisk_iterate): Iterate over hashed entries.
23938 (compute_dev_path): Don't add :0.
23939 (grub_ofdisk_open): Don't really open the disk.
23940 (grub_ofdisk_close): Avoid closing unrelated disk.
23941 (grub_ofdisk_read): Implement reopen logic.
23942 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23943 New function.
23944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23945 New proto.
23946
23947 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23948
23949 Fix sparc64.
23950
23951 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23952 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23953 right address. Add sparc64_ieee1275_ldflags.
23954 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23955 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23956 to grub_host_to_target_addr
23957 (load_image): Likewise.
23958
23959 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23960
23961 * grub-core/normal/completion.c (complete_file): Handle device
23962 containing slash.
23963 Fix based on patch by Doug Nazar.
23964
23965 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23966
23967 grub-mknetdir script.
23968
23969 * Makefile.util.def (grub-mknetdir): New module.
23970 * tests/util/grub-shell.in: Support boot=net
23971 * util/grub-mknetdir.in: New file.
23972
23973 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23974
23975 videoinfo on non-vbe.
23976
23977 * grub-core/Makefile.core.def (vbeinfo): Removed.
23978 (vbetest): Removed.
23979 (videoinfo): New module.
23980 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
23981 * grub-core/commands/i386/pc/vbetest.c: Removed.
23982 * grub-core/commands/videoinfo.c: New file.
23983 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
23984 specification.
23985 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
23986 as vbetest.
23987 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
23988 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
23989 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
23990 mode_number. New parameter mode. All users updated.
23991 (grub_video_gop_iterate): New function.
23992 (grub_video_efi_gop): New member iterate.
23993 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
23994 (grub_vbe_set_video_mode): Remove setting useless fields.
23995 (vbe2videoinfo): New function.
23996 (grub_video_vbe_iterate): Likewise.
23997 (grub_video_vbe_setup): Use vbe2videoinfo.
23998 (grub_video_vbe_print_adapter_specific_info): New function.
23999 (grub_video_vbe_adapter): New fields iterate and
24000 print_adapter_specific_info.
24001 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24002 All users updated.
24003 (grub_video_mode_info): New field mode_number.
24004 (grub_video_adapter): New fields iterate and
24005 print_adapter_specific_info.
24006
24007 2010-09-13 Tristan Gingold <gingold@free.fr>
24008 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24009 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24010
24011 * grub-core/commands/efi/lsefisystab.c: New file.
24012 * grub-core/commands/efi/lssal.c: Likewise.
24013 * grub-core/Makefile.core.def (lsacpi): New module.
24014 (lsefisystab): Likewise.
24015 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24016 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24017 (grub_efi_sal_system_table): New struct.
24018 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24019 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24020 (grub_efi_sal_system_table_platform_features): Likewise.
24021 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24022 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24023 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24024 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24025
24026 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24027
24028 Support explicit user claim that a device is BIOS-visible.
24029
24030 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24031 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24032 * grub-core/kern/emu/hostdisk.c
24033 (convert_system_partition_to_system_disk): Support mdX.
24034 (find_system_device): New parameter add. All users updated.
24035 (grub_util_biosdisk_is_present): New function.
24036 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24037 proto.
24038
24039 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24040
24041 Search hints support.
24042
24043 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24044 All users updated.
24045
24046 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24047
24048 Bash completion script for util commands
24049
24050 * Makefile.am: Add util/bash-completion.d directory
24051 * configure.ac: Likewise.
24052 * util/bash-completion.d/Makefile.am: New file.
24053 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24054
24055 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24056
24057 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24058 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24059 Reported by: Yves Blusseau.
24060
24061 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24062
24063 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24064 partition size and offset.
24065
24066 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24067
24068 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24069
24070 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24071
24072 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24073
24074 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24075
24076 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24077 (grub_xvasprintf): Likewise.
24078
24079 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24080
24081 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24082
24083 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24084
24085 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24086 args ending with NULL.
24087
24088 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24089
24090 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24091 pointer.
24092
24093 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24094
24095 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24096
24097 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 Shutdown using ACPI.
24100
24101 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24102 * grub-core/commands/acpihalt.c: New file.
24103 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24104 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24105 (grub_acpi_halt): New proto.
24106 (GRUB_ACPI_SLP_EN): New const.
24107 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24108 (GRUB_ACPI_OPCODE_*): New enum.
24109 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24110
24111 2010-09-11 Tristan Gingold <gingold@free.fr>
24112 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24113 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24114
24115 * commands/lsacpi.c: New file.
24116 * grub-core/Makefile.core.def (lsacpi): New module.
24117 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24118 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24119 (grub_acpi_madt_entry_header): New struct.
24120 (grub_acpi_madt): Likewise.
24121 (grub_acpi_madt_entry_interrupt_override): Likewise.
24122 (grub_acpi_madt_entry_sapic): Likewise.
24123 (grub_acpi_madt_entry_lsapic): Likewise.
24124 (grub_acpi_madt_entry_platform_int_source): Likewise.
24125 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24126 (PRIuGRUB_UINT32_T): Likewise.
24127 (PRIxGRUB_UINT64_T): Likewise.
24128
24129 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24130
24131 Implement loading palette on ieee1275_fb.
24132
24133 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24134 (have_setcolors): Likewise.
24135 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24136 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24137 (grub_video_ieee1275_set_palette): Implement.
24138
24139 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24140 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24141
24142 * util/grub-install.in (grub_partition): New variable.
24143 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24144 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24145 Fixes a bug reported by Yves Blusseau.
24146
24147 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 Fix emu on mipsel.
24150
24151 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24152 =grub_cpu_flush_cache on all mips and not only yeeloong.
24153 * configure.ac (COND_mips): New conditional.
24154 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24155 platforms.
24156 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24157 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24158 [GRUB_LINKER_HAVE_INIT]: New function.
24159 (grub_emu_post_init): Likewise.
24160 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24161 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24162 * include/grub/cache.h (_mips): Include mips/cache.h.
24163 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24164 LVM and RAID prototypes.
24165 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24166 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24167 function.
24168
24169 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24170
24171 * util/grub-install.in: Don't try to verify core.img until after
24172 running grub-mkimage to create it.
24173
24174 2010-09-10 Robert Millan <rmh@gnu.org>
24175
24176 * util/grub.d/10_hurd.in: Add misc readability checks.
24177 * util/grub.d/10_kfreebsd.in: Likewise.
24178 * util/grub.d/10_linux.in: Likewise.
24179
24180 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24181
24182 * util/grub-install.in: ${imgext} won't be defined here until the
24183 install branch is merged. For the meantime, only verify core.img on
24184 i386-pc and sparc64-ieee1275 platforms.
24185
24186 2010-09-10 Robert Millan <rmh@gnu.org>
24187
24188 Solaris support in grub_find_zpool_from_dir(). Thanks
24189 Seth Goldberg for referring to getextmntent() facility.
24190
24191 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24192 `sys/mkdev.h'.
24193 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24194 `<sys/mnttab.h>'.
24195 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24196 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24197 method for finding zpool name.
24198
24199 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24200
24201 grub-fstest needs the host and hostfs modules while other utilities
24202 actively require those modules to be absent, so grub-fstest needs
24203 its own initialisation and finalisation code.
24204
24205 * Makefile.am (grub_fstest.pp): New target.
24206 (grub_fstest_init.lst): Likewise.
24207 (grub_fstest_init.c): Likewise.
24208 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24209
24210 2010-09-10 Robert Millan <rmh@gnu.org>
24211
24212 * configure.ac: Check for `struct statfs.f_fstypename' and
24213 `struct statfs.f_mntfromname'.
24214
24215 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24216 kFreeBSD-specific code.
24217
24218 2010-09-10 Robert Millan <rmh@gnu.org>
24219
24220 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24221 on ZFS. Now non-main filesystems are supported as / too.
24222
24223 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24224
24225 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24226 and grub-core/disk/host.c to ...
24227 (grub-fstest): ... here. Having the host disk implementation
24228 present confuses grub-probe and other utility programs.
24229
24230 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24231 when writing to a file, not when writing to stdout.
24232
24233 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24234
24235 * tests/partmap_test.in: New test for partitions.
24236 * Makefile.util.def: Rules for new test.
24237
24238 2010-09-09 Robert Millan <rmh@gnu.org>
24239
24240 * util/grub-probe.c (probe): Fix a pair of unhandled error
24241 conditions.
24242
24243 2010-09-09 Robert Millan <rmh@gnu.org>
24244
24245 Basic Btrfs support (detection and UUID).
24246
24247 * grub-core/fs/btrfs.c: New file.
24248 * Makefile.util.def (library): Register btrfs.c.
24249 * grub-core/Makefile.core.def: Likewise.
24250
24251 2010-09-08 Robert Millan <rmh@gnu.org>
24252
24253 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24254 with (optional) parameters to specify device and relative path.
24255 * util/grub-install.in: Use is_path_readable_by_grub() to
24256 verify readability of a few critical files.
24257 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24258 verify readability of grub.cfg.new.
24259
24260 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24261
24262 Split minix.mod into minix.mod and minix2.mod.
24263
24264 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24265 * grub-core/Makefile.core.def (minix2): New module.
24266 * grub-core/fs/minix.c: Use definitions instead of runtime version
24267 checking.
24268 * grub-core/fs/minix2.c: New file.
24269
24270 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24271
24272 Add new --boot-directory option to replace --root-directory
24273
24274 * util/grub-install.in: Add new --boot-directory option
24275 * util/grub-reboot.in: Likewise.
24276 * util/grub-set-default.in: Likewise.
24277
24278 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24279
24280 * util/grub-mkconfig.in: Use new variable.
24281
24282 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24283
24284 * configure.ac: Define some useful variables.
24285
24286 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24287
24288 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24289 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24290 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24291 Use terminfo and don't use cursor-on/cursor-off unless it's known
24292 to work.
24293 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24294 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24295
24296 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24297
24298 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24299 starts with "(,", fill the drive containing the loaded image in
24300 between those two characters, but expect that a full partition
24301 specification including partition map names will follow.
24302
24303 2010-09-08 Robert Millan <rmh@gnu.org>
24304
24305 * configure.ac: Remove `--enable-grub-fstest' option.
24306 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24307
24308 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24309 `grub-fstest' instead of `grub-probe' for readability verification.
24310 * util/grub-probe.c (probe): Remove readability verification kludge.
24311
24312 2010-09-08 Robert Millan <rmh@gnu.org>
24313
24314 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24315 initializing `GRUB_FS'.
24316
24317 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24318
24319 Not command (!) support to GRUB script.
24320
24321 * tests/grub_script_not.in: New test.
24322 * Makefile.util.def: Rules for new test.
24323
24324 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24325 ! command as a special case.
24326 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24327
24328 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24329
24330 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24331 grub_free.
24332
24333 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24334
24335 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24336
24337 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24338
24339 * docs/grub.texi (Shell-like scripting): Documentation for break,
24340 continue, shift and return commands.
24341
24342 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24343
24344 Rename CD-ROM to cd on BIOS.
24345
24346 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24347 "cd".
24348 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24349
24350 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24351
24352 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24353 * util/grub-probe.c (main): Likewise.
24354 * util/i386/pc/grub-setup.c (main): Likewise.
24355 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24356 Reported and debugged by: alexxy
24357
24358 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24359
24360 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24361 diagnostic info.
24362
24363 2010-09-05 Jo Shields <directhex@apebox.org>
24364
24365 * util/grub.d/30_os-prober.in: Add missing classes.
24366
24367 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24368
24369 * docs/grub.texi (Theme file format): Document new position format.
24370
24371 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24372
24373 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24374 a table. Use @code instead of @verbatim.
24375
24376 2010-09-05 Colin D Bennett <colin@gibibit.com>
24377
24378 Gfxmenu documentation.
24379
24380 * docs/grub.texi (Theme file format): New chapter.
24381
24382 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24383
24384 * grub-core/Makefile.core.def (xzio): New module.
24385 * grub-core/io/xzio.c: New file.
24386 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24387 * grub-core/lib/xzembed/xz_config.h: Likewise.
24388 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24389 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24390 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24391 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24392 * grub-core/lib/xzembed/xz_private.h: Likewise.
24393 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24394 * include/grub/file.h (grub_file_filter_id): New compression filter
24395 GRUB_FILE_FILTER_XZIO.
24396
24397 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24398
24399 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24400 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24401 size.
24402
24403 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24404
24405 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24406 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24407
24408 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24409
24410 Uncompressed checksum support.
24411
24412 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24413 (check_list): New parameter uncompress.
24414 (grub_cmd_hashsum): Handle --uncompress.
24415
24416 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24417
24418 Reintroduce testload.
24419
24420 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24421 from here ...
24422 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24423 (GRUB_MOD_INIT): New function.
24424 (GRUB_MOD_FINI): Likewise.
24425 * grub-core/Makefile.core.def (testload): New module.
24426
24427 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24428
24429 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24430 (uint8_t): New type.
24431 (uint16_t): Likewise.
24432 (uint32_t): Likewise.
24433 (uint64_t): Likewise.
24434
24435 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24436
24437 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24438
24439 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24440
24441 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24442 Made static.
24443 (grub_gzfile_open): Removed. All users updated.
24444 (GRUB_MOD_INIT): New function.
24445 (GRUB_MOD_FINI): Likewise.
24446 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24447 (grub_file_filters_enabled): Likewise.
24448 (grub_file_open): Handle filters.
24449 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24450 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24451 * include/grub/file.h (grub_file_filter_id_t): New type.
24452 (grub_file_filter_t): Likewise.
24453 (grub_file_filters_all): New extern variable.
24454 (grub_file_filters_enabled): Likewise.
24455 (grub_file_filter_register): New inline function.
24456 (grub_file_filter_unregister): Likewise.
24457 (grub_file_filter_disable): Likewise.
24458 (grub_file_filter_disable_compression): Likewise.
24459 * include/grub/gzio.h: Removed.
24460
24461 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24462
24463 Filename expansion support for wildcards in GRUB script.
24464
24465 * tests/grub_script_expansion.in: New test.
24466 * Makefile.util.def: Rule for new test.
24467
24468 * grub-core/commands/wildcard.c: New file, implements filename
24469 expansion support for GRUB script.
24470 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24471 * grub-core/script/argv.c: Cosmetic changes.
24472 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24473 Refactored to perform wildcard expansion on arguments.
24474 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24475 struct.
24476
24477 * tests/util/grub-shell.in: Fix quoting for read input.
24478
24479 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24480
24481 Support for updating environment variables with matched substrings
24482 of regexp.
24483
24484 * tests/grub_cmd_regexp.in: New test.
24485 * Makefile.util.def: Rule for new test.
24486
24487 * grub-core/commands/regexp.c: New option -s to update environment
24488 variables with regexp matches.
24489
24490 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24491
24492 * include/grub/file.h (grub_file): New member not_easly_seekable.
24493 (grub_file_seekable): New inline function.
24494 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24495 easily seekable.
24496 (grub_gzio_open): Set not_easly_seekable.
24497 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24498 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24499
24500 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24501
24502 Support for options to appear multiple times on cmdline.
24503
24504 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24505 * grub-core/commands/extcmd.c: Support for repeatable option.
24506 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24507 repeatable option support.
24508
24509 Refactor menuentry into a regular command.
24510
24511 * grub-core/commands/menuentry.c: New file, menuentry command
24512 implementation.
24513 * grub-core/Makefile.core.def: Rule update for normal.mod.
24514 * grub-core/normal/main.c: Moved menuentry creation to
24515 grub-core/commands/menuentry.c.
24516 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24517 (grub_menu_execute_entry_real): Removed.
24518 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24519 function.
24520 (grub_script_execute_menuentry): Removed.
24521 * grub-core/script/parser.y (menuentry): Removed.
24522 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24523 * grub-core/script/yylex.l (menuentry): Removed.
24524 * include/grub/menu.h (grub_menu_init): New prototype.
24525 (grub_menu_fini): New prototype.
24526 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24527 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24528 (grub_script_execute_sourcecode): New prototype.
24529
24530 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24531
24532 "return" command for GRUB script functions.
24533
24534 * tests/grub_script_return.in: New test.
24535 * Makefile.util.def: Rules for new test.
24536
24537 * grub-core/script/execute.c (grub_script_return): New function.
24538 * grub-core/script/main.c: Register/unregister return commaond.
24539 * include/grub/script_sh.h (grub_script_return): New prototype.
24540
24541 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24542
24543 "setparams" command to update positional parameters.
24544
24545 * tests/grub_script_setparams.in: New test.
24546 * Makefile.util.def: Rules for new test.
24547
24548 * grub-core/script/argv.c (grub_script_argv_make): New function.
24549 * grub-core/script/execute.c (replace_scope): New function.
24550 (grub_script_setparams): New function.
24551 * grub-core/script/lexer.c: Remove unused variables.
24552 * grub-core/script/main.c: Register/unregister setparams command.
24553 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24554 (grub_script_setparams): New prototype.
24555
24556 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24557
24558 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24559 grub_free order.
24560
24561 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24562
24563 Support for passing block of commands as an argument to extcmds.
24564
24565 * Makefile.util.def: Rules for new test.
24566 * tests/grub_script_blockarg.in: New test.
24567 * grub-core/tests/test_blockarg.c: New file, block argument
24568 command used in the test.
24569
24570 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24571 (grub_register_extcmd_prio): New function prototype.
24572 (grub_extcmd_dispatcher): New function prototype.
24573 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24574 type.
24575 * include/grub/script_sh.h (struct grub_script): New members
24576 `children', `next_siblings' and `refcnt' for block arguments and
24577 reference counting.
24578 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24579 (grub_script_arg): New member `script' for block argument.
24580 (grub_script_argv): New member `script' for block argument.
24581 (grub_parser_param): New member `scripts' for block argument.
24582 (grub_script_mem_free): New extern function prototype.
24583 (grub_script_ref): New function prototype.
24584 (grub_script_unref): New function prototype.
24585
24586 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24587 extcmd form to support block arguments.
24588 * grub-core/script/argv.c: Block arguments support.
24589 * grub-core/script/execute.c: Likewise.
24590 * grub-core/script/lexer.c: Likewise.
24591 * grub-core/script/main.c: Likewise.
24592 * grub-core/script/script.c: Likewise.
24593 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24594 non-terminals.
24595
24596 * grub-core/commands/acpi.c: Update extcmd implementations with
24597 grub_extcmd_context_t.
24598 * grub-core/commands/cat.c: Likewise.
24599 * grub-core/commands/echo.c: Likewise.
24600 * grub-core/commands/extcmd.c: Likewise.
24601 * grub-core/commands/hashsum.c: Likewise.
24602 * grub-core/commands/hdparm.c: Likewise.
24603 * grub-core/commands/help.c: Likewise.
24604 * grub-core/commands/hexdump.c: Likewise.
24605 * grub-core/commands/i386/cpuid.c: Likewise.
24606 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24607 * grub-core/commands/i386/pc/halt.c: Likewise.
24608 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24609 * grub-core/commands/iorw.c: Likewise.
24610 * grub-core/commands/keystatus.c: Likewise.
24611 * grub-core/commands/loadenv.c: Likewise.
24612 * grub-core/commands/ls.c: Likewise.
24613 * grub-core/commands/lspci.c: Likewise.
24614 * grub-core/commands/memrw.c: Likewise.
24615 * grub-core/commands/probe.c: Likewise.
24616 * grub-core/commands/search_wrap.c: Likewise.
24617 * grub-core/commands/setpci.c: Likewise.
24618 * grub-core/commands/sleep.c: Likewise.
24619 * grub-core/disk/loopback.c: Likewise.
24620 * grub-core/hello/hello.c: Likewise.
24621 * grub-core/loader/i386/bsd.c: Likewise.
24622 * grub-core/loader/xnu.c: Likewise.
24623 * grub-core/term/gfxterm.c: Likewise.
24624 * grub-core/term/serial.c: Likewise.
24625 * grub-core/tests/lib/functional_test.c: Likewise.
24626
24627 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24628
24629 Multi-line quoted strings support.
24630
24631 * grub-core/script/lexer.c (append_newline): Removed.
24632 (grub_script_lexer_yywrap): Refactored.
24633 (grub_script_lexer_init): Refactored.
24634 * grub-core/script/yylex.l (yywrap): New function.
24635 (grub_lexer_resplit): New function.
24636 (grub_lexer_unput): New function.
24637 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24638 and resplit.
24639 * tests/grub_script_echo1.in: Added few more testcases.
24640
24641 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24642
24643 * grub-core/kern/misc.c: Don't add abort alias in utils.
24644 Reported by: echoline.
24645
24646 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24647
24648 Add missing files into "make dist" tarball for other platforms.
24649
24650 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24651 * conf/Makefile.common (dist_noinst_DATA): New variable.
24652 * conf/Makefile.extra-dist: Added missing make dist files.
24653 * grub-core/Makefile.core.def: Likewise.
24654
24655 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24656
24657 Compress grub_prefix.
24658
24659 * grub-core/boot/i386/pc/lnxboot.S: Use
24660 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24661 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24662 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24663 GRUB_MACHINE_PREFIX_END. All users updated.
24664 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24665 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24666 + 0x40.
24667 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24668 * util/grub-mkimage.c (image_target_desc): Change data_end to
24669 prefix_end. All users updated.
24670
24671 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24672
24673 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24674 value.
24675 (grub_openbsd_boot): Likewise.
24676 (grub_netbsd_boot): Likewise.
24677 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24678 (grub_xnu_boot): Likewise.
24679
24680 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24681
24682 * configure.ac: Clean LIBS variable after tests.
24683
24684 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24685
24686 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24687
24688 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24689
24690 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24691 echo if libdevmapper will be used.
24692
24693 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24694
24695 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24696 constant for the same file.
24697
24698 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24699
24700 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24701
24702 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24703
24704 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24705 grub-core/*.pp.
24706
24707 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24708
24709 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24710 required by the boot protocol.
24711
24712 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24713 ebp and edi members.
24714 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24715 state.ebp and state.edi.
24716 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24717 %ebp and %edi according to grub_relocator32_ebp and
24718 grub_relocator32_edi respectively.
24719 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24720 and state.edi.
24721
24722 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24723
24724 Add i386-pc-pxe image target.
24725
24726 * util/grub-mkimage.c (image_target_desc): New enum value
24727 IMAGE_I386_PC_PXE.
24728 (image_targets): New target i386-pc-pxe.
24729 (generate_image): Handle i386-pc-pxe image.
24730
24731 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24732
24733 Fix grub_pxe_scan.
24734
24735 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24736 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24737 All users updated.
24738 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24739 (grub_pxe_pxenv): Correct type.
24740
24741 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24742
24743 * NEWS: Document most of the important changes since 1.98.
24744
24745 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24746
24747 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24748 generated manual page) a little.
24749
24750 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24751
24752 * docs/grub.texi: Add myself as an author.
24753
24754 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24755
24756 * Makefile.util.def (libgrub.a): Add missing sunpc.
24757 Reported by: Seth Goldberg.
24758
24759 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24760
24761 Interrupt wrapping and code simplifications.
24762
24763 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24764 x86_noieee1275 which are functionaly equivalent in this case.
24765 (grub-install): Make source on each platform explicit. Enable on
24766 all noemu.
24767 * gentpl.py (x86_efi_pc): Removed group.
24768 (x86_noefi): Likewise.
24769 (i386_noefi): Likewise.
24770 (x86_noieee1275): Likewise.
24771 (i386_noieee1275): Likewise.
24772 (i386_noefi_noieee1275): Likewise.
24773 (i386_pc_qemu_coreboot): Likewise.
24774 (i386_coreboot_multiboot): Likewise.
24775 (i386_pc_coreboot_multiboot_qemu): Likewise.
24776 (x86_noefi_mips): Likewise.
24777 (noieee1275): Likewise.
24778 (ieee1275_mips): Likewise.
24779 (noemu_noieee1275): Likewise.
24780 (cmos): New group.
24781 (usb): Likewise.
24782 (videoinkernel): Likewise.
24783 (videomodules): Likewise.
24784 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24785 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24786 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24787 include/grub/loader.h, include/grub/msdos_partition.h,
24788 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24789 include/grub/machine/console.h, include/grub/machine/vga.h,
24790 include/grub/machine/vbe.h, include/grub/machine/init.h,
24791 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24792 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24793 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24794 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24795 * grub-core/Makefile.core.def (kernel): Explicit the source for
24796 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24797 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24798 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24799 Use videoinkernel tag.
24800 (usb): Enable on all usb.
24801 (usbserial_common): Likewise.
24802 (usbserial_pl2303): Likewise.
24803 (usbserial_ftdi): Likewise.
24804 (uhci): Enable on all x86.
24805 (ohci): Enable on all pci.
24806 (cmostest): Enable on all CMOS.
24807 (acpi): Include commands/acpi.c on all platforms.
24808 (halt): Add relevant lib/*/halt.c.
24809 (hdparm): Enable on all pci.
24810 (lspci): Likewise.
24811 (usbtest): Enable on all usb.
24812 (ata): Enable on all pci.
24813 (ata_pthru): Likewise.
24814 (usbms): Enable on all usb.
24815 (usb_keyboard): Likewise.
24816 (font): Use tag videomodules.
24817 (bufio): Likewise.
24818 (datetime): Use tag cmos. Enable on all noemu.
24819 (mmap): Use tags common and x86.
24820 (gfxterm): Use tag videomodules.
24821 (bitmap): Likewise.
24822 (bitmap_scale): Likewise.
24823 (video_fb): Likewise.
24824 (video): Likewise.
24825 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24826 adjust padding accordingly. All users updated.
24827 (grub_ohci_transaction): Fix bad format specification.
24828 (GRUB_MOD_INIT): Add asserts for struct size.
24829 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24830 (grub_alloc_td): Likewise.
24831 (grub_free_queue): Likewise.
24832 (grub_uhci_transfer): Likewise.
24833 (grub_uhci_transaction): Fix bad format specification.
24834 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24835 (grub_usb_bulk_readwrite): Likewise.
24836 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24837 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24838 Made static.
24839 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24840 Made static.
24841 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24842 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24843 Transformed into C.
24844 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24845 Moved from here ...
24846 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24847 ... here. Transformed into C. Made static.
24848 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24849 Moved from here ...
24850 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24851 ... here. Transformed into C. Made static.
24852 * grub-core/kern/i386/pc/startup.S
24853 (grub_biosdisk_check_int13_extensions): Moved from here ...
24854 * grub-core/disk/i386/pc/biosdisk.c
24855 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24856 Made static.
24857 * grub-core/kern/i386/pc/startup.S
24858 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24859 * grub-core/disk/i386/pc/biosdisk.c
24860 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24861 Transformed into C. Made static.
24862 * grub-core/kern/i386/pc/startup.S
24863 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24864 * grub-core/disk/i386/pc/biosdisk.c
24865 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24866 Transformed into C. Made static.
24867 * grub-core/kern/i386/pc/startup.S
24868 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24869 * grub-core/disk/i386/pc/biosdisk.c
24870 (grub_biosdisk_get_diskinfo_standard): ... here.
24871 Transformed into C. Made static.
24872 * grub-core/kern/i386/pc/startup.S
24873 (grub_biosdisk_get_num_floppies): Moved from here ...
24874 * grub-core/disk/i386/pc/biosdisk.c
24875 (grub_biosdisk_get_num_floppies): ... here.
24876 Transformed into C. Made static.
24877 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24878 New function.
24879 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24880 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24881 Transformed into C. Made static.
24882 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24883 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24884 Transformed into C. Made static.
24885 * grub-core/kern/i386/ieee1275/init.c: Removed.
24886 * grub-core/kern/i386/misc.S: Likewise.
24887 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24888 Splitted from here ...
24889 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24890 Transformed into C. Made static. All users updated.
24891 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24892 Transformed into C. Made static. All users updated.
24893 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24894 Moved from here...
24895 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24896 Transformed into C. Made static. All users updated.
24897 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24898 Moved from here...
24899 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24900 Transformed into C. Made static. All users updated.
24901 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24902 Removed (replaced by C version).
24903 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24904 Moved from here...
24905 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24906 Transformed into C. Made static.
24907 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24908 Moved from here...
24909 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24910 ... here. Transformed into C.
24911 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24912 Moved from here...
24913 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24914 ... here. Transformed into C.
24915 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24916 Moved from here...
24917 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24918 ... here. Transformed into C. Made static.
24919 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24920 Moved from here...
24921 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24922 ... here. Transformed into C.
24923 * grub-core/kern/i386/pc/startup.S
24924 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24925 * grub-core/video/i386/pc/vbe.c
24926 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24927 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24928 Moved from here...
24929 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24930 ... here. Transformed into C.
24931 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24932 Moved from here...
24933 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24934 ... here. Transformed into C.
24935 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24936 Moved from here...
24937 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24938 ... here. Transformed into C.
24939 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24940 Moved from here...
24941 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24942 ... here. Transformed into C.
24943 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24944 Moved from here...
24945 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24946 ... here. Transformed into C. Made static.
24947 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24948 Moved from here...
24949 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24950 ... here. Transformed into C. Made static.
24951 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24952 Moved from here...
24953 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24954 ... here. Transformed into C. Made static.
24955 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24956 pxe_rm_entry as third argument.
24957 (grub_bios_interrupt): New function.
24958 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24959 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24960 of calling grub_stop.
24961 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24962 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24963 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24964 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24965 * grub-core/lib/i386/halt.c: Moved from here ...
24966 * grub-core/lib/i386/halt.c: ... here.
24967 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24968 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24969 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24970 grub_stop_floppy.
24971 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24972 * include/grub/i386/coreboot/init.h: Removed.
24973 * include/grub/i386/multiboot/init.h: Likewise.
24974 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
24975 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
24976 * include/grub/i386/pc/int.h: New file.
24977 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
24978 (grub_pxe_scan): Removed.
24979 (grub_pxe_call): Update prototype.
24980 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
24981 prototypes.
24982 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
24983 * include/grub/i386/qemu/init.h: Removed.
24984 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
24985 noreturn.
24986 (grub_halt): Likewise.
24987 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
24988 (grub_reboot): Likewise.
24989 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
24990 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
24991 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
24992
24993 2010-08-30 Robert Millan <rmh@gnu.org>
24994
24995 * NEWS: Document addition of ZFS support in `grub-install' and
24996 `grub-mkconfig'.
24997
24998 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
24999
25000 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25001 dprintf output.
25002
25003 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25004
25005 Remove leftover embedding of font objects.
25006
25007 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25008 * util/grub-install.in (font): Removed.
25009 * util/grub-mkimage.c (generate_image): Remove font support. All users
25010 updated.
25011
25012 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25013
25014 Remove leftover embedding of font objects.
25015
25016 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25017 * util/grub-install.in (font): Removed.
25018 * util/grub-mkimage.c (generate_image): Remove font support. All users
25019 updated.
25020
25021 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25022
25023 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25024 Reported by: Ian Turner
25025
25026 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25027
25028 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25029 timeout to avoid indefinite boot stalling.
25030
25031 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25032
25033 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25034 (grub_env_write_color_highlight): Likewise.
25035
25036 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25037
25038 * grub-core/normal/term.c (print_more): Return to normal and not
25039 to standard state after printing "---MORE---".
25040
25041 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25042
25043 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25044 Mask out the bit 0x80 since it has other meaning that specifiing color.
25045
25046 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25047
25048 New relocator. Allows for more kernel support and more straightforward
25049 loader writing.
25050
25051 * Makefile.am (BOOTTARGET): New variable.
25052 (QEMU32): Likewise.
25053 (linux.init.x86_64): New target.
25054 (linux.init.i386): Likewise.
25055 (multiboot.elf): Likewise.
25056 (kfreebsd.elf): Likewise.
25057 (kfreebsd.aout): Likewise.
25058 (pc-chainloader.elf): Likewise.
25059 (pc-chainloader.bin): Likewise.
25060 (ntldr.elf): Likewise.
25061 (ntldr.bin): Likewise.
25062 (multiboot2.elf): Likewise.
25063 (kfreebsd.init.x86_64): Likewise.
25064 (kfreebsd.init.i386): Likewise.
25065 (knetbsd.init.i386): Likewise.
25066 (kopenbsd.init.i386): Likewise.
25067 (knetbsd.init.x86_64): Likewise.
25068 (kopenbsd.init.x86_64): Likewise.
25069 (linux-initramfs.i386): Likewise.
25070 (linux-initramfs.x86_64): Likewise.
25071 (kfreebsd-mfsroot.i386.img): Likewise.
25072 (knetbsd.image.i386): Likewise.
25073 (kopenbsd.image.i386): Likewise.
25074 (kopenbsd.image.x86_64): Likewise.
25075 (knetbsd.miniroot-image.i386.img): Likewise.
25076 (kfreebsd-mfsroot.x86_64.img): Likewise.
25077 (knetbsd.image.x86_64): Likewise.
25078 (knetbsd.miniroot-image.x86_64.img): Likewise.
25079 (kfreebsd-mfsroot.i386.gz): Likewise.
25080 (bootcheck-kfreebsd-i386): Likewise.
25081 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25082 (bootcheck-kfreebsd-x86_64): Likewise.
25083 (knetbsd.miniroot-image.i386.gz): Likewise.
25084 (bootcheck-knetbsd-i386): Likewise.
25085 (bootcheck-kopenbsd-i386): Likewise.
25086 (bootcheck-kopenbsd-x86_64): Likewise.
25087 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25088 (bootcheck-knetbsd-x86_64): Likewise.
25089 (bootcheck-linux-i386): Likewise.
25090 (bootcheck-linux-x86_64): Likewise.
25091 (bootcheck-linux16-i386): Likewise.
25092 (bootcheck-linux16-x86_64): Likewise.
25093 (bootcheck-multiboot): Likewise.
25094 (bootcheck-multiboot2): Likewise.
25095 (bootcheck-kfreebsd-aout): Likewise.
25096 (bootcheck-pc-chainloader): Likewise.
25097 (bootcheck-ntldr): Likewise.
25098 (CLEANFILES): Add new targets.
25099 (BOOTCHECKS): New variable.
25100 (.PHONY): Add bootchecks.
25101 (SUCCESSFUL_BOOT_STRING): New variable.
25102 (BOOTCHECK_TIMEOUT): Likewise.
25103 (bootcheck): New target
25104 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25105 * configure.ac: Correct efiemu excuse.
25106 * docs/grub.texi (Supported kernels): New chapter.
25107 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25108 include/grub/mm_private.h. Simplify inclusion of
25109 include/grub/boot.h, include/grub/loader.h
25110 and include/grub/msdos_partition.h
25111 (KERNEL_HEADER_FILES) [i386_coreboot]:
25112 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25113 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25114 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25115 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25116 include/grub/machine/loader.h.
25117 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25118 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25119 extra_dist.
25120 (pci.mod): Enable on i386-multiboot.
25121 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25122 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25123 i386-qemu.
25124 (relocator.mod): Rewritten.
25125 (aout.mod): Enable on all x86.
25126 (bsd.mod): Likewise.
25127 (ntldr.mod): New module.
25128 (linux.mod): Use loader/i386/linux.c on all x86.
25129 (xnu.mod): Enable on all x86.
25130 (vga_text.mod): disable on EFI and QEMU.
25131 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25132 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25133 * grub-core/efiemu/loadcore.c: Likewise.
25134 * grub-core/efiemu/main.c: Likewise.
25135 (grub_efiemu_exit_boot_services): Removed.
25136 (grub_efiemu_finish_boot_services): Likewise.
25137 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25138 function.
25139 * grub-core/efiemu/i386/nocfgtables.c: New file.
25140 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25141 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25142 (grub_efi_finish_boot_services): Moved from here ...
25143 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25144 Fille finish memory map and related data.
25145 (finish_mmap_buf): New variable.
25146 (grub_efi_uintn_t finish_mmap_size): Likewise.
25147 (grub_efi_uintn_t finish_key): Likewise.
25148 (grub_efi_uintn_t finish_desc_size): Likewise.
25149 (grub_efi_uint32_t finish_desc_version): Likewise.
25150 (grub_efi_is_finished): Likewise.
25151 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25152 finished.
25153 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25154 (grub_elf64_phdr_iterate): Likewise.
25155 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25156 (grub_os_area_size): Likewise.
25157 (grub_machine_init): Don't reserve os area.
25158 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25159 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25160 * grub-core/kern/i386/loader.S: Removed.
25161 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25162 (grub_os_area_size): Likewise.
25163 (grub_machine_init): Don't reserve os area.
25164 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25165 Don't call grub_dl_unload_all.
25166 Don't include loader.S.
25167 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25168 Declare the memory after _end as available.
25169 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25170 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25171 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25172 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25173 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25174 * include/grub/mm_private.h (grub_mm_header): ... here.
25175 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25176 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25177 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25178 (grub_mm_region): ..here. Removed addr. Added pre_size.
25179 All users updated.
25180 * grub-core/kern/mm.c (base): Renamed to ...
25181 (grub_mm_base): ... this. Made global.
25182 (grub_real_malloc): Alloc from end of region.
25183 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25184 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25185 * grub-core/kern/powerpc/cache_flush.S: ... here.
25186 * grub-core/lib/efi/relocator.c: New file.
25187 * grub-core/lib/i386/relocator.c: Rewritten.
25188 * grub-core/lib/i386/relocator16.S: New file.
25189 * grub-core/lib/i386/relocator32.S: Likewise.
25190 * grub-core/lib/i386/relocator64.S: Likewise.
25191 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25192 * grub-core/lib/i386/relocator_common.S: New file.
25193 * grub-core/lib/ieee1275/relocator.c: Likewise.
25194 * grub-core/lib/mips/relocator.c: Rewritten.
25195 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25196 stylistic adjustments.
25197 * grub-core/lib/powerpc/relocator.c: New file.
25198 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25199 * grub-core/lib/relocator.c: Rewritten.
25200 * grub-core/lib/x86_64/relocator_asm.S: New file.
25201 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25202 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25203 (bsd_tag): New struct.
25204 (tags): New variable.
25205 (tags_last): Likewise.
25206 (netbsd_module): New struct.
25207 (netbsd_mods): New variable.
25208 (netbsd_mods_last): Likewise.
25209 (openbsd_opts): New parameter "serial".
25210 (OPENBSD_SERIAL_ARG): New definition.
25211 (netbsd_opts): New parameter "serial".
25212 (NETBSD_SERIAL_ARG): New definition.
25213 (grub_freebsd_add_meta): Reorganised into ...
25214 (grub_bsd_add_meta): ...this. All users updated.
25215 (grub_freebsd_add_mmap): Reorganised into ...
25216 (generate_e820_mmap): ...this...
25217 (grub_bsd_add_mmap): ...and this. All users updated.
25218 (grub_freebsd_list_modules): Use tags.
25219 (grub_netbsd_add_meta_module): New function.
25220 (grub_netbsd_list_modules): Likewise.
25221 (grub_freebsd_boot): Use relocator and finish EFI.
25222 (grub_openbsd_boot): Likewise.
25223 (grub_netbsd_setup_video): New function.
25224 (grub_netbsd_add_modules): Likewise.
25225 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25226 and finish EFI.
25227 (grub_bsd_unload): Unload tags.
25228 (grub_bsd_load_aout): Use relocator.
25229 (grub_bsd_elf32_size_hook): New function.
25230 (grub_bsd_elf32_hook): Use relocator.
25231 (grub_bsd_elf64_size_hook): New function.
25232 (grub_bsd_elf64_hook): Use relocator.
25233 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25234 (grub_bsd_load): Zero-out openbsd_ramdisk.
25235 (grub_bsd_load): Use relocator.
25236 (grub_cmd_openbsd): Support serial.
25237 (grub_cmd_netbsd): Support modules.
25238 (grub_cmd_freebsd_module): Use relocator.
25239 (grub_netbsd_module_load): New function.
25240 (grub_cmd_netbsd_module): Likewise.
25241 (grub_cmd_openbsd_ramdisk): Likewise.
25242 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25243 kopenbsd_ramdisk.
25244 (GRUB_MOD_FINI): Unregister new commands.
25245 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25246 (grub_freebsd_load_elfmodule_obj): Use relocator.
25247 (grub_freebsd_load_elfmodule): Likewise.
25248 (grub_freebsd_load_elf_meta): Likewise.
25249 (grub_netbsd_load_elf_meta): New function.
25250 (grub_openbsd_find_ramdisk): Likewise.
25251 * grub-core/loader/i386/bsd_helper.S: Removed.
25252 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25253 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25254 * grub-core/loader/i386/efi/linux.c: Likewise.
25255 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25256 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25257 (DEFAULT_VIDEO_MODE): Likewise.
25258 (real_mode_target): New variable.
25259 (prot_mode_target): Likewise.
25260 (initrd_mem_target): Likewise.
25261 (relocator): Likewise.
25262 (efi_mmap_buf): Likewise.
25263 (efi_mmap_size): Likewise.
25264 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25265 (free_pages): Use relocator.
25266 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25267 (grub_linux_setup_video): Return error.
25268 (grub_linux_trampoline_start): Removed.
25269 (grub_linux_trampoline_end): Likewise.
25270 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25271 andd video parameters depending on firmware.
25272 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25273 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25274 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25275 (grub_cmd_initrd): Use relocator.
25276 * grub-core/loader/i386/linux_trampoline.S: Removed.
25277 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25278 (elf_sec_entsize): Likewise.
25279 (elf_sec_shstrndx): Likewise.
25280 (elf_sections): Likewise.
25281 (grub_multiboot_load): Use relocator.
25282 (grub_multiboot_get_mbi_size): Account for sections.
25283 (grub_multiboot_make_mbi): Use relocator and support sections.
25284 (grub_multiboot_add_elfsyms): New function.
25285 (grub_multiboot_free_mbi): Free sections.
25286 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25287 (grub_linux_real_target): Likewise.
25288 (grub_linux_real_chunk): Likewise.
25289 (grub_linux16_prot_size): Likewise.
25290 (grub_linux16_boot): Use relocator.
25291 (grub_linux_unload): Unload relocator.
25292 (grub_cmd_linux): Use relocator.
25293 (grub_cmd_initrd): Likewise.
25294 * grub-core/loader/i386/pc/ntldr.c: New file.
25295 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25296 Don't try to guess CPU frequency.
25297 (grub_xnu_set_video): Stretch bitmap.
25298 (grub_xnu_boot): Use relocator.
25299 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25300 (grub_linux_unload): Free relocator.
25301 (grub_linux_load32): Use relocator.
25302 (grub_linux_load64): Likewise.
25303 (grub_cmd_initrd): Likewise.
25304 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25305 (grub_multiboot_unload): Unload relocator.
25306 (grub_cmd_multiboot): Use relocator.
25307 (grub_cmd_module): Likewise.
25308 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25309 Use relocator and support sections.
25310 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25311 (elf_sec_entsize): Likewise.
25312 (elf_sec_shstrndx): Likewise.
25313 (elf_sections): Likewise.
25314 (grub_multiboot_load): Use relocator.
25315 (grub_multiboot_get_mbi_size): Account for sections.
25316 (grub_multiboot_make_mbi): Use relocator and support sections.
25317 (grub_multiboot_add_elfsyms): New function.
25318 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25319 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25320 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25321 Prototype changed. All users updated.
25322 (grub_xnu_align_heap): Simplified.
25323 (grub_xnu_writetree_toheap): Likewise.
25324 (grub_xnu_unload): Unload relocator.
25325 (grub_cmd_xnu_kernel): Use relocator.
25326 (grub_cmd_xnu_kernel64): Likewise.
25327 (grub_xnu_register_memory): Simplified.
25328 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25329 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25330 EFI is finished.
25331 (grub_console_checkkey): Likewise.
25332 (grub_console_getkey): Likewise.
25333 (grub_console_getwh): Likewise.
25334 (grub_console_getxy): Likewise.
25335 (grub_console_gotoxy): Likewise.
25336 (grub_console_cls): Likewise.
25337 (grub_console_setcolorstate): Likewise.
25338 (grub_console_setcursor): Likewise.
25339 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25340 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25341 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25342 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25343 * grub-core/tests/boot/kernel-8086.S: Likewise.
25344 * grub-core/tests/boot/kernel-i386.S: Likewise.
25345 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25346 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25347 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25348 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25349 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25350 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25351 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25352 * grub-core/tests/boot/linux.cfg: Likewise.
25353 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25354 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25355 * grub-core/tests/boot/linux16.cfg: Likewise.
25356 * grub-core/tests/boot/multiboot.cfg: Likewise.
25357 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25358 * grub-core/tests/boot/ntldr.cfg: Likewise.
25359 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25360 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25361 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25362 New definition.
25363 * include/grub/dl.h (grub_dl_unload_all): Removed.
25364 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25365 (grub_efi_finish_boot_services): Change prototype.
25366 (grub_efi_is_finished): New variable.
25367 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25368 Changed prototype.
25369 (grub_efiemu_finish_boot_services): Removed.
25370 (grub_machine_efiemu_init_tables): New prototype.
25371 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25372 (grub_elf64_phdr_iterate): Likewise.
25373 * include/grub/i386/bsd.h: Include relocator.h.
25374 (freebsd_tag_header): New struct.
25375 (grub_openbsd_bios_mmap): Removed.
25376 (grub_unix_real_boot): Removed.
25377 (grub_freebsd_load_elfmodule32): Changed prototype.
25378 (grub_freebsd_load_elfmodule_obj64): Likewise.
25379 (grub_freebsd_load_elf_meta32): Likewise.
25380 (grub_freebsd_load_elf_meta64): Likewise.
25381 (grub_freebsd_add_meta): Removed.
25382 (grub_netbsd_load_elf_meta32): New prototype.
25383 (grub_netbsd_load_elf_meta64): Likewise.
25384 (grub_bsd_add_meta): Likewise.
25385 (grub_openbsd_ramdisk_descriptor): New struct.
25386 (grub_openbsd_find_ramdisk32): New prototype.
25387 (grub_openbsd_find_ramdisk64): Likewise.
25388 * include/grub/i386/coreboot/loader.h: Removed.
25389 * include/grub/i386/efi/loader.h: Likewise.
25390 * include/grub/i386/ieee1275/loader.h: Likewise.
25391 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25392 to grub_uint32_t.
25393 * include/grub/i386/loader.h: Removed.
25394 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25395 value.
25396 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25397 (grub_phys_addr_t): New type.
25398 (grub_vtop): New inline function.
25399 (grub_map_memory): Likewise.
25400 (grub_unmap_memory): Likewise.
25401 * include/grub/i386/multiboot/loader.h: Removed.
25402 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25403 (NETBSD_BTINFO_CONSOLE): New definition.
25404 (NETBSD_BTINFO_SYMTAB): Likewise.
25405 (NETBSD_BTINFO_MODULES): Likewise.
25406 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25407 (grub_netbsd_bootinfo): New struct.
25408 (grub_netbsd_btinfo_common): Use explicit bitsize.
25409 (grub_netbsd_btinfo_mmap_entry): Removed.
25410 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25411 (grub_netbsd_btinfo_bootdisk): New struct.
25412 (grub_netbsd_btinfo_symtab): Likewise.
25413 (grub_netbsd_btinfo_serial): Likewise.
25414 (grub_netbsd_btinfo_modules): Likewise.
25415 (grub_netbsd_btinfo_framebuf): Likewise.
25416 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25417 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25418 Likewise.
25419 (grub_openbsd_bootargs): Use explicit bitsize.
25420 (grub_openbsd_bootarg_console): New struct.
25421 (GRUB_OPENBSD_COM_MAJOR): New definition.
25422 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25423 * include/grub/i386/pc/efiemu.h: Removed.
25424 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25425 * include/grub/i386/qemu/loader.h: Removed.
25426 * include/grub/i386/relocator.h: Rewritten.
25427 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25428 * include/grub/mips/memory.h: New file.
25429 * include/grub/mips/multiboot.h: Rewritten.
25430 * include/grub/mips/relocator.h: Rewritten.
25431 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25432 (grub_vtop): New function.
25433 (grub_map_memory): Likewise.
25434 (grub_unmap_memory): Likewise.
25435 * include/grub/misc.h (ALIGN_DOWN): New definition.
25436 * include/grub/mm.h (grub_mm_check_real): New proto.
25437 (GRUB_MM_CHECK): New definition.
25438 * include/grub/mm_private.h: New file.
25439 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25440 (grub_multiboot_get_mbi_size): Removed.
25441 (grub_multiboot_make_mbi): Change prottype.
25442 (grub_multiboot_set_accepts_video): New proto.
25443 (grub_multiboot_add_elfsyms): Likewise.
25444 (grub_multiboot_payload_eip): New variable.
25445 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25446 New prototype.
25447 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25448 New definition.
25449 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25450 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25451 * include/grub/powerpc/ieee1275/loader.h: Removed.
25452 * include/grub/powerpc/memory.h: New file.
25453 * include/grub/powerpc/relocator.h: Likewise.
25454 * include/grub/relocator.h: Likewise.
25455 * include/grub/relocator_private.h: Likewise.
25456 * include/grub/sparc64/ieee1275/loader.h: Removed.
25457 * include/grub/x86_64/memory.h: New file.
25458 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25459 (grub_xnu_heap_malloc): Likewise.
25460 (grub_xnu_heap_real_start): Removed.
25461 (grub_xnu_heap_start): Likewise.
25462 (grub_xnu_relocator): New variable.
25463 (grub_xnu_heap_target_start): Likewise.
25464 * tests/util/grub-shell.in: Support non-pc.
25465 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25466
25467 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25468
25469 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25470 on malloc error.
25471 (grub_bidi_logical_to_visual): Check that malloc succeded.
25472 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25473 puts.
25474 (grub_xputs_normal): Likewise.
25475
25476 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25477
25478 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25479 extra_dist.
25480
25481 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25482
25483 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25484
25485 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25486
25487 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25488
25489 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25490
25491 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25492 dprintf.
25493
25494 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25495
25496 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25497
25498 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25499
25500 * grub-core/normal/term.c (print_more): Fix a memory leak.
25501 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25502 (grub_xputs_normal): Likewise.
25503
25504 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25505
25506 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25507 the begining of the string
25508
25509 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25510
25511 * grub-core/script/script.c (grub_script_parse): Free parsed on
25512 failure.
25513
25514 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25515
25516 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25517 on failure.
25518
25519 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25520
25521 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25522 return.
25523
25524 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25525
25526 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25527 (scroll_up): Fix a memory leak.
25528
25529 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25530
25531 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25532 errors.
25533
25534 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25535
25536 Handle USB pendrives exposed as floppies.
25537
25538 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25539 floppy.
25540 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25541 Check for partitions on all devices.
25542
25543 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25544
25545 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25546 (readkey): Likewise.
25547
25548 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25549
25550 Multiple variable names support to "export" command.
25551
25552 * normal/context.c (grub_cmd_export): "export" command supports
25553 multiple variable names.
25554
25555 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25556
25557 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25558 --target=drive output to Mach device name.
25559
25560 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25561
25562 New Automake based build system for GRUB.
25563
25564 * ABOUT-NLS: New file.
25565 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25566 in Makefile.util.def file.
25567 * Makefile.util.def: New file. Autogen build definitions file for
25568 GRUB host utils.
25569 * conf/Makefile.common: New file. Common variables for GRUB host
25570 utils and target modules.
25571 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25572 * docs/Makefile.am: New file. Automake file for docs.
25573 * gentpl.py: New file. Python script to generate Autogen
25574 template.
25575 * grub-core/Makefile.am: New file. GRUB target modules' rules
25576 that doesn't fit in Makefile.core.def file.
25577 * grub-core/Makefile.core.def: New file. Autogen build
25578 definitions file for GRUB target modules.
25579 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25580 specific setjmp.S file.
25581 * po/Makefile.am: New file.
25582
25583 * .bzrignore: New ignores.
25584 * INSTALL: New requirements, without Ruby.
25585 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25586 * autogen.sh: Updated to invoke autogen as necessary.
25587 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25588 and defines for Automake conditionals.
25589 * geninit.sh: Refactoring.
25590
25591 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25592 necessary.
25593 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25594 New prototype.
25595
25596 * include/grub/test.h: Fix functional test modules' naming.
25597 * grub-core/tests/example_functional_test.c: Fix test module name.
25598
25599 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25600 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25601 * util/grub-editenv.c: Likewise.
25602 * util/grub-fstest.c: Likewise.
25603 * util/grub-mkdevicemap.c: Likewise.
25604 * util/grub-mkfont.c: Likewise.
25605 * util/grub-mkimage.c: Likewise.
25606 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25607 * util/grub-probe.c: Likewise.
25608 * util/grub-script-check.c: Likewise.
25609 * util/i386/pc/grub-setup.c: Likewise.
25610 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25611
25612 * tests/util/grub-shell.in: Fix override directory path.
25613 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25614 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25615
25616 * util/lvm.c: Update #includes.
25617 * util/raid.c: Likewise.
25618 * util/resolve.c: Likewise.
25619 * grub-core/bus/emu/pci.c: Likewise.
25620 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25621 * grub-core/lib/posix_wrap/string.h: Likewise.
25622 * grub-core/kern/emu/main.c: Likewise.
25623
25624 * grub-core/gensymlist.sh: New file. Script for generating kernel
25625 symbols file.
25626 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25627
25628 * grub-core/gentrigtables.c: Fix unused variable warnings.
25629
25630 * Makefile.in: Removed.
25631 * conf/any-emu.rmk: Removed.
25632 * conf/common.rmk: Removed.
25633 * conf/i386-coreboot.rmk: Removed.
25634 * conf/i386-efi.rmk: Removed.
25635 * conf/i386-ieee1275.rmk: Removed.
25636 * conf/i386-multiboot.rmk: Removed.
25637 * conf/i386-pc.rmk: Removed.
25638 * conf/i386-qemu.rmk: Removed.
25639 * conf/i386.rmk: Removed.
25640 * conf/mips-yeeloong.rmk: Removed.
25641 * conf/mips.rmk: Removed.
25642 * conf/powerpc-ieee1275.rmk: Removed.
25643 * conf/sparc64-ieee1275.rmk: Removed.
25644 * conf/tests.rmk: Removed.
25645 * conf/x86-efi.rmk: Removed.
25646 * conf/x86_64-efi.rmk: Removed.
25647 * gendistlist.sh: Removed.
25648 * geninitheader.sh: Removed.
25649 * genkernsyms.sh.in: Removed.
25650 * genmk.rb: Removed.
25651 * gensymlist.sh.in: Removed.
25652 * mkinstalldirs: Removed.
25653 * boot: Moved ...
25654 * grub-core/boot: ... to here.
25655 * bus: Moved ...
25656 * grub-core/bus: ... to here.
25657 * commands: Moved ...
25658 * grub-core/commands: ... to here.
25659 * disk: Moved ...
25660 * grub-core/disk: ... to here.
25661 * efiemu: Moved ...
25662 * grub-core/efiemu: ... to here.
25663 * font: Moved ...
25664 * grub-core/font: ... to here.
25665 * fs: Moved ...
25666 * grub-core/fs: ... to here.
25667 * gencmdlist.sh: Moved ...
25668 * grub-core/gencmdlist.sh: ... to here.
25669 * genemuinit.sh: Moved ...
25670 * grub-core/genemuinit.sh: ... to here.
25671 * genemuinitheader.sh: Moved ...
25672 * grub-core/genemuinitheader.sh: ... to here.
25673 * genfslist.sh: Moved ...
25674 * grub-core/genfslist.sh: ... to here.
25675 * genhandlerlist.sh: Moved ...
25676 * grub-core/genhandlerlist.sh: ... to here.
25677 * genmoddep.awk: Moved ...
25678 * grub-core/genmoddep.awk: ... to here.
25679 * genmodsrc.sh: Moved ...
25680 * grub-core/genmodsrc.sh: ... to here.
25681 * genpartmaplist.sh: Moved ...
25682 * grub-core/genpartmaplist.sh: ... to here.
25683 * genparttoollist.sh: Moved ...
25684 * grub-core/genparttoollist.sh: ... to here.
25685 * genterminallist.sh: Moved ...
25686 * grub-core/genterminallist.sh: ... to here.
25687 * gentrigtables.c: Moved ...
25688 * grub-core/gentrigtables.c: ... to here.
25689 * genvideolist.sh: Moved ...
25690 * grub-core/genvideolist.sh: ... to here.
25691 * gettext: Moved ...
25692 * grub-core/gettext: ... to here.
25693 * gfxmenu: Moved ...
25694 * grub-core/gfxmenu: ... to here.
25695 * gnulib: Moved ...
25696 * grub-core/gnulib: ... to here.
25697 * hello: Moved ...
25698 * grub-core/hello: ... to here.
25699 * hook: Moved ...
25700 * grub-core/hook: ... to here.
25701 * io: Moved ...
25702 * grub-core/io: ... to here.
25703 * kern: Moved ...
25704 * grub-core/kern: ... to here.
25705 * lib: Moved ...
25706 * grub-core/lib: ... to here.
25707 * loader: Moved ...
25708 * grub-core/loader: ... to here.
25709 * mmap: Moved ...
25710 * grub-core/mmap: ... to here.
25711 * normal: Moved ...
25712 * grub-core/normal: ... to here.
25713 * partmap: Moved ...
25714 * grub-core/partmap: ... to here.
25715 * parttool: Moved ...
25716 * grub-core/parttool: ... to here.
25717 * script: Moved ...
25718 * grub-core/script: ... to here.
25719 * term: Moved ...
25720 * grub-core/term: ... to here
25721 * tests/example_functional_test.c: Moved ...
25722 * grub-core/tests/example_functional_test.c: ... to here.
25723 * tests/lib/functional_test.c: Moved ...
25724 * grub-core/tests/lib/functional_test.c: ... to here.
25725 * tests/lib/test.c: Moved ...
25726 * grub-core/tests/lib/test.c: ... to here.
25727 * video: Moved ...
25728 * grub-core/video: ... to here.
25729
25730 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25731
25732 Replace --enable-grub-emu-modules with grub-emu-lite.
25733
25734 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25735 cache.S.
25736
25737 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25738 * kern/emu/full.c: New file. For grub-emu specific initialization.
25739 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25740 * kern/emu/main.c: Call initialization function grub_emu_init.
25741
25742 * Makefile.in: Include grub-emu-lite in install.
25743 * commands/parttool.c: Use grub_no_autoload to differentiate
25744 between grub-emu and grub-emu-lite.
25745 * include/grub/misc.h: New variable grub_no_autoload.
25746
25747 * conf/any-emu.rmk: New rules for grub-emu-lite.
25748 * configure.ac: Remove --enable-grub-emu-modules.
25749 * genmk.rb: Cleanup unnecessary rules.
25750 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25751
25752 * normal/main.c: Don't load list files on grub-emu-lite.
25753 * util/misc.c (grub_arch_sync_caches): Removed.
25754
25755 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25756
25757 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25758 grub-mkimage rather than grub-mkelfimage.
25759 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25760
25761 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25762
25763 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25764 a key after CapsLock or NumLock. It's just a qemu bug.
25765
25766 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25769 needed by libusb wrapper.
25770
25771 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25772
25773 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25774
25775 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25776
25777 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25778 --nounzip is passed.
25779
25780 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25781
25782 USB hotunplugging and USB serial support.
25783
25784 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25785 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25786 (grub_uhci_transfer): Respect timeout and set *actual.
25787 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25788 non-standard length.
25789 (grub_usb_device_attach): Autoload modules.
25790 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25791 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25792 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25793 users updated.
25794 (grub_usb_add_hub): Fill nports and children.
25795 (attach_root_port): Receive hub instead of controller.
25796 All users updated. Fill hub->devices.
25797 (grub_usb_root_hub): Allocate hub->devices.
25798 (detach_device): New function.
25799 (poll_nonroot_hub): Fill children and detach devices.
25800 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25801 actual arguments. All users updated.
25802 (grub_usb_bulk_read_extended): New function.
25803 * bus/usb/serial/common.c: New file.
25804 * bus/usb/serial/ftdi.c: Likewise.
25805 * bus/usb/serial/pl2303.c: Likewise.
25806 * commands/terminal.c (handle_command): Support wildcard.
25807 * commands/usbtest.c: Output "Unknown" instead of empty string.
25808 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25809 (usbserial_common_mod_SOURCES): New variable.
25810 (usbserial_common_mod_CFLAGS): Likewise.
25811 (usbserial_common_mod_LDFLAGS): Likewise.
25812 (pkglib_MODULES): Add usbserial_pl2303.mod.
25813 (usbserial_pl2303_mod_SOURCES): New variable.
25814 (usbserial_pl2303_mod_CFLAGS): Likewise.
25815 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25816 (pkglib_MODULES): Add usbserial_ftdi.mod.
25817 (usbserial_ftdi_mod_SOURCES): New variable.
25818 (usbserial_ftdi_mod_CFLAGS): Likewise.
25819 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25820 (pkglib_MODULES): Add serial.mod.
25821 (serial_mod_SOURCES): New variable.
25822 (serial_mod_CFLAGS): Likewise.
25823 (serial_mod_LDFLAGS): Likewise.
25824 * conf/i386-pc.rmk: Likewise.
25825 * conf/mips-yeeloong.rmk: Likewise.
25826 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25827 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25828 * disk/usbms.c (first_available_slot): New variable.
25829 (grub_usbms_attach): Don't reuse free slots due to potential cache
25830 problems.
25831 * include/grub/serial.h: Moved to ..
25832 * include/grub/ns8250.h: ...this.
25833 * include/grub/serial.h: New file.
25834 * include/grub/term.h (grub_term_poll_usb): New variable.
25835 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25836 readkey. All users updated.
25837 (grub_terminfo_output_state): Pass term to put.
25838 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25839 (grub_usb_controller_dev): Add timeout and actual arguments to
25840 transfer. All users updated.
25841 (grub_usb_interface): New field detach_data.
25842 (grub_usb_device): New fields children and nports.
25843 (grub_usb_ep_type_t): New type.
25844 (grub_usb_get_ep_type): New function.
25845 (grub_usb_bulk_read_extended): Likewise.
25846 * include/grub/usbdesc.h (grub_usb_desc): New type.
25847 * include/grub/usbserial.h: New file.
25848 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25849 * kern/term.c (grub_term_poll_usb): New variable.
25850 (grub_getkey): Call grub_term_poll_usb if set.
25851 (grub_checkkey): Likewise.
25852 (grub_getkeystatus): Likewise.
25853 * term/serial.c: Moved controller-specific parts to ...
25854 * term/ns8250.c: ... here.
25855 * term/serial.c: Mostly rewritten.
25856 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25857 according to spec.
25858
25859 2010-08-20 Robert Millan <rmh@gnu.org>
25860
25861 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25862 a separate module and maybe other interesting combinations.
25863
25864 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25865 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25866 (kfreebsd_entry): Add generic filesystem module load routine.
25867 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25868
25869 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25870
25871 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25872 "numcenter" (I misunderstood the purpose of this entry).
25873 * docs/grub.texi (sendkey): Likewise.
25874
25875 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25876
25877 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25878 status flag options; simply omitting the option is equivalent and
25879 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25880 (keysym_table): Rename "num5numlock" to "numlock".
25881 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25882 can uniformly say that only the last of multiple `sendkey'
25883 invocations has any effect.
25884 * docs/grub.texi (sendkey): New section.
25885
25886 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25887
25888 * commands/i386/pc/sendkey.c (options): Fix three typos.
25889
25890 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25891
25892 Implement sendkey support.
25893
25894 * commands/i386/pc/sendkey.c: New file.
25895 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25896 (sendkey_mod_SOURCES): New variable.
25897 (sendkey_mod_CFLAGS): Likewise.
25898 (sendkey_mod_LDFLAGS): Likewise.
25899
25900 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25901
25902 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25903 fix warnings from Autoconf.
25904
25905 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25906
25907 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25908 to avoid false positives with some assemblers that output things
25909 like "someprefix_func" as part of their output.
25910
25911 2010-08-15 Robert Millan <rmh@gnu.org>
25912
25913 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25914 errors.
25915 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25916 grub_get_libzfs_handle() errors.
25917
25918 2010-08-14 Robert Millan <rmh@gnu.org>
25919
25920 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25921 filesystem is not ZFS.
25922
25923 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25924
25925 Fix for misspelled color names defaulting to black/black (bug
25926 reported by Doug Nazar)
25927
25928 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25929 status to prototype.
25930 * normal/color.c (grub_parse_color_name_pair): Return failure
25931 status.
25932 (grub_env_write_color_normal): Ignore bad color names.
25933 (grub_env_write_color_highlight): Likewise.
25934 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25935
25936 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25937
25938 "shift" command support to GRUB script.
25939
25940 * include/grub/script_sh.h (grub_script_shift): New prototype.
25941 * script/execute.c (grub_script_shift): New function.
25942 * script/main.c (grub_script_init): Register shift command.
25943 (grub_script_fini): Unregister shift command.
25944 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25945
25946 * tests/grub_script_shift.in: New testcase.
25947 * conf/tests.rmk: Rules for new testcase.
25948
25949 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25950
25951 "continue" command support to GRUB script.
25952
25953 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25954 (grub_script_break): Continue support.
25955 * script/main.c (grub_script_init): Register continue command.
25956 (grub_script_fini): Unregister continue command.
25957
25958 * tests/grub_script_continue.in: New testcase.
25959 * conf/tests.rmk: Rules for new testcase.
25960
25961 2010-08-12 BVK Chaitanya <bvk@dbook>
25962
25963 "break" command support to GRUB script.
25964
25965 * conf/common.rmk: Rule updates to grub-script-check.
25966 * include/grub/misc.h (grub_min): New function.
25967 * include/grub/script_sh.h (grub_script_init): New prototype.
25968 (grub_script_fini): New prototype.
25969 (grub_script_break): New prototype.
25970 * script/main.c (grub_script_init): New function.
25971 (grub_script_fini): New function.
25972 * script/execute.c (grub_script_break): New function.
25973 * normal/main.c: Calls to grub_script_{init,fini}.
25974 * util/grub-script-check.c (grub_script_break): New function.
25975
25976 * tests/grub_script_break.in: New testcase.
25977 * conf/tests.rmk: Rules for new test case.
25978
25979 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25980
25981 Function parameters support to GRUB script.
25982
25983 * script/yylex.l (VARIABLE): Regular expression update.
25984 * script/function.c (grub_script_function_call): Moved ...
25985 * script/execute.c (grub_script_function_call): ... to here.
25986 (grub_script_execute_arglist_to_argv): Removed.
25987 (grub_script_arglist_to_argv): New function.
25988 * script/argv.c: New file.
25989 (grub_script_argv_free): New function.
25990 (grub_script_argv_next): Likewise.
25991 (grub_script_argv_append): Likewise.
25992 (grub_script_argv_split_append): Likewise.
25993 * include/grub/script_sh.h (grub_script_argv): New struct.
25994 (grub_script_argv_free): New function.
25995 (grub_script_argv_next): Likewise.
25996 (grub_script_argv_append): Likewise.
25997 (grub_script_argv_split_append): Likewise.
25998
25999 * conf/common.rmk (normal.mod): New source script/argv.c.
26000
26001 * tests/grub_script_echo1.in: More tests.
26002 * tests/grub_script_vars1.in: Likewise.
26003 * tests/grub_script_functions.in: New test case.
26004 * conf/tests.rmk: Rules for new testcase.
26005
26006 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26007
26008 Remove grub_script_cmdblock struct.
26009
26010 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26011 * script/parser.y: Likewise.
26012 * script/execute.c: Rename cmdblock suffix to cmdlist.
26013 * script/script.c: Likewise.
26014 * util/grub-script-check.c: Likewise.
26015
26016 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26017
26018 * .bzrignore: add grub-macho2img
26019
26020 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26021
26022 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26023
26024 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26025
26026 Remove the dump of sm712 initialisation sequence.
26027
26028 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26029 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26030 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26031 (GRUB_VGA_CR_*): Added many registers.
26032 (GRUB_VGA_SR_*): Likewise.
26033 (GRUB_VGA_GR_*): Likewise.
26034 (grub_vga_write_arx): New function.
26035 (grub_video_hw_config): New struct.
26036 (grub_vga_set_geometry): New function.
26037 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26038 GRUB_PCI_CLASS_SUBCLASS_VGA.
26039 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26040 * video/sm712.c (grub_sm712_write_reg): New function
26041 (grub_sm712_read_reg): Likewise.
26042 (grub_sm712_sr_write): Likewise.
26043 (grub_sm712_gr_write): Likewise.
26044 (grub_sm712_cr_write): Likewise.
26045 (grub_sm712_write_arx): Likewise.
26046 (grub_sm712_cr_shadow_write): Likewise.
26047 (grub_sm712_write_dda_lookup): Likewise.
26048 (grub_video_sm712_setup): Initialise the video rather then
26049 blindly replay the dump.
26050 (main) [TEST]: Add a routine to be able to compile as standalone for
26051 tests.
26052 * video/sm712_init.c (sm712_init): Removed.
26053 (sm712_sr_seq1): New array.
26054 (sm712_sr_seq2): Likewise.
26055
26056 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26057
26058 * include/grub/vga.h: Add missing grub/pci.h include.
26059
26060 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26061
26062 * util/grub-macho2img.c (main): fix typo
26063
26064 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26065
26066 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26067 (grub_vga_gr_read): Likewise.
26068 (grub_vga_cr_write): Likewise.
26069 (grub_vga_cr_read): Likewise.
26070 (grub_vga_sr_write): Likewise.
26071 (grub_vga_sr_read): Likewise.
26072 (grub_vga_palette_read): Likewise.
26073 (grub_vga_palette_write): Likewise.
26074 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26075 (grub_sm712_sr_read): New function.
26076 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26077 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26078
26079 2010-08-09 Robert Millan <rmh@gnu.org>
26080
26081 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26082 out unused variables on non-ZFS build.
26083
26084 2010-08-08 Robert Millan <rmh@gnu.org>
26085
26086 Fix path generation for sub-filesystems in ZFS.
26087
26088 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26089 missing slash.
26090
26091 2010-08-08 Robert Millan <rmh@gnu.org>
26092
26093 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26094
26095 2010-08-08 Robert Millan <rmh@gnu.org>
26096
26097 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26098 exist, issue a proper error message (rely on `ls' for translated
26099 strings).
26100
26101 2010-08-08 Robert Millan <rmh@gnu.org>
26102
26103 Fix grub-probe invocation.
26104
26105 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26106
26107 2010-08-04 Robert Millan <rmh@gnu.org>
26108
26109 * configure.ac: Remove checks for getfsstat() and getmntany().
26110 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26111 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26112 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26113 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26114 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26115 function.
26116 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26117 via find_mount_point_from_dir() and getfsstat() / getmntany().
26118
26119 2010-08-04 Robert Millan <rmh@gnu.org>
26120
26121 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26122 (grub_find_zpool_from_mount_point): Merge into ...
26123 (grub_find_zpool_from_dir): ... this.
26124 * kern/emu/misc.c: Likewise.
26125
26126 * kern/emu/misc.c
26127 (grub_make_system_path_relative_to_its_root): Replace
26128 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26129 with grub_find_zpool_from_dir().
26130 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26131
26132 2010-08-04 Robert Millan <rmh@gnu.org>
26133
26134 Support OpenSolaris in ZFS device resolution.
26135
26136 * configure.ac: Check for getmntany().
26137 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26138 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26139 support.
26140
26141 2010-08-03 Robert Millan <rmh@gnu.org>
26142
26143 Fix grub-emu build.
26144
26145 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26146 * include/grub/emu/misc.h: ... here.
26147
26148 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26149 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26150
26151 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26152 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26153 (grub_get_libzfs_handle): Move to ...
26154 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26155 (grub_get_libzfs_handle): ... here.
26156
26157 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26158
26159 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26160 as command name case.
26161
26162 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26163
26164 * disk/raid.c (insert_array): Select unique numbers for named arrays
26165 as well, for use as keys in the disk cache.
26166
26167 2010-08-01 Robert Millan <rmh@gnu.org>
26168
26169 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26170 kFreeBSD device name, except on ZFS where the filesystem label is
26171 used.
26172 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26173 `/boot/zfs/zpool.cache'.
26174 Set mountfrom kernel variable using ${kfreebsd_device}.
26175
26176 2010-08-01 Robert Millan <rmh@gnu.org>
26177
26178 Make it even harder to use uninitialized `libzfs_handle' (and
26179 make the interface a bit simpler).
26180
26181 * include/grub/util/misc.h (grub_util_init_libzfs)
26182 (libzfs_handle): Remove.
26183 (grub_get_libzfs_handle): New prototype.
26184
26185 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26186 attribute.
26187 (grub_util_init_libzfs): Remove.
26188 (grub_get_libzfs_handle): New function.
26189
26190 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26191 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26192 accessing `libzfs_handle' directly.
26193
26194 2010-08-01 Robert Millan <rmh@gnu.org>
26195
26196 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26197 (grub_find_zpool_from_mount_point): New function prototypes.
26198
26199 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26200 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26201
26202 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26203 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26204 `static' attribute.
26205
26206 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26207 finding zpool from mount point into ...
26208 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26209
26210 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26211 requested path is part of a ZFS pool, use
26212 grub_find_zpool_from_mount_point() to detect its filesystem name,
26213 and generate a path with `/fsname@path' syntax.
26214
26215 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26216
26217 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26218 (void) rather than () so that this is a proper prototype.
26219
26220 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26221
26222 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26223
26224 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26225
26226 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26227 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26228
26229 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26230
26231 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26232
26233 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26234
26235 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26236
26237 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26238
26239 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26240 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26241 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26242 disable gfxpayload.
26243 (Shell-like scripting): Add real content.
26244 (Serial terminal): Suggest `terminal_input serial; terminal_output
26245 serial' rather than putting the two commands on separate lines,
26246 since console input will be inoperative after the first command.
26247 (menuentry): Document --class, --users, and --hotkey options.
26248 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26249 Vladimir Serbinenko).
26250
26251 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26252 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26253
26254 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26255
26256 2010-08-01 Robert Millan <rmh@gnu.org>
26257
26258 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26259 (grub_find_zpool_from_mount_point): New function prototypes.
26260
26261 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26262 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26263
26264 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26265 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26266 `static' attribute.
26267
26268 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26269 finding zpool from mount point into ...
26270 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26271
26272 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26273 requested path is part of a ZFS pool, use
26274 grub_find_zpool_from_mount_point() to detect its filesystem name,
26275 and generate a path with `/fsname@path' syntax.
26276
26277 2010-08-01 Robert Millan <rmh@gnu.org>
26278
26279 Prevent accidental use of uninitialized libzfs_handle.
26280
26281 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26282 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26283 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26284
26285 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26286
26287 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26288 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26289
26290 2010-08-01 Robert Millan <rmh@gnu.org>
26291
26292 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26293
26294 2010-07-31 Robert Millan <rmh@gnu.org>
26295
26296 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26297
26298 2010-07-31 Robert Millan <rmh@gnu.org>
26299
26300 * kern/emu/misc.c: Add missing license header.
26301
26302 2010-07-31 Robert Millan <rmh@gnu.org>
26303
26304 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26305
26306 * include/grub/util/libnvpair.h: Include `<config.h>'.
26307 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26308 declaring libnvpair prototypes ourselves.
26309 * include/grub/util/libzfs.h: Include `<config.h>'.
26310 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26311 declaring libzfs prototypes ourselves.
26312
26313 (libzfs_handle): Moved to ...
26314 * include/grub/util/misc.h (libzfs_handle): ... here.
26315 Include `<grub/util/libzfs.h>'.
26316
26317 2010-07-30 Robert Millan <rmh@gnu.org>
26318
26319 * include/grub/emu/misc.h: Add missing license header.
26320
26321 2010-07-30 Robert Millan <rmh@gnu.org>
26322
26323 Enable `grub-probe -t device' resolution on ZFS.
26324
26325 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26326 * include/grub/util/libnvpair.h: New file.
26327 * include/grub/util/libzfs.h: New file.
26328
26329 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26330 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26331 `<grub/util/libnvpair.h>'.
26332 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26333
26334 (find_mount_point_from_dir): New static function.
26335 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26336 function.
26337 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26338 find_root_device_from_libzfs() before ressorting to find_root_device().
26339
26340 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26341 prototype.
26342 * util/misc.c: Include `<grub/util/libzfs.h>'.
26343 (grub_util_init_libzfs): New function.
26344 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26345 [HAVE_LIBZFS] (fini_libzfs): New static function.
26346 (grub_util_init_libzfs): New function.
26347 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26348
26349 2010-07-30 Robert Millan <rmh@gnu.org>
26350
26351 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26352 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26353 `warn_unused_result' attribute.
26354 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26355 (grub_xasprintf, grub_xvasprintf): Likewise.
26356 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26357
26358 2010-07-29 Robert Millan <rmh@gnu.org>
26359
26360 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26361 (probe): Handle `PRINT_FS_LABEL'.
26362 (main): Handle `-t fs_label'.
26363
26364 2010-07-29 Robert Millan <rmh@gnu.org>
26365
26366 * configure.ac: Remove grub-mkisofs checks.
26367
26368 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26369
26370 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26371 Reported by: Lennart Sorensen.
26372
26373 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26374
26375 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26376 prior to terminal_input/terminal_output separation. It's been over 1.5
26377 years and those versions weren't widely deployed.
26378
26379 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26380
26381 * disk/raid.c (insert_array): Don't count named arrays when looking
26382 for unused array numbers.
26383 Reported and tested by: Michael Guntsche.
26384
26385 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26386
26387 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26388 implementation of this so that grub-emu links again, with a note
26389 that this should support hotplugging in the future.
26390
26391 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26392
26393 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26394
26395 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26396
26397 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26398 handle on failure.
26399 (grub_loopback_close): Remove empty function.
26400 (grub_loopback_dev): Remove close method.
26401
26402 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26403
26404 Disable EFI cursor when the EFI console becomes inactive.
26405
26406 * term/efi/console.c (grub_efi_console_init): New function.
26407 (grub_efi_console_fini): New function.
26408 (grub_console_term_output): Register init and fini methods.
26409
26410 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26411
26412 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26413 sh script.
26414
26415 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26416
26417 * disk/loopback.c (grub_loopback): Replace filename with file.
26418 (delete_loopback): Handle new semantics.
26419 (grub_cmd_loopback): Likewise.
26420 (grub_loopback_iterate): Likewise.
26421 (grub_loopback_close): Likewise.
26422
26423 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26424
26425 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26426 with -p "".
26427 Reported by: Tito Keitel.
26428
26429 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26430
26431 * docs/grub.texi (Naming convention): Document new naming convention.
26432
26433 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26434 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26435
26436 Generate device.map in something closer to the old ordering.
26437
26438 * util/deviceiter.c (struct device): New declaration.
26439 (compare_file_names): Rename to ...
26440 (compare_devices): ... this. Sort by kernel name in preference to
26441 the stable by-id name, but keep the latter as a fallback comparison.
26442 Update header comment.
26443 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26444 of `struct device' rather than of plain file names.
26445
26446 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26447
26448 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26449 on i386.
26450
26451 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26452
26453 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26454 hardcoding size.
26455 (setv1table): Likewise.
26456
26457 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26458
26459 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26460 removing the homehost if present.
26461 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26462 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26463 removing the homehost if present.
26464 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26465 if possible.
26466 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26467
26468 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26469 parameter. Set its pointer target to 0.
26470 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26471 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26472 `data_offset' value from the superblock for 1.x metadata.
26473 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26474 data on the device.
26475 (insert_array): Record the start sector of data on the device.
26476 (grub_raid_register): Pass start_sector parameters to
26477 grub_raid_list->detect and insert_array.
26478 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26479 member.
26480 (struct grub_raid): Add start_sector parameter to `detect'.
26481
26482 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26483 __attribute__ ((packed)), leaving a comment.
26484 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26485 (grub_mdraid_detect_09): ... here and ...
26486 (grub_mdraid_detect_1x): ... here.
26487
26488 2010-07-20 Peter Henn <peter.henn@web.de>
26489
26490 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26491 chunk size and disk size, which are already given as sector counts
26492 as distinct from the 0.90 units. Fetch the correct device number
26493 from the role table instead of using the table index.
26494
26495 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26496
26497 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26498 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26499 (WriteMostly1): New macro.
26500 Set array->name to NULL for metadata format 0.90. Add support for
26501 metadata 1.x. Fix some comments.
26502 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26503 few comments.
26504 * util/getroot.c (grub_util_get_grub_dev): Add support for
26505 /dev/md/name style devices.
26506
26507 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26508
26509 * .bzrignore: Ignore 20_linux_xen.
26510
26511 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26512
26513 * util/import_unicode.py: Remove unnecessary imports.
26514
26515 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26516
26517 Hotplugging and USB hub support.
26518
26519 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26520 (grub_ohci): Likewise.
26521 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26522 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26523 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26524 (GRUB_OHCI_CTRL_EDS): Likewise.
26525 (GRUB_OHCI_BULK_EDS): Likewise.
26526 (GRUB_OHCI_TDS): Likewise.
26527 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26528 (grub_ohci_ed_phys2virt): New function.
26529 (grub_ohci_virt_to_phys): Likewise.
26530 (grub_ohci_td_phys2virt): Likewise.
26531 (grub_ohci_td_virt2phys): Likewise.
26532 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26533 attachment.
26534 (grub_ohci_find_ed): New function.
26535 (grub_ohci_alloc_td): Likewise.
26536 (grub_ohci_free_td): Likewise.
26537 (grub_ohci_free_tds): Likewise.
26538 (grub_ohci_transfer): Use previously allocated memory.
26539 (grub_ohci_portstatus): Reset status changed bit.
26540 (grub_ohci_detect_dev): Supply status changed.
26541 (grub_ohci_fini_hw): Free memory.
26542 (grub_ohci_restore_hw): Reallocate memory.
26543 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26544 Reset status change.
26545 (grub_uhci_detect_dev): Supply status_change.
26546 * bus/usb/usb.c (attach_hooks): New var.
26547 (grub_usb_device_attach): New function.
26548 (grub_usb_register_attach_hook_class): Likewise.
26549 (grub_usb_unregister_attach_hook_class): Likewise.
26550 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26551 (grub_usb_add_hub): Reset connection changed bit.
26552 (attach_root_port): New function.
26553 (grub_usb_root_hub): Likewise.
26554 (poll_nonroot_hub): Likewise.
26555 (grub_usb_poll_devices): Likewise.
26556 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26557 * disk/usbms.c (grub_usbms_open): Use device hooks.
26558 (grub_usbms_iterate) :Poll devices.
26559 (grub_usbms_finddevs): Split into ...
26560 (grub_usbms_attach): ... this ...
26561 (grub_usbms_attach): ... and this.
26562 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26563 in detect_dev.
26564 (grub_usb_interface): New fields attached and detach_hook.
26565 (grub_usb_attach_hook_class): New type.
26566 (grub_usb_attach_desc): New struct.
26567 (grub_usb_register_attach_hook_class): New function.
26568 (grub_usb_unregister_attach_hook_class): Likewise.
26569 (grub_usb_poll_devices): Likewise.
26570 (grub_usb_device_attach): Likewise.
26571 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26572 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26573
26574 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26575
26576 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26577 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26578 delta determination style. Works with most NetBSD partitions too.
26579
26580 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26581
26582 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26583 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26584
26585 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26586
26587 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26588
26589 2010-07-14 Anton Blanchard <anton@samba.org>
26590
26591 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26592 ET_DYN files.
26593
26594 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26595
26596 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26597
26598 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26599
26600 * kern/partition.c (grub_partition_check_containment): New function to
26601 check that a partition is physically contained in a parent. Since
26602 offsets are relative (and non-negative), this reduces to checking that
26603 the partition ends before its parent.
26604 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26605 (grub_partition_iterate): Likewise.
26606 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26607 comments.
26608 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26609 partitions that start before their parent, and add debug printfs.
26610
26611 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26612
26613 * Makefile.in (.SUFFIX): Spell correctly, as ...
26614 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26615 bare module name without `.mod', e.g. `test') tried to invoke a
26616 Modula-2 compiler.
26617
26618 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26619
26620 * README: Point to the Info manual.
26621
26622 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26623
26624 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26625 2nd superblock position from partition size.
26626
26627 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26628
26629 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26630 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26631 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26632 outputs.
26633
26634 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26635
26636 Restructure SCSI .id handling.
26637 Reported and tested by: Aleš Nesrsta.
26638
26639 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26640 (grub_atapi_dev): Changed .name to "ata". New field .id.
26641 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26642 (grub_usbms_dev): New field .id.
26643 * disk/scsi.c (grub_scsi_iterate): Generate name.
26644 (grub_scsi_open): Parse name.
26645 * include/grub/scsi.h (grub_make_scsi_id): New function.
26646 (grub_scsi_dev): Change iterate and open to number instead of naming
26647 busses. All users updated.
26648 (grub_scsi): Remove name. Add .bus.
26649
26650 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26651
26652 * commands/help.c (grub_cmd_help): Fix a typo.
26653
26654 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26655
26656 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26657 Reported and tested by: Colin Watson.
26658
26659 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26660
26661 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26662 in this context.
26663
26664 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26665
26666 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26667
26668 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26669
26670 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26671 indentation.
26672
26673 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26674
26675 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26676 and disk/raid6_recover.c.
26677 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26678 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26679
26680 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26681
26682 * term/gfxterm.c (repaint_schedulded): Rename to ...
26683 (repaint_scheduled): ... this. Update all callers.
26684 (repaint_was_schedulded): Rename to ...
26685 (repaint_was_scheduled): ... this. Update all callers.
26686
26687 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26688
26689 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26690 which we expect to be handled by upper layers.
26691
26692 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26693
26694 * bus/usb/usbhub.c: #include time.h header.
26695
26696 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26697
26698 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26699 entry_name also for entries without stat blocks (e.g. ".."); fixes
26700 corruption of the first entry in a directory.
26701
26702 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26703
26704 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26705 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26706 doesn't work otherwise.
26707
26708 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26709
26710 * docs/grub.texi (Features): Update list of supported file systems.
26711 (GNU/Linux): Update for GRUB 2.
26712 (Serial terminal): Remove mention of --disable-serial, which was a
26713 GRUB Legacy configure option. Update instructions to use
26714 `terminal_input' and `terminal_output' rather than `terminal'.
26715 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26716 configuration' and `Installing GRUB using grub-install'.
26717 (Menu entry editor): Update for GRUB 2.
26718 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26719 Document new -a, -u, and -v options.
26720 (initrd): New section.
26721 (initrd16): New section.
26722 (linux): New section.
26723 (linux16): New section.
26724 (search): The `var' argument to `--set' is optional.
26725 (GRUB only offers a rescue shell): Go into a little more detail on
26726 drive ordering.
26727
26728 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26729
26730 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26731
26732 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26733
26734 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26735 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26736
26737 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26738
26739 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26740 install_prefix, in line with install_dos_part and install_bsd_part.
26741 Add new prefix variable, which is copied to install_prefix after
26742 comparing core.img in memory with the one read from disk in the
26743 no-embedding case, and use that rather than overwriting
26744 install_prefix immediately when installing to a partition.
26745 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26746 Bicakci.
26747
26748 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26749
26750 * configure.ac: Avoid == in test command, it's not portable.
26751 * util/grub.d/30_os-prober.in: Likewise.
26752
26753 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26754
26755 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26756
26757 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26758
26759 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26760 multiple (top-level) partmaps.
26761
26762 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26763
26764 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26765 Reported by: Tino Keitel.
26766
26767 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26768
26769 Bidi and diacritics support.
26770
26771 * Makefile.in (widthspec.bin): New target.
26772 (widthspec.h): Likewise.
26773 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26774 * autogen.sh: Generate unidata.c.
26775 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26776 * commands/ls.c (grub_ls_list_devices): Likewise.
26777 (grub_ls_list_files): Likewise.
26778 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26779 (grub_mini_cmd_lsmod): Likewise.
26780 * commands/read.c: Likewise.
26781 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26782 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26783 * lib/arg.c (grub_arg_show_help): Likewise.
26784 * lib/crypto.c (grub_password_get): Likewise.
26785 * normal/auth.c (grub_username_get): Likewise.
26786 * normal/misc.c (grub_normal_print_device_info): Likewise.
26787 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26788 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26789 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26790 (normal/charset.c_DEPENDENCIES): New variable.
26791 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26792 (pkglib_MODULES): Remove charset.mod.
26793 (charset_mod_SOURCES): Removed.
26794 (charset_mod_CFLAGS): Likewise.
26795 (charset_mod_LDFLAGS): Likewise.
26796 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26797 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26798 and term/tparm.c.
26799 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26800 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26801 (kernel_img_HEADERS): Add terminfo.h.
26802 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26803 Fill ->font. Reverse ascii bitmaps.
26804 (grub_font_get_xheight): New function.
26805 * font/font.c (grub_font_get_string_width): Moved from here ...
26806 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26807 * font/font.c (grub_font_draw_string): Moved from here ...
26808 * gfxmenu/font.c (grub_font_draw_string): ... here.
26809 * font/font.c (grub_font_dup_glyph): New function.
26810 (grub_font_blit_glyph): Likewise.
26811 (grub_font_blit_glyph_mirror): Likewise.
26812 (blit_comb): Likewise.
26813 (grub_font_construct_dry_run): Likewise.
26814 (grub_font_get_constructed_device_width): Likewise.
26815 (grub_font_construct_glyph): Likewise.
26816 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26817 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26818 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26819 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26820 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26821 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26822 (grub_font_get_xheight): New proto.
26823 (grub_font_get_constructed_device_width): Likewise.
26824 (grub_font_construct_glyph): Likewise.
26825 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26826 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26827 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26828 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26829 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26830 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26831 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26832 (grub_console_getcharwidth): Likewise.
26833 * include/grub/misc.h (grub_xputs): New proto.
26834 (grub_puts): Inlined.
26835 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26836 (grub_normal_get_line_counter): Removed.
26837 (grub_install_newline_hook): Likewise.
26838 (grub_normal_get_char_counter): New proto.
26839 (grub_normal_reset_more): Likewise.
26840 (grub_xputs_normal): Likewise.
26841 * include/grub/powerpc/ieee1275/console.h: Removed.
26842 * include/grub/sparc64/ieee1275/console.h: Likewise.
26843 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26844 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26845 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26846 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26847 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26848 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26849 (grub_term_input): Pass reference to self. All users updated.
26850 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26851 Pass reference to self. New fields normal_color, highlight_color and
26852 data. All users updated.
26853 (grub_putchar): Removed.
26854 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26855 (grub_unicode_estimate_width): New function.
26856 (grub_term_getcharwidth): Add defaults.
26857 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26858 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26859 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26860 (grub_cls): Remove EXPORT_FUNC.
26861 (grub_setcolorstate): Inline.
26862 (grub_newline_hook): Removed.
26863 * include/grub/terminfo.h: Rewritten. All users updated.
26864 * include/grub/unicode.h: New file.
26865 * include/grub/video.h (grub_video_signed_rect): New type.
26866 * kern/emu/console.c (grub_console_highlight_color): Removed.
26867 (grub_console_normal_color): Likewise.
26868 (grub_console_standard_color): Made static.
26869 (grub_ncurses_putchar): Remove mapping.
26870 (grub_ncurses_getcharwidth): Removed.
26871 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26872 (grub_ncurses_setcolor): Removed.
26873 (grub_ncurses_getcolor): Likewise.
26874 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26875 (grub_console_putchar): ... this.
26876 (grub_console_putchar): Handle argument difference.
26877 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26878 console_init_early and console_init_lately.
26879 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26880 * kern/misc.c (grub_puts): Removed.
26881 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26882 (grub_vsnprintf_real): Remove str = NULL support.
26883 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26884 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26885 * kern/term.c (grub_putcode): Renamed to ...
26886 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26887 (grub_putchar): Removed.
26888 (grub_xputs_dumb): New function.
26889 (grub_xputs): New variable.
26890 * lib/charset.c: Move from here ...
26891 * normal/charset.c: ... to here.
26892 (grub_ucs4_to_utf8): New function.
26893 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26894 (join_types): New variable.
26895 (unpack_join): New function.
26896 (bidi_types): New variable.
26897 (unpack_bidi): New function.
26898 (get_bidi_type): Likewise.
26899 (get_join_type): Likewise.
26900 (is_mirrored): Likewise.
26901 (grub_unicode_get_comb_type): Likewise.
26902 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26903 (is_type_after): Likewise.
26904 (grub_unicode_aglomerate_comb): Likewise.
26905 (bidi_line_wrap): Likewise.
26906 (grub_bidi_line_logical_to_visual): Likewise.
26907 (grub_bidi_logical_to_visual): Likewise.
26908 (grub_unicode_mirror_code): Likewise.
26909 (grub_unicode_shape_code): Likewise.
26910 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26911 Don't use grub_putchar.
26912 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26913 (grub_normal_reader_init): Likewise.
26914 (grub_xputs_saved): New variable.
26915 (GRUB_MOD_INIT): Set grub_xputs.
26916 (GRUB_MOD_FINI): Restore grub_xputs.
26917 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26918 (menu_init): Avoid printing gfxmenu error.
26919 (show_menu): Use grub_normal_get_char_counter.
26920 * normal/menu_entry.c (update_screen): Fix out-of-array.
26921 (complete): Avoid NULL dereferencing.
26922 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26923 * normal/menu_text.c (print_spaces): Removed.
26924 (grub_print_ucs4): Likewise.
26925 (grub_print_message_indented): Use grub_print_ucs4.
26926 (print_message): Use grub_putcode.
26927 (print_entry): Hanlde diacritics.
26928 * normal/term.c (term_state): New type.
26929 (grub_more_lines): Removed.
26930 (term_states): New variable.
26931 (grub_normal_line_counter): Renamed to ..
26932 (grub_normal_char_counter): ...this. All users updated.
26933 (grub_normal_get_line_counter): Renamed to ...
26934 (grub_normal_get_char_counter): ... this.
26935 (grub_normal_reset_more): New function.
26936 (process_newline): Removed.
26937 (print_more): New function.
26938 (grub_install_newline_hook): Removed.
26939 (map_code): New function.
26940 (grub_puts_terminal): Use grub_print_ucs4.
26941 (putglyph): New function.
26942 (putcode_real): Likewise.
26943 (grub_putcode): Use putcode_real.
26944 (get_maxwidth): New function.
26945 (get_startwidth): Likewise.
26946 (print_ucs4_terminal): Likewise.
26947 (find_term_state): Likewise.
26948 (put_glyphs_terminal): Likewise.
26949 (print_backlog): Likewise.
26950 (print_ucs4_real): Likewise.
26951 (grub_print_ucs4): Likewise.
26952 (grub_xputs_normal): Likewise.
26953 * term/efi/console.c (grub_console_putchar): Output diacritics.
26954 (grub_console_getcharwidth): Removed.
26955 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26956 * term/gfxterm.c (clear_char): Free chars.
26957 (scroll_up): Avoid leaking memory.
26958 (grub_gfxterm_putchar): Support diacritics.
26959 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26960 * term/i386/pc/console.c (grub_console_term_output): Declare as
26961 GRUB_TERM_CODE_TYPE_VGA.
26962 * term/i386/pc/vga.c (grub_vga_term): Declare as
26963 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26964 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26965 GRUB_TERM_CODE_TYPE_VGA.
26966 * term/i386/vga_common.c (map_char): Removed.
26967 (grub_console_putchar): Likewise.
26968 (grub_console_getcharwidth): Likewise.
26969 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26970 (colors): Reordered to match terminfo.
26971 (grub_ofconsole_normal_color): Removed.
26972 (grub_ofconsole_writeesc): Likewise.
26973 (grub_ofconsole_highlight_color): Likewise.
26974 (grub_ofconsole_getcharwidth): Likewise.
26975 (grub_ofconsole_setcolorstate): Likewise.
26976 (grub_ofconsole_setcolor): Likewise.
26977 (grub_ofconsole_getcolor): Likewise.
26978 (grub_ofconsole_readkey): Renamed to ...
26979 (readkey): ... this. Remove escape sequence handling. Return -1 on no
26980 key.
26981 (grub_ofconsole_checkkey): Removed.
26982 (grub_ofconsole_getkey): Likewise.
26983 (grub_ofconsole_getxy): Likewise.
26984 (grub_ofconsole_gotoxy): Likewise.
26985 (grub_ofconsole_cls): Likewise.
26986 (grub_ofconsole_refresh): Likewise.
26987 (grub_ofconsole_terminfo_input): New struct.
26988 (grub_ofconsole_terminfo_output): Likewise.
26989 (grub_ofconsole_term_input): Use terminfo.
26990 (grub_ofconsole_term_output): Likewise.
26991 (grub_console_init): Split into ...
26992 (grub_console_init_early): ...this and ...
26993 (grub_console_init_lately): ...this. Use terminfo.
26994 (grub_ofconsole_putchar): Renamed to ...
26995 (put): ... this. Remove mapping.
26996 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26997 * term/serial.c: Simplify using terminfo.
26998 (xpos): Removed.
26999 (ypos): Likewise.
27000 (keep_track): Likewise.
27001 (registered): Likewise.
27002 (input_buf): Likewise.
27003 (npending): Likewise.
27004 (serial_translate_key_sequence): Likewise.
27005 (fill_input_buf): Likewise.
27006 (grub_serial_checkkey): Likewise.
27007 (grub_serial_getkey): Likewise.
27008 (grub_serial_getxy): Likewise.
27009 (grub_serial_gotoxy): Likewise.
27010 (grub_serial_putchar): Likewise.
27011 (grub_serial_cls): Likewise.
27012 (grub_serial_setcolorstate): Likewise.
27013 (grub_serial_setcursor): Likewise.
27014 (serial_hw_init): Use serial_hw_fetch.
27015 (grub_serial_terminfo_input): New variable.
27016 (grub_serial_terminfo_output): Likewise.
27017 (grub_serial_term_input): Use terminfo.
27018 (grub_serial_term_output): Likewise.
27019 * term/terminfo.c (putstr): Use put.
27020 (grub_terminfo_all_free): New function
27021 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27022 (grub_terminfo_output_register): New function.
27023 (grub_terminfo_output_unregister): Likewise.
27024 (grub_terminfo_getxy): Likewise.
27025 (grub_terminfo_readkey): Likewise.
27026 (grub_terminfo_checkkey): Likewise.
27027 (grub_terminfo_getkey): Likewise.
27028 (grub_terminfo_input_init): Likewise.
27029 (print_terminfo): Likewise.
27030 (grub_cmd_terminfo): Handle encoding.
27031 (grub_terminfo_gotoxy): Track position.
27032 (grub_terminfo_cls): Likewise.
27033 (grub_terminfo_putchar): Likewise.
27034 (grub_terminfo_setcolorstate): Handle colors
27035 (grub_terminfo_cursor_on): This ...
27036 (grub_terminfo_cursor_off): ... and this merged into ...
27037 (grub_terminfo_setcursor): ... this.
27038 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27039 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27040 * unicode/BidiMirroring.txt: Likewise.
27041 * unicode/UnicodeData.txt: Likewise.
27042 * unicode/COPYING: Likewise.
27043 * util/grub-editenv.c (grub_putchar): Removed.
27044 (grub_xputs_real): New function.
27045 (grub_xputs): New variable.
27046 * util/grub-fstest.c (grub_putchar): Removed.
27047 (grub_xputs_real): New function.
27048 (grub_xputs): New variable.
27049 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27050 (grub_xputs_real): New function.
27051 (grub_xputs): New variable.
27052 * util/grub-probe.c (grub_putchar): Removed.
27053 (grub_xputs_real): New function.
27054 (grub_xputs): New variable.
27055 * util/grub-script-check.c (grub_putchar): Removed.
27056 (grub_xputs_real): New function.
27057 (grub_xputs): New variable.
27058 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27059 (grub_xputs_real): New function.
27060 (grub_xputs): New variable.
27061 * util/import_unicode.py: New file.
27062 * util/grub-mkfont.c (ft_errmsgs): New array.
27063 (grub_glyph_info): Make bitmap a pointer.
27064 (file_formats): New type WIDTH_SPEC.
27065 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27066 (options): Add width-spec.
27067 (help): Likewise.
27068 (add_char): Renamed to ...
27069 (add_glyph): ... this.
27070 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27071 (glyph_replace): New type.
27072 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27073 (add_char): New function.
27074 (add_subst): Likewise.
27075 (process_cursive): Likewise.
27076 (add_font): Handle GSUB.
27077 (write_font_width_spec): New function.
27078 (main): Sort glyphs.
27079 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27080 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27081 * kern/term.c (grub_cls): Moved from here...
27082 * normal/term.c (grub_cls): ... here.
27083
27084 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27085
27086 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27087 suitable for using within the format argument of printf when
27088 converting grub_size_t.
27089 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27090 "x" to convert grub_size_t arguments.
27091
27092 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27093
27094 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27095 too long captions.
27096 (list_get_minimal_size): Take selection box into account.
27097
27098 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27099
27100 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27101 NULL font.
27102
27103 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27104
27105 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27106 devices when iterating over /dev/disk/by-id; they will be handled
27107 later if appropriate, which they aren't always (e.g. LVM).
27108
27109 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27110
27111 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27112 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27113 fails.
27114 (grub_halt): Likewise.
27115 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27116 reset-all fails.
27117 (grub_halt): Don't return, even if all of shut-down, power-off, and
27118 poweroff fail.
27119
27120 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27121
27122 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27123 arguments, not three.
27124
27125 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27126
27127 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27128 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27129 LVM-on-RAID is handled correctly.
27130
27131 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27132
27133 * docs/grub.texi (Changes from GRUB Legacy): New section.
27134 (Future): Fix typo.
27135
27136 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27137
27138 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27139 grub.d/README accidentally ends up executable for one reason or
27140 another. Ignore it.
27141
27142 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27143
27144 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27145 (gpt_partition_map_iterate): Support non-512B sectors.
27146
27147 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27148
27149 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27150 Tested by: Seth Goldberg.
27151
27152 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27153
27154 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27155 Properly align mbi.
27156 Reported by: Seth Goldberg.
27157
27158 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27159
27160 * util/grub-mkrescue.in: Avoid module duplication.
27161
27162 2010-07-01 Sean Finney <seanius@seanius.net>
27163
27164 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27165
27166 2010-07-01 Sean Finney <seanius@seanius.net>
27167
27168 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27169
27170 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27171
27172 * disk/lvm.c (grub_lvm_checkvalue): New function.
27173 (grub_lvm_check_flag): Likewise.
27174
27175 2010-07-01 Robert Millan <rmh@gnu.org>
27176
27177 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27178 Support 'p' as partition separator on kernel of FreeBSD (used
27179 with GPT labels).
27180 (grub_util_biosdisk_get_grub_dev): Likewise.
27181
27182 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27183
27184 Yeeloong firmware port.
27185
27186 * boot/mips/yeeloong/fwstart.S: New file.
27187 * bus/cs5536.c (gpiodump): New const.
27188 (set_io_space): New function.
27189 (set_iod): Likewise.
27190 (set_p2d): Likewise.
27191 (grub_cs5536_init_geode): Likewise.
27192 * commands/mips/yeeloong/lsspd.c: New file.
27193 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27194 (serial_mod_SOURCES): New variable.
27195 (serial_mod_CFLAGS): Likewise.
27196 (serial_mod_LDFLAGS): Likewise.
27197 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27198 term/terminfo.c and term/tparm.c.
27199 (pkglib_IMAGES): Add fwstart.img.
27200 (fwstart_img_SOURCES): New variable.
27201 (fwstart_img_CFLAGS): Likewise.
27202 (fwstart_img_ASFLAGS): Likewise.
27203 (fwstart_img_LDFLAGS): Likewise.
27204 (fwstart_img_FORMAT): Likewise.
27205 (pkglib_MODULES): Add lsspd.mod.
27206 (lsspd_mod_SOURCES): New variable.
27207 (lsspd_mod_CFLAGS): Likewise.
27208 (lsspd_mod_LDFLAGS): Likewise.
27209 (pkglib_MODULES): Add halt.mod.
27210 (halt_mod_SOURCES): New variable.
27211 (halt_mod_CFLAGS): Likewise.
27212 (halt_mod_LDFLAGS): Likewise.
27213 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27214 (serial_mod_SOURCES): Removed.
27215 (serial_mod_CFLAGS): Likewise.
27216 (serial_mod_LDFLAGS): Likewise.
27217 * disk/ata.c (check_device): New function.
27218 (grub_ata_device_initialize): Use check_device.
27219 (grub_ata_iterate): Recheck devices.
27220 (grub_ata_open): Likewise.
27221 (grub_atapi_iterate): Likewise.
27222 (grub_atapi_open): Likewise.
27223 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27224 (GRUB_ATA_CH1_PORT1): Likewise.
27225 (GRUB_ATA_CH0_PORT2): Likewise.
27226 (GRUB_ATA_CH1_PORT2): Likewise.
27227 * include/grub/mips/loongson.h: New file.
27228 * include/grub/mips/yeeloong/ec.h: Likewise.
27229 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27230 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27231 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27232 * include/grub/misc.h (grub_halt): Declare as noreturn.
27233 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27234 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27235 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27236 (UART_ENABLE_DTRRTS): Likewise.
27237 (UART_ENABLE_MODEM): Removed.
27238 (UART_ENABLE_OUT2): New const.
27239 * include/grub/term.h (grub_term_register_input_active): New function.
27240 (grub_term_register_output_active): Likewise.
27241 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27242 argument.
27243 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27244 (init_pci): New function.
27245 (grub_machine_init): Execute platform init when firmware. Init serial.
27246 (grub_halt): Implement.
27247 (grub_exit): Likewise.
27248 (grub_reboot): Likewise.
27249 * term/serial.c (serial_hw_init): Update macros.
27250 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27251 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27252 (image_targets): New target mipsel-yeeloong-flash.
27253 (generate_image): Support IMAGE_YEELOONG_FLASH.
27254 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27255 (grub_video_sm712_setup): Init card.
27256 (grub_video_sm712_set_palette): Removed.
27257 * video/sm712_init.c: New file.
27258
27259 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27260
27261 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27262 PATH when running help2man and then run it on the unadorned
27263 executable names, rather than passing $(builddir)/* paths to
27264 help2man. This avoids the build directory ending up in generated
27265 manual pages.
27266
27267 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27268
27269 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27270 to avoid accidents when debugging with 'sh -x'.
27271 * util/grub-mkrescue.in: Likewise.
27272 * util/grub.d/00_header.in: Likewise.
27273 * util/grub.d/10_hurd.in: Likewise.
27274 * util/grub.d/10_kfreebsd.in: Likewise.
27275 * util/grub.d/10_linux.in: Likewise.
27276 * util/grub.d/10_netbsd.in: Likewise.
27277 * util/grub.d/10_windows.in: Likewise.
27278 * util/grub.d/20_linux_xen.in: Likewise.
27279 * util/grub.d/30_os-prober.in: Likewise.
27280 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27281
27282 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27283
27284 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27285 last character in the buffer.
27286 Reported by: Vladimir Serbinenko.
27287
27288 2010-06-29 Robert Millan <rmh@gnu.org>
27289
27290 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27291 (Command-line and menu entry commands): Document `badram' command.
27292
27293 2010-06-28 Robert Millan <rmh@gnu.org>
27294
27295 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27296 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27297 command using ${GRUB_BADRAM} as parameter.
27298
27299 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27300
27301 * docs/grub.texi (Device map): New section.
27302 (Themes): New section (stub).
27303 * Makefile.in (docs/grub.info): The info documentation now builds
27304 without errors. Make sure it stays that way.
27305
27306 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27307
27308 Use normal parser for menu entries.
27309 Reported by: Thomas Frauendorfer
27310
27311 * include/grub/parser.h (grub_parser_execute): Don't export.
27312 * normal/menu.c (grub_menu_execute_entry_real): New function.
27313 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27314
27315 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27316
27317 * docs/grub.texi (Embedded configuration): New section (replacing
27318 old "Preset Menu" stub).
27319 (Images): New section.
27320 (configfile): Note that any menu entries defined in `file' are shown
27321 immediately.
27322
27323 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27324
27325 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27326
27327 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27328
27329 * util/grub-install.in: Add --debug-image= option.
27330
27331 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27332
27333 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27334 possible on Linux.
27335
27336 * util/deviceiter.c (check_device): Rename to ...
27337 (check_device_readable_unique): ... this. Update all callers.
27338 Maintain and check a list of which devices (by canonicalized name)
27339 have already been seen.
27340 (clear_seen_devices): New function.
27341 (compare_file_names) [__linux__]: New function.
27342 (grub_util_iterate_devices): Clear the list of seen devices on exit
27343 and (just in case) on entry.
27344 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27345 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27346 seen-devices list, superseded by general code in check_device.
27347
27348 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27349
27350 * commands/cat.c (options): New variable.
27351 (grub_cmd_cat): Parse options. If the --dos option is given, print
27352 DOS-style "\r\n" line endings as simple newlines (Debian bug
27353 #586358).
27354 (GRUB_MOD_INIT): Use extcmd.
27355 (GRUB_MOD_FINI): Likewise.
27356 * docs/grub.texi (cat): Document --dos.
27357
27358 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27359
27360 XEN with Linux grub-mkconfig support.
27361
27362 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27363 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27364 GRUB_CMDLINE_XEN_DEFAULT.
27365 * util/grub.d/20_linux_xen.in: New file.
27366
27367 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27368
27369 Initialise VGA video on qemu ourselves.
27370
27371 * boot/i386/qemu/boot.S: Don't call 0xc000.
27372 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27373 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27374 (kernel_img_HEADERS): Add pci.h.
27375 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27376 * configure.ac: Force unifont on qemu and yeeloong.
27377 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27378 (grub_vga_palette_write): Use correct register.
27379 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27380 Call grub_qemu_init_cirrus.
27381 * kern/i386/qemu/init.c: New file.
27382 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27383
27384 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27385
27386 2010-06-26 Pavel Roskin <proski@gnu.org>
27387
27388 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27389 13.
27390
27391 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27392
27393 * docs/grub.texi (Simple configuration): Explain that
27394 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27395 set to `true' to disable their respective recovery entries, not
27396 merely set.
27397
27398 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27399
27400 Make the `source' command slightly faster.
27401
27402 * normal/main.c (grub_normal_execute): Don't re-read list files when
27403 nested.
27404
27405 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27406
27407 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27408 field position and mask size to red fields from mode_info, not
27409 green.
27410 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27411 Remove redundant tag->common.framebuffer_type assignment.
27412 Reported by: Seth Goldberg.
27413
27414 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27415
27416 Sync up other versions of the Linux loader with Robert Millan's
27417 change of 2010-01-09, "Make loader output a bit more user-friendly".
27418
27419 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27420 grub_dprintf().
27421 (grub_cmd_linux): Likewise.
27422 (grub_cmd_initrd): Likewise.
27423 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27424 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27425
27426 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27427
27428 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27429 larger than MEMORY_MAP_SIZE.
27430
27431 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27432
27433 Fix parallel build.
27434
27435 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27436 dependency.
27437 * script/parser.y: #include grub_script.tab.h header.
27438
27439 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27440
27441 Support >3GiB and <16MiB RAM in i386-qemu.
27442
27443 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27444 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27445 (grub_lower_mem): Removed.
27446 (grub_upper_mem): Likewise.
27447 (mem_size): Made static.
27448 (above_4g): New variable.
27449 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27450 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27451 support.
27452
27453 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27454
27455 Cirrus 5446 and Bochs video cards support.
27456
27457 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27458 video_bochs.mod
27459 (video_cirrus_mod_SOURCES): New variable.
27460 (video_cirrus_mod_CFLAGS): Likewise.
27461 (video_cirrus_mod_LDFLAGS): Likewise.
27462 (video_bochs_mod_SOURCES): Likewise.
27463 (video_bochs_mod_CFLAGS): Likewise.
27464 (video_bochs_mod_LDFLAGS): Likewise.
27465 * include/grub/vga.h: New file.
27466 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27467 (grub_video_fb_set_page_t): New type.
27468 (grub_video_fb_setup): New prototype.
27469 (grub_video_fb_swap_buffers): Likewise.
27470 (grub_video_fb_get_info_and_fini): Likewise.
27471 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27472 (CRTC_DATA_PORT): Likewise.
27473 (CRTC_CURSOR): Likewise.
27474 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27475 (CRTC_CURSOR_ADDR_LOW): Likewise.
27476 (CRTC_CURSOR_DISABLE): Likewise.
27477 (update_cursor): Use grub_vga_cr_write.
27478 (grub_vga_text_setcursor): Likewise.
27479 * video/bochs.c: New file.
27480 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27481 (palette): Likewise.
27482 (palette_size): Likewise.
27483 (framebuffer): New variable.
27484 (grub_video_fb_init): Use 'framebuffer'.
27485 (grub_video_fb_fini): Likewise.
27486 (grub_video_fb_get_info): Likewise.
27487 (grub_video_fb_get_palette): Likewise.
27488 (grub_video_fb_set_palette): Likewise.
27489 (grub_video_fb_set_viewport): Likewise.
27490 (grub_video_fb_get_viewport): Likewise.
27491 (grub_video_fb_map_color): Likewise.
27492 (grub_video_fb_map_rgb): Likewise.
27493 (grub_video_fb_map_rgba): Likewise.
27494 (grub_video_fb_unmap_color): Likewise.
27495 (grub_video_fb_unmap_color_int): Likewise.
27496 (grub_video_fb_fill_rect): Likewise.
27497 (grub_video_fb_blit_bitmap): Likewise.
27498 (grub_video_fb_blit_render_target): Likewise.
27499 (grub_video_fb_scroll): Likewise.
27500 (grub_video_fb_create_render_target): Likewise.
27501 (grub_video_fb_doublebuf_blit_init): Likewise.
27502 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27503 (doublebuf_pageflipping_update_screen): New function.
27504 (doublebuf_pageflipping_init): Likewise.
27505 (grub_video_fb_setup): Likewise.
27506 (grub_video_fb_swap_buffers): Likewise.
27507 (grub_video_fb_get_info_and_fini): Likewise.
27508 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27509 All users updated.
27510 (doublebuf_pageflipping_commit): Restructured into ...
27511 (doublebuf_pageflipping_set_page): ... this.
27512 (doublebuf_pageflipping_update_screen): Removed.
27513 (doublebuf_pageflipping_init): Likewise.
27514 (double_buffering_init): Likewise.
27515 (grub_video_vbe_setup): Use grub_video_fb_setup.
27516 (grub_video_vbe_swap_buffers): Removed.
27517 (grub_video_vbe_set_active_render_target): Likewise.
27518 (grub_video_vbe_get_active_render_target): Likewise.
27519 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27520 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27521 grub_video_fb_set_active_render_target and
27522 grub_video_fb_get_active_render_target.
27523 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27524 (SEQUENCER_DATA_PORT): Likewise.
27525 (MAP_MASK_REGISTER): Likewise.
27526 (CRTC_ADDR_PORT): Likewise.
27527 (CRTC_DATA_PORT): Likewise.
27528 (START_ADDR_HIGH_REGISTER): Likewise.
27529 (START_ADDR_LOW_REGISTER): Likewise.
27530 (GRAPHICS_ADDR_PORT): Likewise.
27531 (GRAPHICS_DATA_PORT): Likewise.
27532 (READ_MAP_REGISTER): Likewise.
27533 (INPUT_STATUS1_REGISTER): Likewise.
27534 (INPUT_STATUS1_VERTR_BIT): Likewise.
27535 (get_map_mask): Use grub_vga_sr_read.
27536 (set_map_mask): Use grub_vga_sr_write.
27537 (set_read_map): Use grub_vga_gr_write.
27538 (set_start_address): Use grub_vga_cr_write.
27539 * video/sm712.c (framebuffer): Remove leftover fields.
27540
27541 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27542
27543 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27544 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27545 instead. Replace the gfxterm backend check with a check that
27546 ${GRUB_PREFIX}/video.lst is non-empty.
27547 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27548 again.
27549 (load_video): New generated function. Call it before loading
27550 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27551 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27552 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27553 * docs/grub.texi (Simple configuration): Document
27554 GRUB_VIDEO_BACKEND.
27555
27556 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27557
27558 Use video functions in linux and xnu loaders.
27559
27560 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27561 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27562 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27563 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27564 loader/i386/pc/linux.c.
27565 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27566 (find_line_len): Removed.
27567 (find_framebuf): Likewise.
27568 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27569 * loader/i386/efi/xnu.c: Removed.
27570 * loader/i386/pc/xnu.c: Moved from here...
27571 * loader/i386/xnu.c: ...here.
27572
27573 Enable priorities in video drivers.
27574
27575 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27576 (grub_video_adapter): New field prio.
27577 (grub_video_register): Respect prio when inserting.
27578 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27579 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27580 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27581 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27582 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27583 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27584 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27585
27586 Fix SDL driver ID.
27587
27588 * include/grub/video.h (grub_video_driver_id_t): New value
27589 GRUB_VIDEO_DRIVER_SDL.
27590 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27591
27592 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27593
27594 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27595 argument to printf.
27596 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27597
27598 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27599
27600 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27601 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27602
27603 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27604
27605 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27606 directly, and recommend grub-install instead.
27607 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27608
27609 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27610
27611 Fix i386-pc prefix handling with nested partitions (Debian bug
27612 #585068). Note that the case where the core image is booted using
27613 multiboot and relocated from its original location still requires
27614 more work.
27615
27616 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27617 with "(,", fill the boot drive in between those two characters, but
27618 expect that a full partition specification including partition map
27619 names will follow.
27620 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27621 specified, write a prefix without the drive name but including a
27622 full partition specification.
27623
27624 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27625
27626 * util/grub-mkconfig.in: Ignore non-option arguments, for
27627 compatibility with older versions (before 2010-06-12) which did the
27628 same. In particular, this makes it easier to ship an update-grub
27629 wrapper which is compatible with that used with GRUB Legacy (Debian
27630 bug #586056).
27631
27632 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27633
27634 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27635 for manual page generation.
27636
27637 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27638
27639 * po/POTFILES: Remove leftover commands/handler.c.
27640
27641 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27642
27643 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27644 left this script non-functional.
27645
27646 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27647
27648 * docs/man/grub-emu.h2m: New file.
27649
27650 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27651
27652 * docs/grub.texi (Commands): Document reduced command set in rescue
27653 mode.
27654 (cpuid): New section.
27655
27656 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27657
27658 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27659 new partition naming style.
27660 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27661
27662 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27663
27664 Add "-o grub.iso" like cmdline options support.
27665
27666 * util/grub-install.in: Improve cmdline option parsing.
27667 * util/grub-mkconfig.in: Likewise.
27668 * util/grub-mkrescue.in: Likewise.
27669 * util/grub-reboot.in: Likewise.
27670 * util/grub-set-default.in: Likewise.
27671 * util/i386/efi/grub-install.in: Likewise.
27672 * util/ieee1275/grub-install.in: Likewise.
27673 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27674
27675 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27676
27677 * .bzrignore: Ignore 41_custom.
27678
27679 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27680
27681 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27682
27683 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27684
27685 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27686 prototype declarations.
27687
27688 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27689 generating fs, partmap, and video lists.
27690 * include/grub/fs.h (grub_fs_register): Omit prototype if
27691 GRUB_LST_GENERATOR is defined.
27692 * include/grub/partition.h (grub_partition_map_register): Likewise.
27693 * include/grub/video.h (grub_video_register): Likewise.
27694
27695 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27696
27697 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27698
27699 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27700
27701 * util/grub-mkrescue.in: Support --xorriso argument.
27702
27703 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27704
27705 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27706 Suggested by: Thomas Schmitt.
27707
27708 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27709
27710 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27711 Suggested by: Thomas Schmitt.
27712
27713 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27714
27715 custom.cfg support.
27716
27717 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27718 * util/grub.d/41_custom.in: New file.
27719
27720 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27721
27722 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27723 been merged back into normal.
27724
27725 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27726
27727 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27728 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27729
27730 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27731
27732 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27733 when generating manual pages.
27734 * docs/man/grub-bin2h.h2m: New file.
27735 * docs/man/grub-editenv.h2m: New file.
27736 * docs/man/grub-fstest.h2m: New file.
27737 * docs/man/grub-install.h2m: New file.
27738 * docs/man/grub-macho2img.h2m: New file.
27739 * docs/man/grub-mkconfig.h2m: New file.
27740 * docs/man/grub-mkdevicemap.h2m: New file.
27741 * docs/man/grub-mkfont.h2m: New file.
27742 * docs/man/grub-mkimage.h2m: New file.
27743 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27744 * docs/man/grub-mkrelpath.h2m: New file.
27745 * docs/man/grub-mkrescue.h2m: New file.
27746 * docs/man/grub-ofpathname.h2m: New file.
27747 * docs/man/grub-pe2elf.h2m: New file.
27748 * docs/man/grub-probe.h2m: New file.
27749 * docs/man/grub-reboot.h2m: New file.
27750 * docs/man/grub-script-check.h2m: New file.
27751 * docs/man/grub-set-default.h2m: New file.
27752 * docs/man/grub-setup.h2m: New file.
27753
27754 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27755
27756 Use FOR_* macros instead of *_iterate whenever possible.
27757
27758 * commands/handler.c: Removed.
27759 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27760 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27761 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27762 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27763 (grub_probe_SOURCES): Remove kern/parser.c.
27764 (util/grub-script-check.c_DEPENDENCIES): Removed.
27765 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27766 and grub_script_check_init.c.
27767 (grub_script_check_init.lst): Removed.
27768 (grub_script_check_init.h): Likewise.
27769 (grub_script_check_init.c): Likewise.
27770 (pkglib_MODULES): Remove handler.mod and sh.mod.
27771 (handler_mod_SOURCES): Removed.
27772 (handler_mod_CFLAGS): Likewise.
27773 (handler_mod_LDFLAGS): Likewise.
27774 (normal_mod_SOURCES): Remove normal/handler.c.
27775 Add script/main.c, script/script.c, script/execute.c,
27776 script/function.c, script/lexer.c, grub_script.tab.c
27777 and grub_script.yy.c.
27778 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27779 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27780 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27781 (grub_setup_SOURCES): Remove kern/parser.c.
27782 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27783 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27784 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27785 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27786 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27787 (grub_setup_SOURCES): Remove kern/parser.c.
27788 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27789 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27790 * include/grub/command.h (grub_command_iterate): Removed.
27791 (FOR_COMMANDS): New macro.
27792 * include/grub/dl.h (grub_dl): New member next.
27793 (grub_dl_iterate): Removed.
27794 (grub_dl_head): New variable declaration.
27795 (FOR_DL_MODULES): New macro.
27796 * include/grub/fs.h: Include list.h.
27797 (grub_fs): Make next first element.
27798 (grub_fs_list): New variable declaration.
27799 (grub_fs_register): Make inline.
27800 (grub_fs_unregister): Likewise.
27801 (grub_fs_iterate): Removed.
27802 (FOR_FILESYSTEMS): New macro.
27803 * include/grub/handler.h: Removed.
27804 * include/grub/list.h (grub_list_hook_t): Removed.
27805 (grub_list_test_t): Likewise.
27806 (grub_list_pop): Likewise.
27807 (grub_list_iterate): Likewise.
27808 (grub_list_insert): Likewise.
27809 (FOR_LIST_ELEMENTS): New macro.
27810 * include/grub/parser.h (grub_parser_class): Removed.
27811 (grub_parser_register): Likewise.
27812 (grub_parser_unregister): Likewise.
27813 (grub_parser_get_current): Likewise.
27814 (grub_parser_set_current): Likewise.
27815 (grub_register_rescue_parser): Likewise.
27816 (grub_rescue_parse_line): New function.
27817 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27818 * include/grub/script_sh.h (grub_script_function_list): New variable
27819 declaration.
27820 (FOR_SCRIPT_FUNCTIONS): New macro.
27821 (grub_script_function_iterate): Removed.
27822 (grub_normal_parse_line): New prototype.
27823 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27824 (FOR_DISABLED_TERM_INPUTS): Likewise.
27825 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27826 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27827 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27828 element.
27829 (grub_video_register): Inline.
27830 (grub_video_unregister): Likewise.
27831 (grub_video_adapter_list): New variable declaration.
27832 (grub_video_iterate): Removed.
27833 (FOR_VIDEO_ADAPTERS): New macro.
27834 * kern/dl.c (grub_dl_list): Removed. All users updated.
27835 (grub_dl_iterate): Removed.
27836 * kern/fs.c (grub_fs_list): Make global.
27837 (grub_fs_register): Removed.
27838 (grub_fs_unregister): Likewise.
27839 (grub_fs_iterate): Likewise.
27840 * kern/handler.c: Removed.
27841 * kern/list.c (grub_list_pop): Removed.
27842 (grub_list_iterate): Likewise.
27843 (grub_list_insert): Likewise.
27844 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27845 (grub_prio_list_insert): Don't use grub_list_insert.
27846 * kern/main.c (grub_register_rescue_parser): Don't call
27847 grub_register_rescue_parser.
27848 * kern/parser.c (grub_parser_class): Removed.
27849 (grub_parser_execute): Use grub_rescue_parse_line.
27850 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27851 (grub_rescue_parser): Removed.
27852 (grub_register_rescue_parser): Likewise.
27853 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27854 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27855 (grub_auth_check_authentication): Likewise.
27856 * normal/completion.c (iterate_command): Removed.
27857 (grub_normal_do_completion): Use FOR_COMMANDS.
27858 * normal/handler.c: Removed.
27859 * normal/main.c (read_config_file): Remove parser changing.
27860 (grub_normal_execute): Don't call read_handler_list.
27861 (grub_normal_read_line_real): Statically allocate prompt.
27862 (grub_cmdline_run): Use grub_normal_parse_line.
27863 (GRUB_MOD_FINI): Don't call free_handler_list.
27864 * normal/menu_entry.c (run): Likewise.
27865 * script/function.c (grub_script_function_list): Make global.
27866 (grub_script_function_iterate): Removed.
27867 * script/main.c (grub_normal_parse_line): Make global.
27868 (grub_sh_parser): Removed.
27869 (GRUB_MOD_INIT): Likewise.
27870 (GRUB_MOD_FINI): Likewise.
27871 * tests/lib/functional_test.c (grub_functional_test): Use
27872 FOR_LIST_ELEMENTS.
27873 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27874 (grub_test_run): Use FOR_LIST_ELEMENTS.
27875 * tests/lib/unit_test.c (main): Likewise.
27876 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27877 grub_list_pop.
27878 * util/grub-fstest.c (grub_term_input_class): Removed.
27879 (grub_term_output_class): Likewise.
27880 * util/grub-probe.c: Likewise.
27881 * util/i386/pc/grub-setup.c: Likewise.
27882 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27883 * util/grub-script-check.c (main): Don't call grub_init_all and
27884 grub_fini_all.
27885 * video/video.c (grub_video_adapter_list): Make global.
27886 (grub_video_register): Removed.
27887 (grub_video_unregister): Likewise.
27888 (grub_video_iterate): Likewise.
27889
27890 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27891
27892 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27893 reported by Henrique Ferreiro.
27894
27895 2010-06-09 Robert Millan <rmh@gnu.org>
27896
27897 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27898 ones, when both are available.
27899
27900 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27901
27902 Make --version uniform and avoid hard-coded program name.
27903
27904 * util/grub-mkimage.c (main): Use `program_name' instead of
27905 hard-coded string.
27906 * util/i386/pc/grub-setup.c (main): Likewise.
27907 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27908 * util/grub-install.in: Save the basename of $0 in $self, and use the
27909 latter in informational messages. Use the same format for --version
27910 as the binary programs.
27911 * util/grub-mkconfig.in: Likewise.
27912 * util/grub-mkrescue.in: Likewise.
27913 * util/grub-reboot.in: Likewise.
27914 * util/grub-set-default.in: Likewise.
27915 * util/i386/efi/grub-install.in: Likewise.
27916 * util/ieee1275/grub-install.in: Likewise.
27917 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27918
27919 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27920
27921 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27922 embedding area. Use <= instead of == when checking for non-emptiness.
27923
27924 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27925
27926 * configure.ac: Add `.' to the directories searched for unifont.
27927
27928 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27929
27930 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27931 grub_script.yy.h.
27932
27933 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27934
27935 * docs/grub.texi (History): Expand to cover GRUB 2.
27936 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27937 commands, not `terminal'.
27938 (serial): Likewise.
27939 (terminal_input): New section.
27940 (terminal_output): New section.
27941 (uppermem): New section (stub).
27942 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27943
27944 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27945
27946 * docs/grub.texi (Security): Menu entries are unrestricted by
27947 default, not restricted to superusers as I had previously thought.
27948 Reword to account for this.
27949
27950 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27951
27952 * kern/emu/misc.c (device_mapper_null_log): New function.
27953 (grub_device_mapper_supported): New function.
27954 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27955 prototype.
27956 * kern/emu/hostdisk.c (find_partition_start): Check whether
27957 device-mapper is supported before trying to use it.
27958 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27959
27960 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27961
27962 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27963 (File name syntax): Likewise.
27964 (help): --all is no longer supported in GRUB 2. Be more precise
27965 about pattern matching.
27966
27967 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27968
27969 * normal/completion.c (grub_normal_do_completion): When completing
27970 arguments to "set" and the current word contains an equals sign,
27971 skip to after the equals sign before starting completion.
27972
27973 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27974
27975 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
27976
27977 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27978
27979 * docs/grub.texi (Network): New section.
27980 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
27981 `(nd)' as in GRUB Legacy.
27982 (pxe_unload): New section.
27983
27984 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27985
27986 * docs/grub.texi (Troubleshooting): `echo' is not usually available
27987 in the rescue shell, so recommend using `set' instead. Thanks,
27988 Jordan Uggla.
27989
27990 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27991
27992 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
27993 (password): New section.
27994 (password_pbkdf2): New section.
27995 (search): New section.
27996 (Security): New section.
27997 (Troubleshooting): New section, currently very incomplete.
27998 (Invoking grub-mkpasswd-pbkdf2): New section.
27999 (Internals): New section, currently very incomplete.
28000
28001 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28002
28003 * util/grub.d/00_header.in: Add some more quoting (of
28004 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28005 work again.
28006 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28007
28008 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28009
28010 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28011 to `count', fixing variable shadowing that broke the -c option.
28012
28013 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28014
28015 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28016 in case they contain spaces.
28017
28018 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28019
28020 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28021 "part_" to partmap module names, in line with grub-install.
28022 Reported by: Jindřich Makovička (Debian bug #584426).
28023
28024 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28025
28026 * util/grub-mkimage.c: Make target-related error messages slightly
28027 more helpful; -O talks about "format". Explicitly point to the use
28028 of -O if no target is specified.
28029 Reported by: Didier Raboud (Debian bug #584415).
28030
28031 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28032
28033 * INSTALL: Document several build requirements for optional features
28034 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28035
28036 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28037
28038 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28039 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28040 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28041
28042 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28043
28044 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28045 Thanks to Jordan Uggla for spotting this.
28046
28047 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28048
28049 Finally make USB usable.
28050
28051 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28052 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28053 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28054 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28055 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28056 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28057 (GRUB_OHCI_FSMPS): Likewise.
28058 (GRUB_OHCI_PERIODIC_START): Likewise.
28059 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28060 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28061 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28062 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28063 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28064 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28065 (grub_ohci_transaction): Likewise.
28066 (grub_ohci_transfer): Improve condition detection algorithms.
28067 Handle toggle property. Program the transactions correctly.
28068 Improve error handling. Various important fixups.
28069 (grub_ohci_portstatus): Put register writes in right order.
28070 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28071 (grub_uhci_transfer): Don't show "failed" message on success.
28072 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28073 array.
28074 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28075 determine its size.
28076 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28077 before initialization is completed. Use IN direction for empty
28078 transfers. Use last_trans and compute toggle.
28079 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28080 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28081 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28082 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28083 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28084 (grub_usb_device): Increase toggle to 256.
28085 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28086 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28087 GRUB_USBMS_SUBCLASS_SFF8070.
28088 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28089 (grub_scsi_inquiry): New member page and alloc_length.
28090 (grub_scsi_request_sense): New structure.
28091 (grub_scsi_request_sense_data): Likewise.
28092 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28093 control.
28094 * disk/scsi.c (grub_scsi_request_sense): New function.
28095 (grub_scsi_test_unit_ready): Likewise.
28096 (grub_scsi_inquiry): Fill new fields.
28097 (grub_scsi_read_capacity): Likewise.
28098 (grub_scsi_read10): Add request sense at the end.
28099 (grub_scsi_read12): Likewise.
28100 (grub_scsi_write10): Likewise.
28101 (grub_scsi_write12): Likewise.
28102 (grub_scsi_open): Add Test Unit Ready.
28103 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28104 Support additional subclasses. Con't clear halt yet. Activate the
28105 proper config. Calculate LUNs correctly.
28106 (grub_usbms_transfer): Various important fixups.
28107
28108 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28109
28110 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28111 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28112 (grub_ohci_fini_hw): New function.
28113 (grub_ohci_restore_hw): Likewise.
28114 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28115 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28116 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28117
28118 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28119
28120 Dedicated DMA allocations.
28121
28122 * bus/pci.c (grub_memalign_dma32): New function
28123 (grub_dma_free): Likewise.
28124 (grub_dma_get_virt): Likewise.
28125 (grub_dma_get_phys): Likewise.
28126 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28127 (grub_ohci_pci_iter): Use dma32_alloc.
28128 (grub_ohci_transfer): Likewise.
28129 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28130 (grub_usb_bulk_readwrite): Likewise.
28131 * include/grub/pci.h: Add declarations.
28132
28133 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28134
28135 CS5536 support.
28136
28137 * bus/cs5536.c: New file.
28138 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28139 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28140 (cs5536_mod_SOURCES): New variable.
28141 (cs5536_mod_CFLAGS): Likewise.
28142 (cs5536_mod_LDFLAGS): Likewise.
28143 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28144 machine/pci.h.
28145 (kernel_img_SOURCES): Add bus/cs5536.c.
28146 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28147 usb_keyboard.mod.
28148 (usb_mod_SOURCES): New variable.
28149 (usb_mod_CFLAGS): New variable.
28150 (usb_mod_LDFLAGS): New variable.
28151 (usbtest_mod_SOURCES): New variable.
28152 (usbtest_mod_CFLAGS): New variable.
28153 (usbtest_mod_LDFLAGS): New variable.
28154 (ohci_mod_SOURCES): New variable.
28155 (ohci_mod_CFLAGS): New variable.
28156 (ohci_mod_LDFLAGS): New variable.
28157 (usbms_mod_SOURCES): New variable.
28158 (usbms_mod_CFLAGS): New variable.
28159 (usbms_mod_LDFLAGS): New variable.
28160 (usb_keyboard_mod_SOURCES): New variable.
28161 (usb_keyboard_mod_CFLAGS): New variable.
28162 (usb_keyboard_mod_LDFLAGS): New variable.
28163 * include/grub/smbus.h: New file.
28164 * include/grub/cs5536.h: New file.
28165
28166 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28167
28168 * util/grub.d/00_header.in: Add safety check to make sure that
28169 ${locale_dir} exists before trying to probe it.
28170
28171 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28172
28173 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28174 per the GNU Coding Standards; this is now too obscure to be worth
28175 documenting.
28176 (QNX): Likewise.
28177 (chainloader): Remove cross-reference to `SCO UnixWare'.
28178
28179 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28180
28181 * docs/grub.texi (Chain-loading): New section.
28182 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28183 adjusted for GRUB 2.
28184 (SCO UnixWare): Likewise.
28185 (QNX): Likewise.
28186 (chainloader): Add reference to `Block list syntax'.
28187 (drivemap): New section.
28188 (parttool): New section.
28189
28190 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28191
28192 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28193 the grub shell'.
28194 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28195 (Installing GRUB using grub-install): Remove reference to the grub
28196 shell; mention `grub-mkimage' and `grub-setup' instead.
28197 (Invoking grub-install): Likewise.
28198 (Interface): Add reference to `Menu entry editor'.
28199 (serial): Remove `--device' option.
28200
28201 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28202
28203 * docs/grub.texi (Configuration): New section, documenting
28204 configuration file generation using grub-mkconfig. I've left a slot
28205 for documenting the full shell scripting format but have not yet
28206 started on writing that up.
28207 (Invoking grub-mkconfig): New section.
28208
28209 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28210
28211 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28212 (GNU GRUB manual): Likewise.
28213 (General commands): Update description of `terminfo' for GRUB 2.
28214
28215 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28216
28217 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28218 (GRUB_MOD_INIT): Fix capitalisation.
28219 * docs/grub.texi (Command-line and menu entry commands): Document
28220 gettext and gptsync commands.
28221
28222 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28223
28224 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28225 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28226
28227 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28228
28229 Add btrfs probing support, currently only in the single-device case.
28230
28231 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28232 function.
28233 (grub_guess_root_device): Call find_root_device_from_mountinfo
28234 before looking in /dev.
28235
28236 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28237
28238 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28239 GRUB_DISK_SIZE_UNKNOWN.
28240 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28241
28242 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28243
28244 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28245 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28246 corrupted or not synced properly.
28247
28248 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28249
28250 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28251 Reported by: Seth Goldberg.
28252
28253 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28254
28255 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28256 addition of dest.
28257 Reported by: Seth Goldberg.
28258
28259 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28260
28261 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28262 Reported by: Seth Goldberg.
28263
28264 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28265
28266 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28267 64-bit address as signed on MIPS.
28268
28269 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28270
28271 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28272 to the empty string.
28273
28274 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28275
28276 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28277
28278 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28279 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28280 * kern/misc.c (__enable_execute_stack): Disable on
28281 GRUB_MACHINE_EMU.
28282
28283 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28284
28285 Make grub-probe work with symbolic links under /dev/mapper as well
28286 as with real block devices. The Linux world seems to be (at best)
28287 in transition here, and GRUB shouldn't get caught in the middle.
28288
28289 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28290 /dev/mapper.
28291
28292 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28293
28294 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28295 input files (in which case exit zero).
28296
28297 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28298
28299 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28300 return NULL for various reasons even if it has a maximum-length
28301 buffer: for example, there might be a symlink loop, or the path
28302 might exceed PATH_MAX. If this happens, return NULL.
28303
28304 2010-05-27 Robert Millan <rmh@gnu.org>
28305
28306 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28307 partmap module to handle cross-partmap setups.
28308 Reported by Orestes Mas. Gràcies!
28309
28310 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28311
28312 * util/grub-mkrescue.in: Initialise override_dir rather than
28313 assuming that it's unset or empty in the environment.
28314
28315 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28316
28317 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28318 variable index into p_index to suppress a warning with -Wshadow.
28319
28320 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28321
28322 * INSTALL: Added flex >= 2.5.35 requirement.
28323
28324 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28325
28326 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28327
28328 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28329
28330 cmostest support.
28331
28332 * commands/i386/cmostest.c: New file.
28333 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28334 (cmostest_mod_SOURCES): New variable.
28335 (cmostest_mod_CFLAGS): Likewise.
28336 (cmostest_mod_LDFLAGS): Likewise.
28337 * conf/i386-pc.rmk: Likewise.
28338 * docs/grub.texi (Vendor power-on keys): New section.
28339 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28340 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28341 and GRUB_BUTTON_CMOS_ADDRESS.
28342 * util/grub.d/00_header.in: Handle powering-on by separate button.
28343
28344 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28345
28346 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28347 Removed drawing_scrollbar argument. All users updated
28348 Fixes #29792.
28349 Reported by Jo Shields
28350
28351 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28352
28353 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28354 buffer since gfxterm handles double repaint.
28355
28356 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28357
28358 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28359 * term/gfxterm.c (real_scroll): Likewise.
28360
28361 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28362
28363 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28364 before calling BIOS.
28365
28366 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28367
28368 * include/grub/i18n.h: Always enable grub_gettext.
28369
28370 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28371
28372 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28373 partition naming style.
28374
28375 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28376
28377 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28378 not the first option.
28379
28380 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28381
28382 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28383
28384 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28385
28386 * util/misc.c: Move inclusion of <limits.h> to ...
28387 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28388
28389 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28390
28391 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28392 Fix merge error in NetBSD code.
28393 (find_partition_start) [__NetBSD__]: Likewise.
28394
28395 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28396
28397 Fix grub-mkrescue usage unit testing.
28398
28399 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28400
28401 2010-05-18 Christian Franke <franke@computer.org>
28402
28403 * util/grub.d/10_windows.in: Use path names instead of
28404 drive letters to prevent warning from Cygwin 1.7.
28405 Add drivemap command to menuentry if needed.
28406
28407 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28408
28409 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28410 gnumach and gnumach.gz.
28411
28412 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28413
28414 * include/grub/i18n.h (gettext): Inline instead of using #define.
28415 (grub_gettext): Likewise.
28416 (_): Likewise.
28417
28418 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28419
28420 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28421 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28422 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28423 (main): Add a slash after pkglibdirroot.
28424
28425 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28426
28427 * util/grub-install.in: Add missing "in" keyword.
28428
28429 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28430
28431 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28432 Reported by: Seth Goldberg.
28433
28434 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28435
28436 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28437
28438 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28439
28440 * configure.ac: Check for Linux device-mapper support.
28441
28442 * util/hostdisk.c (device_is_mapped): New function.
28443 (find_partition_start): New function, partly broken out from
28444 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28445 device-mapper support added.
28446 (linux_find_partition): Use find_partition_start.
28447 (convert_system_partition_to_system_disk): Add `st' argument.
28448 Support Linux /dev/mapper/* devices if device-mapper support is
28449 available; only DM-RAID devices are understood at present.
28450 (find_system_device): Add `st' argument. Pass it to
28451 convert_system_partition_to_system_disk.
28452 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28453 find_system_device and convert_system_partition_to_system_disk. Use
28454 find_partition_start.
28455
28456 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28457 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28458 * util/deviceiter.c [__linux__]: Define MINOR.
28459 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28460 * util/mkdevicemap.c (grub_putchar): New function.
28461 (grub_getkey): New function.
28462 (grub_refresh): New function.
28463 (main): Set debug=all if -v -v is used.
28464
28465 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28466
28467 Fix build with non-GNU libcs.
28468
28469 * util/misc.c (canonicalize_file_name): Move to ...
28470 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28471 grub_make_system_path_relative_to_its_root.
28472
28473 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28474
28475 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28476 we handle finding grub-mkimage. Default to finding grub-mkimage in
28477 ${bindir} with program_transform_name applied, and provide a
28478 --grub-mkimage option to override this.
28479
28480 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28481
28482 Remove grub-mkisofs.
28483
28484 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28485 (grub_mkisofs_SOURCES): Removed.
28486 (grub_mkisofs_CFLAGS): Removed.
28487 * util/mkisofs/defaults.h: Removed.
28488 * util/mkisofs/eltorito.c: Likewise.
28489 * util/mkisofs/exclude.h: Likewise.
28490 * util/mkisofs/hash.c: Likewise.
28491 * util/mkisofs/include/: Likewise.
28492 * util/mkisofs/include/fctldefs.h: Likewise.
28493 * util/mkisofs/include/mconfig.h: Likewise.
28494 * util/mkisofs/include/prototyp.h: Likewise.
28495 * util/mkisofs/include/statdefs.h: Likewise.
28496 * util/mkisofs/iso9660.h: Likewise.
28497 * util/mkisofs/joliet.c: Likewise.
28498 * util/mkisofs/match.c: Likewise.
28499 * util/mkisofs/match.h: Likewise.
28500 * util/mkisofs/mkisofs.c: Likewise.
28501 * util/mkisofs/mkisofs.h: Likewise.
28502 * util/mkisofs/msdos_partition.h: Likewise.
28503 * util/mkisofs/multi.c: Likewise.
28504 * util/mkisofs/name.c: Likewise.
28505 * util/mkisofs/rock.c: Likewise.
28506 * util/mkisofs/tree.c: Likewise.
28507 * util/mkisofs/write.c: Likewise.
28508
28509 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28510
28511 Unify grub-mkimage accross platforms.
28512
28513 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28514 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28515 (grub_mkelfimage_SOURCES): Removed.
28516 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28517 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28518 (bin_UTILITIES): Add grub-mkimage.
28519 (grub_mkimage_SOURCES): New variable.
28520 (kernel_img_HEADERS): Remove machine/kernel.h.
28521 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28522 (pkglib_PROGRAMS): Add kernel.img.
28523 (kernel_img_HEADERS): Add machine/kernel.h.
28524 (kernel_img_FORMAT): Removed.
28525 (bin_UTILITIES): Remove grub-mkimage.
28526 (grub_mkimage_SOURCES): Removed.
28527 (grub_mkimage_CFLAGS): Likewise.
28528 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28529 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28530 (pkglib_PROGRAMS): Add kernel.img.
28531 (bin_UTILITIES): Remove grub-mkimage.
28532 (grub_mkimage_SOURCES): Removed.
28533 (grub_mkimage_CFLAGS): Likewise.
28534 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28535 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28536 (pkglib_PROGRAMS): Add kernel.img.
28537 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28538 (pkglib_PROGRAMS): Add kernel.img.
28539 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28540 (grub_mkimage_SOURCES): Removed.
28541 (grub_mkimage_CFLAGS): Likewise.
28542 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28543 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28544 (pkglib_PROGRAMS): Add kernel.img.
28545 (bin_UTILITIES): Remove grub-mkimage.
28546 (grub_mkimage_SOURCES): Removed.
28547 (grub_mkimage_CFLAGS): Likewise.
28548 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28549 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28550 (grub_mkimage_SOURCES): Removed.
28551 (grub_mkimage_CFLAGS): Likewise.
28552 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28553 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28554 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28555 (grub_pe32_optional_header): ... this.
28556 (grub_pe64_optional_header): ... and this. All users updated.
28557 (GRUB_PE32_PE32_MAGIC): Split into ..
28558 (GRUB_PE32_PE32_MAGIC): .. this.
28559 (GRUB_PE32_PE64_MAGIC): .. and this.
28560 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28561 * include/grub/elf.h (PT_GNU_STACK): New definition.
28562 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28563 * include/grub/i386/efi/kernel.h: Likewise.
28564 * include/grub/i386/kernel.h: Likewise.
28565 * include/grub/i386/pc/kernel.h: Likewise.
28566 * include/grub/i386/qemu/boot.h: Likewise.
28567 * include/grub/mips/kernel.h: Likewise.
28568 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28569 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28570 * include/grub/powerpc/kernel.h: Likewise.
28571 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28572 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28573 * include/grub/sparc64/kernel.h: Likewise.
28574 * include/grub/x86_64/efi/kernel.h: Likewise.
28575 * include/grub/x86_64/kernel.h: Likewise.
28576 * include/grub/offsets.h: New file.
28577 * include/grub/kernel.h (grub_module_info): Split into ...
28578 (grub_module_info32): ... this.
28579 (grub_module_info64): ... and this.
28580 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28581 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28582 (grub_boot_blocklist): Moved from here ...
28583 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28584 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28585 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28586 * include/grub/types.h (grub_target_to_host16): Removed.
28587 (grub_target_to_host32): Likewise.
28588 (grub_target_to_host64): Likewise.
28589 (grub_host_to_target16): Likewise.
28590 (grub_host_to_target32): Likewise.
28591 (grub_host_to_target64): Likewise.
28592 (grub_host_to_target_addr): Likewise.
28593
28594 Support grub-mkrescue for efi, coreboot and qemu.
28595
28596 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28597 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28598 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28599 * util/grub-mkrawimage.c: Moved from here ...
28600 * util/grub-mkimage.c: ... here. All users updated.
28601 (ALIGN_ADDR): Use image_target.
28602 (TARGET_NO_FIELD): New const.
28603 (image_target_desc): New type.
28604 (image_targets): New array.
28605 (grub_target_to_host64): Use image_target.
28606 (grub_target_to_host32): Likewise.
28607 (grub_target_to_host16): Likewise.
28608 (grub_host_to_target64): Likewise.
28609 (grub_host_to_target32): Likewise.
28610 (grub_host_to_target16): Likewise.
28611 (grub_host_to_target_addr): Likewise.
28612 (generate_image): Handle multiimage.
28613 (main): Require -O parameter. All users updated.
28614 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28615 util/efi/grub-mkimage.c
28616 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28617 New option --rom-directory.
28618 Use xorriso.
28619 * util/i386/efi/grub-mkimage.c: Removed.
28620 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28621 (grub_target_to_host32): Likewise.
28622 (grub_target_to_host64): Likewise.
28623 (grub_host_to_target16): Likewise.
28624 (grub_host_to_target32): Likewise.
28625 (grub_host_to_target64): Likewise.
28626 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28627 (grub_target_to_host32): Likewise.
28628 (grub_target_to_host64): Likewise.
28629 (grub_host_to_target16): Likewise.
28630 (grub_host_to_target32): Likewise.
28631 (grub_host_to_target64): Likewise.
28632
28633 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28634
28635 Source tree is reorganized for emu build.
28636
28637 * include/grub/util/console.h: Move from here...
28638 * include/grub/emu/console.h: ...to here.
28639 * include/grub/util/getroot.h: Move from here...
28640 * include/grub/emu/getroot.h: ...to here.
28641 * include/grub/util/hostdisk.h: Move from here...
28642 * include/grub/emu/hostdisk.h: ...to here.
28643 * util/console.c: Move from here...
28644 * kern/emu/console.c: ...to here.
28645 * util/getroot.c: Move from here...
28646 * kern/emu/getroot.c: ...to here.
28647 * util/grub-emu.c: Move from here...
28648 * kern/emu/main.c: ...to here.
28649 * util/hostdisk.c: Move from here...
28650 * kern/emu/hostdisk.c: ...to here.
28651 * util/hostfs.c: Move from here...
28652 * kern/emu/hostfs.c: ...to here.
28653 * util/mm.c: Move from here...
28654 * kern/emu/mm.c: ...to here.
28655 * util/pci.c: Move from here...
28656 * bus/emu/pci.c: ...to here.
28657 * util/sdl.c: Move from here...
28658 * video/emu/sdl.c: ...to here.
28659 * util/time.c: Move from here...
28660 * kern/emu/time.c: ...to here.
28661 * util/usb.c: Move from here...
28662 * bus/usb/emu/usb.c: ...to here.
28663
28664 * include/grub/emu/misc.h: New header for grub-emu functions.
28665 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28666
28667 * conf/any-emu.rmk: Rule updates for above renames.
28668 * conf/common.rmk: Likewise.
28669 * conf/i386-pc.rmk: Likewise.
28670 * conf/i386-qemu.rmk: Likewise.
28671 * conf/mips.rmk: Likewise.
28672 * conf/sparc64-ieee1275.rmk: Likewise.
28673 * conf/x86-efi.rmk: Likewise.
28674
28675 * disk/lvm.h: #include updates for above renames.
28676 * util/grub-mkrelpath.c: Likewise.
28677 * util/grub-probe.c: Likewise.
28678 * util/i386/pc/grub-setup.c: Likewise.
28679 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28680 * kern/emu/console.c: Likewise.
28681 * kern/emu/getroot.c: Likewise.
28682 * kern/emu/hostdisk.c: Likewise.
28683 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28684
28685 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28686 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28687 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28688 * util/misc.c: Remove grub-emu functions.
28689
28690 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28691
28692 Fix gfxmenu crash.
28693 Reported by: Thorsten Grützmacher.
28694
28695 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28696 timeout hook.
28697 (circprog_set_property): Register and unregister timeout hook.
28698 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28699 (label_destroy): Free template. and unregister hook.
28700 (label_set_state): New function.
28701 (label_set_property): Handle templates and hooks.
28702 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28703 timeout hook.
28704 (progress_bar_set_property): Register and unregister timeout hook.
28705 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28706 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28707 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28708 (update_timeout_visit): Removed.
28709 (update_timeouts): New function.
28710 (redraw_timeouts): Likewise.
28711 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28712 (grub_gfxmenu_clear_timeout): Likewise.
28713 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28714 (grub_gfxmenu_timeout_notify): Likewise.
28715 (grub_gfxmenu_timeout_notifications): New external variable.
28716 (grub_gfxmenu_timeout_register): New function.
28717 (grub_gfxmenu_timeout_unregister): Likewise.
28718
28719 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28720
28721 Transform (broken) vga terminal into (working) vga video driver.
28722
28723 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28724 video/i386/pc/vga.c.
28725 * include/grub/video.h (grub_video_driver_id):
28726 Add GRUB_VIDEO_DRIVER_VGA.
28727 * term/i386/pc/vga.c: Renamed to ...
28728 * video/i386/pc/vga.c: ...this
28729 (DEBUG_VGA): Removed.
28730 (CHAR_WIDTH): Likewise.
28731 (CHAR_HEIGHT): Likewise.
28732 (TEXT_WIDTH): Likewise.
28733 (TEXT_HEIGHT): Likewise.
28734 (DEFAULT_FG_COLOR): Likewise.
28735 (DEFAULT_BG_COLOR): Likewise.
28736 (colored_char): Likewise.
28737 (xpos): Likewise.
28738 (ypos): Likewise.
28739 (cursor_state): Likewise.
28740 (fg_color): Likewise.
28741 (bg_color): Likewise.
28742 (text_buf): Likewise.
28743 (page): Likewise.
28744 (font): Likewise.
28745 (framebuffer): New variable.
28746 (set_read_map): Disabled.
28747 (setup): New variable.
28748 (is_target): Likewise.
28749 (grub_vga_mod_init): Likewise.
28750 (grub_vga_mod_fini): Likewise.
28751 (check_vga_mem): Likewise.
28752 (write_char): Likewise.
28753 (write_cursor): Likewise.
28754 (scroll_up): Likewise.
28755 (grub_vga_putchar): Likewise.
28756 (grub_vga_getcharwidth): Likewise.
28757 (grub_vga_getwh): Likewise.
28758 (grub_vga_getxy): Likewise.
28759 (grub_vga_gotoxy): Likewise.
28760 (grub_vga_cls): Likewise.
28761 (grub_vga_setcolorstate): Likewise.
28762 (grub_vga_setcursor): Likewise.
28763 (grub_video_vga_init): New function.
28764 (grub_video_vga_setup): Likewise.
28765 (grub_video_vga_fini): Likewise.
28766 (update_target): Likewise.
28767 (grub_video_vga_blit_bitmap): Likewise.
28768 (grub_video_vga_blit_render_target): Likewise.
28769 (grub_video_vga_set_active_render_target): Likewise.
28770 (grub_video_vga_get_active_render_target): Likewise.
28771 (grub_video_vga_swap_buffers): Likewise.
28772 (grub_video_vga_set_palette): Likewise.
28773 (grub_video_vga_get_info_and_fini): Likewise.
28774 (grub_vga_term): Removed.
28775 (grub_video_vga_adapter): New variable.
28776 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28777 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28778
28779 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28780
28781 * video/readers/jpeg.c: Indented.
28782
28783 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28784
28785 Various jpeg cleanups.
28786
28787 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28788 (grub_jpeg_decode_quan_table): Use sizeof.
28789 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28790
28791 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28792
28793 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28794 tables. Ignore non-last ac bit.
28795 (grub_jpeg_decode_quan_table): Likewise.
28796
28797 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28798
28799 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28800 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28801 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28802 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28803 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28804 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28805
28806 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28807
28808 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28809 error.
28810
28811 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28812
28813 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28814
28815 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28816
28817 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28818 condition.
28819
28820 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28821
28822 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28823 part.
28824
28825 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28828 pointers.
28829
28830 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28831
28832 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28833
28834 2010-05-01 Christian Franke <franke@computer.org>
28835
28836 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28837 Remove broken Cygwin path conversion.
28838 * util/misc.c: [__CYGWIN__] Add include and define.
28839 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28840 for Cygwin 1.7.
28841 (make_system_path_relative_to_its_root): Simplify loop, replace early
28842 return by break.
28843 [__CYGWIN__] Add conversion to win32 path.
28844 Include "/" case in trailing slash removal.
28845
28846 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28847
28848 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28849 Reported by: Seth Goldberg
28850
28851 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28852
28853 * commands/help.c (grub_cmd_help): Fix a typo.
28854 Reported by: Seth Goldberg
28855
28856 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28859 name and add N_.
28860 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28861 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28862 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28863 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28864 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28865 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28866 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28867 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28868 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28869 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28870 * normal/context.c (GRUB_MOD_INIT): Likewise.
28871 * normal/main.c (GRUB_MOD_INIT): Likewise.
28872 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28873 * term/serial.c (GRUB_MOD_INIT): Likewise.
28874 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28875
28876 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28877
28878 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28879 extra == 0.
28880
28881 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * commands/iorw.c: New file.
28884 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28885 (iorw_mod_SOURCES): New variable.
28886 (iorw_mod_CFLAGS): Likewise.
28887 (iorw_mod_LDFLAGS): Likewise.
28888
28889 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28890
28891 Hotkey support
28892
28893 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28894 * normal/main.c (hotkey_aliases): New variable.
28895 (grub_normal_add_menu_entry): Parse "--hotkey".
28896 * normal/menu_text.c (run_menu): Handle hotkeys.
28897
28898 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28899
28900 * kern/i386/coreboot/init.c (grub_machine_init): Call
28901 grub_machine_mmap_init on qemu.
28902
28903 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28904
28905 * boot/i386/qemu/boot.S: Add a missing .code16.
28906
28907 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28908
28909 Use LBIO on coreboot.
28910
28911 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28912 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28913 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28914 New declaration.
28915 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28916 grub_machine_mmap_init on coreboot.
28917 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28918 GRUB_LINUXBIOS_MEMBER_LINK.
28919 (grub_machine_mmap_iterate): Fix declaration.
28920 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28921
28922 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28923
28924 Split coreboot and multiboot ports.
28925
28926 * conf/i386-multiboot.rmk: New file.
28927 * configure.ac: Add multiboot port.
28928 * include/grub/i386/multiboot/boot.h: New file.
28929 * include/grub/i386/multiboot/console.h: Likewise.
28930 * include/grub/i386/multiboot/init.h: Likewise.
28931 * include/grub/i386/multiboot/kernel.h: Likewise.
28932 * include/grub/i386/multiboot/loader.h: Likewise.
28933 * include/grub/i386/multiboot/memory.h: Likewise.
28934 * include/grub/i386/multiboot/serial.h: Likewise.
28935 * include/grub/i386/multiboot/time.h: Likewise.
28936 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28937 * loader/multiboot.c: Likewise.
28938 * loader/multiboot_mbi2.c: Likewise.
28939 * util/grub-mkrescue.in: Generate multiboot rescue.
28940
28941 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28942
28943 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28944
28945 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28946
28947 Merge handling of input and output terminals. Fix a hang.
28948
28949 * commands/terminal.c (abstract_terminal): New struct.
28950 (handle_command): New function. Based on grub_cmd_terminal_input.
28951 (grub_cmd_terminal_input): Use handle_command.
28952 (grub_cmd_terminal_output): Use handle_command.
28953
28954 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28955
28956 Fix comment handling.
28957
28958 * tests/grub_script_comments.in: New testcase.
28959 * conf/tests.rmk: Rules for new testcase.
28960 * script/yylex.l: Updated flex rules.
28961
28962 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28963
28964 * docs/grub.texi (play): Document that zero pitches produce rests.
28965 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28966 if argc is 1.
28967
28968 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28969
28970 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28971 autogen issues.
28972
28973 2010-04-26 Christian Franke <franke@computer.org>
28974
28975 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
28976 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
28977 (grub_get_prefix): Remove function.
28978 * util/grub-emu.c (main): Replace grub_get_prefix () call by
28979 make_system_path_relative_to_its_root ().
28980 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
28981
28982 2010-04-24 Christian Franke <franke@computer.org>
28983
28984 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
28985 (kernel_img_LDFLAGS): Remove -static-libgcc.
28986
28987 2010-04-24 Christian Franke <franke@computer.org>
28988
28989 * configure.ac: Do not CHECK_BSS_START_SYMBOL
28990 and CHECK_END_SYMBOL if grub-emu is built.
28991 Unset TARGET_OBJ2ELF if grub-emu is built
28992 without module support.
28993
28994 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
28995
28996 Nilfs2 support.
28997
28998 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
28999 (grub_fstest_SOURCES): Likewise.
29000 (pkglib_MODULES): Add nilfs2.mod.
29001 (nilfs2_mod_SOURCES): New variable.
29002 (nilfs2_mod_CFLAGS): Likewise.
29003 (nilfs2_mod_LDFLAGS): Likewise.
29004 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29005 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29006 * fs/nilfs2.c: New file.
29007
29008 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29009
29010 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29011 is not supported.
29012
29013 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29014
29015 Add grub-mkconfig support for NetBSD.
29016
29017 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29018 * util/grub-mkconfig.in: export new NetBSD specific variables.
29019 * po/POTFILES-shell: added 10_netbsd.in.
29020 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29021
29022 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29023
29024 Fix emu build with grub-emu-pci and grub-emu-modules.
29025
29026 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29027 functions.
29028 * include/grub/libpciaccess.h: New file.
29029 * conf/any-emu.rmk: Update kernel headers for emu build.
29030
29031 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29032
29033 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29034
29035 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29036
29037 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29038
29039 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29040
29041 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29042 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29043 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29044 util/ieee1275/ofpath.c.
29045 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29046 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29047 * include/grub/sparc64/ieee1275/boot.h
29048 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29049 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29050 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29051 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29052 const char *.
29053 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29054 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29055 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29056 install.
29057
29058 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29059
29060 * util/grub-mkconfig.in: Corrected two == equality tests.
29061 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29062 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29063 expect a number appended to it.
29064 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29065 expects a number appended to it.
29066
29067 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29068
29069 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29070
29071 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29072
29073 * util/hostdisk.c (make_device_name): Change to new partition naming.
29074
29075 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29076
29077 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29078
29079 2010-04-17 Christian Franke <franke@computer.org>
29080
29081 * Makefile.in: Add missing localedir setting.
29082
29083 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29084
29085 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29086 mistake in r2156. Noticed by Anthony Fok.
29087
29088 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29089 @localedir@.
29090 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29091
29092 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29093
29094 Fix a spurious, uninitialized variable warning.
29095
29096 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29097 Initialize variable, shdr.
29098 (grub_freebsd_load_elfmodule): Likewise.
29099 (grub_freebsd_load_elf_meta): Likewise.
29100
29101 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29102
29103 Fix for escaped dollar in double quoted strings.
29104
29105 * script/yylex.l: Updated flex rules.
29106 * conf/tests.rmk: Rule for new testcase.
29107 * tests/grub_script_dollar.in: New testcase.
29108
29109 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29110 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29111
29112 Enclose all translated strings in grub.cfg in single quotes, and
29113 escape them appropriately (Ubuntu bug #552921).
29114
29115 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29116 * util/grub.d/10_hurd.in: Use it.
29117 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29118 * util/grub.d/10_linux.in (linux_entry): Likewise.
29119
29120 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29121
29122 Fix cygwin compilation.
29123
29124 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29125 * include/grub/misc.h (__register_frame_info)
29126 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29127 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29128 * kern/misc.c (__register_frame_info)
29129 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29130 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29131
29132 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29133
29134 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29135
29136 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29137
29138 Unify libgcc processing.
29139
29140 * Makefile.in (kernel_img_LDFLAGS): New variable.
29141 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29142 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29143 overwriting.
29144 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29145 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29146 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29147 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29148 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29149 overwriting. Remove -lgcc and -static-libgcc
29150 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29151 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29152 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29153 (kernel_img_LDFLAGS): Append instead of overwriting.
29154 Remove -lgcc and -static-libgcc
29155 * conf/sparc64-ieee1275.rmk: Likewise.
29156 * include/grub/powerpc/libgcc.h: Move to ...
29157 * include/grub/libgcc.h: .. this.
29158 * include/grub/libgcc.h: Don't export most of the function on x86.
29159 (__bswapsi2): New export.
29160 (__bswapdi2): Likewise.
29161 * include/grub/mips/libgcc.h: Removed.
29162 * include/grub/sparc64/libgcc.h: Likewise.
29163
29164 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29165
29166 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29167 disk_info_msg (conflicts with gettexting into languages with cases).
29168
29169 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29170
29171 Add grub-probe support for NetBSD.
29172
29173 * util/getroot.c (find_root_device): Convert block device to
29174 character device on NetBSD.
29175 * util/probe.c (probe): Require character device on NetBSD.
29176 * util/hostdisk.c: NetBSD specific headers.
29177 (configure_device_driver): new function to tune device driver
29178 parameters (currently only for NetBSD floppy driver).
29179 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29180 via disklabel ioctl).
29181 (open_device): call configure_device_driver on NetBSD.
29182 (convert_system_partition_to_system_disk): NetBSD specific code.
29183 (device_is_wholedisk): Likewise.
29184 (grub_util_biosdisk_get_grub_dev): Likewise.
29185 (make_device_name): Fixed a typo in bsd_part_str.
29186 * configure.ac: check for opendisk() and getrawpartition() on
29187 NetBSD and set LIBUTIL.
29188 * Makefile.in: add LIBUTIL to LIBS.
29189
29190 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29191
29192 Documentation fix.
29193
29194 * util/grub-script-check.c: Better help message.
29195
29196 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29197
29198 Fix FreeBSD build.
29199
29200 * configure.ac: Flex version check.
29201 * conf/common.rmk: Add -Wno-error to sh.mod.
29202 * script/yylex.l: Remove all #pragma.
29203
29204 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29205
29206 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29207 prototype.
29208 Reported by: Seth Goldberg.
29209
29210 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29211
29212 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29213 Rename "module" to "module2".
29214 Reported by: Seth Goldberg.
29215
29216 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29217
29218 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29219 EXPORT_FUNC.
29220 Reported by: Seth Goldberg.
29221
29222 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29223
29224 * lib/posix_wrap/locale.h: Add missing file.
29225 Reported by: Seth Goldberg.
29226
29227 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29228
29229 grub-emu module load support.
29230
29231 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29232 NO_DYNAMIC_MODULES switched to this.
29233 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29234 (CFLAGS): Likewise.
29235 * conf/any-emu.rmk: Generate symlist.
29236 (kernel_img_HEADERS): Add util/datetime.h.
29237 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29238 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29239 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29240 kern/$(target_cpu)/cache.S.
29241 * configure.ac (grub-emu-modules): New option.
29242 * genmk.rb: Handle multiple source lists.
29243 * include/grub/sdl.h: New file.
29244 * include/grub/libusb.h: Likewise.
29245 * util/grub-emu.c (main): Hanle (host) root.
29246 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29247 GRUB_ERR_UNKNOWN_DEVICE.
29248 * util/misc.c: Move mm functions to ...
29249 * util/mm.c: ... here. All users updated.
29250
29251 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29252
29253 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29254 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29255 missing files.
29256 (maintainer-clean): Remove libgcrypt-grub.
29257
29258 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29259
29260 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29261
29262 2010-04-09 EFI Coder <eficoder@hotmail.com>
29263
29264 * normal/menu_text.c (print_message): Clean up the message and show
29265 the Fn information when on EFI
29266 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29267
29268 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29269
29270 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29271 All users updated.
29272 * normal/crypto.c (read_crypto_list): Likewise.
29273 * normal/dyncmd.c (read_command_list): Likewise.
29274 * normal/term.c (read_terminal_list): Likewise.
29275 * normal/main.c (read_lists): Use explicit prefix.
29276 (read_lists_hook): Use read_lists.
29277 (grub_normal_execute): Likewise.
29278
29279 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29280
29281 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29282 Reported by: Thomas Schmitt.
29283 Add -no-emul-boot to grub-mkisofs parameters.
29284
29285 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29286
29287 * font/font.c: Indented.
29288
29289 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29290
29291 Elif support to GRUB script (by Deepak Vankadaru).
29292
29293 * tests/grub_script_if.in: New testcase.
29294 * conf/tests.rmk: Rule for new testcase.
29295 * script/parser.y: Grammar rules for elif.
29296
29297 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29298
29299 While and until loops support to GRUB script.
29300
29301 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29302 (grub_script_create_cmdwhile): New function prototype.
29303 (grub_script_execute_cmdwhile): New function prototype.
29304 * script/execute.c (grub_script_execute_cmdwhile): New function.
29305 * script/parser.y (command): New commands.
29306 (whilecmd): New grammar rule.
29307 (untilcmd): New grammar rule.
29308 * script/script.c (grub_script_create_cmdwhile): New function.
29309 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29310 function.
29311
29312 * tests/grub_script_while1.in: New testcase.
29313 * conf/tests.rmk: Rule for new testcase.
29314
29315 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29316
29317 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29318 as *.jpg.
29319
29320 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29321
29322 GRUB_BACKGROUND support.
29323
29324 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29325 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29326
29327 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29328
29329 Load fonts and modules for gfxmenu in grub-mkconfig.
29330 Idea by: Mario Vazquez
29331
29332 * util/grub.d/00_header.in: Load pf2 and image modules.
29333
29334 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29335
29336 grub-mkconfig multiple terminal support.
29337
29338 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29339 * util/grub.d/00_header.in: Likewise.
29340
29341 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29342
29343 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29344 we use cd $(srcdir).
29345
29346 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29347
29348 * util/grub.d/10_linux.in: Only use the first word of
29349 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29350 spaces in GRUB_DISTRIBUTOR.
29351 * util/grub.d/10_kfreebsd.in: Likewise.
29352 * util/grub.d/10_hurd.in: Likewise.
29353
29354 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29355
29356 Fix unit testing framework for Qemu 0.12.
29357
29358 * tests/util/grub-shell.in: Remove -serial stdio option.
29359
29360 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29361
29362 POSIX header file wrappers.
29363
29364 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29365 equivalents.
29366 * lib/posix_wrap/ctype.h: Likewise.
29367 * lib/posix_wrap/errno.h: Likewise.
29368 * lib/posix_wrap/langinfo.h: Likewise.
29369 * lib/posix_wrap/limits.h: Likewise.
29370 * lib/posix_wrap/localcharset.h: Likewise.
29371 * lib/posix_wrap/stdint.h: Likewise.
29372 * lib/posix_wrap/stdio.h: Likewise.
29373 * lib/posix_wrap/stdlib.h: Likewise.
29374 * lib/posix_wrap/string.h: Likewise.
29375 * lib/posix_wrap/sys/types.h: Likewise.
29376 * lib/posix_wrap/unistd.h: Likewise.
29377 * lib/posix_wrap/wchar.h: Likewise.
29378 * lib/posix_wrap/wctype.h: Likewise.
29379 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29380 (grub_script.yy.h): Likewise.
29381 * script/yylex.l: Remove POSIX emulation #defines.
29382 * Makefile.in (POSIX_CFLAGS): New variable.
29383 (GNULIB_UTIL_CFLAGS): Likewise.
29384
29385 Regexp support.
29386
29387 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29388 (regexp_mod_SOURCES): New variable.
29389 (regexp_mod_CFLAGS): Likewise.
29390 (regexp_mod_LDFLAGS): Likewise.
29391 * commands/regexp.c: New file.
29392 * gnulib/regcomp.c: New file. Imported from gnulib.
29393 * gnulib/regex.c: Likewise.
29394 * gnulib/regex_internal.c: Likewise.
29395 * gnulib/regex_internal.h: Likewise.
29396 * gnulib/regexec.c: Likewise.
29397 * gnulib/regex.h: Likewise.
29398
29399 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29400
29401 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29402 unsupported video mode types.
29403
29404 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29405
29406 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29407
29408 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29409
29410 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29411 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29412
29413 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29414
29415 Remove unused grub_vga_get_font.
29416
29417 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29418 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29419
29420 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29421
29422 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29423 * include/grub/misc.h: Likewise.
29424
29425 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29426
29427 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29428 for which failure is fatal.
29429
29430 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29431
29432 * util/grub-install.in: Use mkdir -p to create grub directory.
29433 * util/i386/efi/grub-install.in: Likewise.
29434 * util/ieee1275/grub-install.in: Likewise.
29435
29436 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29437
29438 * Makefile.in (LEX): new variable.
29439
29440 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29441
29442 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29443 `=' and added double quotes on operands of this equality test.
29444
29445 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29446
29447 * Makefile.in (uninstall): Remove a leftover debug echo.
29448 Reported by: Grégoire Sutre
29449
29450 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29451
29452 MIPS multiboot2 support.
29453
29454 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29455 (multiboot2_mod_SOURCES): New variable.
29456 (multiboot2_mod_CFLAGS): Likewise.
29457 (multiboot2_mod_LDFLAGS): Likewise.
29458 (multiboot2_mod_ASFLAGS): Likewise.
29459 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29460 definition.
29461 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29462 (MULTIBOOT_MBI_REGISTER): Likewise.
29463 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29464 (MULTIBOOT_ELF32_MACHINE): Likewise.
29465 (MULTIBOOT_ELF64_MACHINE): Likewise.
29466 * include/grub/mips/multiboot.h: New file.
29467 * include/grub/video.h (grub_video_driver_id): New type
29468 GRUB_VIDEO_DRIVER_SM712.
29469 (grub_video_get_info_and_fini): Export.
29470 (grub_video_get_palette): Likewise.
29471 (grub_video_get_driver_id): Likewise.
29472 * include/multiboot2.h: Resynced with spec.
29473 * loader/i386/multiboot.c: Moved from here ...
29474 * loader/multiboot.c: ... here. All users updated.
29475 (grub_multiboot_boot): Use platform-specific macros.
29476 * loader/i386/multiboot_elfxx.c: Moved from here ...
29477 * loader/multiboot_elfxx.c: ... here. All users updated.
29478 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29479 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29480 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29481
29482 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29483
29484 Import gnulib argp module.
29485
29486 * gnulib/argp-ba.c: New file.
29487 * gnulib/argp-eexst.c: Likewise.
29488 * gnulib/argp-fmtstream.c: Likewise.
29489 * gnulib/argp-fmtstream.h: Likewise.
29490 * gnulib/argp-fs-xinl.c: Likewise.
29491 * gnulib/argp-help.c: Likewise.
29492 * gnulib/argp-namefrob.h: Likewise.
29493 * gnulib/argp-parse.c: Likewise.
29494 * gnulib/argp-pin.c: Likewise.
29495 * gnulib/argp-pv.c: Likewise.
29496 * gnulib/argp-pvh.c: Likewise.
29497 * gnulib/argp-version-etc.c: Likewise.
29498 * gnulib/argp-version-etc.h: Likewise.
29499 * gnulib/argp-xinl.c: Likewise.
29500 * gnulib/argp.h: Likewise.
29501
29502 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29503
29504 * kern/device.c (grub_device_iterate): Clear errors after failed
29505 opening device.
29506
29507 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29508
29509 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29510 returned by firmware.
29511
29512 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29513
29514 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29515 compilation on coreboot and qemu
29516
29517 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29518
29519 * include/multiboot2.h: Resync with spec.
29520
29521 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29522
29523 Multiboot2 tag support
29524
29525 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29526 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29527 Remove loader/multiboot_loader.c.
29528 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29529 (grub_multiboot2_real_boot): Likewise.
29530 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29531 (grub_get_multiboot_mmap_count): New proto.
29532 (grub_fill_multiboot_mmap): Likewise.
29533 (grub_multiboot_set_video_mode): Likewise.
29534 (grub_multiboot_set_console): Likewise.
29535 (grub_multiboot_load): Likewise.
29536 (grub_multiboot_load_elf): Likewise.
29537 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29538 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29539 * include/multiboot.h: Resynced with specification.
29540 * include/multiboot2.h: Resynced with specification.
29541 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29542 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29543 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29544 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29545 users updated.
29546 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29547 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29548 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29549 Removed.
29550 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29551 Moved from here...
29552 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29553 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29554 Moved from here...
29555 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29556 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29557 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29558 All users updated.
29559 * loader/i386/multiboot_mbi2.c: New file.
29560
29561 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29562
29563 Resync with gnulib.
29564
29565 * Makefile.in (GNULIB_CFLAGS): New variable.
29566 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29567 (grub_script_check_CFLAGS): New variable.
29568 * gnulib/alloca.h: Resync with gnulib.
29569 * gnulib/error.c: Likewise.
29570 * gnulib/error.h: Likewise.
29571 * gnulib/fnmatch.c: Likewise.
29572 * gnulib/fnmatch_loop.c: Likewise.
29573 * gnulib/getdelim.c: Likewise.
29574 * gnulib/getline.c: Likewise.
29575 * gnulib/getopt.c: Likewise.
29576 * gnulib/getopt1.c: Likewise.
29577 * gnulib/getopt_int.h: Likewise.
29578 * gnulib/gettext.h: Likewise.
29579 * gnulib/progname.c: Likewise.
29580 * gnulib/progname.h: Likewise.
29581
29582 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29583
29584 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29585 which is the case with --disabled-nls.
29586
29587 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29588 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29589 * util/misc.c: Likewise.
29590 * util/mkisofs/mkisofs.c: Likewise.
29591 * util/mkisofs/mkisofs.h: Likewise.
29592
29593 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29594
29595 Simplify Apple CC support.
29596
29597 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29598 Add 0 byte at the end not to have a symbol with empty target.
29599 * mmap/i386/pc/mmap_helper.S: Likewise.
29600 * genmk.rb: Ignore errors 2030 and 2050.
29601 * kern/i386/pc/startup.S: Use LOCAL when possible.
29602
29603 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29604
29605 Testcase and the fix for final semicolon on cmdline.
29606
29607 * tests/grub_script_final_semicolon.in: New testcase.
29608 * conf/tests.rmk: Rules for the new testcase.
29609 * script/parser.y: Grammar fix.
29610
29611 2010-03-26 BVK Chaitanya <bvk@localhost>
29612
29613 Blank lines testcase for GRUB script.
29614
29615 * tests/grub_script_blanklines.in: New testcase.
29616 * conf/tests.rmk: Rules for the new testcase.
29617
29618 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29619
29620 Don't use __FILE__.
29621
29622 * genmk.rb: Add -DGRUB_FILE to all C targets.
29623 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29624 * include/grub/list.h: Likewise.
29625 * include/grub/misc.h: Likewise.
29626 * include/grub/mm.h: Likewise.
29627 * include/grub/test.h: Likewise.
29628 * kern/mm.c: Likewise.
29629 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29630
29631 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29632
29633 Sunpc partitions support.
29634
29635 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29636 (grub_fstest_SOURCES): Likewise.
29637 (pkglib_MODULES): Add part_sunpc.mod.
29638 (part_sunpc_mod_SOURCES): New variable.
29639 (part_sunpc_mod_CFLAGS): Likewise.
29640 (part_sunpc_mod_LDFLAGS): Likewise.
29641 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29642 * partmap/sunpc.c: New file.
29643
29644 2010-03-26 BVK Chaitanya <bvk@localhost>
29645
29646 For loop support to GRUB script.
29647
29648 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29649 (grub_script_create_cmdfor): New function prototype.
29650 (grub_script_execute_cmdfor): New function prototype.
29651 * script/execute.c (grub_script_execute_cmdfor): New function.
29652 * script/parser.y (command): New for command.
29653 (forcmd): New grammar rule.
29654 * script/script.c (grub_script_create_cmdfor): New function.
29655 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29656 function.
29657 * tests/grub_script_for1.in: New testcase.
29658 * conf/tests.rmk: Rules for new testcase.
29659
29660 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29661
29662 Nested partitions
29663
29664 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29665 'partition' is NULL, grub_partition_get_start already does that.
29666 * commands/loadenv.c (check_blocklists): Likewise.
29667 (write_blocklists): Likewise.
29668 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29669 (grub_fstest_SOURCES): Likewise.
29670 (pkglib_MODULES): Add part_bsd.mod.
29671 (part_bsd_mod_SOURCES): New variable.
29672 (part_bsd_mod_CFLAGS): Likewise.
29673 (part_bsd_mod_LDFLAGS): Likewise.
29674 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29675 (grub_emu_SOURCES): Likewise.
29676 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29677 * include/grub/bsdlabel.h: New file.
29678 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29679 'get_name'.
29680 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29681 (grub_partition_map_list): New variable.
29682 (grub_partition_map_register): Inline.
29683 (grub_partition_map_unregister): Likewise.
29684 (FOR_PARTITION_MAPS): New macro.
29685 (grub_partition_map_iterate): Removed.
29686 (grub_partition_get_start): Handle nested partitions.
29687 * include/grub/msdos_partition.h: Remove bsd-related entries.
29688 (grub_pc_partition): Remove.
29689 * kern/disk.c (grub_disk_close): Free partition data.
29690 (grub_disk_adjust_range): Handle nested partitions.
29691 * kern/partition.c (grub_partition_map_probe): New function.
29692 (grub_partition_probe): Parse name to number, handle subpartitions.
29693 (get_partmap): New function.
29694 (grub_partition_iterate): Handle subpartitions.
29695 (grub_partition_get_name): Likewise.
29696 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29697 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29698 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29699 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29700 Set 'number'.
29701 (acorn_partition_map_probe): Remove.
29702 (acorn_partition_map_get_name): Likewise.
29703 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29704 Set 'number'.
29705 Set 'index' to 0 since there can be only one partition entry per sector.
29706 (amiga_partition_map_probe): Remove.
29707 (amiga_partition_map_get_name): Likewise.
29708 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29709 Set 'number'.
29710 Set 'offset' and 'index' to real positions of partitions.
29711 (apple_partition_map_probe): Remove.
29712 (apple_partition_map_get_name): Likewise.
29713 * partmap/bsdlabel.c: New file.
29714 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29715 Set 'number'.
29716 Allocate 'data' so it can be correctly freed.
29717 Set 'index' to offset inside sector.
29718 (gpt_partition_map_probe): Remove.
29719 (gpt_partition_map_get_name): Likewise.
29720 * partmap/msdos.c (grub_partition_parse): Remove.
29721 (pc_partition_map_iterate): Don't force raw access.
29722 Set 'number'.
29723 Make 'ext_offset' a local variable.
29724 (pc_partition_map_probe): Remove.
29725 (pc_partition_map_get_name): Remove.
29726 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29727 Set 'number'.
29728 (sun_partition_map_probe): Remove.
29729 (sun_partition_map_get_name): Likewise.
29730 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29731 (grub_pcpart_type): Likewise.
29732 * util/hostdisk.c (open_device): Handle new numbering scheme.
29733 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29734 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29735 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29736 * util/grub-install.in: Insert all subpartition modules.
29737 * util/ieee1275/grub-install.in: Likewise.
29738
29739 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29740
29741 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29742 grammar.
29743
29744 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29745
29746 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29747
29748 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29749
29750 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29751 match where 'make install' puts them.
29752 * util/i386/efi/grub-install.in: Likewise.
29753
29754 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29755
29756 * .bzrignore: Add gentrigtables, grub-script-check,
29757 grub_script_check_init.c, grub_script_check_init.h, and
29758 trigtables.c.
29759
29760 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29761
29762 * kern/parser.c: Indented.
29763
29764 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29765
29766 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29767
29768 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29769
29770 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29771 alpha_mask_size == 0 case.
29772
29773 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29774
29775 GRUB shell lexer and parser improvements.
29776
29777 * conf/any-emu.rmk: Build rule updates.
29778 * conf/common.rmk: Likewise.
29779 * conf/i386-coreboot.rmk: Likewise.
29780 * conf/i386-efi.rmk: Likewise.
29781 * conf/i386-ieee1275.rmk: Likewise.
29782 * conf/i386-pc.rmk: Likewise.
29783 * conf/powerpc-ieee1275.rmk: Likewise.
29784 * conf/x86_64-efi.rmk: Likewise.
29785
29786 * configure.ac: Configure check for flex.
29787
29788 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29789 types.
29790 (grub_lexer_param): Struct member updates.
29791 (grub_parser_param): Likewise.
29792 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29793 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29794 (grub_script_lexer_init): Prototype update.
29795 (grub_script_lexer_record_start): Likewise.
29796 (grub_script_lexer_record_stop): Likewise.
29797 (grub_script_lexer_yywrap): New function prototype.
29798 (grub_script_lexer_fini): Likewise.
29799 (grub_script_execute_argument_to_string): Removed by...
29800 (grub_script_execute_argument_to_argv): ...better version.
29801
29802 * script/execute.c (ROUND_UPTO): New macro.
29803 (grub_script_execute_cmdline): Out of memory fixes.
29804 (grub_script_execute_menuentry): Likewise.
29805 (grub_script_execute_argument_to_string): Removed. Update all
29806 users by...
29807 (grub_script_execute_argument_to_argv): ...better version.
29808 * script/function.c (grub_script_function_create): Use
29809 grub_script_execute_argument_to_argv instead of
29810 grub_script_execute_argument_to_string.
29811
29812 * script/lexer.c (check_varstate): Removed.
29813 (check_textstate): Removed.
29814 (grub_script_lexer_record_start): Likewise.
29815 (grub_script_lexer_record_stop): Likewise.
29816 (recordchar): Replaced with...
29817 (grub_script_lexer_record): ...new function.
29818 (nextchar): Removed.
29819 (grub_script_lexer_init): Rewritten.
29820 (grub_script_yylex): Rewritten.
29821 (append_newline): New function.
29822 (grub_script_lexer_yywrap): New function.
29823 (grub_script_lexer_fini): New function.
29824 (grub_script_yyerror): Sets error flag.
29825
29826 * script/yylex.l: New file.
29827 (grub_lexer_yyfree): Wrapper for flex yyffre.
29828 (grub_lexer_yyalloc): Likewise.
29829 (grub_lexer_yyrealloc): Likewise.
29830 * script/parser.y: Refactored.
29831
29832 * script/script.c (grub_script_arg_add): Out of memory fixes.
29833 (grub_script_add_arglist): Likewise.
29834 (grub_script_create_cmdline): Likewise.
29835 (grub_script_create_cmdmenu): Likewise.
29836 (grub_script_add_cmd): Likewise.
29837 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29838 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29839 unnecessary code.
29840
29841 * tests/grub_script_echo1.in: New testcase.
29842 * tests/grub_script_vars1.in: New testcase.
29843 * tests/grub_script_echo_keywords.in: New testcase.
29844
29845 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29846
29847 Remove some redundancy in build system.
29848
29849 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29850 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29851 (TARGET_LDFLAGS): Add -nostdlib.
29852 (TARGET_IMG_LDFLAGS): Likewise.
29853 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29854 anything since mmap isn't available.
29855 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29856 Add util/time.c.
29857 (pkglib_MODULES): Remove reboot.mod.
29858 (reboot_mod_SOURCES): Removed.
29859 (reboot_mod_CFLAGS): Likewise.
29860 (reboot_mod_LDFLAGS): Likewise.
29861 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29862 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29863 (DEFSYMFILES): Add kernel_syms.lst.
29864 (kernel_img_HEADERS): Add common headers.
29865 (symlist.c): New target.
29866 (kernel_syms.lst): Likewise.
29867 (pkglib_MODULES): Add memdisk.mod.
29868 (memdisk_mod_SOURCES): New variable.
29869 (memdisk_mod_CFLAGS): Likewise.
29870 (memdisk_mod_LDFLAGS): Likewise.
29871 (pkglib_MODULES): Add reboot.mod.
29872 (reboot_mod_SOURCES): New variable.
29873 (reboot_mod_CFLAGS): Likewise.
29874 (reboot_mod_LDFLAGS): Likewise.
29875 (pkglib_MODULES): Add date.mod.
29876 (date_mod_SOURCES): New variable.
29877 (date_mod_CFLAGS): Likewise.
29878 (date_mod_LDFLAGS): Likewise.
29879 (pkglib_MODULES): Add datehook.mod.
29880 (datehook_mod_SOURCES): New variable.
29881 (datehook_mod_CFLAGS): Likewise.
29882 (datehook_mod_LDFLAGS): Likewise.
29883 (pkglib_MODULES): Add lsmmap.mod.
29884 (lsmmap_mod_SOURCES): New variable.
29885 (lsmmap_mod_CFLAGS): Likewise.
29886 (lsmmap_mod_LDFLAGS): Likewise.
29887 (pkglib_MODULES): Add boot.mod.
29888 (boot_mod_SOURCES): New variable.
29889 (boot_mod_CFLAGS): Likewise.
29890 (boot_mod_LDFLAGS): Likewise.
29891 * conf/i386-coreboot.rmk: Removed redundant parts.
29892 * conf/i386-ieee1275.rmk: Likewise.
29893 * conf/i386-pc.rmk: Likewise.
29894 * conf/mips-yeeloong.rmk: Likewise.
29895 * conf/mips.rmk: Likewise.
29896 * conf/powerpc-ieee1275.rmk: Likewise.
29897 * conf/sparc64-ieee1275.rmk: Likewise.
29898 * conf/x86_64-efi.rmk: Likewise.
29899 * conf/i386-coreboot.rmk: Moved qemu parts ..
29900 * conf/i386-qemu.rmk: ... here
29901 * conf/i386-efi.rmk: Moved common parts to...
29902 * conf/x86-efi.rmk: ... here.
29903 * conf/i386.rmk: Added modules common to all x86 variants.
29904 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29905 * disk/memdisk.c: Remove grub/machine/kernel.h.
29906 * gensymlist.sh.in: Include symbol.h.
29907 * hook/datehook.c: Correct module name.
29908 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29909 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29910 * include/grub/i386/efi/serial.h: New file.
29911 * include/grub/x86_64/efi/serial.h: Likewise.
29912 * util/time.c: Likewise.
29913 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29914
29915 2010-03-14 Colin King <colin.king@ubuntu.com>
29916 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29917
29918 Shrink the pre-partition-table part of boot.img by eight bytes.
29919
29920 * boot/i386/pc/boot.S (ERR): New macro.
29921 (chs_mode): Use ERR.
29922 (geometry_error): Likewise.
29923 (hd_probe_error): Remove. This is only used once, so we wrwite
29924 it inline instead.
29925 (read_error): Instead of printing read_error_string, just set up
29926 %si and fall through to ...
29927 (error_message): ... this new function, also used by ERR.
29928
29929 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29930
29931 Speed up consecutive hostdisk operations on the same device.
29932
29933 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29934 (grub_util_biosdisk_open): Initialise disk->data.
29935 (struct linux_partition_cache): New structure.
29936 (linux_find_partition): Cache partition start positions; these are
29937 expensive to compute on every read and write.
29938 (open_device): Cache open file descriptor in disk->data, so that we
29939 don't have to reopen it and flush the buffer cache for consecutive
29940 operations on the same device.
29941 (grub_util_biosdisk_close): New function.
29942 (grub_util_biosdisk_dev): Set `close' member.
29943
29944 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29945 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29946 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29947 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29948 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29949
29950 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29951
29952 Compile parts of grub-emu as modules.
29953
29954 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29955 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29956 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29957 (all-local): Add $(GRUB_EMU).
29958 (install-local): Install $(GRUB_EMU).
29959 (uninstall): Uninstall $(GRUB_EMU).
29960 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29961 * kern/dl.c: Likewise.
29962 * commands/sleep.c: Not include machine/time.h.
29963 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29964 (COMMON_CFLAGS): Likewise.
29965 (sbin_UTILITIES): Remove grub-emu.
29966 (grub_emu_SOURCES): Removed.
29967 (kernel_img_RELOCATABLE): New variable.
29968 (pkglib_PROGRAMS): Add kernel.img.
29969 (kernel_img_SOURCES): New variable
29970 (kernel_img_CFLAGS): Likewise.
29971 (kernel_img_LDFLAGS): Likewise.
29972 (TARGET_NO_STRIP): Likewise.
29973 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29974 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
29975 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
29976 (grub-emu): New target.
29977 (GRUB_EMU): New variable.
29978 * configure.ac: Whitelist -emu as possible x86_64 architecture.
29979 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
29980 * loader/xnu.c: Likewise.
29981 * include/grub/pci.h: Likewise.
29982 * genemuinit.sh: New file.
29983 * genemuinitheader.sh: Likewise.
29984 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
29985 Support TARGET_NO_DYNAMIC_MODULES.
29986 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
29987 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
29988 * disk/loopback.c: Likewise.
29989 * font/font_cmd.c: Likewise.
29990 * partmap/acorn.c: Likewise.
29991 * partmap/amiga.c: Likewise.
29992 * partmap/apple.c: Likewise.
29993 * partmap/gpt.c: Likewise.
29994 * partmap/msdos.c: Likewise.
29995 * partmap/sun.c: Likewise.
29996 * parttool/msdospart.c: Likewise.
29997 * term/gfxterm.c: Likewise.
29998 * video/bitmap.c: Likewise.
29999 * video/readers/jpeg.c: Likewise.
30000 * video/readers/png.c: Likewise.
30001 * video/readers/tga.c: Likewise.
30002 * video/video.c: Likewise.
30003 * util/grub-emu.c (read_command_list): Removed.
30004 (main): Don't call util_init_nls.
30005 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30006 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30007
30008 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30009
30010 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30011 date.mod, datehook.mod.
30012 (datetime_mod_SOURCES): New variable.
30013 (datetime_mod_CFLAGS): Likewise.
30014 (datetime_mod_LDFLAGS): Likewise.
30015 (date_mod_SOURCES): Likewise.
30016 (date_mod_CFLAGS): Likewise.
30017 (date_mod_LDFLAGS): Likewise.
30018 (datehook_mod_SOURCES): Likewise.
30019 (datehook_mod_CFLAGS): Likewise.
30020 (datehook_mod_LDFLAGS): Likewise.
30021 * conf/sparc64-ieee1275.rmk: Likewise.
30022 * lib/ieee1275/datetime.c: New file.
30023
30024 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30025
30026 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30027 (ieee1275_fb_mod_SOURCES): New variable.
30028 (ieee1275_fb_mod_CFLAGS): Likewise.
30029 (ieee1275_fb_mod_LDFLAGS): Likewise.
30030 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30031 New proto.
30032 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30033 (HEAP_MAX_ADDR): Likewise.
30034 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30035 type.
30036 Correct stop condition.
30037 (grub_ieee1275_devices_iterate): New function.
30038 * video/ieee1275.c: New file.
30039
30040 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30041
30042 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30043
30044 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30045 as scratch.
30046 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30047 SCRATCH_PAD_DISKBOOT as scratch.
30048 (bootit): Pass Openfirmware pointer in %o4.
30049 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30050 of 0x200000.
30051 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30052 with util/grub-mkrawimage.c.
30053 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30054 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30055 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30056 (grub_aout_load) [GRUB_UTIL]: Likewise.
30057 * include/grub/kernel.h (grub_modules_get_end): New proto.
30058 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30059 (SCRATCH_PAD_BOOT): New definition.
30060 (SCRATCH_PAD_DISKBOOT): Likewise.
30061 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30062 * include/grub/sparc64/ieee1275/ieee1275.h
30063 (grub_ieee1275_original_stack): New variable
30064 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30065 New definition
30066 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30067 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30068 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30069 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30070 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30071 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30072 (grub_platform_image_format_t): New type.
30073 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30074 * kern/main.c (grub_modules_get_end)
30075 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30076 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30077 (codestart): Switch stacks.
30078 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30079 variable.
30080 (grub_heap_init): Use grub_modules_get_end.
30081 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30082 stack.
30083 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30084 (main): Likewise.
30085 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30086
30087 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30088
30089 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30090
30091 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30092
30093 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30094 bug #559005).
30095
30096 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30097
30098 * genmoddep.awk: Output all missing symbols and not only first.
30099
30100 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30101
30102 * NEWS: Put the date of 1.98 release.
30103
30104 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30105
30106 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30107 ft2build.h.
30108
30109 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30110
30111 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30112 completition in the middle of string.
30113
30114 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30115
30116 * util/grub-mkrescue.in: Use mktemp with explicit template.
30117
30118 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30119
30120 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30121
30122 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30123
30124 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30125 right pointer.
30126
30127 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30128
30129 Fix FreeBSD compilation.
30130
30131 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30132 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30133
30134 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30135
30136 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30137
30138 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30139
30140 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30141
30142 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30143
30144 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30145
30146 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30147
30148 Support relative image path in theme file.
30149
30150 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30151 (image_set_property): Handle theme_dir and relative path.
30152
30153 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30154
30155 * configure.ac: Alias amd64 to x86_64.
30156
30157 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 * NEWS: mention multiboot on EFI.
30160
30161 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 * kern/main.c (grub_load_modules): Handle errors from init functions of
30164 embeded modules.
30165
30166 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30167
30168 * normal/autofs.c (autoload_fs_module): Handle errors.
30169
30170 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30171
30172 Disable linux.mod on qemu-mips since it's not functional and leads
30173 to compilation failure.
30174
30175 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30176 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30177 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30178 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30179 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30180 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30181 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30182 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30183 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30184 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30185 Reported by: BVK Chaitanya
30186
30187 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30188
30189 * INSTALL: Add gettext as a dependency and add qemu to a new section
30190 "Prerequisites for make-check".
30191
30192 2010-03-04 Christian Franke <franke@computer.org>
30193
30194 * util/grub-pe2elf.c: Add missing include "progname.h".
30195
30196 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30197
30198 * normal/crypto.c (read_crypto_list): Fix a typo.
30199 Reported by: Seth Goldberg.
30200
30201 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30202
30203 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30204 Reported by: Seth Goldberg.
30205
30206 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30207
30208 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30209 ascii.bitmaps.
30210
30211 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30212
30213 * genmk.rb: Remove terminal*.lst in make clean.
30214 Reported by: Seth Goldberg.
30215
30216 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30217
30218 * util/i386/efi/grub-install.in: Copy gettext files.
30219
30220 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30221
30222 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30223
30224 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30225
30226 Wait for user entry basing on presence of output rather than on errors.
30227
30228 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30229 (grub_install_newline_hook): Likewise.
30230 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30231 * normal/menu.c (show_menu): Check line_counter to determine presence
30232 of output.
30233 * normal/term.c (grub_normal_line_counter): New variable.
30234 (grub_normal_get_line_counter): New function.
30235 (grub_install_newline_hook): Likewise.
30236
30237 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30238
30239 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30240
30241 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30242
30243 * configure.ac: Update version to 1.98.
30244
30245 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30246
30247 * util/grub.d/10_linux.in (linux_entry): Don't default to
30248 gfxpayload=keep if Linux doesn't support video handover.
30249
30250 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30251
30252 Don't compile video modules on yeeloong since video subsystem is part
30253 of kernel.
30254
30255 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30256 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30257 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30258 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30259 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30260 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30261 * include/grub/bitmap_scale.h: Likewise.
30262 * include/grub/bufio.h: Likewise.
30263 * include/grub/font.h: Likewise.
30264 * include/grub/gfxterm.h: Likewise.
30265 * include/grub/video.h: Likewise.
30266 * include/grub/vbe.h: Don't include video_fb.h.
30267 * video/i386/pc/vbe.c: Include video_fb.h.
30268 * commands/i386/pc/vbetest.c: Include video.h.
30269
30270 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30271
30272 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30273 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30274 default entry if GRUB_SAVEDEFAULT=true. This allows using
30275 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30276 saving a new default on every boot.
30277
30278 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30279
30280 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30281 * normal/term.c (read_terminal_list): Likewise.
30282 * normal/main.c (grub_normal_init_page): Likewise.
30283 (grub_normal_read_line_real): Likewise.
30284
30285 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30286
30287 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30288 memory leak.
30289 Reported by: Seth Goldberg.
30290
30291 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30292
30293 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30294 duplicate declaration of `start'.
30295
30296 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30297
30298 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30299 filename.
30300 Reported by: Georgy Buranov
30301
30302 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30303
30304 * util/grub-mkrawimage.c (usage): Change string formatting to
30305 improve gettext.
30306
30307 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30308
30309 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30310 backspace keys.
30311
30312 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30313
30314 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30315 Reported by: Michael Suchanek.
30316
30317 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30318
30319 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30320 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30321
30322 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30323
30324 Remove any reference to non-free fonts.
30325
30326 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30327 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30328 uses non-free components.
30329 * font/font.c (grub_font_get_name): Remove example name.
30330 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30331 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30332 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30333 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30334
30335 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30336
30337 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30338
30339 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30340
30341 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30342 Double divisor.
30343 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30344 features.
30345 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30346
30347 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30348
30349 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30350
30351 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30352
30353 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30354 * docs/grub.texi (Command-line and menu entry commands): Document play
30355 command.
30356
30357 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30358
30359 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30360 parse arguments as inline tempo and notes. Move code for playing notes
30361 to...
30362 (play): ... new function.
30363
30364 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30365
30366 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30367 grub_uint16_t instead of short.
30368 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30369 disk from little endian to cpu endianness.
30370
30371 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30372
30373 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30374 GRUB_TICKS_PER_SECOND instead of 120.
30375
30376 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30377
30378 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30379 escape sequence after \e.
30380
30381 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30382
30383 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30384 non-ASCII characters.
30385
30386 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30387
30388 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30389 set root in single quotes to prevent \, from being unescaped.
30390
30391 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30392
30393 Prevent unknown commands from stopping menuentry execution.
30394
30395 * script/execute.c (grub_script_execute_cmdline): Print error after
30396 unknown command.
30397
30398 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30399
30400 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30401 Reported by: Pavel Pisa.
30402
30403 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30404
30405 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30406
30407 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30408
30409 Merge grub_ieee1275_map_physical into grub_map and rename to
30410 grub_ieee1275_map
30411
30412 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30413 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30414 Remove.
30415 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30416 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30417 necessary.
30418 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30419
30420 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30421
30422 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30423 opening and not after.
30424
30425 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30426
30427 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30428 constants.
30429
30430 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30431
30432 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30433 (alloc_phys): Use ALIGN_UP instead of align_addr.
30434
30435 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30436
30437 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30438
30439 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30440
30441 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30442
30443 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30444
30445 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30446 verbose dprintf.
30447
30448 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30449
30450 Fix over-4GiB seek on sparc64.
30451
30452 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30453 Replace pos_i and pos_lo with pos. All users updated.
30454 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30455 New constant.
30456 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30457 Likewise.
30458 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30459 and pos_lo.
30460
30461 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30462
30463 * util/grub-mkrawimage.c (main): Call set_program_name.
30464
30465 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30466
30467 Properly align 64-bit targets.
30468
30469 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30470 (generate_image): Use ALIGN_ADDR.
30471
30472 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30473
30474 Properly create cross-endian images.
30475
30476 * include/grub/types.h (grub_host_to_target_addr): New macro
30477 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30478
30479 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30480
30481 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30482
30483 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30484
30485 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30486
30487 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30488 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30489 (grub_linux_boot): Divide by 64K when on VESA.
30490
30491 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30492
30493 Support GRUB_GFXPAYLOAD_LINUX.
30494
30495 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30496 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30497
30498 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30499
30500 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30501 to show messages instead of discarding them.
30502 Process errors after executing command and not before. Keep old method
30503 too as precaution.
30504
30505 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30506
30507 * configure.ac: Check for ft2build.h.
30508
30509 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30510
30511 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30512
30513 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30514
30515 * genkernsyms.sh.in: Use TARGET_CC.
30516
30517 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30518
30519 * NEWS: Update.
30520
30521 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30522
30523 * include/grub/multiboot2.h: Remove leftover file.
30524 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30525 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30526
30527 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30528
30529 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30530
30531 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30532
30533 Fix warnings in grub-emu when compiling with maximum warning options.
30534
30535 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30536 (grub_arch_modules_addr): Return 0 and not NULL.
30537 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30538 (xstrdup): Use newstr instead of dup.
30539 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30540 of disk to dsk to avoid shadowing.
30541 (find_free_slot): Fix prototype.
30542 * util/getroot.c (grub_util_is_dmraid): Make static.
30543 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30544 Add missing prototype.
30545 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30546
30547 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30548
30549 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30550 appropriately.
30551
30552 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30553
30554 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30555 code out.
30556
30557 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30558
30559 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30560 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30561 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30562 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30563 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30564 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30565
30566 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 * include/grub/err.h (grub_err_printf): Don't export.
30569
30570 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30571
30572 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30573
30574 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30575
30576 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30577 * kern/misc.c (grub_gettext_dummy): Make static.
30578
30579 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30580
30581 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30582 by non-valid ones.
30583 * kern/term.c (grub_putchar): Likewise.
30584
30585 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30586
30587 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30588 buggy hook call and memory leak.
30589
30590 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30591
30592 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30593
30594 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30595
30596 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30597
30598 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30599
30600 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30601 modevar.
30602 Return grub_errno on allocation error.
30603
30604 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30605
30606 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30607
30608 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30609
30610 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30611 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30612
30613 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30614
30615 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30616 non-pxe disk.
30617 (grub_pxefs_open): Likewise.
30618
30619 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30620
30621 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30622 * util/grub.d/10_kfreebsd.in: Likewise.
30623 * util/grub.d/10_linux.in: Likewise.
30624
30625 2010-02-06 Colin D Bennett <colin@gibibit.com>
30626
30627 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30628 (gfxmenu_mod_SOURCES): New variable.
30629 (gfxmenu_mod_CFLAGS): Likewise.
30630 (gfxmenu_mod_LDFLAGS): Likewise.
30631 * include/grub/term.h (grub_term_set_current_output): Declare
30632 argument as const.
30633 * docs/gfxmenu-theme-example.txt: New file.
30634 * gfxmenu/gfxmenu.c: Likewise.
30635 * gfxmenu/gui_box.c: Likewise.
30636 * gfxmenu/gui_canvas.c: Likewise.
30637 * gfxmenu/gui_circular_progress.c: Likewise.
30638 * gfxmenu/gui_image.c: Likewise.
30639 * gfxmenu/gui_label.c: Likewise.
30640 * gfxmenu/gui_list.c: Likewise.
30641 * gfxmenu/gui_progress_bar.c: Likewise.
30642 * gfxmenu/gui_string_util.c: Likewise.
30643 * gfxmenu/gui_util.c: Likewise.
30644 * gfxmenu/icon_manager.c: Likewise.
30645 * gfxmenu/model.c: Likewise.
30646 * gfxmenu/named_colors.c: Likewise.
30647 * gfxmenu/theme_loader.c: Likewise.
30648 * gfxmenu/view.c: Likewise.
30649 * gfxmenu/widget-box.c: Likewise.
30650 * include/grub/gfxmenu_model.h: Likewise.
30651 * include/grub/gfxmenu_view.h: Likewise.
30652 * include/grub/gfxwidgets.h: Likewise.
30653 * include/grub/gui.h: Likewise.
30654 * include/grub/gui_string_util.h: Likewise.
30655 * include/grub/icon_manager.h: Likewise.
30656
30657 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30658
30659 Agglomerate scrolling in gfxterm.
30660
30661 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30662 (grub_virtual_screen_setup): Initialise 'total_screen'.
30663 (write_char): Split to ...
30664 (paint_char): ... this ...
30665 (write_char): ... and this.
30666 (paint_char): Handle delayed scrolling.
30667 (draw_cursor): Likewise.
30668 (scroll_up): Split to ...
30669 (real_scroll): ... this ...
30670 (scroll_up): ... and this.
30671 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30672 characters.
30673 (grub_gfxterm_refresh): Call real_scroll.
30674
30675 2010-02-06 Colin D Bennett <colin@gibibit.com>
30676
30677 * include/grub/misc.h (grub_iscntrl): New inline function.
30678 (grub_isalnum): Likewise.
30679 (grub_strtol): Likewise.
30680
30681 2010-02-06 Colin D Bennett <colin@gibibit.com>
30682
30683 * normal/menu_text.c (get_entry_number): Move from here ...
30684 * normal/menu.c (get_entry_number): ... moved here.
30685 * include/grub/menu.h (grub_menu_get_default_entry_index):
30686 New prototype.
30687 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30688 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30689 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30690 (grub_menu_viewer_should_return): Likewise.
30691 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30692 * normal/menu_text.c (run_menu): Enable menu switching.
30693 * normal/menu_viewer.c (should_return): New variable.
30694 (menu_viewer_changed): Likewise.
30695 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30696 (grub_menu_viewer_should_return): New function.
30697 (menuviewer_write_hook): Likewise.
30698 (grub_menu_viewer_init): Likewise.
30699
30700 2010-02-06 Colin D Bennet <colin@gibibit.com>
30701 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30702
30703 Support for gfxterm in a window.
30704
30705 * include/grub/gfxterm.h: New file.
30706 * include/grub/video.h (struct grub_video_rect): New declaration.
30707 (grub_video_rect_t): Likewise.
30708 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30709 (refcount): New variable.
30710 (render_target): Likewise.
30711 (window): Likewise.
30712 (repaint_callback): Likewise.
30713 (grub_virtual_screen_setup): Use 'render_target'.
30714 (init_window): New function.
30715 (grub_gfxterm_init_window): Likewise.
30716 (grub_gfxterm_init): Check reference counter.
30717 Use init_window.
30718 (destroy_window): New function.
30719 (grub_gfxterm_destroy_window): Likewise.
30720 (grub_gfxterm_fini): Check reference counter.
30721 Use destroy_window.
30722 (redraw_screen_rect): Restore viewport.
30723 Use 'render_target' and 'window'.
30724 Call 'repaint_callback'.
30725 (write_char): Use 'render_target'.
30726 (draw_cursor): Likewise.
30727 (scroll_up): Restore viewport.
30728 Use 'render_target' and 'window'.
30729 Call 'repaint_callback'.
30730 (grub_gfxterm_cls): Likewise.
30731 (grub_gfxterm_refresh): Use 'window'.
30732 (grub_gfxterm_set_repaint_callback): New function.
30733 (grub_gfxterm_background_image_cmd): Use 'window'.
30734 (grub_gfxterm_get_term): New function.
30735 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30736
30737 2010-02-06 Colin D Bennett <colin@gibibit.com>
30738
30739 Bitmap scaling support.
30740
30741 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30742 (bitmap_scale_mod_SOURCES): New variable.
30743 (bitmap_scale_mod_CFLAGS): Likewise.
30744 (bitmap_scale_mod_LDFLAGS): Likewise.
30745 * include/grub/bitmap_scale.h: New file.
30746 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30747 (background_image_cmd_options): New variable.
30748 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30749 (cmd): Rename and change type to ...
30750 (background_image_cmd_handle): ... this. All users updated.
30751 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30752 * video/bitmap_scale.c: New file.
30753
30754 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30755
30756 SDL support.
30757
30758 * Makefile.in (LIBSDL): New variable.
30759 (enable_grub_emu_sdl): Likewise.
30760 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30761 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30762 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30763 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30764 * util/sdl.c: New file.
30765
30766 2010-02-06 Colin D Bennett <colin@gibibit.com>
30767 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30768
30769 Double buffering support.
30770
30771 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30772 * include/grub/video.h: Update comment.
30773 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30774 New type.
30775 (grub_video_fb_doublebuf_blit_init): New prototype.
30776 * term/gfxterm.c (scroll_up): Support double buffering.
30777 (grub_gfxterm_refresh): Likewise.
30778 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30779 (grub_video_fb_doublebuf_blit_init): Likewise.
30780 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30781 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30782 'displayed_page', 'render_page' and 'update_screen'.
30783 (grub_video_vbe_fini): Free offscreen buffer.
30784 (doublebuf_pageflipping_commit): New function.
30785 (doublebuf_pageflipping_update_screen): Likewise.
30786 (doublebuf_pageflipping_init): Likewise.
30787 (double_buffering_init): Likewise.
30788 (grub_video_vbe_setup): Enable doublebuffering.
30789 (grub_video_vbe_swap_buffers): Implement.
30790 (grub_video_vbe_set_active_render_target): Handle double buffering.
30791 (grub_video_vbe_get_active_render_target): Likewise.
30792 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30793 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30794 (grub_video_vbe_enable_double_buffering): Likewise.
30795 (grub_video_vbe_swap_buffers): Use update_screen.
30796 (grub_video_set_mode): Use double buffering.
30797
30798 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30799
30800 * maintainance/gentrigtables.py: Remove.
30801 * lib/trig.c: Likewise.
30802
30803 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30804
30805 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30806 `trigtables.c'.
30807 (trigtables.c): New rule.
30808 (gentrigtables): Likewise.
30809 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30810
30811 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30812
30813 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30814 integer constants.
30815
30816 2010-02-06 Colin D Bennet <colin@gibibit.com>
30817
30818 Trigonometry support.
30819
30820 * include/grub/trig.h: New file.
30821 * lib/trig.c: Likewise.
30822 * maintainance/gentrigtables.py: Likewise.
30823 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30824 (trig_mod_SOURCES): New variable.
30825 (trig_mod_CFLAGS): Likewise.
30826 (trig_mod_LDFLAGS): Likewise.
30827
30828 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30829
30830 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30831 disk devices.
30832
30833 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30834
30835 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30836 error.
30837
30838 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30839
30840 * util/hostdisk.c (open_device): Don't use partition device when reading
30841 before the partition.
30842 (grub_util_biosdisk_read): Don't read from partition and before the
30843 partition in single operation.
30844 (grub_util_biosdisk_write): Don't write to partition and before the
30845 partition in single operation.
30846
30847 2010-02-03 Torsten Landschoff <torsten@debian.org>
30848
30849 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30850 last sectors.
30851
30852 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30853
30854 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30855 CDROM reads.
30856 (grub_biosdisk_write): Refuse to write to CDROM.
30857
30858 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30859
30860 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30861
30862 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30863
30864 * font/font.c (find_glyph): Check that bmp_idx is available before
30865 using it.
30866 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30867 with (font == NULL).
30868
30869 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30870
30871 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30872
30873 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30874
30875 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30876 * util/grub-script-check.c (getline): Fix empty lines case.
30877
30878 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30879
30880 * Makefile.in (check): Exit with fail status when one of the tests
30881 fails.
30882 * tests/example_functional_test.c (example_test): Fix reversed assert.
30883 * tests/example_unit_test.c (example_test): Likewise.
30884
30885 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30886
30887 * util/grub.d/10_linux.in: This script does not use any of the
30888 contents of gettext.sh, only the external command `gettext', so stop
30889 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30890 the same prefix as GRUB.)
30891 * util/grub.d/10_kfreebsd.in: Likewise.
30892
30893 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30894
30895 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30896 of the line.
30897
30898 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30899
30900 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30901 last sectors.
30902
30903 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30904
30905 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30906 having a 4KiB and not 32KiB buffer size.
30907
30908 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30909
30910 * util/hostfs.c: Include `<errno.h>'.
30911 (grub_hostfs_read): Handle errors from fseeko() and fread().
30912
30913 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30914
30915 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30916 loop when using read hooks on files whose size isn't sector-aligned.
30917
30918 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30919
30920 Remove unused parameter.
30921
30922 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30923 (grub_iso9660_open): Remove initialization of `data->length'.
30924
30925 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30926
30927 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30928 memleak conditions.
30929
30930 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30931
30932 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30933 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30934
30935 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30936
30937 * util/bin2h.c (usage): Fix warning (space after backslash).
30938
30939 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30940
30941 * font/font.c: Include `grub/fontformat.h.
30942 Remove font file format constants.
30943 (grub_font_load): Use the new macros.
30944 * include/grub/fontformat.h: New file.
30945 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30946 (write_font_pf2): Use the new macros.
30947
30948 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30949
30950 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30951 does.
30952
30953 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30954
30955 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30956
30957 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30958 (_start): Macroify `0x7F'.
30959
30960 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30961 (make_install_device): Use "(pxe)" as fallback prefix when booting
30962 via PXE.
30963
30964 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30965
30966 * configure.ac: Reset LIBS after check for libgcc symbols.
30967
30968 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30969
30970 * util/hostdisk.c (open_device): Add trailing newline to debug
30971 message.
30972
30973 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30974
30975 * configure.ac: Check for `limits.h'.
30976 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
30977
30978 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
30979
30980 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
30981 capitalize error strings.
30982
30983 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
30984
30985 * util/grub.d/10_hurd.in: Add a recovery mode.
30986
30987 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
30988
30989 * configure.ac: Check for libgcc symbols with -nostdlib.
30990
30991 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
30992
30993 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
30994
30995 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
30996
30997 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
30998 stack since heap may be unavailable at that point.
30999 (grub_ofconsole_gotoxy): Likewise.
31000
31001 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31002
31003 * configure.ac: Check for _restgpr_14_x.
31004 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31005 and _savegpr_* prototypes.
31006
31007 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31008
31009 Use generic grub_reboot() for i386-efi.
31010
31011 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31012 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31013 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31014
31015 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31016
31017 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31018 presence of "prefix" variable as it breaks when normal.mod is
31019 embedded.
31020
31021 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31022
31023 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31024 stack since heap is unavailable at that point.
31025
31026 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31027
31028 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31029 (grub_freebsd_bootinfo): Rewritten.
31030 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31031
31032 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31033
31034 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31035
31036 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31037
31038 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31039 domain now.
31040
31041 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31042
31043 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31044 around for handling "/" to the correct fix. Fix a memory leak. Use
31045 xstrdup instead of strdup.
31046
31047 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31048
31049 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31050
31051 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31052
31053 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31054
31055 * font/font.c (struct grub_font): New member 'bmp_idx'.
31056 (font_init): Initialise 'bmp_idx'.
31057 (load_font_index): Fill 'bmp_idx'.
31058 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31059
31060 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31061
31062 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31063 unnecessary calls.
31064
31065 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31066
31067 Move context handling out of the kernel.
31068
31069 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31070 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31071 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31072 * conf/i386-efi.rmk: Likewise.
31073 * conf/i386-ieee1275.rmk: Likewise.
31074 * conf/i386-pc.rmk: Likewise.
31075 * conf/powerpc-ieee1275.rmk: Likewise.
31076 * conf/sparc64-ieee1275.rmk: Likewise.
31077 * conf/x86_64-efi.rmk: Likewise.
31078 * include/grub/env.h: Include grub/menu.h.
31079 (grub_env_var_type): Removed.
31080 (grub_env_var): Replaced field 'type' with 'global'.
31081 (grub_env_find): New prototype.
31082 (grub_env_context_open): Remove EXPORT_FUNC.
31083 (grub_env_context_close): Likewise.
31084 (grub_env_export): Likewise.
31085 (grub_env_set_data_slot): Removed.
31086 (grub_env_get_data_slot): Likewise.
31087 (grub_env_unset_data_slot): Likewise.
31088 (grub_env_unset_menu): New prototype.
31089 (grub_env_set_menu): Likewise.
31090 (grub_env_get_menu): Likewise.
31091 * include/grub/env_private.h: New file.
31092 * include/grub/normal.h (grub_context_init): New prototype.
31093 (grub_context_fini): Likewise.
31094 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31095 * normal/context.c (grub_cmd_export): ... to here.
31096 * kern/env.c: Include env_private.h.
31097 (HASHSZ): Moved to include/grub/env_private.h.
31098 (grub_env_context): Likewise.
31099 (grub_env_sorted_var): Likewise.
31100 (current_context): Renamed from this ...
31101 (grub_current_context): ...to this. 'static' removed. All users updated.
31102 (grub_env_find): Removed 'static'.
31103 (grub_env_context_open): Moved to normal/context.c.
31104 (grub_env_context_close): Likewise.
31105 (grub_env_export): Likewise.
31106 (mangle_data_slot_name): Removed.
31107 (grub_env_set_data_slot): Likewise.
31108 (grub_env_get_data_slot): Likewise.
31109 (grub_env_unset_data_slot): Likewise.
31110 * kern/main.c (grub_set_root_dev): Don't export root.
31111 It will be done later.
31112 (grub_main): Don't export prefix.
31113 It will be done later.
31114 * normal/context.c: New file.
31115 * normal/main.c (free_menu): Use grub_env_unset_menu.
31116 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31117 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31118 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31119 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31120
31121 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31122
31123 setpci support.
31124
31125 * commands/setpci.c: New file.
31126 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31127 (setpci_mod_SOURCES): New variable.
31128 (setpci_mod_CFLAGS): Likewise.
31129 (setpci_mod_LDFLAGS): Likewise.
31130
31131 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31132
31133 Byte-addressable PCI configuration space.
31134
31135 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31136 dword address.
31137 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31138 GRUB_PCI_REG_CACHELINE.
31139 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31140 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31141 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31142 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31143 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31144 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31145 grub_pci_make_address.
31146 (lock_rom_area): Likewise.
31147 * commands/lspci.c (grub_lspci_iter): Use macroses
31148 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31149 of grub_pci_make_address.
31150 * disk/ata.c (grub_ata_pciinit): Likewise.
31151 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31152 (GRUB_PCI_REG_VENDOR): Likewise.
31153 (GRUB_PCI_REG_DEVICE): Likewise.
31154 (GRUB_PCI_REG_COMMAND): Likewise.
31155 (GRUB_PCI_REG_STATUS): Likewise.
31156 (GRUB_PCI_REG_REVISION): Likewise.
31157 (GRUB_PCI_REG_CLASS): Likewise.
31158 (GRUB_PCI_REG_CACHELINE): Likewise.
31159 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31160 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31161 (GRUB_PCI_REG_BIST): Likewise.
31162 (GRUB_PCI_REG_ADDRESSES): Likewise.
31163 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31164 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31165 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31166 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31167 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31168 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31169 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31170 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31171 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31172 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31173 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31174 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31175 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31176 (GRUB_PCI_REG_MIN_GNT): Likewise.
31177 (GRUB_PCI_REG_MAX_LAT): Likewise.
31178 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31179 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31180 * video/efi_uga.c (find_framebuf): Likewise.
31181 * video/sm712.c (grub_video_sm712_setup): Likewise.
31182 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31183 space.
31184
31185 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31186
31187 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31188 can be reliably determined to be supported.
31189
31190 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31191
31192 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31193 that VESA is supported.
31194 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31195 supported.
31196
31197 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31198
31199 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31200
31201 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31202
31203 * util/misc.c (make_system_path_relative_to_its_root): Work around
31204 special-casing of "/", as previous incarnation of this routine did.
31205
31206 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31207
31208 Fix any-emu compilation.
31209
31210 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31211 * grub_bin2h_SOURCES: New variable.
31212
31213 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31214
31215 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31216
31217 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31218
31219 * util/grub.d/00_header.in: Fix handling of locale_dir.
31220
31221 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31222
31223 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31224 as possible unifont location (Gentoo).
31225 Reported by: Alexander Brüning
31226
31227 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31228
31229 Don't try to generate lists for kernel.img.
31230
31231 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31232 (pkglib_MODULES): Remove kernel.img.
31233 (kernel_img_EXPORTS): Removed.
31234 (kernel_img_RELOCATABLE): New variable.
31235 * conf/x86_64-efi.rmk: Likewise.
31236 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31237
31238 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31239
31240 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31241 grub_xasprintf or grub_snprintf.
31242 (grub_vsprintf): Likewise.
31243 (grub_snprintf): New proto.
31244 (grub_vsnprintf): Likewise.
31245 (grub_xasprintf): Likewise.
31246 (grub_xvasprintf): Likewise.
31247 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31248 (grub_sprintf): Removed.
31249 (grub_vsnprintf): New function.
31250 (grub_snprintf): Likewise.
31251 (grub_xvasprintf): Likewise.
31252 (grub_xasprintf): Likewise.
31253 (grub_vsprintf): Renamed to ...
31254 (grub_vsnprintf_real): ...this. New argument max_len.
31255
31256 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31257
31258 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31259 fix grub-script-check warning.
31260
31261 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31262
31263 * include/grub/font.h (grub_font_load): Fix prototype.
31264
31265 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31266
31267 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31268
31269 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31270
31271 * include/grub/x86_64/at_keyboard.h: New file.
31272
31273 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31274
31275 * loader/mips/linux.c: Include missing grub/i18n.h.
31276
31277 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31278
31279 * normal/menu.c (notify_execution_failure): Clarify error message.
31280
31281 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31282
31283 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31284 return value (and revert all return statements). Update users.
31285
31286 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31287
31288 * kern/device.c (grub_device_iterate): Allocate new part_ent
31289 structure based on sizeof (*p) rather than sizeof (p->next), to
31290 account for structure padding.
31291
31292 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31293 disk is NULL, which might happen for LVM physical volumes with no
31294 LVM signature.
31295
31296 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31297
31298 * loader/mips/linux.c (grub_cmd_initrd)
31299 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31300
31301 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31302
31303 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31304 (grub_video_video_init, grub_video_bitmap_init)
31305 (grub_font_manager_init, grub_term_gfxterm_init)
31306 (grub_at_keyboard_init): New extern declarations.
31307 (grub_machine_init): Initialize gfxterm and at_keyboard.
31308
31309 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31310
31311 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31312 `gfxterm.mod' into core image.
31313
31314 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31315 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31316 (kernel_img_FORMAT): Copy to ...
31317
31318 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31319 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31320 (kernel_img_FORMAT): ... here, and ...
31321
31322 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31323 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31324 (kernel_img_FORMAT): ... here.
31325
31326 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31327 and input (at_keyboard) terminals in kernel.
31328 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31329
31330 (pkglib_MODULES): Remove `pci.mod'.
31331 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31332 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31333 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31334 (at_keyboard_mod_LDFLAGS): Remove variables.
31335
31336 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31337
31338 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31339
31340 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31341
31342 * include/grub/mips/libgcc.h: Only export symbols for functions
31343 that libgcc provides.
31344
31345 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31346
31347 MIPS support.
31348
31349 * bus/bonito.c: New file.
31350 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31351 GRUB_PCI_NUM_DEVICES.
31352 * term/i386/pc/serial.c: Move to ...
31353 * term/serial.c: ... here. All users updated.
31354 * util/i386/pc/grub-mkimage.c: Move to ...
31355 * util/grub-mkrawimage.c: ... here. All users updated.
31356 * term/i386/pc/at_keyboard.c: Move to ...
31357 * term/at_keyboard.c: ... here. All users updated.
31358 * conf/mips-qemu-mips.rmk: New file.
31359 * conf/mips-yeeloong.rmk: Likewise.
31360 * conf/mips.rmk: Likewise.
31361 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31362 mipsel-qemu-mips.
31363 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31364 to port addresses.
31365 (grub_ata_pciinit): Support CS5536.
31366 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31367 * font/font_cmd.c (loadfont_command): Open file before passing it to
31368 grub_font_load.
31369 (pseudo_file_read): New function.
31370 (pseudo_file_close): Likewise.
31371 (pseudo_fs): New structure.
31372 (load_font_module): New function.
31373 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31374 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31375 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31376 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31377 * include/grub/i386/at_keyboard.h: Split into ...
31378 * include/grub/at_keyboard.h: ... this ...
31379 * include/grub/i386/at_keyboard.h: ... and this.
31380 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31381 New prototype.
31382 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31383 updated.
31384 (grub_elf64_size): Likewise.
31385 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31386 filename.
31387 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31388 * include/grub/i386/coreboot/serial.h: Rewritten.
31389 * include/grub/i386/ieee1275/serial.h: Include
31390 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31391 * include/grub/i386/pc/serial.h: Moved from here ...
31392 * include/grub/serial.h: ... to here. All users updated.
31393 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31394 (GRUB_PCI_NUM_BUS): Likewise.
31395 (GRUB_PCI_NUM_DEVICES): Likewise.
31396 (grub_pci_device_map_range): Add missing volatile keyword.
31397 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31398 * include/grub/mips/at_keyboard.h: New file.
31399 * include/grub/mips/cache.h: Likewise.
31400 * include/grub/mips/io.h: Likewise.
31401 * include/grub/mips/kernel.h: Likewise.
31402 * include/grub/mips/libgcc.h: Likewise.
31403 * include/grub/mips/pci.h: Likewise.
31404 * include/grub/mips/qemu-mips/boot.h: Likewise.
31405 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31406 * include/grub/mips/qemu-mips/loader.h: Likewise.
31407 * include/grub/mips/qemu-mips/memory.h: Likewise.
31408 * include/grub/mips/qemu-mips/serial.h: Likewise.
31409 * include/grub/mips/qemu-mips/time.h: Likewise.
31410 * include/grub/mips/relocator.h: Likewise.
31411 * include/grub/mips/time.h: Likewise.
31412 * include/grub/mips/types.h: Likewise.
31413 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31414 * include/grub/mips/yeeloong/boot.h: Likewise.
31415 * include/grub/mips/yeeloong/kernel.h: Likewise.
31416 * include/grub/mips/yeeloong/loader.h: Likewise.
31417 * include/grub/mips/yeeloong/memory.h: Likewise.
31418 * include/grub/mips/yeeloong/pci.h: Likewise.
31419 * include/grub/mips/yeeloong/serial.h: Likewise.
31420 * include/grub/mips/yeeloong/time.h: Likewise.
31421 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31422 * kern/elf.c (grub_elf32_size): New parameter. All users
31423 updated.
31424 (grub_elf64_size): Likewise.
31425 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31426 Load modules before saying "Welcome to GRUB!".
31427 Call grub_refresh after saying "Welcome to GRUB!".
31428 * kern/mips/cache.S: New file.
31429 * kern/mips/cache_flush.S: Likewise.
31430 * kern/mips/dl.c: Likewise.
31431 * kern/mips/init.c: Likewise.
31432 * kern/mips/qemu-mips/init.c: Likewise.
31433 * kern/mips/startup.S: Likewise.
31434 * kern/mips/yeeloong/init.c: Likewise.
31435 * kern/term.c (grub_putcode): Handle NULL terminal.
31436 (grub_getcharwidth): Likewise.
31437 (grub_getkey): Likewise.
31438 (grub_checkkey): Likewise.
31439 (grub_getkeystatus): Likewise.
31440 (grub_getxy): Likewise.
31441 (grub_getwh): Likewise.
31442 (grub_gotoxy): Likewise.
31443 (grub_cls): Likewise.
31444 (grub_setcolorstate): Likewise.
31445 (grub_setcolor): Likewise.
31446 (grub_getcolor): Likewise.
31447 (grub_refresh): Likewise.
31448 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31449 (write_jump): Add hatch nop.
31450 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31451 * lib/mips/setjmp.S: New file.
31452 * loader/mips/linux.c: Likewise.
31453 * term/i386/pc/at_keyboard.c: Move from here ...
31454 * term/at_keyboard.c: ... to here.
31455 * term/i386/pc/serial.c: Moved from here ...
31456 * term/serial.c: ... to here. All users updated.
31457 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31458 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31459 (serial_translate_key_sequence): Avoid deadlock.
31460 (grub_serial_getkey): Handle backspace.
31461 (grub_serial_putchar): Fix newline handling.
31462 * util/i386/pc/grub-mkimage.c: Move from here ...
31463 * util/grub-mkrawimage.c: ... to here. All users updated.
31464 (generate_image): New parameters 'font_path' and 'format'.
31465 Support embedding font.
31466 Use grub_host_to_target* instead of grub_cpu_to_le*.
31467 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31468 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31469 (options): New option "--font".
31470 (usage): Likewise.
31471 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31472 (main): Handle "--font".
31473 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31474 (grub_virtual_screen_setup): Set bg_color_display.
31475 (redraw_screen_rect): Use bg_color_display instead of incorrect
31476 bg_color.
31477 (grub_gfxterm_cls): Likewise.
31478 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31479 Support embedding config file.
31480 (add_segments): Likewise.
31481 (options): New option "--config".
31482 (main): Handle "--config".
31483 * video/sm712.c: New file.
31484
31485 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31486
31487 Fix parallel builds.
31488
31489 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31490 font.c depend on ascii.h).
31491
31492 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31493
31494 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31495
31496 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31497
31498 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31499 By default: disabled.
31500 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31501 parameter.
31502
31503 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31504
31505 * font/font.c: Update copyright years.
31506 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31507
31508 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31509
31510 * font/font.c: Include `ascii.h'.
31511 (ASCII_BITMAP_SIZE): New macro.
31512 (ascii_font_glyph): Define.
31513 (ascii_glyph_lookup): New function.
31514 (grub_font_get_string_width): Change comment. If glyph not found, use
31515 ascii_glyph_lookup.
31516 (grub_font_get_glyph_with_fallback): If glyph not available returns
31517 ascii_glyph_lookup.
31518 * util/grub-mkfont.c (file_formats): New enum.
31519 (options): Add `ascii-bitmaps' new option.
31520 (usage): Add `asii-bitmaps' new option.
31521 (write_font_ascii_bitmap): New function.
31522 (write_font): Rename to ...
31523 (write_font_p2): ... this. Remove print_glyphs call.
31524 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31525 used. Call print_glyphs.
31526 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31527
31528 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31529
31530 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31531 (grub_bin2h_SOURCES): New variable.
31532 * util/bin2h.c: New file.
31533
31534 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31535
31536 * include/multiboot.h: Resynced with spec.
31537 * include/multiboot2.h: Likewise.
31538 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31539 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31540
31541 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31542
31543 * include/grub/term.h (grub_term_register_input,
31544 grub_term_register_output): Check return of terminal init()
31545 routines, and abort if errors are raised.
31546
31547 * commands/terminal.c: Update copyright year.
31548
31549 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31550
31551 * commands/terminal.c (grub_cmd_terminal_input)
31552 (grub_cmd_terminal_output): Check return of terminal init()
31553 routines, and abort if errors are raised.
31554
31555 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31556
31557 * include/grub/i386/bsd.h: Fix include pathes.
31558
31559 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31560
31561 Add missing *BSD copyright headers.
31562
31563 * include/grub/aout.h: Add BSD licence.
31564 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31565 * include/grub/i386/freebsd_linker.h: ... here,
31566 * include/grub/i386/freebsd_reboot.h: ... here,
31567 * include/grub/i386/netbsd_bootinfo.h: ... here,
31568 * include/grub/i386/netbsd_reboot.h: ... here,
31569 * include/grub/i386/openbsd_bootarg.h: ... here,
31570 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31571 licence to each file.
31572
31573 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31574
31575 * acinclude.m4: Remove `nop' assembly instruction; it's not
31576 implemented by all architectures.
31577
31578 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31579
31580 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31581 ELILO. This is no longer necessary.
31582
31583 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31584
31585 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31586
31587 * util/grub-script-check.c: grub-script-check tool.
31588 * conf/common.rmk: Make rules for grub-script-check.
31589
31590 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31591
31592 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31593 spotting it back in 2008. Shame on me for forgetting he did.
31594
31595 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31596
31597 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31598
31599 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31600 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31601 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31602 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31603 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31604 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31605
31606 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31607
31608 * include/grub/test.h: Add license header.
31609 * tests/example_functional_test.c: Likewise.
31610 * tests/example_unit_test.c: Likewise.
31611 * tests/lib/functional_test.c: Likewise.
31612 * tests/lib/test.c: Likewise.
31613 * tests/lib/unit_test.c: Likewise.
31614
31615 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31616
31617 Use flag-based instead of hook-based video mode selection and "auto"
31618 keyword.
31619
31620 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31621 (grub_video_set_mode): Changed prototype. All users updated.
31622 (grub_video_check_mode_flag): New inline function.
31623 * video/video.c (parse_modespec): New function.
31624 (grub_video_set_mode): Parse flags and keywords.
31625
31626 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31627
31628 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31629 fprintf call.
31630
31631 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31632
31633 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31634
31635 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31636
31637 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31638 string.
31639 * util/grub-emu.c (usage): Likewise.
31640 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31641 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31642 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31643 * util/i386/pc/grub-setup.c (usage): Likewise.
31644
31645 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31646
31647 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31648 the message.
31649 (grub_util_info): Likewise.
31650 (grub_util_error): Likewise.
31651 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31652 and/or new lines in `grub_util_warna', `grub_util_info',
31653 `grub_util_error' calls.
31654 * util/getroot.c: Likewise.
31655 * util/grub-editenv.c: Likewise.
31656 * util/grub-emu.c: Likewise.
31657 * util/grub-fstest.c: Likewise.
31658 * util/grub-mkdevicemap.c: Likewise.
31659 * util/grub-mkfont.c: Likewise.
31660 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31661 * util/grub-mkrelpath.c: Likewise.
31662 * util/grub-pe2elf.c: Likewise.
31663 * util/grub-probe.c: Likewise.
31664 * util/hostdisk.c: Likewise.
31665 * util/i386/efi/grub-mkimage.c: Likewise.
31666 * util/i386/pc/grub-mkimage.c: Likewise.
31667 * util/i386/pc/grub-setup.c: Likewise.
31668 * util/ieee1275/ofpath.c: Likewise.
31669 * util/mkisofs/eltorito.c: Likewise.
31670 * util/mkisofs/rock.c: Likewise.
31671 * util/mkisofs/write.c: Likewise.
31672 * util/raid.c: Likewise.
31673 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31674 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31675
31676 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31677
31678 Enable multiboot on non-pc.
31679
31680 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31681 multiboot.mod and multiboot2.mod to ...
31682 * conf/i386.rmk (pkglib_MODULES): ... here.
31683 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31684 Moved to ...
31685 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31686 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31687 Moved to ...
31688 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31689 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31690 Moved to ...
31691 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31692 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31693 Moved to ...
31694 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31695 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31696 relocator.mod.
31697 (ata_mod_SOURCES): Removed.
31698 (ata_mod_CFLAGS): Likewise.
31699 (ata_mod_LDFLAGS): Likewise.
31700 (relocator_mod_SOURCES): Removed.
31701 (relocator_mod_CFLAGS): Likewise.
31702 (relocator_mod_ASFLAGS): Likewise.
31703 (relocator_mod_LDFLAGS): Likewise.
31704 Include i386.mk.
31705 * include/grub/x86_64/multiboot.h: New file.
31706 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31707 Terminate EFI.
31708
31709 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31710
31711 Video multiboot support.
31712
31713 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31714 New prototype.
31715 * include/multiboot.h: Resynced with multiboot specification.
31716 * include/multiboot2.h: Likewise.
31717 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31718 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31719 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31720 (HAS_VGA_TEXT): Likewise.
31721 (accepts_video): New variable.
31722 (grub_multiboot_set_accepts_video): New function.
31723 (grub_multiboot_get_mbi_size): Account for video structures.
31724 (set_video_mode): New function.
31725 (retrieve_video_parameters): Likewise.
31726 (grub_multiboot_make_mbi): Fill video fields.
31727
31728 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31729
31730 Video driver ids.
31731
31732 * include/grub/video.h (grub_video_driver_id): New type.
31733 (grub_video_adapter): New member 'id'. All users updated.
31734 (grub_video_get_driver_id): New proto.
31735 * video/video.c (grub_video_get_driver_id): New function.
31736
31737 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31738
31739 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31740 `var=val'.
31741
31742 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31743
31744 * normal/cmdline.c (print_completion): Gettextizze.
31745
31746 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31747
31748 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31749
31750 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31751
31752 * gettext/gettext.c (grub_gettext_translate): Push and pop
31753 grub_errno.
31754 (grub_gettext_delete_list): Change comment style.
31755 * kern/err.c (grub_error): Gettextizze.
31756 (grub_fatal): Gettextizze.
31757
31758 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31759
31760 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31761 (grub_linux16_real_boot): ... this.
31762 * kern/i386/loader.S: Likewise.
31763 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31764 (grub_linux16_boot): New function. Switches to text mode and calls
31765 grub_linux16_real_boot().
31766
31767 * loader/i386/bsd.c: Include `<grub/video.h>'.
31768 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31769 text mode before calling grub_unix_real_boot().
31770
31771 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31772 (grub_multiboot_boot): Switch to text mode before calling
31773 grub_relocator32_boot().
31774
31775 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31776 (grub_chainloader_boot): Switch to text mode before calling
31777 grub_chainloader_real_boot().
31778
31779 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31780 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31781
31782 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31783 non-empty value.
31784
31785 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31786 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31787
31788 * util/grub.d/00_header.in: Define a "savedefault" function for use
31789 in menu entries.
31790 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31791
31792 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31793 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31794
31795 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31796 saved_entry if boot_once is unset.
31797 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31798 previous saved entry (i.e. grub-reboot).
31799
31800 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31801
31802 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31803
31804 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31805
31806 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31807 `var=val'.
31808 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31809
31810 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31811
31812 * util/grub-reboot.in: Fix --version output.
31813 * util/grub-set-default.in: Likewise.
31814
31815 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31816
31817 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31818 blocks.
31819
31820 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31821
31822 * util/grub.d/00_header.in: Quote the value assigned to `default',
31823 in case it contains spaces.
31824
31825 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31826
31827 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31828 `save_default_entry' call from the macosx case to the linux case.
31829
31830 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31831 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31832
31833 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31834 in `chosen' environment variable.
31835 * normal/menu_text.c (get_entry_number): Check if the variable
31836 matches the title of a menu entry.
31837 (run_menu): Pass menu to get_entry_number.
31838
31839 * util/grub-reboot.in: New file.
31840 * util/grub-set-default.in: New file.
31841 * conf/common.rmk (grub-reboot): New utility.
31842 (grub-set-default): New utility.
31843
31844 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31845 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31846 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31847 move it to `saved_entry' for the next boot. Load environment on
31848 initialisation.
31849 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31850 * util/grub.d/10_hurd.in: Likewise.
31851 * util/grub.d/10_linux.in (linux_entry): Likewise.
31852 * util/grub.d/10_windows.in: Likewise.
31853 * util/grub.d/30_os-prober.in: Likewise.
31854
31855 * util/grub-install.in: Create environment block.
31856 * util/i386/efi/grub-install.in: Likewise.
31857 * util/ieee1275/grub-install.in: Likewise.
31858 * util/sparc64/ieee1275/grub-install.in: Likewise.
31859
31860 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31861
31862 Unit testing framework for GRUB.
31863
31864 * Makefile.in: Test framework build rules for 'make check'.
31865 * conf/tests.rmk: Build rules for individual tests and framework.
31866
31867 * include/grub/test.h: Header file for whitebox tests.
31868 * tests/lib/functional_test.c: Framework support for whitebox
31869 functional tests.
31870 * tests/lib/test.c: Common whitebox testing code for unit and
31871 functional tests.
31872 * tests/lib/unit_test.c: Framework support for whitebox unit
31873 tests.
31874
31875 * tests/util/grub-shell-tester.in: Support utility for grub-script
31876 tests.
31877 * tests/util/grub-shell.in: Utility to execute grub-script
31878 commands in a Qemu instance.
31879
31880 * tests/example_functional_test.c: Example whitebox functional
31881 test.
31882 * tests/example_grub_script_test.in: Example grub-script test.
31883 * tests/example_scripted_test.in: Example scripted test.
31884 * tests/example_unit_test.c: Example whitebox unit test.
31885
31886 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31887
31888 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31889 Add loader/i386/multiboot_mbi.c.
31890 (multiboot2_mod_SOURCES): Likewise.
31891 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31892 (multiboot2_mod_SOURCES): Likewise.
31893 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31894 (grub_multiboot_make_mbi): Likewise.
31895 (grub_multiboot_free_mbi): Likewise.
31896 (grub_multiboot_init_mbi): Likewise.
31897 (grub_multiboot_add_module): Likewise.
31898 (grub_multiboot_set_bootdev): Likewise.
31899 * loader/i386/multiboot.c (mbi): Removed.
31900 (mbi_dest): Likewise.
31901 (alloc_mbi): New variable.
31902 (grub_multiboot_payload_size): Removed. All users updated.
31903 (grub_multiboot_pure_size): New variable.
31904 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31905 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31906 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31907 (grub_fill_multiboot_mmap): Likewise.
31908 (grub_multiboot_get_bootdev): Likewise.
31909 (grub_multiboot): Use multiboot_mbi functions.
31910 * loader/i386/multiboot_mbi.c: New file.
31911
31912 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31913
31914 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31915 it would result in module crash.
31916
31917 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31918
31919 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31920 (grub_ofconsole_getwh): Split to ...
31921 (grub_ofconsole_getwh): ... this.
31922 (grub_ofconsole_dimensions): ...and this.
31923 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31924
31925 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31926
31927 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31928
31929 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31930
31931 * loader/i386/pc/multiboot2.c: Removed stalled file.
31932
31933 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31934
31935 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31936 Reported by: Grégoire Sutre
31937
31938 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31939
31940 * util/misc.c (canonicalize_file_name): New function.
31941 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31942 instead of realpath().
31943
31944 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31945
31946 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31947 and make it clearer that it's optional. Based on confusion
31948 witnessed on IRC.
31949
31950 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31951
31952 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31953 in premature implicit newline.
31954
31955 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31956
31957 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31958 which resulted in garbled command line at the end of screen.
31959
31960 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31961
31962 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31963 initialization with similar approach as with other Linux loaders.
31964
31965 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31966
31967 Fix i386-ieee1275 build.
31968
31969 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31970 and grub_term_height() for video_{width,height} initialization.
31971
31972 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31973
31974 Fix grub-emu build.
31975
31976 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
31977
31978 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
31979 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
31980
31981 Support for multiple terminals.
31982
31983 * Makefile.in (pkglib_DATA): terminal.lst.
31984 (terminal.lst): New target.
31985 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
31986 (GRUB_MOD_INIT(handler)): Likewise.
31987 (GRUB_MOD_FINI(handler)): Likewise.
31988 * commands/help.c (grub_cmd_help): Handle multiple terminals.
31989 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
31990 * commands/sleep.c (do_print): Use grub_term_restore_pos.
31991 (grub_cmd_sleep): Use grub_term_save_pos.
31992 * commands/terminal.c: New file.
31993 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
31994 commands/terminal.c and lib/charset.c.
31995 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
31996 (pkglib_MODULES): Add terminal.mod.
31997 (terminal_mod_SOURCES): New variable.
31998 (terminal_mod_CFLAGS): Likewise.
31999 (terminal_mod_LDFLAGS): Likewise.
32000 * genhandlerlist.sh: Don't handle terminals.
32001 * genmk.rb: Generate terminal-*.lst.
32002 * genterminallist.sh: New file.
32003 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32004 (grub_is_valid_utf8): Likewise.
32005 (grub_utf8_to_ucs4_alloc): Likewise.
32006 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32007 (grub_menu_register_viewer): Changed argument.
32008 (grub_menu_try_text): New proto.
32009 (grub_gfxmenu_try_hook): New declaration.
32010 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32011 (grub_menu_init_page): Additional argument term.
32012 (grub_normal_init_page): Likewise.
32013 (grub_cmdline_get): Arguments simplified.
32014 (grub_utf8_to_ucs4_alloc): Removed.
32015 (grub_print_ucs4): Additional argument term.
32016 (grub_getstringwidth): Likewise.
32017 (grub_print_message_indented): Likewise.
32018 (grub_menu_text_register_instances): New proto.
32019 (grub_show_menu): Likewise.
32020 (read_terminal_list): Likewise.
32021 (grub_set_more): Likewise.
32022 * include/grub/parser.h: Include handler.h.
32023 * include/grub/reader.h: Rewritten.
32024 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32025 (GRUB_TERM_WIDTH): Changed to function.
32026 (GRUB_TERM_HEIGHT): Likewise.
32027 (GRUB_TERM_BORDER_WIDTH): Likewise.
32028 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32029 (GRUB_TERM_NUM_ENTRIES): Likewise.
32030 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32031 (GRUB_TERM_CURSOR_X): Likewise.
32032 (grub_term_input_class): Likewise.
32033 (grub_term_output_class): Likewise.
32034 (grub_term_outputs_disabled): New declaration.
32035 (grub_term_inputs_disabled): Likewise.
32036 (grub_term_outputs): Likewise.
32037 (grub_term_inputs): Likewise.
32038 (grub_term_register_input): Rewritten.
32039 (grub_term_register_output): Likewise.
32040 (grub_term_unregister_input): Likewise.
32041 (grub_term_unregister_output): Likewise.
32042 (FOR_ACTIVE_TERM_INPUTS): New macro.
32043 (FOR_DISABLED_TERM_INPUTS): Likewise.
32044 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32045 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32046 * include/grub/terminfo.h: Add oterm argument to all protypes.
32047 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32048 Use grub_rescue_run.
32049 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32050 All users updated.
32051 * kern/reader.c: Removed. All users updated.
32052 * kern/rescue_reader.c (grub_rescue_init): Removed.
32053 (grub_rescue_reader): Likewise.
32054 (grub_register_rescue_reader): Likewise.
32055 (grub_rescue_run): New function based on kern/reader.c.
32056 * kern/term.c: Adapted for multiterm.
32057 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32058 (grub_is_valid_utf8): Likewise.
32059 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32060 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32061 right terminal.
32062 * loader/i386/linux.c (grub_linux_boot): Likewise.
32063 * normal/auth.c (grub_username_get): New function.
32064 (grub_auth_check_authentication): Use grub_username_get.
32065 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32066 * normal/color.c: Adapt for multiterm.
32067 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32068 (grub_normal_init_page): Additional argument term.
32069 (read_lists): Call read_terminal_lists.
32070 (grub_enter_normal_mode): Call grub_cmdline_run.
32071 Handle grub_normal_exit_level.
32072 (grub_cmd_normal): Make reentrant.
32073 (grub_cmd_normal_exit): New function.
32074 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32075 * normal/menu.c: Adapt for multiterm.
32076 * normal/menu_entry.c: Likewise.
32077 * normal/menu_text.c: Likewise.
32078 * normal/menu_viewer.c: Removed. All users updated.
32079 * normal/term.c: New file.
32080 * util/console.c: Change order of includes to workaround a bug in
32081 ncurses headers.
32082 * term/terminfo.c: New argument oterm on all exported functions.
32083 All users updated.
32084 * util/grub-editenv.c (grub_term_input_class): Removed.
32085 (grub_term_output_class): Likewise.
32086
32087 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32088
32089 Make loader output a bit more user-friendly.
32090
32091 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32092 is being loaded. Likewise for the Hurd.
32093
32094 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32095 that kernel of FreeBSD ${version} is being loaded.
32096
32097 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32098 grub_dprintf().
32099 (grub_cmd_initrd): Likewise.
32100 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32101 that Linux ${version} is being loaded. Likewise for initrd.
32102
32103 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32104
32105 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32106
32107 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32108
32109 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32110 (GRUB_MOD_INIT): Gettextizze.
32111 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32112 (GRUB_MOD_INIT): Gettextizze.
32113 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32114 (grub_cmd_linux): Capitalise Linux.
32115 (GRUB_MOD_INIT): Gettextizze.
32116 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32117 (grub_cmd_linux): Capitalise Linux.
32118 (GRUB_MOD_INIT): Gettextizze.
32119 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32120 (grub_cmd_linux): Capitalise Linux.
32121 (GRUB_MOD_INIT): Gettextizze.
32122 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32123 (GRUB_MOD_INIT): Gettextizze.
32124 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32125 (grub_cmd_linux): Capitalise Linux.
32126 (GRUB_MOD_INIT): Gettextizze.
32127 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32128 (grub_cpu_xnu_init): Gettextizze.
32129 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32130 (GRUB_MOD_INIT): Gettextizze.
32131 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32132 (GRUB_MOD_INIT): Gettextizze.
32133 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32134 (grub_linux_load64): Capitalise Linux.
32135 (GRUB_MOD_INIT): Gettextizze.
32136 * loader/xnu.c: Include `<grub/i18n.h>'.
32137 (GRUB_MOD_INIT): Gettextizze.
32138 * po/POTFILES: Add `loader/efi/appleloader.c',
32139 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32140 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32141 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32142 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32143 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32144 and `loader/xnu.c'.
32145
32146 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32147
32148 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32149
32150 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32151
32152 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32153 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32154 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32155
32156 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32157
32158 Reset Multiboot 2 support. New loader implements the draft in
32159 /branches/multiboot2 and shares as much code as possible with the
32160 production Multiboot 1 implementation.
32161
32162 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32163 * loader/multiboot2.c: Likewise.
32164 * loader/i386/multiboot_helper.S: Likewise.
32165 * include/multiboot2.h: Replace with latest version from the draft
32166 in /branches/multiboot2.
32167
32168 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32169 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32170 and `loader/multiboot2.c'.
32171 (pkglib_MODULES): Add `multiboot2.mod'.
32172 (multiboot2_mod_SOURCES): New variable.
32173 (multiboot2_mod_LDFLAGS): Likewise.
32174 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32175
32176 * conf/i386-pc.rmk: Likewise.
32177
32178 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32179 (multiboot_mod_SOURCES): Remove variable.
32180 (multiboot_mod_LDFLAGS): Likewise.
32181 (multiboot_mod_CFLAGS): Likewise.
32182
32183 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32184 `<multiboot2.h>' instead of `<multiboot.h>'.
32185 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32186 (MULTIBOOT_HEADER_MAGIC): New macros.
32187
32188 * loader/multiboot_loader.c (module_version_status): Remove variable.
32189 (find_multi_boot2_header): Remove function.
32190 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32191 logic. Always check for the Multiboot version we're compiling for.
32192 (grub_cmd_module_loader): Likewise.
32193 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32194 command instead of `multiboot'.
32195
32196 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32197
32198 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32199 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32200 all users.
32201
32202 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32203 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32204
32205 Fix breakage introduced with previous commit.
32206
32207 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32208 commands.
32209 * normal/handler.c (read_handler_list): Revert part of previous commit
32210 affecting this file.
32211 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32212 (grub_normal_execute): ... here.
32213
32214 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32215
32216 Merge prefix-redefinition-fix branch.
32217
32218 * normal/autofs.c (read_fs_list): Make function capable of being
32219 run multiple times, gracefuly replacing the previous data
32220 structures.
32221 * normal/dyncmd.c (read_command_list): Likewise.
32222 * normal/handler.c (read_handler_list): Likewise.
32223 * normal/main.c (read_lists): New function. Calls all the
32224 list reading functions.
32225 (grub_normal_execute): Use read_lists() instead of calling all
32226 list reading functions explicitly. Register read_lists() as a
32227 variable hook attached to ${prefix}.
32228
32229 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32230
32231 Merge crypto branch.
32232
32233 * Makefile.in (pkglib_DATA): Add crypto.lst.
32234 (crypto.lst): New target.
32235 * commands/hashsum.c: New file.
32236 * commands/password.c (check_password): Use grub_crypto_memcmp.
32237 * commands/password_pbkdf2.c: New file.
32238 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32239 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32240 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32241 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32242 -I$(srcdir)/lib/libgcrypt_wrap.
32243 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32244 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32245 password_pbkdf2.mod.
32246 (crypto_mod_SOURCES): New variable.
32247 (crypto_mod_CFLAGS): Likewise.
32248 (crypto_mod_LDFLAGS): Likewise.
32249 (hashsum_mod_SOURCES): New variable.
32250 (hashsum_mod_CFLAGS): Likewise.
32251 (hashsum_mod_LDFLAGS): Likewise.
32252 (pbkdf2_mod_SOURCES): New variable.
32253 (pbkdf2_mod_CFLAGS): Likewise.
32254 (pbkdf2_mod_LDFLAGS): Likewise.
32255 (password_pbkdf2_mod_SOURCES): New variable.
32256 (password_pbkdf2_mod_CFLAGS): Likewise.
32257 (password_pbkdf2_mod_LDFLAGS): Likewise.
32258 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32259 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32260 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32261 Include conf/gcry.rmk.
32262 * include/grub/auth.h: Rewritten.
32263 * include/grub/crypto.h: New file.
32264 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32265 * include/grub/normal.h (read_crypto_list): New prototype.
32266 * lib/crypto.c: New file.
32267 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32268 * lib/pbkdf2.c: Likewise.
32269 * normal/auth.c (grub_auth_strcmp): Removed.
32270 (grub_iswordseparator): Likewise.
32271 (grub_auth_strword): Likewise.
32272 (is_authenticated): Use grub_strword.
32273 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32274 and grub_strword. Pass entered password to authentication callback.
32275 * normal/crypto.c: New file.
32276 * normal/main.c: Call read_crypto_list.
32277 * util/grub-mkpasswd-pbkdf2.c: New file.
32278 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32279
32280 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32281
32282 Fix descent and ascent calculation.
32283
32284 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32285 (options): New option "asce".
32286 (usage): Likewise.
32287 (add_char): Ignore invalid glyphs for descent calculation.
32288 Calculate ascent from actual content.
32289 (print_glyphs): Use 'asce'.
32290 (write_font): Likewise. Allow ascent override.
32291 (main): Handle "asce" option.
32292
32293 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32294
32295 * kern/err.c: Include `<grub/i18n.h>'.
32296 (grub_print_error): Add full stop. Gettextizze.
32297 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32298 (grub_bsd_load_elf): Capitalise ELF.
32299 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32300 (grub_cmd_freebsd_module): Likewise.
32301 (grub_cmd_freebsd_module_elf): Likewise.
32302 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32303
32304 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32305
32306 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32307 * commands/search_file.c (HELP_MESSAGE): New macro.
32308 * commands/search_label.c (HELP_MESSAGE): Likewise.
32309 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32310 * po/POTFILES: Add `commands/search_file.c',
32311 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32312 `commands/search.c'.
32313
32314 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32315
32316 * config.rpath: Update from Gnulib.
32317
32318 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32319
32320 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32321
32322 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32323
32324 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32325
32326 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32327
32328 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32329 arguments to fread so that we get a return value in bytes, rather
32330 than something that will normally be rounded down to 0.
32331 Adjust error handling to avoid producing garbage when size_t is not
32332 the same size as long long.
32333
32334 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32335
32336 * util/mkisofs/write.c (padblock_write): Check return value of
32337 fread.
32338
32339 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32340
32341 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32342 floppy images now.
32343
32344 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32345
32346 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32347
32348 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32349 instead of manual alignment.
32350 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32351 verbose). Avoid attempts to read past end of the device
32352 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32353 but GRUB_DISK_CACHE_SIZE may exceed that).
32354
32355 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32356
32357 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32358 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32359 it to upper layer.
32360
32361 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32362
32363 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32364 New constant.
32365 (grub_efi_piwg_device_path): New structure
32366 (grub_efi_piwg_device_path_t): New type.
32367 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32368 (devpath_1): Transform to a structure. All users updated.
32369 (devpath_2): Likewise.
32370 (devpath_3): Likewise.
32371 (devpath_4): Likewise.
32372 (devpath_5): Likewise.
32373
32374 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32375
32376 * loader/efi/appleloader.c: Restored. Update all users.
32377
32378 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32379
32380 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32381
32382 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32383 (struct boot_blocklist): Move from here ...
32384 * include/grub/i386/pc/boot.h [ASM_FILE]
32385 (struct grub_boot_blocklist): ... to here. Update all users.
32386 (setup): Only initialize `start' member of `first_block'
32387 structure. Add assert() calls to verify the other members.
32388
32389 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32390 (generate_image): Fix broken blocklist length initialization.
32391 Add assert() call to verify blocklist `segment' field.
32392
32393 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32394
32395 * loader/efi/appleloader.c: Remove. Update all users.
32396
32397 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32398
32399 * boot/i386/pc/boot.S: Update copyright year.
32400 * boot/i386/pc/cdboot.S: Likewise.
32401 * boot/i386/pc/diskboot.S: Likewise.
32402 * boot/i386/pc/lnxboot.S: Likewise.
32403 * boot/i386/pc/pxeboot.S: Likewise.
32404 * bus/pci.c: Likewise.
32405 * commands/cmp.c: Likewise.
32406 * commands/help.c: Likewise.
32407 * commands/hexdump.c: Likewise.
32408 * commands/i386/pc/halt.c: Likewise.
32409 * commands/i386/pc/play.c: Likewise.
32410 * commands/i386/pc/vbeinfo.c: Likewise.
32411 * commands/ls.c: Likewise.
32412 * commands/test.c: Likewise.
32413 * disk/dmraid_nvidia.c: Likewise.
32414 * disk/i386/pc/biosdisk.c: Likewise.
32415 * disk/ieee1275/nand.c: Likewise.
32416 * disk/ieee1275/ofdisk.c: Likewise.
32417 * disk/lvm.c: Likewise.
32418 * disk/raid.c: Likewise.
32419 * disk/raid6_recover.c: Likewise.
32420 * disk/scsi.c: Likewise.
32421 * fs/affs.c: Likewise.
32422 * fs/cpio.c: Likewise.
32423 * fs/ext2.c: Likewise.
32424 * fs/hfs.c: Likewise.
32425 * fs/iso9660.c: Likewise.
32426 * fs/ntfs.c: Likewise.
32427 * fs/sfs.c: Likewise.
32428 * fs/udf.c: Likewise.
32429 * fs/ufs.c: Likewise.
32430 * fs/xfs.c: Likewise.
32431 * gencmdlist.sh: Likewise.
32432 * genmk.rb: Likewise.
32433 * include/grub/disk.h: Likewise.
32434 * include/grub/efi/api.h: Likewise.
32435 * include/grub/efi/efi.h: Likewise.
32436 * include/grub/efi/pe32.h: Likewise.
32437 * include/grub/elf.h: Likewise.
32438 * include/grub/fs.h: Likewise.
32439 * include/grub/i386/at_keyboard.h: Likewise.
32440 * include/grub/i386/pc/memory.h: Likewise.
32441 * include/grub/i386/pc/vbe.h: Likewise.
32442 * include/grub/i386/pci.h: Likewise.
32443 * include/grub/i386/tsc.h: Likewise.
32444 * include/grub/ieee1275/ieee1275.h: Likewise.
32445 * include/grub/ntfs.h: Likewise.
32446 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32447 * include/grub/sparc64/libgcc.h: Likewise.
32448 * include/grub/symbol.h: Likewise.
32449 * include/grub/types.h: Likewise.
32450 * include/multiboot2.h: Likewise.
32451 * io/gzio.c: Likewise.
32452 * kern/device.c: Likewise.
32453 * kern/disk.c: Likewise.
32454 * kern/efi/efi.c: Likewise.
32455 * kern/efi/mm.c: Likewise.
32456 * kern/elf.c: Likewise.
32457 * kern/file.c: Likewise.
32458 * kern/i386/dl.c: Likewise.
32459 * kern/i386/pc/init.c: Likewise.
32460 * kern/i386/pc/startup.S: Likewise.
32461 * kern/ieee1275/ieee1275.c: Likewise.
32462 * kern/ieee1275/init.c: Likewise.
32463 * kern/main.c: Likewise.
32464 * kern/mm.c: Likewise.
32465 * kern/powerpc/dl.c: Likewise.
32466 * kern/sparc64/dl.c: Likewise.
32467 * kern/x86_64/dl.c: Likewise.
32468 * lib/hexdump.c: Likewise.
32469 * loader/efi/appleloader.c: Likewise.
32470 * loader/i386/ieee1275/linux.c: Likewise.
32471 * loader/i386/pc/chainloader.c: Likewise.
32472 * loader/i386/pc/linux.c: Likewise.
32473 * loader/i386/pc/multiboot2.c: Likewise.
32474 * loader/ieee1275/multiboot2.c: Likewise.
32475 * loader/multiboot2.c: Likewise.
32476 * loader/multiboot_loader.c: Likewise.
32477 * loader/powerpc/ieee1275/linux.c: Likewise.
32478 * normal/completion.c: Likewise.
32479 * normal/menu_entry.c: Likewise.
32480 * partmap/apple.c: Likewise.
32481 * util/grub.d/10_hurd.in: Likewise.
32482 * util/hostfs.c: Likewise.
32483 * video/readers/png.c: Likewise.
32484
32485 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32486
32487 * include/grub/misc.h (GNUC_PREREQ): New macro.
32488 (ATTRIBUTE_ERROR): New macro.
32489 * include/grub/list.h (grub_bad_type_cast_real): Use
32490 ATTRIBUTE_ERROR.
32491
32492 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32493
32494 * normal/menu_text.c (print_message): Change messages.
32495
32496 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32497
32498 * normal/menu_entry.c (store_completion): Gettextizze.
32499
32500 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32501
32502 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32503
32504 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32505
32506 * po/POTFILES: Sort correctly.
32507
32508 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32509
32510 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32511 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32512 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32513 full stop.
32514 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32515 summary. Gettextizze the strings.
32516 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32517 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32518 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32519 full stop.
32520 (GRUB_MOD_INIT): Remove command name from summary.
32521 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32522 summary.
32523 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32524 * term/i386/pc/serial.c (options): Add full stops.
32525 (GRUB_MOD_INIT): Remove command name from the summary.
32526
32527 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32528
32529 * commands/acpi.c: Gettextizze help strings and/or options. Include
32530 `grub/i18n.h' if needed.
32531 * commands/blocklist.c: Likewise.
32532 * commands/boot.c: Likewise.
32533 * commands/cat.c: Likewise.
32534 * commands/cmp.c: Likewise.
32535 * commands/configfile.c: Likewise.
32536 * commands/crc.c: Likewise.
32537 * commands/date.c: Likewise.
32538 * commands/echo.c: Likewise.
32539 * commands/efi/fixvideo.c: Likewise.
32540 * commands/efi/loadbios.c: Likewise.
32541 * commands/gptsync.c: Likewise.
32542 * commands/halt.c: Likewise.
32543 * commands/handler.c: Likewise.
32544 * commands/hdparm.c: Likewise.
32545 * commands/hexdump.c: Likewise.
32546 * commands/i386/cpuid.c: Likewise.
32547 * commands/i386/pc/drivemap.c: Likewise.
32548 * commands/i386/pc/halt.c: Likewise.
32549 * commands/i386/pc/pxecmd.c: Likewise.
32550 * commands/i386/pc/vbeinfo.c: Likewise.
32551 * commands/i386/pc/vbetest.c: Likewise.
32552 * commands/ieee1275/suspend.c: Likewise.
32553 * commands/keystatus.c: Likewise.
32554 * commands/loadenv.c: Likewise.
32555 * commands/ls.c: Likewise.
32556 * commands/lsmmap.c: Likewise.
32557 * commands/lspci.c: Likewise.
32558 * commands/memrw.c: Likewise.
32559 * commands/minicmd.c: Likewise.
32560 * commands/parttool.c: Likewise.
32561 * commands/password.c: Likewise.
32562 * commands/probe.c: Likewise.
32563 * commands/read.c: Likewise.
32564 * commands/reboot.c: Likewise.
32565 * commands/search.c: Likewise.
32566 * commands/sleep.c: Likewise.
32567 * commands/test.c: Likewise.
32568 * commands/true.c: Likewise.
32569 * commands/usbtest.c: Likewise.
32570 * commands/videotest.c: Likewise.
32571 * commands/xnu_uuid.c: Likewise.
32572 * disk/loopback.c: Likewise.
32573 * hello/hello.c: Likewise.
32574 * loader/i386/bsd.c: Likewise.
32575 * term/i386/pc/serial.c: Likewise.
32576 * po/POTFILES: Add new files.
32577
32578 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32579
32580 * term/i386/pc/at_keyboard.c
32581 (keyboard_controller_wait_untill_ready): Rename to ...
32582 (keyboard_controller_wait_until_ready): ... this. Update all users.
32583
32584 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32585
32586 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32587 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32588 string using string width.
32589 * normal/menu_text.c (grub_print_message_indented): Use
32590 grub_print_spaces and not print_spaces.
32591 (print_timeout): Likewise.
32592 (print_spaces): Move to...
32593 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32594
32595 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32596
32597 Import from Gnulib.
32598
32599 * gnulib/getdelim.c: New file.
32600 * gnulib/getline.c: Likewise.
32601
32602 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32603
32604 * include/grub/list.h (grub_assert_fail): Removed.
32605 (grub_bad_type_cast_real): New function.
32606 (grub_bad_type_cast): New macro.
32607 (GRUB_AS_LIST): Use grub_bad_type_cast.
32608 (GRUB_AS_LIST_P): Likewise.
32609 (GRUB_AS_NAMED_LIST): Likewise.
32610 (GRUB_AS_NAMED_LIST_P): Likewise.
32611 (GRUB_AS_PRIO_LIST): Likewise.
32612 (GRUB_AS_PRIO_LIST_P): Likewise.
32613 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32614
32615 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32616
32617 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32618 Fix syntax error.
32619
32620 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32621
32622 * configure.ac: Check for TARGET_CFLAGS initialization before we
32623 initialize it ourselves (sigh).
32624 Move a few modifications to TARGET_CFLAGS to be unconditional
32625 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32626 eh_frame)
32627
32628 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32629 * term/i386/pc/at_keyboard.c
32630 (keyboard_controller_wait_untill_ready): Likewise.
32631 (keyboard_controller_led): Rename `led_status' paramter to avoid
32632 name conflict.
32633
32634 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32635
32636 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32637 quotes.
32638
32639 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32640
32641 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32642
32643 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32644
32645 * normal/menu_text.c (grub_print_message_indented): Prevent
32646 past-the-end-of-array dereference.
32647
32648 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32649
32650 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32651 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32652
32653 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32654
32655 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32656 * normal/main.c (grub_normal_read_line): Remove a space from the
32657 default prompt.
32658
32659 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32660
32661 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32662 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32663 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32664 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32665 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32666 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32667 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32668
32669 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32670
32671 * video/readers/jpeg.c (cmd): Declare.
32672 (grub_cmd_jpegtest): Use `grub_command_t' type.
32673 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32674 Assign to `cmd'.
32675 (GRUB_MOD_FINI): Use `cmd' to unregister.
32676 * video/readers/png.c (cmd): Declare.
32677 (grub_cmd_pngtest): Use `grub_command_t' type.
32678 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32679 Assign to `cmd'.
32680 (GRUB_MOD_FINI): Use `cmd' to unregister.
32681 * video/readers/tga.c (cmd): Declare.
32682 (grub_cmd_tgatest): Use `grub_command_t' type.
32683 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32684 Assign to `cmd'.
32685 (GRUB_MOD_FINI): Use `cmd' to unregister.
32686
32687 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32688
32689 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32690 stops.
32691 * kern/corecmd.c (grub_register_core_commands): Likewise.
32692 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32693 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32694 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32695 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32696 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32697 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32698 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32699 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32700 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32701 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32702 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32703 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32704 * normal/handler.c (insert_handler): Likewise.
32705 * normal/main.c (GRUB_MOD_INIT): Likewise.
32706 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32707
32708 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32709
32710 * commands/help.c (grub_cmd_help): Print the command name before the
32711 summary.
32712 (GRUB_MOD_INIT): Remove command name from the summary.
32713 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32714 string as summary.
32715 * lib/arg.c (find_long): Print the command name before the summary.
32716 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32717 summary.
32718 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32719 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32720 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32721 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32722 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32723 * commands/date.c (GRUB_MOD_INIT): Likewise.
32724 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32725 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32726 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32727 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32728 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32729 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32730 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32731 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32732 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32733 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32734 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32735 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32736 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32737 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32738 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32739 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32740 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32741 * commands/password.c (GRUB_MOD_INIT): Likewise.
32742 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32743 * commands/read.c (GRUB_MOD_INIT): Likewise.
32744 * commands/search.c (GRUB_MOD_INIT): Likewise.
32745 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32746 * commands/test.c (GRUB_MOD_INIT): Likewise.
32747 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32748 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32749 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32750 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32751 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32752 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32753 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32754 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32755 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32756 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32757 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32758 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32759 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32760 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32761
32762 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32763
32764 Use search command for preliminar UUID search.
32765
32766 * commands/search.c: Split into ...
32767 * commands/search_wrap.c: ...this
32768 * commands/search.c: ...and this.
32769 * commands/search_file.c: New file.
32770 * commands/search_label.c: New file.
32771 * commands/search_uuid.c: New file.
32772 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32773 Add commands/search_wrap.c, commands/search_file.c,
32774 commands/search_label.c and commands/search_uuid.c.
32775 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32776 (search_mod_SOURCES): Set to commands/search_wrap.c.
32777 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32778 search_label.mod.
32779 (search_fs_file_mod_SOURCES): New variable.
32780 (search_fs_file_mod_CFLAGS): Likewise.
32781 (search_fs_file_mod_LDFLAGS): Likewise.
32782 (search_label_mod_SOURCES): Likewise.
32783 (search_label_mod_CFLAGS): Likewise.
32784 (search_label_mod_LDFLAGS): Likewise.
32785 (search_fs_uuid_mod_SOURCES): New variable.
32786 (search_fs_uuid_mod_CFLAGS): Likewise.
32787 (search_fs_uuid_mod_LDFLAGS): Likewise.
32788 (fs_file_mod_SOURCES): Removed.
32789 (fs_file_mod_CFLAGS): Likewise.
32790 (fs_file_mod_LDFLAGS): Likewise.
32791 (fs_uuid_mod_SOURCES): Removed.
32792 (fs_uuid_mod_CFLAGS): Likewise.
32793 (fs_uuid_mod_LDFLAGS): Likewise.
32794 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32795 Set to util/grub-install.in.
32796 * disk/fs_file.c: Removed.
32797 * disk/fs_uuid.c: Likewise.
32798 * include/grub/search.h: New file.
32799 * util/grub-install.in: Handle sparc64.
32800 Create and use load.cfg.
32801 * util/sparc64/ieee1275/grub-install.in: Removed.
32802
32803 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32804
32805 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32806 Ignore return status if CF is cleared.
32807 (grub_biosdisk_get_diskinfo_standard): Likewise.
32808
32809 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32810
32811 * term/i386/pc/at_keyboard.c
32812 (keyboard_controller_wait_untill_ready): New function.
32813 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32814 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32815 for keyboard polling, rather than duplicate the same loop. This
32816 saves a few bytes in code size.
32817
32818 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32819
32820 Support for (pxe[:server[:gateway]]) syntax and
32821 use environment variable for PXE.
32822
32823 * commands/i386/pc/pxecmd.c (options): Removed.
32824 (print_ip): Removed.
32825 (grub_cmd_pxe): Removed
32826 (grub_cmd_pxe_unload): New function.
32827 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32828 (grub_pxe_your_ip): Made static.
32829 (grub_pxe_default_server_ip): Likewise.
32830 (grub_pxe_default_gateway_ip): Likewise.
32831 (grub_pxe_blksize): Likewise.
32832 (parse_ip): New function.
32833 (grub_pxe_open): Support server and gateway specification.
32834 (grub_pxe_close): Free disk->data.
32835 (grub_pxefs_open): Use disk->data.
32836 (grub_pxefs_read): Likewise.
32837 (grub_env_write_readonly): New function.
32838 (set_mac_env): Likewise.
32839 (set_env_limn_ro): Likewise.
32840 (parse_dhcp_vendor): Likewise.
32841 (grub_pxe_detect): Set the environment variables.
32842 (set_ip_env): New function.
32843 (write_ip_env): Likewise.
32844 (grub_env_write_pxe_default_server): Likewise.
32845 (grub_env_write_pxe_default_gateway): Likewise.
32846 (grub_env_write_pxe_blocksize): Likewise.
32847 (GRUB_MOD_INIT(pxe)): Set environment variables.
32848 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32849 (grub_pxe_mac_addr_t): ... this. All users updated.
32850 (grub_pxe_your_ip): Removed.
32851 (grub_pxe_server_ip): Likewise.
32852 (grub_pxe_gateway_ip): Likewise.
32853 (grub_pxe_blksize): Likewise.
32854
32855 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32856
32857 * commands/help.c: Include `<grub/i18n.h>'.
32858 (grub_cmd_help): Gettextizze.
32859 (GRUB_MOD_INIT): Likewise.
32860 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32861 (GRUB_MOD_INIT): Gettextizze.
32862 * commands/search.c: Include `<grub/i18n.h>'.
32863 (options): Gettextizze.
32864 (GRUB_MOD_INIT): Gettextizze.
32865 * lib/arg.c: Include `<grub/i18n.h>'.
32866 (help_options): Gettextizze.
32867 (find_long): Likewise.
32868 (grub_arg_show_help): Likewise.
32869 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32870 (read_command_list): Gettextizze.
32871 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32872 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32873
32874 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32875
32876 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32877 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32878 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32879 (led_status): New variable.
32880 (keyboard_controller_led): New function.
32881 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32882 update led status for caps lock, num lock and scroll lock.
32883
32884 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32885
32886 * util/hostdisk.c (open_device): Fix a comment.
32887
32888 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32889
32890 * util/grub-install.in (host_os): New variable.
32891 * util/i386/efi/grub-install.in (host_os): Likewise.
32892
32893 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32894
32895 * util/mkisofs/write.c (padblock_write): Abort when given an
32896 excedingly large embed image, instead of silently truncating it.
32897
32898 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32899
32900 * include/multiboot.h: Indentation fixes.
32901
32902 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32903
32904 * include/multiboot.h (struct multiboot_aout_symbol_table)
32905 (struct multiboot_elf_section_header_table): New structure
32906 declarations (stolen from GRUB Legacy).
32907 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32908 table information.
32909
32910 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32911 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32912 type aliases.
32913
32914 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32915
32916 * include/multiboot.h: Make comments src2texi-friendly.
32917
32918 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32919
32920 For consistency with [multiboot]/docs/boot.S.
32921
32922 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32923 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32924 (MULTIBOOT_MAGIC2): Rename from this ...
32925 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32926
32927 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32928
32929 * include/multiboot.h: Remove `<grub/types.h>'.
32930 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32931 types. Update all users.
32932
32933 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32934
32935 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32936 `couldn't' and `can not' by `cannot'.
32937 * commands/i386/pc/drivemap.c: Likewise.
32938 * disk/ata.c: Likewise.
32939 * disk/ieee1275/nand.c: Likewise.
32940 * fs/affs.c: Likewise.
32941 * fs/fat.c: Likewise.
32942 * fs/hfs.c: Likewise.
32943 * fs/hfsplus.c: Likewise.
32944 * fs/iso9660.c: Likewise.
32945 * fs/jfs.c: Likewise.
32946 * fs/minix.c: Likewise.
32947 * fs/reiserfs.c: Likewise.
32948 * fs/sfs.c: Likewise.
32949 * fs/udf.c: Likewise.
32950 * fs/ufs.c: Likewise.
32951 * fs/xfs.c: Likewise.
32952 * loader/powerpc/ieee1275/linux.c: Likewise.
32953 * loader/sparc64/ieee1275/linux.c: Likewise.
32954 * util/grub-probe.c: Likewise.
32955 * util/misc.c: Likewise.
32956
32957 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32958
32959 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32960 grub_errno calls.
32961 * commands/acpi.c: Likewise.
32962 * commands/blocklist.c: Likewise.
32963 * commands/efi/loadbios.c: Likewise.
32964 * commands/i386/pc/drivemap.c: Likewise.
32965 * commands/loadenv.c: Likewise.
32966 * commands/memrw.c: Likewise.
32967 * commands/password.c: Likewise.
32968 * commands/videotest.c: Likewise.
32969 * disk/ata.c: Likewise.
32970 * disk/ata_pthru.c: Likewise.
32971 * disk/dmraid_nvidia.c: Likewise.
32972 * disk/ieee1275/nand.c: Likewise.
32973 * disk/ieee1275/ofdisk.c: Likewise.
32974 * disk/loopback.c: Likewise.
32975 * disk/lvm.c: Likewise.
32976 * disk/mdraid_linux.c: Likewise.
32977 * disk/raid.c: Likewise.
32978 * disk/raid6_recover.c: Likewise.
32979 * disk/scsi.c: Likewise.
32980 * efiemu/main.c: Likewise.
32981 * efiemu/mm.c: Likewise.
32982 * efiemu/pnvram.c: Likewise.
32983 * efiemu/symbols.c: Likewise.
32984 * font/font.c: Likewise.
32985 * fs/cpio.c: Likewise.
32986 * fs/hfsplus.c: Likewise.
32987 * fs/iso9660.c: Likewise.
32988 * fs/jfs.c: Likewise.
32989 * fs/minix.c: Likewise.
32990 * fs/ntfs.c: Likewise.
32991 * fs/ntfscomp.c: Likewise.
32992 * fs/reiserfs.c: Likewise.
32993 * fs/ufs.c: Likewise.
32994 * fs/xfs.c: Likewise.
32995 * gettext/gettext.c: Likewise.
32996 * include/grub/auth.h: Likewise.
32997 * kern/elf.c: Likewise.
32998 * kern/file.c: Likewise.
32999 * kern/ieee1275/init.c: Likewise.
33000 * kern/ieee1275/mmap.c: Likewise.
33001 * kern/ieee1275/openfw.c: Likewise.
33002 * kern/powerpc/dl.c: Likewise.
33003 * kern/sparc64/dl.c: Likewise.
33004 * lib/arg.c: Likewise.
33005 * loader/i386/bsd.c: Likewise.
33006 * loader/i386/bsdXX.c: Likewise.
33007 * loader/i386/efi/linux.c: Likewise.
33008 * loader/i386/efi/xnu.c: Likewise.
33009 * loader/i386/ieee1275/linux.c: Likewise.
33010 * loader/i386/linux.c: Likewise.
33011 * loader/i386/multiboot.c: Likewise.
33012 * loader/i386/pc/linux.c: Likewise.
33013 * loader/i386/pc/multiboot2.c: Likewise.
33014 * loader/i386/xnu.c: Likewise.
33015 * loader/ieee1275/multiboot2.c: Likewise.
33016 * loader/macho.c: Likewise.
33017 * loader/machoXX.c: Likewise.
33018 * loader/multiboot2.c: Likewise.
33019 * loader/multiboot_loader.c: Likewise.
33020 * loader/powerpc/ieee1275/linux.c: Likewise.
33021 * loader/sparc64/ieee1275/linux.c: Likewise.
33022 * loader/xnu.c: Likewise.
33023 * loader/xnu_resume.c: Likewise.
33024 * mmap/i386/pc/mmap.c: Likewise.
33025 * normal/menu_viewer.c: Likewise.
33026 * partmap/acorn.c: Likewise.
33027 * partmap/amiga.c: Likewise.
33028 * partmap/apple.c: Likewise.
33029 * script/lexer.c: Likewise.
33030 * term/gfxterm.c: Likewise.
33031 * term/i386/pc/serial.c: Likewise.
33032 * term/i386/pc/vga.c: Likewise.
33033 * term/ieee1275/ofconsole.c: Likewise.
33034 * term/terminfo.c: Likewise.
33035 * video/bitmap.c: Likewise.
33036 * video/efi_gop.c: Likewise.
33037 * video/efi_uga.c: Likewise.
33038 * video/fb/video_fb.c: Likewise.
33039 * video/i386/pc/vbe.c: Likewise.
33040 * video/readers/tga.c: Likewise.
33041 * video/video.c: Likewise.
33042
33043 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33044
33045 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33046 * commands/lspci.c: Likewise.
33047 * commands/probe.c: Likewise.
33048 * commands/xnu_uuid.c: Likewise.
33049 * conf/i386-coreboot.rmk: Likewise.
33050 * conf/i386-efi.rmk: Likewise.
33051 * conf/i386-ieee1275.rmk: Likewise.
33052 * conf/i386-pc.rmk: Likewise.
33053 * conf/powerpc-ieee1275.rmk: Likewise.
33054 * conf/sparc64-ieee1275.rmk: Likewise.
33055 * conf/x86_64-efi.rmk: Likewise.
33056 * fs/i386/pc/pxe.c: Likewise.
33057 * gettext/gettext.c: Likewise.
33058 * include/grub/efi/graphics_output.h: Likewise.
33059 * include/grub/i386/pc/memory.h: Likewise.
33060 * kern/env.c: Likewise.
33061 * kern/i386/qemu/startup.S: Likewise.
33062 * lib/i386/pc/biosnum.c: Likewise.
33063 * lib/i386/relocator.c: Likewise.
33064 * lib/i386/relocator_asm.S: Likewise.
33065 * lib/relocator.c: Likewise.
33066 * loader/i386/bsd.c: Likewise.
33067 * loader/i386/multiboot.c: Likewise.
33068 * loader/i386/pc/chainloader.c: Likewise.
33069 * loader/i386/xnu.c: Likewise.
33070 * loader/xnu.c: Likewise.
33071 * normal/main.c: Likewise.
33072 * normal/menu_text.c: Likewise.
33073 * util/getroot.c: Likewise.
33074 * util/grub-mkconfig_lib.in: Likewise.
33075 * util/grub.d/00_header.in: Likewise.
33076 * util/i386/pc/grub-mkimage.c: Likewise.
33077 * util/mkisofs/eltorito.c: Likewise.
33078 * util/mkisofs/exclude.h: Likewise.
33079 * util/mkisofs/hash.c: Likewise.
33080 * util/mkisofs/iso9660.h: Likewise.
33081 * util/mkisofs/joliet.c: Likewise.
33082 * util/mkisofs/mkisofs.c: Likewise.
33083 * util/mkisofs/mkisofs.h: Likewise.
33084 * util/mkisofs/multi.c: Likewise.
33085 * util/mkisofs/name.c: Likewise.
33086 * util/mkisofs/rock.c: Likewise.
33087 * util/mkisofs/tree.c: Likewise.
33088 * util/mkisofs/write.c: Likewise.
33089 * video/efi_gop.c: Likewise.
33090
33091 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33092
33093 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33094 size counting.
33095
33096 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33097
33098 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33099 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33100
33101 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33102
33103 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33104 (GRUB_MOD_INIT(memrw)): Update help line.
33105
33106 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33107
33108 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33109 Use grub_extcmd_t. All users updated.
33110 (options): New variable.
33111 (grub_cmd_read): Restructure for readability. Support "-v" option.
33112 (grub_cmd_write): Restructure for readability.
33113
33114 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33115
33116 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33117
33118 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33119
33120 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33121 with the actual contents of the correspondending make variable.
33122 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33123 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33124 specifying `*.lst' and `efiemu??.o'
33125
33126 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33127
33128 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33129 after function name.
33130 Noticed by Rene Engelhard <rene@debian.org>.
33131
33132 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33133
33134 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33135 (options): New variable.
33136 (iospace): Likewise.
33137 (grub_lspci_iter): List IO spaces if "-i" was given.
33138 (grub_cmd_lspci): Parse options.
33139 (GRUB_MOD_INIT(lspci)): Use extcmd.
33140 (GRUB_MOD_FINI(lspci)): Likewise.
33141
33142 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33143
33144 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33145 `function' keyword.
33146 Patch by Tony Mancill <tmancill@debian.org>.
33147
33148 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33149
33150 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33151 (grub_uhci_portstatus): Likewise.
33152 (grub_uhci_portstatus): Add necessary delay.
33153 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33154
33155 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33156
33157 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33158 (GRUB_MOD_INIT): Likewise.
33159 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33160 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33161 * commands/echo.c (options): Fix capitalizations and/or full stops.
33162 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33163 (enable_rom_area): Likewise.
33164 (GRUB_MOD_INIT): Likewise.
33165 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33166 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33167 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33168 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33169 * commands/hexdump.c (options): Likewise.
33170 * commands/i386/cpuid.c (options): Likewise.
33171 (GRUB_MOD_INIT): Likewise.
33172 * commands/i386/pc/drivemap.c (options): Likewise.
33173 (GRUB_MOD_INIT): Likewise.
33174 * commands/i386/pc/halt (options): Likewise.
33175 (GRUB_MOD_INIT): Likewise.
33176 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33177 * commands/i386/pc/pxecmd.c (options): Likewise.
33178 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33179 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33180 * commands/keystatus.c (options): Likewise.
33181 (GRUB_MOD_INIT): Likewise.
33182 * commands/loadenv.c (options): Likewise.
33183 * commands/ls.c (options): Likewise.
33184 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33185 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33186 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33187 * commands/parttool.c (helpmsg): Likewise.
33188 * commands/probe.c (options): Likewise.
33189 * commands/read.c (GRUB_MOD_INIT): Likewise.
33190 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33191 * commands/search.c (options): Likewise.
33192 * commands/sleep.c (options): Likewise.
33193 * commands/test.c (GRUB_MOD_INIT): Likewise.
33194 * commands/true.c (GRUB_MOD_INIT): Likewise.
33195 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33196 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33197 * lib/arg.c (help_options): Likewise.
33198 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33199 `$(XGETTEXT)'.
33200 * po/POTFILES: Add `commands/loadenv.c'.
33201
33202 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33203
33204 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33205 instead of specifying them explicit.
33206
33207 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33208
33209 * NEWS: Add grub-probe support for GNU/Hurd.
33210
33211 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33212
33213 * NEWS: gettext was added after 1.97.
33214
33215 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33216
33217 * util/mkisofs/msdos_partition.h: New file (based on
33218 include/grub/msdos_partition.h).
33219 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33220 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33221 (ld_options, main): Recognize --protective-msdos-label.
33222 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33223 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33224 (padblock_write): If `use_protective_msdos_label' is set, patch a
33225 protective DOS-style label in the output image.
33226
33227 * util/grub-mkrescue.in: Use --protective-msdos-label.
33228
33229 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33230
33231 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33232 boot.
33233
33234 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33235
33236 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33237 variables.
33238 (ld_options, main): Recognize `--embedded-boot'.
33239 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33240 declarations.
33241 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33242 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33243 (padblock_write): Likewise. Rewrite to support embedded boot image.
33244
33245 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33246 for BIOS-based disk boot instead of only ElTorito.
33247
33248 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33249
33250 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33251 build (not needed for bootstrap).
33252
33253 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33254
33255 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33256 from i386-pc build (not needed for bootstrap).
33257 Rewrite a pair of strings.
33258
33259 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33260
33261 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33262
33263 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33264
33265 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33266
33267 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33268
33269 * kern/env.c (grub_env_context_open): Mark exported variable for
33270 reexport.
33271
33272 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33273
33274 * kern/env.c (grub_env_export): Create nonexistent variables before
33275 exporting.
33276
33277 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33278
33279 * include/grub/auth.h: Include `<grub/i18n.h>'.
33280 (GRUB_GET_PASSWORD): Gettextizze string.
33281 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33282 menu_text.c.
33283 (grub_utf8_to_ucs4_alloc): Fix indentation.
33284 (grub_print_ucs4): Likewise.
33285 (grub_getstringwidth): Likewise.
33286 (print_message_indented): New declaration.
33287 * normal/auth.c: Include `<grub/i18n.h>'.
33288 (grub_auth_check_authentication): Gettexttize string.
33289 * normal/cmdline.c: Include `<grub/i18n.h>'.
33290 (grub_cmdline_get): Gettextizze.
33291 * normal/color.c: Include `<grub/i18n.h>'.
33292 (grub_parse_color_name_pair): Gettexttize strings.
33293 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33294 string (use `print_message_indented').
33295 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33296 `include/grub/normal.h'.
33297 (print_message_indented): Renamed to ...
33298 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33299 used in normal/main.c).
33300 (print_message): Use `grub_print_message_indented' instead of
33301 `print_message_indented'.
33302 (print_timeout): Likewise.
33303 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33304 (grub_normal_print_device_info): Gettexttize strings.
33305 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33306
33307 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33308
33309 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33310 of arguments. Return number of tokens and not arguments. All users
33311 updated.
33312
33313 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33314
33315 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33316 non-MSDOS paritions.
33317
33318 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33319
33320 * include/grub/types.h (UNUSED): Removed since it conflicts with
33321 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33322 Reported by Grégoire Sutre.
33323
33324 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33325
33326 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33327 (grub_print_ucs4_alloc): Likewise.
33328 (grub_getstringwidth): Likewise.
33329 * normal/main.c (grub_normal_init_page): Gettextize version string.
33330 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33331 (getstringwidth): Renamed to ...
33332 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33333 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33334 (grub_print_ucs4): Remove `static' qualifer (now used in
33335 normal/main.c).
33336 * po/POTFILES: Add normal/main.c.
33337
33338 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33339
33340 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33341 (print_message_indented): Add `margin_left' and `margin_right'
33342 parameters.
33343 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33344 strings.
33345 (print_timeout): Use `print_message_indented' to print the message.
33346 Deletes `second_stage' parameter.
33347 (run_menu): Update `print_timeout' calls.
33348
33349 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33350
33351 Fix console palette on OpenFirmware.
33352
33353 * term/ieee1275/ofconsole.c (MAX): Removed.
33354 (colors): Redone based on VGA palette.
33355 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33356 colors are supported.
33357 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33358
33359 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33360
33361 Fix potential EfiEmu double prepare.
33362
33363 * efiemu/main.c (prepared): New variable
33364 (grub_efiemu_unload): Set prepare to '0'.
33365 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33366
33367 set_virtual_address_map support.
33368
33369 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33370 prototype.
33371 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33372 prototype.
33373 (grub_efiemu_crc32): Likewise.
33374 (grub_efiemu_crc64): Likewise.
33375 (grub_efiemu_set_virtual_address_map): Likewise.
33376 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33377 New definition.
33378 (grub_autoefi_set_virtual_address_map): Likewise.
33379 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33380 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33381 Restructure flow to accomodate it.
33382 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33383 (grub_efiemu_crc): Recompute CRC32.
33384 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33385 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33386 * efiemu/symbols.c (relocated_handle): New variable.
33387 (grub_efiemu_free_syms): Free relocated_handle.
33388 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33389 (grub_efiemu_write_sym_markers): New function.
33390 (grub_efiemu_set_virtual_address_map): Likewise.
33391
33392 Newer XNU parameters.
33393
33394 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33395 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33396 (grub_xnu_fill_devicetree): New prototype.
33397 (grub_xnu_heap_real_start): New variable.
33398 * loader/xnu.c (get_name_ptr): New function.
33399 (grub_xnu_load_driver): Fill namelen and name.
33400
33401 64-bit xnu support.
33402
33403 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33404 and 'loader/macho64.c'.
33405 * conf/i386-pc.rmk: Likewise.
33406 * conf/x86_64-efi.rmk: Likewise.
33407 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33408 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33409 * include/grub/macho.h (grub_macho_segment64): New structure.
33410 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33411 (grub_macho_size32): ... to this.
33412 (grub_macho32_get_entry_point): Renamed from ...
33413 (grub_macho_get_entry_point32): ... to this.
33414 (grub_macho_contains_macho64): New prototype.
33415 (grub_macho_size64): Likewise.
33416 (grub_macho_get_entry_point64): Likewise.
33417 (grub_macho32_load): Renamed from ...
33418 (grub_macho_load32): ... to this.
33419 (grub_macho32_filesize): Renamed from ...
33420 (grub_macho_filesize32): ... to this.
33421 (grub_macho32_readfile): Renamed from ...
33422 (grub_macho_readfile32): ... to this.
33423 (grub_macho_filesize64): New prototype.
33424 (grub_macho_readfile64): Likewise.
33425 (grub_macho_parse32): Likewise.
33426 (grub_macho_parse64): Likewise.
33427 * loader/macho.c: Split into ...
33428 * loader/machoXX.c: ... and this. Replace 32 with XX.
33429 * loader/macho32.c: New file.
33430 * loader/macho64.c: Likewise.
33431 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33432 (grub_cmd_xnu_kernel): Make 32-bit only.
33433 (grub_cmd_xnu_kernel64): New function.
33434 (grub_xnu_load_driver): Support Mach-O 64.
33435 (grub_cmd_xnu_mkext): Likewise.
33436 * util/grub.d/30_os-prober.in (osx_entry): New function.
33437 Generate entries for 64-bit boot too.
33438
33439 Eliminate ad-hoc tree format in XNU and EfiEmu.
33440
33441 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33442 * efiemu/pnvram.c: Rewritten to use environment variables.
33443 All users updated.
33444
33445 Inline utf16_to_utf8.
33446
33447 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33448 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33449 All users updated.
33450 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33451
33452 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33453 * commands/usbtest.c (grub_usb_get_string): ... move here.
33454 (usb_print_str): Fix error handling.
33455 * include/grub/usb.h (grub_usb_get_string): Remove.
33456
33457 UTF-8 to UTF-16 transformation.
33458
33459 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33460 (charset_mod_SOURCES): New variable.
33461 (charset_mod_CFLAGS): Likewise.
33462 (charset_mod_LDFLAGS): Likewise.
33463 * include/grub/utf.h: New file.
33464 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33465
33466 Support for device properties.
33467
33468 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33469 (grub_xnu_devprop_device_header): Likewise.
33470 (grub_xnu_devprop_device_descriptor): Likewise.
33471 (grub_xnu_devprop_add_device): New prototype.
33472 (grub_xnu_devprop_remove_device): Likewise.
33473 (grub_xnu_devprop_remove_property): Likewise.
33474 (grub_xnu_devprop_add_property_utf8): Likewise.
33475 (grub_xnu_devprop_add_property_utf16): Likewise.
33476 (grub_cpu_xnu_init): Likewise.
33477 (grub_cpu_xnu_fini): Likewise.
33478 (grub_cpu_xnu_unload): Likewise.
33479 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33480 (property_descriptor): Likewise.
33481 (devices): New variable.
33482 (grub_xnu_devprop_remove_property): New function.
33483 (grub_xnu_devprop_add_device): Likewise.
33484 (grub_xnu_devprop_remove_device): Likewise.
33485 (grub_xnu_devprop_add_property): Likewise.
33486 (grub_xnu_devprop_add_property_utf8): Likewise.
33487 (grub_xnu_devprop_add_property_utf16): Likewise.
33488 (hextoval): Likewise.
33489 (grub_cpu_xnu_fill_devprop): Likewise.
33490 (grub_cmd_devprop_load): Likewise.
33491 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33492 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33493 (cmd_devprop_load): New variable.
33494 (grub_cpu_xnu_init): New function.
33495 (grub_cpu_xnu_fini): Likewise.
33496 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33497 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33498 (grub_cmd_xnu_devtree): Likewise.
33499 (hextoval): New function.
33500 (unescape): Likewise.
33501 (grub_xnu_fill_devicetree): Likewise.
33502
33503 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33504 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33505
33506 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33507
33508 Workaround for broken ATI VBE.
33509
33510 * video/i386/pc/vbe.c (last_set_mode): New variable.
33511 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33512 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33513 (grub_video_vbe_setup): Don't check for reserved flag.
33514
33515 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33516
33517 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33518 the `find' command.
33519
33520 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33521
33522 UUID support for HFS.
33523
33524 * fs/hfs.c (grub_hfs_uuid): New function.
33525 (grub_hfs_fs): New value .uuid.
33526 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33527
33528 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33529
33530 Fix a segfault with parsing unknown long options.
33531
33532 * util/grub-mkrelpath.c (options): Zero terminate it.
33533
33534 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33535
33536 * include/grub/misc.h (grub_puts): New declaration.
33537 (grub_puts_): Likewise.
33538 * kern/misc.c (grub_puts): New definition.
33539 (grub_puts_): Likewise.
33540
33541 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33542
33543 * util/grub-probe.c (probe): Improve error message.
33544
33545 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33546
33547 * loader/i386/multiboot_elfxx.c
33548 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33549 initialization.
33550
33551 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33552
33553 Relocator framework
33554
33555 * loader/i386/xnu_helper.S: Removed. All users updated.
33556 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33557 (relocator_mod_SOURCES): New variable.
33558 (relocator_mod_CFLAGS): Likewise.
33559 (relocator_mod_LDFLAGS): Likewise.
33560 (relocator_mod_ASFLAGS): Likewise.
33561 * conf/x86_64.rmk: Likewise.
33562 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33563 (grub_multiboot_payload_entry_offset): Likewise.
33564 (grub_multiboot_forward_relocator): Likewise.
33565 (grub_multiboot_forward_relocator_end): Likewise.
33566 (grub_multiboot_backward_relocator): Likewise.
33567 (grub_multiboot_backward_relocator_end): Likewise.
33568 (grub_multiboot_payload_eip): New variable.
33569 (grub_multiboot_payload_orig): Likewise.
33570 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33571 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33572 * include/grub/i386/memory.h
33573 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33574 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33575 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33576 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33577 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33578 * include/grub/i386/relocator.h: New file.
33579 * include/grub/x86_64/relocator.h: Likewise.
33580 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33581 (XNU_RELOCATOR): New macro.
33582 (grub_xnu_launcher_start): Remove.
33583 (grub_xnu_launcher_end): Likewise.
33584 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33585 (grub_xnu_heap_real_start): Remove.
33586 (grub_xnu_heap_start): Change to void *. All users updated.
33587 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33588 * lib/i386/relocator.c: New file.
33589 * lib/i386/relocator_asm.S: Likewise.
33590 * lib/i386/relocator_backward.S: Likewise.
33591 * lib/mips/relocator.c: Likewise.
33592 * lib/mips/relocator_asm.S: Likewise.
33593 * lib/relocator.c: Likewise.
33594 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33595 (entry): Removed.
33596 (playground): Likewise.
33597 (grub_multiboot_payload_orig): New variable.
33598 (grub_multiboot_payload_dest): Likewise.
33599 (grub_multiboot_payload_size): Likewise.
33600 (grub_multiboot_payload_eip): Likewise.
33601 (grub_multiboot_payload_esp): Likewise.
33602 (grub_multiboot_boot): Use grub_relocator32_boot.
33603 (grub_multiboot_unload): Free relocators.
33604 (grub_multiboot): Setup stack. Use relocators.
33605 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33606 (grub_multiboot_load_elfXX): Use relocators.
33607 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33608 (grub_multiboot_payload_size): Likewise.
33609 (grub_multiboot_payload_dest): Likewise.
33610 (grub_multiboot_payload_entry_offset): Likewise.
33611 (grub_multiboot_forward_relocator): Likewise.
33612 (grub_multiboot_backward_relocator): Likewise.
33613 (grub_multiboot_real_boot): Likewise.
33614 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33615 (grub_xnu_entry_point): Likewise.
33616 (grub_xnu_arg1): Likewise.
33617 (grub_xnu_stack): Likewise.
33618 (grub_xnu_launch): Removed.
33619 (grub_xnu_boot_resume): New function.
33620 (grub_xnu_boot): Use relocators.
33621 * loader/i386/xnu_helper.S: Removed.
33622 * loader/xnu.c (grub_xnu_heap_start): New variable.
33623 (grub_xnu_heap_size): Likewise.
33624 (grub_xnu_heap_malloc): Use relocators.
33625 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33626
33627 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33628
33629 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33630 anything.
33631
33632 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33633
33634 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33635 GRUB_ERR_NONE before calling grub_env_set.
33636
33637 2009-12-12 Robert Millan <rmh@aybabtu.com>
33638
33639 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33640 * genmk.rb (video): New variable.
33641 (CLEANFILES, VIDEOFILES): Add #{video}.
33642 (#{video}): New target rule.
33643 * genvideolist.sh: New file.
33644 * Makefile.in (pkglib_DATA): Add video.lst.
33645 (video.lst): New target rule.
33646 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33647 `video.lst'.
33648 * util/grub.d/30_os-prober.in: Replace `vbe' with
33649 ${GRUB_VIDEO_BACKEND}.
33650
33651 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33652
33653 * THANKS: Add David Miller.
33654
33655 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33656
33657 libpciaccess support.
33658
33659 * Makefile.in (LIBPCIACCESS): New variable.
33660 (enable_grub_emu_pci): Likewise.
33661 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33662 util/pci.c and commands/lspci.c.
33663 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33664 * configure.ac (grub-emu-pci): New option.
33665 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33666 (grub_pci_device_unmap_range): Likewise.
33667 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33668 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33669 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33670 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33671 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33672 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33673 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33674 * include/grub/pciutils.h: New file.
33675 * util/pci.c: Likewise.
33676
33677 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33678
33679 * util/misc.c: Don't include <errno.h> twice.
33680
33681 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33682
33683 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33684 name in an error message.
33685 (grub_biosdisk_rw): Likewise.
33686
33687 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33688
33689 Eliminate NTFS 4Gib barrier.
33690
33691 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33692 (read_run_data): Likewise.
33693 (grub_ntfs_read_run_list): Likewise.
33694 (grub_ntfs_read_block): Likewise.
33695 (grub_ntfs_iterate_dir): Likewise.
33696 (read_mft): Likewise.
33697 (read_data): Likewise.
33698 Use COM_LOG_LEN.
33699 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33700 to avoid 64-bit division
33701 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33702 (grub_ntfs_rlst): Use grub_disk_addr_t.
33703
33704 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33705
33706 Eliminate grub-fstest 4Gib barrier.
33707
33708 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33709 (read_file): Fix error reporting.
33710
33711 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33712
33713 Eliminate hexdump 4Gib barrier.
33714
33715 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33716 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33717
33718 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33719
33720 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33721 Fixes amarsh bug.
33722
33723 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33724
33725 Remove miscellaneous files in distclean target.
33726
33727 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33728
33729 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33730
33731 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33732 if they're already set. This resolves the conflict between my
33733 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33734 fixing the --grub-probe option again.
33735 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33736 change on 2009-10-06, so that we now once again source
33737 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33738
33739 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33740
33741 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33742 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33743 `util/devicemap.c'.
33744
33745 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33746
33747 * include/grub/misc.h (grub_printf_): New declaration.
33748 * kern/misc.c (grub_printf_): New definition.
33749 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33750 instead of `grub_printf' and `_'.
33751 * normal/menu_entry.c (store_completion): Likewise.
33752 (run): Likewise.
33753 (grub_menu_entry_run): Likewise.
33754 * normal/menu_text.c (grub_wait_after_message): Likewise.
33755 (notify_booting): Likewise.
33756 (notify_fallback): Likewise.
33757 (notify_execution_failure): Likewise.
33758
33759 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33760
33761 * configure.ac: Check for vasprintf.
33762 * util/misc.c (asprintf): Move allocation from here ...
33763 (vasprintf): ... to here. New function.
33764 (xasprintf): New function.
33765 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33766 prototypes.
33767 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33768 * util/grub-mkfont.c (write_font): Likewise.
33769 * util/grub-probe.c (probe): Likewise.
33770 * util/hostdisk.c (make_device_name): Likewise.
33771
33772 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33773
33774 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33775 anything even prefixed with 'cdrom' as a cdrom.
33776
33777 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33778
33779 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33780 mount points.
33781
33782 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33783
33784 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33785 grub_gettext_msg_list.
33786 (grub_gettext_gettranslation_from_position): Return const char *
33787 and not char *.
33788 (grub_gettext_translate): Add the translated strings into a list,
33789 returns from the list if existing there.
33790 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33791 (grub_gettext_delete_list): Delete the list.
33792 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33793 lang environment variable is changed.
33794 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33795
33796 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33797
33798 Rename kernel.mod to kernel.img.
33799
33800 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33801 (kernel_mod_EXPORTS): Rename to ...
33802 (kernel_img_EXPORTS): ... this.
33803 (kernel_mod_SOURCES): Rename to ...
33804 (kernel_img_SOURCES): ... this.
33805 (kernel_mod_HEADERS): Rename to ...
33806 (kernel_img_HEADERS): ... this. All users updated.
33807 (kernel_mod_CFLAGS): Rename to ...
33808 (kernel_img_CFLAGS): ... this.
33809 (kernel_mod_ASFLAGS): Rename to ...
33810 (kernel_img_ASFLAGS): ... this.
33811 (kernel_mod_LDFLAGS): Rename to ...
33812 (kernel_img_LDFLAGS): ... this.
33813 * conf/x86_64-efi.rmk: Likewise.
33814 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33815 (read_kernel_image): ... this. All users updated.
33816 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33817
33818 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33819
33820 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33821 (print_spaces): New function.
33822 (grub_print_ucs4): New function.
33823 (getstringwidth): New function.
33824 (print_message_indented): New function.
33825 (print_message): Gettexttize strings using print_message_indented.
33826 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33827 width.
33828 (get_entry_number): Gettextize and uses dynamic terminal width.
33829 (notify_booting, notify_fallback, notify_execution_failure):
33830 Gettextize.
33831 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33832 string.
33833 (run): Likewise.
33834 (grub_menu_entry_run): Likewise.
33835 * PO/POTFILES: Add normal/menu_entry.c.
33836
33837 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33838
33839 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33840
33841 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33842
33843 * util/grub-install.in: Install gettext .mo files.
33844 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33845
33846 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33847
33848 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33849 grub_dprintf.
33850
33851 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33852
33853 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33854 non-firmware-dependant one in realmode.S takes precedence.
33855
33856 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33857
33858 * commands/halt.c: Replace misc arch-specific headers with
33859 `<grub/misc.h>'.
33860 * commands/reboot.c: Likewise.
33861 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33862 `<grub/misc.h>'.
33863 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33864 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33865 (kernel_img_SOURCES): ... to here.
33866
33867 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33868 * include/grub/i386/pc/init.h: Likewise.
33869 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33870 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33871
33872 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33873
33874 * include/grub/i386/halt.h: Remove.
33875 * include/grub/i386/reboot.h: Likewise.
33876
33877 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33878
33879 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33880
33881 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33882 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33883 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33884 "progname.h"
33885 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33886 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33887 (usage): Add missing comma in printf.
33888
33889 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33890
33891 Use the same reboot approach on i386 coreboot and qemu as we do on
33892 BIOS.
33893
33894 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33895 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33896 * kern/i386/reboot.c: Remove.
33897 * include/grub/i386/reboot.h (grub_reboot): Export function.
33898 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33899 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33900 0xf000:0xfff0 instead of 0xffff:0x0000.
33901 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33902 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33903
33904 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33905
33906 Fix $srcdir != $objdir build.
33907
33908 * Makefile.in (po/%.po): Rewrite as ...
33909 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33910
33911 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33912
33913 Fix GNU/Hurd grub-install crash.
33914 * util/grub-probe.c (probe): Try to access `path' only when it is not
33915 NULL.
33916
33917 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33918
33919 Correct module naming.
33920
33921 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33922 (GRUB_MOD_INIT(efi_uga)): ... to this
33923 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33924 (GRUB_MOD_FINI(efi_uga)): ... to this
33925 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33926 (GRUB_MOD_INIT(efi_gop)): ... to this
33927 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33928 (GRUB_MOD_FINI(efi_gop)): ... to this
33929
33930 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33931
33932 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33933 translatable.
33934 (usage): Translate `arg' strings using gettext().
33935 Thanks to Jordi Mallach for the suggestion.
33936
33937 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33938
33939 GOP support. Based on patch from Bean
33940 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33941
33942 * video/efi_gop.c: New file.
33943 * include/grub/efi/graphics_output.h: Likewise.
33944 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33945 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33946 variables.
33947 * conf/x86_64-efi.rmk: Likewise.
33948
33949 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33950
33951 Rename efi_fb to efi_uga.
33952
33953 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33954 'efi_uga.mod'.
33955 (efi_fb_mod_SOURCES): Rename this ...
33956 (efi_uga_mod_SOURCES): ... to this.
33957 (efi_fb_mod_CFLAGS): Rename this ...
33958 (efi_uga_mod_CFLAGS): ... to this.
33959 (efi_fb_mod_LDFLAGS): Rename this ...
33960 (efi_uga_mod_LDFLAGS): ... to this.
33961 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33962 'efi_uga.mod'.
33963 (efi_fb_mod_SOURCES): Rename this ...
33964 (efi_uga_mod_SOURCES): ... to this.
33965 (efi_fb_mod_CFLAGS): Rename this ...
33966 (efi_uga_mod_CFLAGS): ... to this.
33967 (efi_fb_mod_LDFLAGS): Rename this ...
33968 (efi_uga_mod_LDFLAGS): ... to this.
33969 * video/efi_fb.c: Move this ...
33970 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33971
33972 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33973
33974 * po/README: New file. Explain our PO file workflow.
33975
33976 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33977
33978 * po/ChangeLog: Remove. Move relevant entries back to ...
33979 * ChangeLog: ... here.
33980 * po/ca.po: Remove (now handled by TLP).
33981 * po/id.po: Likewise.
33982 * po/zh_CN.po: Likewise.
33983 * Makefile.in (LINGUAS): Initialize in a way that supports
33984 empty set.
33985
33986 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33987
33988 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
33989 reliing on po/LINGUAS.
33990 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
33991 (po/%.po): ... this.
33992
33993 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33994
33995 * util/i386/efi/grub-mkimage.c: Include "progname.h".
33996 (main): Use `program_name' instead of nonexistent `progname'.
33997
33998 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
33999
34000 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34001 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34002
34003 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34004
34005 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34006 commit.
34007 * conf/i386-efi.rmk: Likewise.
34008 * conf/i386-ieee1275.rmk: Likewise.
34009 * conf/powerpc-ieee1275.rmk: Likewise.
34010 * conf/sparc64-ieee1275.rmk: Likewise.
34011 * conf/x86_64-efi.rmk: Likewise.
34012
34013 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34014
34015 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34016
34017 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34018
34019 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34020
34021 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34022
34023 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34024 (grub_mkdevicemap_SOURCES): New variable.
34025 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34026 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34027 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34028 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34029 (grub_mkdevicemap_SOURCES): Remove.
34030 * conf/i386-efi.rmk: Likewise.
34031 * conf/i386-ieee1275.rmk: Likewise.
34032 * conf/i386-pc.rmk: Likewise.
34033 * conf/powerpc-ieee1275.rmk: Likewise.
34034 * conf/sparc64-ieee1275.rmk: Likewise.
34035 * conf/x86_64-efi.rmk: Likewise.
34036 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34037 (usage): Fix strings to use `program_name'.
34038 (main): Initialize gettext.
34039 * util/grub-editenv.c: Likewise.
34040 * util/grub-emu.c: Likewise.
34041 * util/grub-fstest.c: Likewise.
34042 * util/grub-mkdevicemap.c: Likewise.
34043 * util/grub-mkfont.c: Likewise.
34044 * util/grub-mkrelpath.c: Likewise.
34045 * util/grub-pe2elf.c: Likewise.
34046 * util/grub-probe.c: Likewise.
34047 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34048 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34049 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34050
34051 * util/misc.c: Include `"progname.h"'.
34052 (progname): Remove variable.
34053 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34054
34055 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34056
34057 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34058 printf and print a newline after the menuentry header line.
34059 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34060
34061 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34062
34063 autoconf >= 2.60 support $(localedir).
34064
34065 * INSTALL: Note that autoconf 2.60 is required.
34066 * configure.ac (AC_PREREQ): Bump to 2.60.
34067 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34068 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34069
34070 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34071
34072 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34073 aclocal is run.
34074
34075 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34076
34077 * normal/main.c (grub_normal_read_line): Fix off-by-one
34078 buffer overflow.
34079
34080 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34081
34082 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34083 "parser.grub" in grub_command_execute() call.
34084
34085 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34086
34087 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34088 * conf/i386-efi.rmk: Likewise.
34089 * conf/i386-ieee1275.rmk: Likewise.
34090 * conf/i386-pc.rmk: Likewise.
34091 * conf/powerpc-ieee1275.rmk: Likewise.
34092 * conf/sparc64-ieee1275.rmk: Likewise.
34093 * conf/x86_64-efi.rmk: Likewise.
34094 * gettext/gettex.c: Include <grub/i18n.h>.
34095 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34096 here ...
34097 * include/grub/i18n.h: ... to here
34098 * include/grub/i18n.h: ... to here.
34099 * kern/misc.c: Include <grub/i18n.h>
34100 (grub_gettext_dummy): Move above user.
34101
34102 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34103
34104 * util/Makefile.in (install-local): Convert a `for' into a normal
34105 shell expansion.
34106
34107 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34108
34109 * autogen.sh: Add automake call.
34110 * config.guess: Remove.
34111 * config.sub: Likewise.
34112 * install-sh: Likewise.
34113
34114 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34115
34116 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34117
34118 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34119
34120 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34121 function to a normal shell `for'.
34122
34123 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34124
34125 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34126
34127 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34128
34129 * util/grub-mkrelpath.c: New file.
34130 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34131 (grub_mkrelpath_SOURCES): New variable.
34132 * include/grub/util/misc.h: New function prototype.
34133 * util/misc.c (make_system_path_relative_to_its_root): New function.
34134
34135 * util/grub-mkconfig_lib.in (bindir): New variable.
34136 (grub_mkrelpath): Likewise.
34137 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34138
34139 * util/probe.c (probe): Make the file path relative to its root.
34140 Change a info message to use the GRUB path. Enable again the
34141 check if we can read the file with GRUB facilities.
34142
34143 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34144 to its root.
34145
34146 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34147
34148 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34149 platform.
34150
34151 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34152
34153 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34154 strncmp().
34155
34156 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34157
34158 * util/getroot.c (grub_util_is_dmraid): New function.
34159 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34160 devices as normal ones, not as LVM.
34161
34162 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34163
34164 * conf/common.rmk: Add grub-gettext_lib target and updates
34165 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34166 LDFLAGS.
34167 * gettext/gettext.c: New file. (Reads mo files).
34168 * include/grub/file.h (grub_file_pread): New prototype.
34169 * include/grub/i18n.h (_): New prototype.
34170 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34171 prototypes.
34172 * kern/misc.c (grub_gettext_dummy): New function.
34173 * normal/menu_text.c: Include <grub/i18n.h>.
34174 * normal/menu_text.c (print_timeout): Gettexttize string.
34175 * normal/menu_text.c (print_message): Gettexttize string.
34176 * po/POTFILES: Add `normal/menu_text.c'.
34177 * po/ca.po: Add new translations.
34178 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34179 gettext module and defines locale_dir and lang in grub.cfg.
34180 * NEWS: Add gettext support.
34181
34182 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34183
34184 * util/hostdisk.c: Include `<grub/i18n.h>'.
34185 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34186 (make_device_name): Rewrite using asprintf.
34187 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34188 (find_system_device): If a device is not found, generate one just
34189 by reusing the OS path name.
34190 (read_device_map): Make it permissible for device.map not to exist.
34191
34192 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34193
34194 * script/sh/execute.c: Move from here ...
34195 * script/execute.c: ... to here. Update all users.
34196 * script/sh/function.c: Move from here ...
34197 * script/function.c: ... to here. Update all users.
34198 * script/sh/lexer.c: Move from here ...
34199 * script/lexer.c: ... to here. Update all users.
34200 * script/sh/main.c: Move from here ...
34201 * script/main.c: ... to here. Update all users.
34202 * script/sh/parser.y: Move from here ...
34203 * script/parser.y: ... to here. Update all users.
34204 * script/sh/script.c: Move from here ...
34205 * script/script.c: ... to here. Update all users.
34206
34207 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34208
34209 * configure.ac: Detect all `emu' platforms. Define
34210 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34211 --enable-grub-emu logic. Disable include/grub/machine
34212 symlink on `emu' platforms.
34213
34214 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34215 * gensymlist.sh.in: Likewise.
34216
34217 * include/grub/i386/coreboot/machine.h: Remove file.
34218 * include/grub/i386/efi/machine.h: Likewise.
34219 * include/grub/i386/ieee1275/machine.h: Likewise.
34220 * include/grub/i386/pc/machine.h: Likewise.
34221 * include/grub/i386/qemu/machine.h: Likewise.
34222 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34223 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34224 * include/grub/x86_64/efi/machine.h: Likewise.
34225
34226 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34227 * commands/halt.c: Likewise.
34228 * commands/reboot.c: Likewise.
34229 * include/grub/autoefi.h: Likewise.
34230 * include/grub/i386/at_keyboard.h: Likewise.
34231 * include/grub/i386/kernel.h: Likewise.
34232 * include/grub/i386/loader.h: Likewise.
34233 * include/grub/i386/pc/memory.h: Likewise.
34234 * kern/dl.c: Likewise.
34235 * kern/i386/coreboot/init.c: Likewise.
34236 * loader/i386/bsd.c: Likewise.
34237 * loader/i386/linux.c: Likewise.
34238 * loader/multiboot_loader.c: Likewise.
34239 * term/i386/pc/serial.c: Likewise.
34240 * term/usb_keyboard.c: Likewise.
34241
34242 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34243 `<grub/machine/machine.h>'
34244 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34245 * util/misc.c: Remove `<grub/machine/machine.h>' and
34246 `<grub/machine/time.h>'.
34247
34248 * Makefile.in (enable_grub_emu): Remove variable.
34249 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34250
34251 * conf/any-emu.rmk: New file.
34252 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34253 (grub_emu_init.c): Move from here ...
34254 * conf/any-emu.rmk: ... to here.
34255
34256 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34257 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34258 * conf/any-emu.rmk: ... to here.
34259
34260 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34261
34262 * include/grub/parser.h (grub_parser_register): Document need
34263 of `name' parameter.
34264 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34265 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34266 "sh" to "grub".
34267
34268 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34269
34270 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34271 `$(XGETTEXT)'.
34272 * include/grub/i18n.h (N_): New macro.
34273 * util/mkisofs/mkisofs.h: Likewise.
34274 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34275 around N_().
34276 (usage): Use gettext() to translate help strings when printing them.
34277
34278 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34279
34280 Based on patch from Bean
34281 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34282
34283 * video/efi_fb.c: New file.
34284 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34285 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34286 variables.
34287 * conf/x86_64-efi.rmk: Likewise.
34288
34289 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34290
34291 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34292 * util/i386/pc/grub-setup.c: Likewise.
34293
34294 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34295
34296 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34297 <hurd/fs.h>
34298 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34299 file_get_storage_info to implement grub_guess_root_device.
34300
34301 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34302
34303 * Makefile.in (target): Use make's builtin $(shell) function
34304 instead of calling directly $(SHELL) to create the locale directories,
34305 inside the $(foreach) function.
34306
34307 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34308
34309 * util/grub-mkrescue.in: Print an error and usage if output option
34310 has not been given.
34311
34312 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34313
34314 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34315 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34316 root and /boot are on different devices.
34317
34318 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34319
34320 Fix build for srcdir != objdir.
34321
34322 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34323 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34324 $(srcdir).
34325 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34326 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34327 reference for input.
34328
34329 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34330
34331 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34332 or hardlinking it). Remove -J option, Joliet is not compatible with
34333 multiple source directories.
34334
34335 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34336 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34337
34338 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34339 (process_input_dir): New function. Process an arbitrary input
34340 directory.
34341 Misc adjustments to support both "override mode" and system-wide mode.
34342
34343 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34344
34345 * configure.ac (UNIFONT_BDF): Rename to ...
34346 (FONT_SOURCE): ... this. Update all users.
34347
34348 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34349
34350 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34351 to the list of unifont files to look for.
34352
34353 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34354
34355 Patch from Joe Auricchio <jauricchio@gmail.com>
34356 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34357 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34358 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34359
34360 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34361
34362 * Makefile.in (install-local): Add a missing backslash.
34363
34364 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34365
34366 * include/grub/x86_64/io.h: New file.
34367
34368 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34369
34370 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34371 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34372 Include `"progname.h"'.
34373 (main): Initialize gettext.
34374 * util/i386/pc/grub-setup.c: Gettexttize.
34375 * util/i386/pc/grub-mkimage.c: Likewise.
34376
34377 * Makefile.in (po/*.po): Redefine as ...
34378 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34379
34380 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34381
34382 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34383
34384 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34385 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34386 (program_name): Remove.
34387 (main): Initialize gettext support.
34388 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34389 Include `<libintl.h>'.
34390 (_): New macro.
34391
34392 * util/mkisofs/eltorito.c: Gettexttize.
34393 * util/mkisofs/joliet.c: Likewise.
34394 * util/mkisofs/mkisofs.c: Likewise.
34395 * util/mkisofs/multi.c: Likewise.
34396 * util/mkisofs/rock.c: Likewise.
34397 * util/mkisofs/tree.c: Likewise.
34398 * util/mkisofs/write.c: Likewise.
34399
34400 * po/POTFILES: Update with new files.
34401
34402 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34403
34404 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34405 * util/mkisofs/iso9660.h: Likewise.
34406 * util/mkisofs/joliet.c: Likewise.
34407 * util/mkisofs/mkisofs.c: Likewise.
34408 * util/mkisofs/mkisofs.h: Likewise.
34409 * util/mkisofs/rock.c: Likewise.
34410 * util/mkisofs/tree.c: Likewise.
34411 * util/mkisofs/write.c: Likewise.
34412
34413 * util/mkisofs/eltorito.c (rcsid): Remove.
34414 * util/mkisofs/hash.c: Likewise.
34415 * util/mkisofs/joliet.c: Likewise.
34416 * util/mkisofs/name.c: Likewise.
34417 * util/mkisofs/rock.c: Likewise.
34418 * util/mkisofs/tree.c: Likewise.
34419 * util/mkisofs/write.c: Likewise.
34420
34421 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34422
34423 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34424 instead of static allocation.
34425 * util/mkisofs/match.h: Likewise.
34426
34427 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34428
34429 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34430 and `util/grub.d/10_linux.in'.
34431 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34432 translatable Shell files.
34433
34434 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34435
34436 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34437
34438 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34439
34440 * INSTALL: Document Automake is needed for bootstrap.
34441 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34442 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34443 Add gettext initialization.
34444 (kfreebsd_entry): Make menuentry output translatable.
34445
34446 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34447
34448 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34449 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34450 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34451 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34452 (LINGUAS): Auto-generate using `po/LINGUAS'.
34453 * po/LINGUAS: New file.
34454
34455 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34456
34457 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34458 other things).
34459 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34460 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34461 bindtextdomain() calls for gettext initialization.
34462
34463 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34464
34465 * gnulib/progname.c: New file (imported from Gnulib).
34466 * gnulib/progname.h: Likewise.
34467 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34468 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34469 (usage): Replace `progname' with `program_name'.
34470 (main): Use set_program_name() for program name initialization.
34471
34472 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34473
34474 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34475 from here ...
34476 * Makefile.in (CPPFLAGS): ... to here.
34477
34478 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34479
34480 * aclocal.m4: Move from here ...
34481 * acinclude.m4: ... to here.
34482 * autogen.sh: Add call to `aclocal'.
34483 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34484
34485 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34486
34487 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34488 (LINGUAS): New variable.
34489 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34490 (install-local): Install MO files.
34491 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34492 * include/grub/i18n.h: New file.
34493 * po/POTFILES: New file.
34494 * po/ca.po: New file.
34495 * util/grub.d/10_linux.in (bindir): New variable.
34496 Add gettext initialization.
34497 (linux_entry): Make menuentry output translatable.
34498 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34499 (usage): Make --help output translatable.
34500 (main): Initialize gettext.
34501
34502 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34503
34504 * import_gcry.py: New file (written by Vladimir with minor
34505 adjustments).
34506 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34507 ciphers.
34508 * INSTALL: Document that Python is required for bootstrap.
34509
34510 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34511
34512 Import ciphers from libgcrypt 1.4.4.
34513
34514 * lib/libgcrypt/cipher/ChangeLog
34515 * lib/libgcrypt/cipher/ac.c
34516 * lib/libgcrypt/cipher/arcfour.c
34517 * lib/libgcrypt/cipher/bithelp.h
34518 * lib/libgcrypt/cipher/blowfish.c
34519 * lib/libgcrypt/cipher/camellia-glue.c
34520 * lib/libgcrypt/cipher/camellia.c
34521 * lib/libgcrypt/cipher/camellia.h
34522 * lib/libgcrypt/cipher/cast5.c
34523 * lib/libgcrypt/cipher/cipher.c
34524 * lib/libgcrypt/cipher/crc.c
34525 * lib/libgcrypt/cipher/des.c
34526 * lib/libgcrypt/cipher/dsa.c
34527 * lib/libgcrypt/cipher/ecc.c
34528 * lib/libgcrypt/cipher/elgamal.c
34529 * lib/libgcrypt/cipher/hash-common.c
34530 * lib/libgcrypt/cipher/hash-common.h
34531 * lib/libgcrypt/cipher/hmac-tests.c
34532 * lib/libgcrypt/cipher/md.c
34533 * lib/libgcrypt/cipher/md4.c
34534 * lib/libgcrypt/cipher/md5.c
34535 * lib/libgcrypt/cipher/primegen.c
34536 * lib/libgcrypt/cipher/pubkey.c
34537 * lib/libgcrypt/cipher/rfc2268.c
34538 * lib/libgcrypt/cipher/rijndael-tables.h
34539 * lib/libgcrypt/cipher/rijndael.c
34540 * lib/libgcrypt/cipher/rmd.h
34541 * lib/libgcrypt/cipher/rmd160.c
34542 * lib/libgcrypt/cipher/rsa.c
34543 * lib/libgcrypt/cipher/seed.c
34544 * lib/libgcrypt/cipher/serpent.c
34545 * lib/libgcrypt/cipher/sha1.c
34546 * lib/libgcrypt/cipher/sha256.c
34547 * lib/libgcrypt/cipher/sha512.c
34548 * lib/libgcrypt/cipher/tiger.c
34549 * lib/libgcrypt/cipher/twofish.c
34550 * lib/libgcrypt/cipher/whirlpool.c
34551
34552 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34553
34554 Fix build for systems without error().
34555
34556 * gnulib/error.c: New file (imported from Gnulib).
34557 * gnulib/error.h: Likewise.
34558 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34559 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34560 (this variable is now used by error()).
34561
34562 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34563
34564 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34565 instead of relying that char is signed.
34566
34567 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34568
34569 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34570 blocksize different from specified.
34571 (grub_pxefs_read): Likewise.
34572
34573 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34574
34575 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34576
34577 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34578 (grub_ata_readwrite): Likewise. Update 2 format strings.
34579 (grub_atapi_read): Likewise.
34580
34581 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34582 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34583 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34584 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34585 (ata_mod_LDFLAGS): Move from here ...
34586 * conf/i386.rmk: ... to here ...
34587 * conf/x86_64-efi.rmk: ... and here.
34588 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34589 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34590
34591 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34592
34593 Relicense multiboot.h, with RMS' blessing.
34594
34595 * include/multiboot.h: Change to X11 license.
34596
34597 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34598
34599 Support --version in grub-mkisofs.
34600
34601 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34602 (OPTION_VERSION): New macro.
34603 (ld_options): Recognize --version.
34604 (usage): Move `program_name' from here ...
34605 (program_name): ... to here. Add `static' qualifier.
34606 (main): Recognize `OPTION_VERSION'.
34607
34608 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34609
34610 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34611 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34612
34613 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34614
34615 Fix help2man generation for mkisofs.
34616
34617 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34618 (usage): Send output to stdout (rather than stderr).
34619
34620 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34621
34622 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34623 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34624 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34625 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34626 (bin_SCRIPTS): Add `grub-mkfloppy'.
34627 (grub_mkfloppy_SOURCES): New variable.
34628
34629 * util/grub-mkrescue.in: New file.
34630 * util/i386/pc/grub-mkfloppy.in: New file.
34631
34632 * util/i386/coreboot/grub-mkrescue.in: Remove.
34633 * util/i386/pc/grub-mkrescue.in: Remove.
34634
34635 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34636
34637 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34638 from here ...
34639 * include/multiboot.h (struct multiboot_header): ... to here. Update
34640 all users.
34641 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34642 from here ...
34643 * include/multiboot.h (struct multiboot_info): ... to here. Update
34644 all users.
34645 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34646 from here ...
34647 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34648 Update all users.
34649 * include/grub/multiboot.h (struct grub_mod_list): Move
34650 from here ...
34651 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34652 Update all users.
34653
34654 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34655
34656 * include/multiboot2.h (multiboot_word): Rename from this ...
34657 (multiboot2_word): ... to this. Update all users.
34658 (multiboot_header): Rename from this ...
34659 (multiboot2_header): ... to this. Update all users.
34660 (multiboot_tag_header): Rename from this ...
34661 (multiboot2_tag_header): ... to this. Update all users.
34662 (multiboot_tag_start): Rename from this ...
34663 (multiboot2_tag_start): ... to this. Update all users.
34664 (multiboot_tag_name): Rename from this ...
34665 (multiboot2_tag_name): ... to this. Update all users.
34666 (multiboot_tag_module): Rename from this ...
34667 (multiboot2_tag_module): ... to this. Update all users.
34668 (multiboot_tag_memory): Rename from this ...
34669 (multiboot2_tag_memory): ... to this. Update all users.
34670 (multiboot_tag_unused): Rename from this ...
34671 (multiboot2_tag_unused): ... to this. Update all users.
34672 (multiboot_tag_end): Rename from this ...
34673 (multiboot2_tag_end): ... to this. Update all users.
34674
34675 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34676
34677 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34678 this platform we should support Multiboot1 first.
34679
34680 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34681 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34682 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34683
34684 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34685
34686 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34687 of write calls (converting them to fwrite() if they aren't already).
34688 (get_torito_desc): Likewise.
34689 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34690
34691 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34692
34693 * util/i386/pc/grub-install.in: Move from here ...
34694 * util/grub-install.in: ... to here. Update all users.
34695
34696 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34697
34698 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34699
34700 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34701
34702 Support for El Torito without floppy emulation.
34703
34704 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34705 (init_boot_catalog): Improve error handling.
34706 (get_torito_desc): Don't use floppy emulation unless requested by
34707 user. Patch boot information table when requested via
34708 `-boot-info-table'.
34709 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34710 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34711 (use_boot_info_table): New variables.
34712 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34713 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34714 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34715 `--eltorito-emul-floppy'.
34716 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34717 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34718 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34719 (use_boot_info_table, get_731): New prototypes.
34720 * util/mkisofs/write.c (get_731): New function.
34721
34722 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34723
34724 Fix the generation of the man page.
34725
34726 * util/pc/i386/grub-install.in: Source
34727 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34728
34729 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34730
34731 Large file support for grub-mkisofs.
34732
34733 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34734 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34735 (session_start): Upgrade type to `uint64_t'. Update all users.
34736 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34737 (struct directory_entry): Upgrade type of `starting_block' and
34738 `size' to `uint64_t'. Update all users.
34739 (struct deferred): Remove unused structure.
34740 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34741 Update all users.
34742 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34743 file is larger than `UINT32_MAX'.
34744 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34745 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34746 return value.
34747 (struct deferred_write): Upgrade type of `extent' and `size' to
34748 `uint64_t'. Update all users.
34749 (last_extent_written): Upgrade type to `uint64_t'. Update all
34750 users.
34751 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34752 Update all users. Upgrade type of `remain' to `int64_t' and
34753 `use' to `size_t'. Use error() to handle fread() errors.
34754 (write_files): Rely on write_one_file() rather than calling
34755 xfwrite() directly.
34756
34757 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34758
34759 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34760
34761 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34762
34763 * util/mkisofs/fnmatch.c: Remove.
34764 * util/mkisofs/getopt1.c: Likewise.
34765 * util/mkisofs/getopt.c: Likewise.
34766 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34767 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34768 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34769 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34770 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34771
34772 * configure.ac: Detect `mingw32msvc' host_os.
34773 Check for lstat(), getuid() and getgid().
34774
34775 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34776 instances of `u_char' with `uint8_t'.
34777
34778 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34779 [!HAVE_GETUID] (getuid): New function (stub).
34780 [!HAVE_GETGID] (getgid): Likewise.
34781 [!HAVE_LSTAT] (lstat): Likewise.
34782 [!S_IROTH] (S_IROTH): New macro (dummy).
34783 [!S_IRGRP] (S_IRGRP): Likewise.
34784
34785 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34786
34787 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34788 conditional expression).
34789
34790 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34791
34792 Import from Gnulib.
34793
34794 * gnulib/fnmatch.c: New file.
34795 * gnulib/fnmatch.h: Likewise.
34796 * gnulib/fnmatch_loop.c: Likewise.
34797 * gnulib/getopt.c: Likewise.
34798 * gnulib/getopt.h: Likewise.
34799 * gnulib/getopt1.c: Likewise.
34800 * gnulib/getopt_int.h: Likewise.
34801 * gnulib/gettext.h: Likewise.
34802
34803 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34804
34805 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34806 * normal/handler.c (read_handler_list): Likewise.
34807
34808 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34809
34810 Misc cleanup.
34811
34812 * kern/command.c (grub_register_command_prio): Use
34813 grub_zalloc() instead of explicitly zeroing data.
34814 * kern/list.c: Include `<grub/mm.h>'.
34815 (grub_named_list_find): Replace `0' with `NULL'.
34816 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34817 (fs_module_list): Change type to `grub_named_list_t'. Update all
34818 users.
34819 * normal/dyncmd.c (read_command_list): Add space between function
34820 call and parenthesis.
34821 * normal/handler.c (read_handler_list): Likewise.
34822
34823 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34824
34825 * normal/auth.c (punishment_delay): Moved from here ...
34826 (grub_auth_strcmp): ... to here (inside function).
34827
34828 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34829
34830 * include/grub/list.h (struct grub_named_list): Remove `const'
34831 qualifier from `name'.
34832 (struct grub_prio_list): Likewise.
34833
34834 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34835
34836 * normal/auth.c: Include `<grub/time.h>'.
34837 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34838
34839 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34840
34841 * normal/auth.c (punishment_delay): New variable.
34842 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34843 (grub_auth_check_authentication): Punish failed login attempts with
34844 an incremental (2^N) delay.
34845
34846 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34847
34848 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34849 path with $(srcdir).
34850
34851 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34852
34853 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34854
34855 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34856
34857 * util/i386/coreboot/grub-mkrescue.in: New file.
34858 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34859 variables.
34860
34861 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34862 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34863 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34864 requirements.
34865 * util/mkisofs/defaults.h: New file.
34866 * util/mkisofs/eltorito.c: Likewise.
34867 * util/mkisofs/exclude.h: Likewise.
34868 * util/mkisofs/fnmatch.c: Likewise.
34869 * util/mkisofs/getopt.c: Likewise.
34870 * util/mkisofs/getopt1.c: Likewise.
34871 * util/mkisofs/hash.c: Likewise.
34872 * util/mkisofs/include/fctldefs.h: Likewise.
34873 * util/mkisofs/include/mconfig.h: Likewise.
34874 * util/mkisofs/include/prototyp.h: Likewise.
34875 * util/mkisofs/include/statdefs.h: Likewise.
34876 * util/mkisofs/iso9660.h: Likewise.
34877 * util/mkisofs/joliet.c: Likewise.
34878 * util/mkisofs/match.c: Likewise.
34879 * util/mkisofs/match.h: Likewise.
34880 * util/mkisofs/mkisofs.c: Likewise.
34881 * util/mkisofs/mkisofs.h: Likewise.
34882 * util/mkisofs/multi.c: Likewise.
34883 * util/mkisofs/name.c: Likewise.
34884 * util/mkisofs/rock.c: Likewise.
34885 * util/mkisofs/tree.c: Likewise.
34886 * util/mkisofs/write.c: Likewise.
34887
34888 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34889
34890 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34891 being insecure.
34892
34893 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34894
34895 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34896 `grub-mkimage' (and use $0 when possible).
34897
34898 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34899
34900 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34901 error message for excessively large memory map.
34902
34903 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34904
34905 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34906 executable bit.
34907
34908 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34909
34910 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34911 message for coreboot users.
34912
34913 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34914
34915 Fix build with GNU gold.
34916
34917 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34918 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34919 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34920 link addresses.
34921 * aclocal.m4: Likewise.
34922
34923 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34924
34925 * configure.ac (AC_PREREQ): Bump to 2.59d.
34926 * INSTALL: Make it more clear when Autoconf and Ruby are
34927 needed and when to run `./autogen.sh'.
34928
34929 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34930
34931 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34932 OSes.
34933
34934 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34935
34936 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34937
34938 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34939
34940 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34941 giving it to GNU Mach.
34942
34943 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34944
34945 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34946 GNU partition number to get internal GRUB partition number.
34947
34948 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34949
34950 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34951 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34952
34953 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34954
34955 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34956 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34957 case.
34958
34959 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34960
34961 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34962
34963 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34964
34965 Fix build problem.
34966
34967 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34968 `-isystem=$(srcdir)/include'.
34969
34970 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34971
34972 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34973 checked (grub-install doesn't currently rely on it).
34974
34975 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
34976
34977 Revert SVN r2660.
34978
34979 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
34980 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
34981 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
34982 * conf/i386-ieee1275.rmk: Likewise.
34983 * conf/i386-pc.rmk: Likewise.
34984 * conf/powerpc-ieee1275.rmk: Likewise.
34985 * conf/sparc64-ieee1275.rmk: Likewise.
34986 * conf/x86_64-efi.rmk: Likewise.
34987
34988 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34989
34990 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
34991
34992 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34993
34994 * include/grub/misc.h: Stop checking for APPLE_CC.
34995
34996 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
34997
34998 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
34999 doesn't cause an infinite call loop.
35000
35001 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35002
35003 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35004 strings.
35005
35006 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35007
35008 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35009 variable.
35010 * Makefile.in: Likewise.
35011
35012 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35013
35014 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35015
35016 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35017
35018 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35019
35020 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35021
35022 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35023
35024 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35025
35026 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35027 from here ...
35028 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35029
35030 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35031
35032 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35033 in $(MAKEINFO) invocation. This makes it clear in output that
35034 errors are being ignored.
35035
35036 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35037
35038 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35039 from here ...
35040 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35041 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35042 * conf/i386-ieee1275.rmk: Likewise.
35043 * conf/i386-pc.rmk: Likewise.
35044 * conf/powerpc-ieee1275.rmk: Likewise.
35045 * conf/sparc64-ieee1275.rmk: Likewise.
35046 * conf/x86_64-efi.rmk: Likewise.
35047
35048 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35049
35050 * util/grub-editenv.c (main): If only a command is given, use
35051 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35052 (usage): FILENAME is now optional and has a default.
35053
35054 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35055
35056 Improve grub-mkconfig performance when there are several menu
35057 entries on a single filesystem.
35058
35059 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35060 prepare_grub_to_access_device.
35061 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35062 * util/grub.d/30_os-prober.in: Likewise.
35063
35064 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35065
35066 * util/grub.d/10_freebsd.in: Remove.
35067 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35068 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35069
35070 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35071
35072 * docs/grub.cfg: Fix example usage of *BSD loaders.
35073
35074 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35075
35076 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35077 grub_util_error() call.
35078
35079 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35080
35081 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35082 `reserved_first_sector' member.
35083 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35084 `reserved_first_sector' to 1.
35085 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35086 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35087 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35088 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35089 filesystems which begin at first sector.
35090 (options): New option --skip-fs-probe.
35091 (main): Handle --skip-fs-probe and pass it to setup().
35092
35093 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35094
35095 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35096 (memset): Fix function prototype.
35097
35098 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35099 2009-10-25 Vasily Averin <vvs@parallels.com>
35100
35101 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35102 `dirent.direntlen == 0'.
35103
35104 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35105
35106 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35107 `cpio'.
35108 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35109
35110 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35111
35112 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35113 `__trampoline_setup' and `__ucmpdi2'.
35114 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35115 that libgcc provides.
35116
35117 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35118
35119 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35120 * include/grub/sparc64/libgcc.h (memset): Likewise.
35121 * include/grub/misc.h (memset, memcmp): New function prototypes.
35122
35123 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35124
35125 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35126 `cpio'.
35127 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35128
35129 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35132 * docs/grub.cfg: Compensate for recent change in multiboot
35133 loader (since 2009-08-14 it won't pass filename to payload).
35134 * util/grub.d/10_hurd.in: Likewise.
35135
35136 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35137
35138 * config.guess: Update to latest version from config git
35139 repository.
35140 * config.sub: Likewise.
35141
35142 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35143
35144 Fix build on sparc64.
35145
35146 * configure.ac: Perform checks for libgcc symbols before
35147 adding `-nostdlib' to LDFLAGS.
35148
35149 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35150
35151 Let user specify OpenBSD root device.
35152
35153 * loader/i386/bsd.c (openbsd_root): New variable.
35154 (openbsd_opts): New option 'root'.
35155 (OPENBSD_ROOT_ARG): New macro.
35156 (grub_openbsd_boot): Use 'openbsd_root'.
35157 (grub_cmd_openbsd): Fill 'openbsd_root'.
35158
35159 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35160
35161 * NEWS: Misc adjustments.
35162
35163 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35164
35165 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35166
35167 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35168
35169 * configure.ac: Bump version to 1.97.
35170
35171 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35172
35173 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35174 -mno-3dnow on x86 architectures. Some toolchains enable these
35175 features by default, but they rely on registers that aren't enabled
35176 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35177
35178 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35179
35180 Make entry text a bit more readable.
35181
35182 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35183
35184 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35185
35186 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35187
35188 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35189
35190 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35191 operations.
35192
35193 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35194
35195 * configure.ac: Add missing dollar.
35196
35197 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35198
35199 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35200
35201 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35202 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35203 exports.
35204 * include/grub/sparc64/libgcc.h: Likewise. Use
35205 preprocessor conditionals.
35206
35207 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35208
35209 * conf/common.rmk (grub-dumpbios): Remove rule.
35210 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35211 * util/grub-dumpbios.in: Remove file.
35212
35213 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35214
35215 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35216 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35217
35218 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35219 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35220 users.
35221
35222 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35223 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35224 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35225 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35226 users.
35227
35228 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35229
35230 * term/tparm.c: Switch to GPLv3.
35231
35232 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35233
35234 * include/grub/i386/cpuid.h: Add header protection.
35235
35236 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35237
35238 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35239
35240 * include/grub/i386/cpuid.h: New file.
35241 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35242 (has_longmode): Rename to ...
35243 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35244 `static' attribute.
35245 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35246 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35247 on a CPU that doesn't implement AMD64 instruction set.
35248
35249 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35250
35251 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35252 that version.texi is rebuilt on version number changes.
35253
35254 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35255
35256 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35257 Fixes bug #27602.
35258
35259 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35260
35261 * util/i386/pc/grub-install.in: Source
35262 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35263 that the --grub-probe option will work.
35264 * util/sparc64/ieee1275/grub-install.in: Likewise.
35265
35266 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35267
35268 * configure.ac: Bump version to 1.97~beta4.
35269
35270 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35271
35272 Resync grub-mkdevicemap in x86_64-efi.
35273
35274 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35275 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35276 `util/devicemap.c'.
35277
35278 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35279
35280 * util/grub-editenv.c (create_envblk_file): Write new block with a
35281 .new suffix and then rename it into place, to ensure atomic
35282 creation.
35283
35284 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35285
35286 Do not automatically install headers.
35287
35288 * Makefile.in (include_DATA): Remove. Update all users.
35289
35290 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35291
35292 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35293 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35294
35295 * util/osdetect.lua: Remove.
35296 * script/lua/lauxlib.c: Likewise.
35297 * script/lua/ldebug.c: Likewise.
35298 * script/lua/grub_main.c: Likewise.
35299 * script/lua/lauxlib.h: Likewise.
35300 * script/lua/ldebug.h: Likewise.
35301 * script/lua/ltablib.c: Likewise.
35302 * script/lua/liolib.c: Likewise.
35303 * script/lua/lstrlib.c: Likewise.
35304 * script/lua/lualib.h: Likewise.
35305 * script/lua/ldo.c: Likewise.
35306 * script/lua/ldump.c: Likewise.
35307 * script/lua/ldo.h: Likewise.
35308 * script/lua/loslib.c: Likewise.
35309 * script/lua/lundump.c: Likewise.
35310 * script/lua/grub_lib.c: Likewise.
35311 * script/lua/ldblib.c: Likewise.
35312 * script/lua/lundump.h: Likewise.
35313 * script/lua/lmem.c: Likewise.
35314 * script/lua/grub_lib.h: Likewise.
35315 * script/lua/lmathlib.c: Likewise.
35316 * script/lua/lstate.c: Likewise.
35317 * script/lua/ltm.c: Likewise.
35318 * script/lua/lvm.c: Likewise.
35319 * script/lua/lmem.h: Likewise.
35320 * script/lua/lstate.h: Likewise.
35321 * script/lua/ltm.h: Likewise.
35322 * script/lua/ltable.c: Likewise.
35323 * script/lua/lvm.h: Likewise.
35324 * script/lua/llex.c: Likewise.
35325 * script/lua/lgc.c: Likewise.
35326 * script/lua/grub_lua.h: Likewise.
35327 * script/lua/loadlib.c: Likewise.
35328 * script/lua/lfunc.c: Likewise.
35329 * script/lua/lopcodes.c: Likewise.
35330 * script/lua/lparser.c: Likewise.
35331 * script/lua/ltable.h: Likewise.
35332 * script/lua/llex.h: Likewise.
35333 * script/lua/lgc.h: Likewise.
35334 * script/lua/lfunc.h: Likewise.
35335 * script/lua/lbaselib.c: Likewise.
35336 * script/lua/lopcodes.h: Likewise.
35337 * script/lua/lparser.h: Likewise.
35338 * script/lua/lzio.c: Likewise.
35339 * script/lua/linit.c: Likewise.
35340 * script/lua/lobject.c: Likewise.
35341 * script/lua/llimits.h: Likewise.
35342 * script/lua/lstring.c: Likewise.
35343 * script/lua/lzio.h: Likewise.
35344 * script/lua/lapi.c: Likewise.
35345 * script/lua/lcode.c: Likewise.
35346 * script/lua/lua.h: Likewise.
35347 * script/lua/lobject.h: Likewise.
35348 * script/lua/lstring.h: Likewise.
35349 * script/lua/lapi.h: Likewise.
35350 * script/lua/lcode.h: Likewise.
35351 * script/lua/luaconf.h: Likewise.
35352
35353 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35354
35355 * docs/grub.texi (Command-line and menu entry commands): Document
35356 date and echo commands.
35357
35358 2009-09-24 Pavel Roskin <proski@gnu.org>
35359
35360 * include/grub/kernel.h (struct grub_module_header): Remove
35361 `grub_module_header_types'. Make `type' unsigned. Make `size'
35362 32-bit on all platforms.
35363 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35364 8-bit field. Use grub_host_to_target32() for `size'.
35365 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35366 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35367 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35368
35369 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35370
35371 Fix "lost keypress" bug in at_keyboard.
35372
35373 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35374 Checks for readyness of input buffer (without flushing it).
35375 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35376 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35377
35378 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35379
35380 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35381 size check within GRUB_MACHINE_PCBIOS section.
35382
35383 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35384
35385 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35386 return value.
35387 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35388 KEYBOARD_ISREADY check.
35389 (grub_at_keyboard_checkkey): Rename to ...
35390 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35391 Remove gratuitous cast.
35392
35393 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35394
35395 * configure.ac: Call AC_PROG_MKDIR_P.
35396 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35397 version.texi in $(builddir) rather than $(srcdir).
35398 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35399 to makeinfo's @include search path.
35400
35401 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35402
35403 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35404
35405 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35406
35407 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35408 for `*.dpkg-new'.
35409
35410 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35411
35412 Build info documentation. Some code borrowed from Automake.
35413
35414 * configure.ac: Check for makeinfo.
35415 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35416 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35417 docs/version.texi.
35418 (MOSTLYCLEANFILES): Add vti.tmp.
35419 (docs/version.texi, docs/stamp-vti): Update automatically.
35420 (docs/grub.info): Build info documentation. Use --force and ignore
35421 errors for now.
35422 (all-local): Add $(INFOS).
35423 (install-local): Install info files.
35424 (uninstall): Uninstall info files.
35425 * docs/version.texi: Remove from revision control. This file is
35426 automatically generated on build now.
35427 * gendistlist.sh: Add `*.info'.
35428
35429 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35430
35431 * kern/term.c: Fix indentation.
35432
35433 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35434
35435 * util/hostdisk.c: Fix a comment.
35436
35437 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35438
35439 Fix regression introduced in r2539.
35440
35441 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35442 to 0xA1.
35443
35444 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35445
35446 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35447 os-prober. Under normal operation, it does not print anything to
35448 stderr; if it does, we need to debug it, and throwing away stderr
35449 makes that excessively difficult.
35450
35451 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35452
35453 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35454
35455 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35456
35457 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35458 AC_LANG_PROGRAM from autoconf.
35459 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35460 prototypes (fixes warning).
35461
35462 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35463 `--disable-werror' was used.
35464
35465 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35466
35467 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35468 uninitialized `lastaddr'.
35469
35470 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35471
35472 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35473
35474 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35475
35476 * commands/test.c (get_fileinfo): Return immediately if
35477 grub_fs_probe fails.
35478
35479 2009-09-14 José Martínez <xosemp@gmail.com>
35480
35481 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35482
35483 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35484
35485 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35486 output.
35487
35488 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35489
35490 * configure.ac: Remove --enable-grub-pe2elf. Only build
35491 grub-pe2elf when needed by the build system itself.
35492 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35493
35494 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35495
35496 * configure.ac: Bump version to 1.97~beta3.
35497 * docs/version.texi: Likewise.
35498
35499 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35500
35501 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35502 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35503 from here ...
35504 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35505 (grub_linux_setup_video): ... to here (with some adjustments).
35506
35507 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35508
35509 Fix memory corruption issue (spotted by Colin Watson).
35510
35511 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35512 causing returned size to be stored in an incorrect memory location.
35513 Fix use of uninitialized value when storing the returned size.
35514
35515 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35516
35517 Change clean rules to properly remove files
35518
35519 * genmk.rb: add new clean rules
35520 * Makefile.in (clean): add the new targets
35521 (mostlyclean): likewise
35522
35523 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35524
35525 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35526 to grub_uint64_t.
35527 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35528 non-resident files.
35529
35530 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35531
35532 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35533 part of bug #27349.
35534
35535 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35536
35537 * util/grub-mkconfig.in: Make the created config mode 400 and
35538 print a warning if it fails.
35539
35540 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35541
35542 * util/grub.d/40_custom.in: Ask user to type custom entries below
35543 comment, rather than below 'exec tail' line.
35544
35545 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35546
35547 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35548 visible in grub.cfg.
35549
35550 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35551
35552 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35553 file.
35554
35555 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35556
35557 * docs/grub.cfg: Add an example menu entry for memtest86+.
35558
35559 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35560
35561 * config.guess: Update to latest version from config git.
35562 * config.sub: Likewise.
35563
35564 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35565
35566 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35567 unknown-command case. Fixes bug #27320.
35568
35569 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35570
35571 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35572 `help' if the command exists.
35573
35574 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35575
35576 * INSTALL: Require GCC 4.1.3 or later.
35577
35578 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35579
35580 * Makefile.in (RMKFILES): add i386-qemu.rmk
35581 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35582 $(srcdir)/stamp-h.in
35583
35584 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35585
35586 * util/grub-probe.c (probe): Comment out buggy codepath, which
35587 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35588 should be re-enabled after 1.97.
35589
35590 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35591
35592 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35593 find searches for.
35594
35595 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35596
35597 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35598 unnecessary calls to grub_error.
35599
35600 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35601
35602 * NEWS: Mention `keystatus' and Unicode fonts.
35603
35604 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35605
35606 * configure.ac: Bump version to 1.97~beta2.
35607 * docs/version.texi: Likewise.
35608
35609 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35610
35611 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35612 containing unwind information in some cases where it previously did
35613 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35614 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35615 discussion.
35616
35617 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35618
35619 Embedding loadenv module into grub-emu
35620
35621 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35622 commands/loadenv.c
35623 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35624 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35625 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35627 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35628 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35629
35630 2009-09-03 Magnus Granberg <zorry@ume.nu>
35631
35632 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35633 include -fPIE in the default specs.
35634 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35635 to TARGET_CFLAGS.
35636
35637 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35638
35639 * INSTALL: Note that GNU Bison 2.3 or later is required.
35640
35641 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35642
35643 * kern/i386/pc/startup.S: Fix typo.
35644
35645 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35646
35647 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35648 according to GCS.
35649
35650 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35651
35652 * docs/grub.texi (Naming convention): Describe one-based partition
35653 numbering.
35654 (Device syntax): Likewise.
35655 (File name syntax): Likewise.
35656 (Block list syntax): Likewise.
35657 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35658 menu.lst.
35659 (File name syntax): Likewise.
35660 (Command-line and menu entry commands): Document acpi, blocklist,
35661 crc, export, insmod, keystatus, ls, set, and unset commands.
35662
35663 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35664
35665 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35666 to avoid implying that only one of --shift, --ctrl, or --alt may be
35667 used.
35668
35669 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35670
35671 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35672 rather than comparing against S_IFREG, which will almost never work.
35673
35674 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35675
35676 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35677 (write_blocklists): Likewise.
35678
35679 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35680
35681 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35682 argument to grub_printf.
35683
35684 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35685
35686 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35687 non GNU test.
35688
35689 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35690
35691 * kern/file.c (grub_file_read): Spelling fix
35692
35693 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35694
35695 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35696 loading of headers in some cases.
35697
35698 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35699
35700 * configure.ac: Bump version to 1.97~beta1.
35701 * docs/version.texi: Likewise.
35702
35703 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35704
35705 * include/grub/i386/xnu.h: Add license header.
35706 include grub/err.h explicitly.
35707
35708 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35709
35710 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35711 to `ufs' in the vfs.root.mountfrom kernel parameter.
35712
35713 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35714
35715 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35716
35717 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35718 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35719
35720 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35721 `ARRAY_SIZE' macro.
35722
35723 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35724
35725 * kern/file.c (grub_file_read): Check offset.
35726 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35727 * fs/jfs.c (grub_jfs_read_file): Likewise.
35728 * fs/ntfs.c (grub_ntfs_read): Likewise.
35729 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35730 * fs/minix.c (grub_minix_read_file): Correct offset check.
35731 * fs/ufs.c (grub_ufs_read_file): Likewise.
35732
35733 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35734
35735 * term/i386/pc/console.c (bios_data_area): Cast
35736 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35737
35738 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35739
35740 1-bit optimised blitters.
35741
35742 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35743 prototype.
35744 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35745 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35746 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35747 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35748 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35749 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35750 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35751 function.
35752 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35753 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35754 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35755 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35756 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35757 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35758 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35759 when possible.
35760 * video/video.c (grub_video_get_blit_format): Return
35761 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35762
35763 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35764
35765 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35766 the first argument to grub_printf.
35767
35768 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35769 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35770
35771 Add `getkeystatus' terminal method. Add a new `keystatus' command
35772 to query it.
35773
35774 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35775 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35776 modifier key bitmasks.
35777 (struct grub_term_input): Add `getkeystatus' member.
35778 (grub_getkeystatus): Add prototype.
35779 * kern/term.c (grub_getkeystatus): New function.
35780
35781 * include/grub/i386/pc/memory.h
35782 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35783 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35784 Data Area layout.
35785 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35786 (grub_console_term_input): Set `getkeystatus' member.
35787 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35788 constants.
35789 (grub_usb_keyboard_getreport): Likewise.
35790 (grub_usb_keyboard_checkkey): Likewise.
35791 (grub_usb_keyboard_getkeystatus): New function.
35792 (grub_usb_keyboard_term): Set `getkeystatus' member.
35793
35794 * commands/keystatus.c: New file.
35795 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35796 (keystatus_mod_SOURCES): New variable.
35797 (keystatus_mod_CFLAGS): Likewise.
35798 (keystatus_mod_LDFLAGS): Likewise.
35799 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35800 commands/keystatus.c.
35801 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35802 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35803 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35804 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35805 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35806 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35807
35808 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35809
35810 Split befs.mod and afs.mod into *_be.mod and *.mod
35811
35812 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35813 (grub_fstest_SOURCES): Likewise.
35814 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35815 (afs_be_mod_SOURCES): New variable.
35816 (afs_be_mod_CFLAGS): Likewise.
35817 (afs_be_mod_LDFLAGS): Likewise.
35818 (befs_be_mod_SOURCES): Likewise.
35819 (befs_be_mod_CFLAGS): Likewise.
35820 (befs_be_mod_LDFLAGS): Likewise.
35821 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35822 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35823 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35824 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35825 (grub_emu_SOURCES): Likewise.
35826 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35827 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35828 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35829 * fs/afs_be.c: New file.
35830 * fs/befs_be.c: New file.
35831 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35832 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35833 (U16): Replaced with ...
35834 (grub_afs_to_cpu16): ...this. All users updated.
35835 (U32): Replaced with ...
35836 (grub_afs_to_cpu32): ...this. All users updated.
35837 (U64): Replaced with ...
35838 (grub_afs_to_cpu64): ...this. All users updated.
35839 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35840 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35841 (grub_afs_validate_sblock): Check only one endianness.
35842 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35843 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35844 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35845 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35846 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35847 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35848 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35849 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35850
35851 2009-08-26 Bean <bean123ch@gmail.com>
35852
35853 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35854 64-bit number.
35855 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35856 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35857 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35858
35859 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35860
35861 NetBSD memory map support.
35862
35863 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35864 (grub_netbsd_btinfo_mmap_header): New structure.
35865 (grub_netbsd_btinfo_mmap_entry): Likewise.
35866 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35867
35868 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35869
35870 Enable bsd.mod on coreboot.
35871
35872 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35873 (bsd_mod_SOURCES): New variable.
35874 (bsd_mod_CFLAGS): Likewise.
35875 (bsd_mod_LDFLAGS): Likewise.
35876 (bsd_mod_ASFLAGS): Likewise.
35877 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35878 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35879
35880 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35881
35882 Cleanup NetBSD root support.
35883
35884 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35885 grub_bsd_get_device.
35886 Fix typo.
35887
35888 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35889
35890 * util/grub.d/00_header.in: Move check for the video backend of
35891 gfxterm from here ...
35892 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35893 a suitable video backend.
35894
35895 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35896
35897 Fix breakage in grub-setup.
35898
35899 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35900 "msdos_partition_map".
35901
35902 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35903
35904 Fix breakage in normal/auth.c.
35905
35906 * normal/auth.c (grub_iswordseparator): New function.
35907
35908 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35909
35910 Authentication support.
35911
35912 * commands/password.c: New file.
35913 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35914 (password_mod_SOURCES): New variable.
35915 (password_mod_CFLAGS): Likewise.
35916 (password_mod_LDFLAGS): Likewise.
35917 (normal_mod_SOURCES): Add normal/auth.c.
35918 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35919 normal/auth.c.
35920 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35921 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35922 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35924 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35925 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35926 * include/grub/auth.h: New file.
35927 * include/grub/err.h (grub_err_t): New enum value
35928 GRUB_ERR_ACCESS_DENIED.
35929 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35930 'users'.
35931 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35932 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35933 users updated.
35934 * normal/auth.c: New file.
35935 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35936 (grub_cmdline_run): Don't allow to go to command line without
35937 authentication.
35938 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35939 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35940 menuentry without superuser rights.
35941 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35942 user isn't a superuser.
35943
35944 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35945
35946 Save space by inlining misc.c functions.
35947
35948 * kern/misc.c (grub_iswordseparator): Made static.
35949 * kern/misc.c (grub_strcat): Moved from here ...
35950 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35951 * kern/misc.c (grub_strncat): Moved from here ...
35952 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35953 * kern/misc.c (grub_strcasecmp): Moved from here ...
35954 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35955 * kern/misc.c (grub_strncasecmp): Moved from here ...
35956 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35957 * kern/misc.c (grub_isalpha): Moved from here ...
35958 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35959 * kern/misc.c (grub_isdigit): Moved from here ...
35960 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35961 * kern/misc.c (grub_isgraph): Moved from here ...
35962 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35963 * kern/misc.c (grub_tolower): Moved from here ...
35964 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35965
35966 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35967
35968 * script/sh/function.c (grub_script_function_find): Cut error message
35969 not to flood terminal.
35970 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35971 limit.
35972 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35973
35974 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
35975
35976 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
35977 `report' grub_uint8_t *.
35978 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
35979 Use a 50-millisecond timeout rather than just repeating
35980 grub_usb_keyboard_getreport 50 times.
35981 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
35982
35983 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35984
35985 Rename *_partition_map to part_*
35986
35987 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
35988 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
35989 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
35990 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
35991 All users updated.
35992 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
35993 All users updated.
35994 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
35995 * util/grub-probe.c (probe_partmap): Don't transform partition name
35996 to get module name.
35997
35998 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35999
36000 Fix OpenBSD and NetBSD support.
36001
36002 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36003 memory address conflict.
36004 (OPENBSD_MMAP_ACPI): New definition.
36005 (OPENBSD_MMAP_NVS): Likewise.
36006 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36007 and OPENBSD_MMAP_NVS.
36008 Add memory map terminator
36009 Explicit cast when calling grub_unix_real_boot.
36010 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36011
36012 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36013
36014 Let user specify NetBSD root device.
36015
36016 * loader/i386/bsd.c (netbsd_root): New variable.
36017 (netbsd_opts): New option 'root'.
36018 (NETBSD_ROOT_ARG): New macro.
36019 (grub_netbsd_boot): Use 'netbsd_root'.
36020 (grub_bsd_unload): Free 'netbsd_root'.
36021 (grub_cmd_netbsd): Fill 'netbsd_root'.
36022
36023 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36024
36025 Support for 64-bit NetBSD.
36026
36027 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36028 point when booting non-FreeBSD.
36029
36030 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36031
36032 Support --no-smp and --no-acpi for NetBSD.
36033
36034 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36035 (NETBSD_AB_NOACPI): Likewise.
36036 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36037 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36038
36039 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36040
36041 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36042 errors.
36043 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36044 errors. Call grub_error when needed.
36045
36046 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36047
36048 * commands/search.c (search_fs): Try searching without autoload first.
36049 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36050 filesystem module explicitly for faster booting.
36051
36052 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36053
36054 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36055
36056 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36057
36058 * util/grub.d/30_os-prober.in: Disable os-prober if
36059 `GRUB_DISABLE_OS_PROBER' was set to true.
36060
36061 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36062
36063 * partmap/pc.c: Rename to ...
36064 * partmap/msdos.c: ... this. Update all users.
36065 (grub_pc_partition_map): Rename to ...
36066 (grub_msdos_partition_map): ... this. Update all users.
36067
36068 * parttool/pcpart.c: Rename to ...
36069 * parttool/msdospart.c: ... this. Update all users.
36070
36071 * include/grub/pc_partition.h: Rename to ...
36072 * include/grub/msdos_partition.h: ... this. Update all users.
36073 (grub_pc_partition_bsd_entry): Rename to ...
36074 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36075 (grub_pc_partition_disk_label): Rename to ...
36076 (grub_msdos_partition_disk_label): ... this. Update all users.
36077 (grub_pc_partition_entry): Rename to ...
36078 (grub_msdos_partition_entry): ... this. Update all users.
36079 (grub_pc_partition_mbr): Rename to ...
36080 (grub_msdos_partition_mbr): ... this. Update all users.
36081 (grub_pc_partition): Rename to ...
36082 (grub_msdos_partition): ... this. Update all users.
36083 (grub_pc_partition_is_empty): Rename to ...
36084 (grub_msdos_partition_is_empty): ... this. Update all users.
36085 (grub_pc_partition_is_extended): Rename to ...
36086 (grub_msdos_partition_is_extended): ... this. Update all users.
36087 (grub_pc_partition_is_bsd): Rename to ...
36088 (grub_msdos_partition_is_bsd): ... this. Update all users.
36089
36090 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36091 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36092 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36093 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36094 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36095 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36096 (gpt_mod_LDFLAGS): Rename to ...
36097 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36098 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36099 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36100 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36101 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36102 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36103 (part_gpt_mod_LDFLAGS): ... this.
36104 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36105 `pcpart.mod' to `msdospart.mod'.
36106 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36107 to ...
36108 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36109 (msdospart_mod_LDFLAGS): ... this.
36110
36111 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36112
36113 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36114 (openbsd_opts): Likewise.
36115 (netbsd_opts): Likewise.
36116 (freebsd_flags): Added 0 terminator.
36117 (openbsd_flags): Likewise.
36118 (netbsd_flags): Likewise.
36119 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36120 (grub_cmd_freebsd): Transformed into extended command.
36121 (grub_cmd_openbsd): Likewise.
36122 (grub_cmd_netbsd): Likewise.
36123 (cmd_freebsd): Changed type to grub_extcmd_t.
36124 (cmd_openbsd): Likewise.
36125 (cmd_netbsd): Likewise.
36126 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36127 grub_cmd_openbsd as extended commands.
36128 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36129 cmd_netbsd and cmd_openbsd
36130
36131 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36132
36133 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36134
36135 2009-08-21 Pavel Roskin <proski@gnu.org>
36136
36137 * Makefile.in (install-local): When checking if a file is in the
36138 build directory, use "test -e" to detect symlinks.
36139
36140 * Makefile.in (install-local): Remove all files in
36141 $(DESTDIR)$(pkglibdir) before installing new files there.
36142
36143 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36144
36145 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36146 grub-mkelfimage.
36147
36148 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36149
36150 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36151 explicitly specified by the user.
36152
36153 2009-08-18 Pavel Roskin <proski@gnu.org>
36154
36155 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36156 grub_uint8_t pointer for data.
36157 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36158 Likewise.
36159 * video/fb/fbutil.c: Remove unnecessary casts.
36160
36161 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36162
36163 VBE cleanup.
36164
36165 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36166 (grub_vbe_set_video_mode): Save active mode info
36167 only after setting the mode.
36168 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36169 second argument.
36170
36171 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36172
36173 Rename variables for clarity.
36174
36175 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36176 (active_vbe_mode_info): ... this. All users updated.
36177 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36178 All users updated.
36179 (initial_mode): Rename to ...
36180 (initial_vbe_mode): ... this. All users updated.
36181 (mode_in_use): Rename to ..
36182 (vbe_mode_in_use): ... this. All users updated.
36183 (mode_list): Rename to ..
36184 (vbe_mode_list): ... this. All users updated.
36185 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36186 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36187 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36188 'mode_list_size' to 'vbe_mode_list_size'.
36189 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36190 'best_mode_info' to 'best_vbe_mode_info' and
36191 'best_mode' to 'best_vbe_mode'
36192
36193 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36194
36195 Remove duplicate grub_video_fb_get_video_ptr.
36196
36197 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36198 (grub_video_fb_get_video_ptr): ... this.
36199 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36200 * video/fb/fbutil.c: Add comment about addressing.
36201 (get_data_ptr): Rename to ...
36202 (grub_video_fb_get_video_ptr): ... this. All users updated.
36203 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36204
36205 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36206
36207 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36208 grub_dprintf() that was just added.
36209
36210 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36211
36212 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36213 (DEFAULT_VIDEO_MODE): Remove macros.
36214 (grub_linux_boot): Remove assumption that Linux has FB support,
36215 and use "text" as default video mode.
36216
36217 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36218
36219 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36220 grub_dprintf.
36221 * fs/fat.c (grub_fat_read_data): Likewise.
36222
36223 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36224
36225 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36226 payload.
36227 (grub_module): Likewise.
36228
36229 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36230
36231 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36232 mbi->cmdline but free playground.
36233
36234 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36235
36236 Handle group offset on UFS1.
36237
36238 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36239 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36240
36241 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36242
36243 Split ufs.mod into ufs1.mod and ufs2.mod.
36244
36245 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36246 (grub_fstest_SOURCES): Likewise.
36247 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36248 (ufs_mod_SOURCES): Remove.
36249 (ufs_mod_CFLAGS): Likewise.
36250 (ufs_mod_LDFLAGS): Likewise.
36251 (ufs1_mod_SOURCES): New variable.
36252 (ufs1_mod_CFLAGS): Likewise.
36253 (ufs1_mod_LDFLAGS): Likewise.
36254 (ufs2_mod_SOURCES): New variable.
36255 (ufs2_mod_CFLAGS): Likewise.
36256 (ufs2_mod_LDFLAGS): Likewise.
36257 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36258 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36259 Likewise.
36260 (grub_emu_SOURCES): Likewise.
36261 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36262 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36263 (grub_setup_SOURCES): Likewise.
36264 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36265 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36266 (grub_setup_SOURCES): Likewise.
36267 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36268 Likewise.
36269 * fs/ufs2.c: New file.
36270 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36271
36272 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36273
36274 Framebuffer split.
36275
36276 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36277 subsystem at the end.
36278 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36279 (video_fb_mod_SOURCES): New variable.
36280 (video_fb_mod_CFLAGS): Likewise.
36281 (video_fb_mod_LDFLAGS): Likewise.
36282 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36283 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36284 * video/i386/pc/vbeblit.c: Moved from here ...
36285 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36286 * video/i386/pc/vbefill.c: Moved from here ...
36287 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36288 * video/i386/pc/vbeutil.c: Moved from here ...
36289 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36290 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36291 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36292 * include/grub/i386/pc/vbefill.h: Moved from here ...
36293 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36294 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36295 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36296 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36297 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36298 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36299 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36300 (grub_video_adapter): Added 'get_info_and_fini'.
36301 (grub_video_get_info_and_fini): New prototype.
36302 (grub_video_set_mode): make modestring const char *.
36303 * loader/i386/linux.c (grub_linux_setup_video): Use
36304 grub_video_get_info_and_fini.
36305 (grub_linux_boot): Move modesetting just before booting.
36306 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36307 grub_video_get_info_and_fini.
36308 * video/i386/pc/vbe.c: Moved framebuffer part ...
36309 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36310 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36311 grub_video_fbstd_colors and grub_video_fb_set_palette.
36312 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36313 grub_video_fb_init.
36314 (grub_video_vbe_fini): Use grub_video_fb_fini.
36315 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36316 render_target and use grub_video_fb_set_active_render_target and
36317 grub_video_fb_set_palette.
36318 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36319 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36320 (grub_video_vbe_adapter): Use framebuffer.
36321 * video/video.c (grub_video_get_info_and_fini): New function.
36322 (grub_video_set_mode): Make modestring const char *.
36323 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36324 values are already initialised.
36325
36326 2009-08-14 Pavel Roskin <proski@gnu.org>
36327
36328 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36329 ABS and APPLE_CC.
36330 * boot/i386/pc/diskboot.S: Likewise.
36331 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36332 sectors allow compilation on MacOSX.
36333 * conf/i386-pc.rmk: Enable unconditional compilation of
36334 lnxboot.img.
36335
36336 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36337
36338 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36339 * util/grub.d/00_header.in: Enter interruptible sleep if
36340 GRUB_HIDDEN_TIMEOUT is set.
36341
36342 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36343
36344 * include/grub/symbol.h: Add the LOCAL macro.
36345 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36346 starting with "L_".
36347
36348 2009-08-13 Pavel Roskin <proski@gnu.org>
36349
36350 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36351 any modern compilers we support.
36352
36353 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36354 Use local labels starting with "L_" so that Apple assembler
36355 knows they are local.
36356
36357 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36358
36359 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36360 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36361 (bsd_kernel_types): ... this enum.
36362
36363 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36364 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36365 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36366
36367 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36368 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36369 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36370 messages.
36371
36372 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36373
36374 * util/grub-dumpdevtree: Moved from here ...
36375 * util/i386/efi/grub-dumpdevtree: ... to here.
36376 (hexify): New function. Converts a string to its hex version.
36377 Generate hex versions of "efi" and "device-properties" by calling
36378 hexify() on the ASCII strings rather than by hardcoding numbers.
36379
36380 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36381
36382 * fs/jfs.c: Update copyright year.
36383
36384 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36385
36386 * util/grub.d/00_header.in: Fix a comment.
36387 * util/grub.d/10_linux.in: Likewise.
36388 * util/grub.d/10_windows.in: Likewise.
36389 * util/grub.d/10_hurd.in: Likewise.
36390
36391 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36392
36393 * util/grub-mkconfig.in: Allow the user to specify the used font
36394 with GRUB_FONT.
36395
36396 2009-08-08 Pavel Roskin <proski@gnu.org>
36397
36398 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36399 available, xfs.mod needs it now.
36400
36401 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36402 the "g" modifier in sed when the intention is to strip something
36403 once. This fixes comparison of kernels with multiple dashes.
36404
36405 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36406 on it. Add missing space before closing bracket. Fix
36407 misleading formatting.
36408
36409 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36410
36411 * docs/grub.texi: Major overhaul. Remove all sections that are
36412 specific to GRUB Legacy, or mostly composed of Legacy-specific
36413 information.
36414
36415 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36416
36417 * docs/version.texi: New file. Provides version information for
36418 grub.texi.
36419
36420 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36421
36422 * docs/grub.texi: Update CVS information to SVN.
36423 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36424
36425 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36426
36427 * util/grub-mkconfig.in: Remove a wrong `fi'.
36428
36429 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36430
36431 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36432 (grub_jfs_uuid): New function.
36433 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36434
36435 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36436
36437 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36438 of it to ...
36439 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36440 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36441
36442 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36443
36444 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36445 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36446 Update all users.
36447
36448 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36449 not just "vmlinu[zx]".
36450 Moved from here ...
36451 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36452 all users.
36453
36454 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36455 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36456 all users.
36457
36458 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36459
36460 * util/grub.d/10_freebsd.in: Use an absolute device path for
36461 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36462
36463 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36464
36465 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36466 handling of multiple abstraction modules.
36467
36468 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36469
36470 Fix a bug resulting in black screen when loading Linux using a
36471 packed video mode.
36472
36473 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36474 function.
36475
36476 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36477 (grub_vbe_bios_getset_dac_palette_width): New function.
36478 (grub_vbe_bios_get_dac_palette_width)
36479 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36480 grub_vbe_bios_getset_dac_palette_width()).
36481
36482 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36483 check for return status.
36484 (grub_vbe_get_video_mode_info): When getting information for a packed
36485 mode (<= 8 bpp), obtain DAC palette width using
36486 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36487 {red,green,blue}_mark_size.
36488
36489 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36490
36491 * commands/search.c (options): Fix help output to match actual code.
36492
36493 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36494
36495 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36496 of homegrown code.
36497
36498 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36499
36500 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36501 on XFS or ReiserFS.
36502
36503 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36504
36505 Support Apple partition map with sector size different from 512 bytes.
36506
36507 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36508 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36509 and 'apart.partmap_size'.
36510
36511 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36512 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36513
36514 Fix cpuid command.
36515
36516 * commands/i386/cpuid.c (options): New variable.
36517 (grub_cmd_cpuid): Return real error.
36518 (GRUB_MOD_INIT(cpuid)): Declare options.
36519
36520 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36521
36522 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36523 valid.
36524
36525 2009-07-31 Bean <bean123ch@gmail.com>
36526
36527 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36528 log2_inode.
36529 (grub_fshelp_node): Move inode field to the end.
36530 (grub_xfs_data): Remove inode field.
36531 (grub_xfs_inode_block): Calculate inode size using sblock.
36532 (grub_xfs_inode_offset): Likewise.
36533 (grub_xfs_read_inode): Calculate inode size using sblock.
36534 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36535 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36536 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36537 to match inode size.
36538 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36539 not accessible when data is null.
36540 (grub_xfs_open): Likewise.
36541
36542 2009-07-31 Bean <bean123ch@gmail.com>
36543
36544 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36545 Don't change pv->disk if it's already set.
36546
36547 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36548 (grub_raid_register): ... here.
36549 (grub_raid_rescan): Removed.
36550
36551 * include/grub/raid.h (grub_raid_rescan): Removed.
36552
36553 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36554 (fstest): Replace grub_raid_rescan with module fini function followed
36555 by init function.
36556
36557 * util/grub-probe.c: Add include file <grub/raid.h>.
36558 (probe_raid_level): New function.
36559 (probe): Detect abstraction by walking the disk device, support two
36560 level of abstraction (LVM on RAID) when detecting partition map.
36561
36562 2009-07-31 Pavel Roskin <proski@gnu.org>
36563
36564 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36565 to grub_zalloc(), it was erroneous.
36566 Reported by Bean <bean123ch@gmail.com>
36567
36568 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36569
36570 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36571 embedding zone, not only the first one.
36572
36573 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36574
36575 * term/gfxterm.c (clear_char): New function.
36576 (grub_virtual_screen_setup): Use clear_char.
36577 (scroll_up): Likewise.
36578 (grub_virtual_screen_cls): Likewise.
36579
36580 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36581
36582 * util/deviceiter.c (get_acceleraid_disk_name): New static
36583 function.
36584 (grub_util_iterate_devices): Handle Accelraid devices.
36585 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36586
36587 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36588
36589 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36590 separator for the suggested gfxpayload string (';' collides with the
36591 parser and needs escaping).
36592
36593 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36594
36595 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36596 Clear direction flag before jumping to OS.
36597 (grub_multiboot2_real_boot): Likewise.
36598
36599 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36600
36601 * util/i386/pc/grub-install: Fix parsing of --disk-module
36602 option.
36603
36604 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36605
36606 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36607 when embedding.
36608
36609 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36610
36611 * util/grub-mkconfig.in (package_version): New variable.
36612 Use it do display the version.
36613
36614 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36615
36616 * kern/file.c (grub_file_open): Revert to previous check with
36617 grub_errno.
36618
36619 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36620
36621 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36622 from help line. It's out of sync with code.
36623
36624 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36625
36626 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36627 entries on failed boot.
36628
36629 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36630
36631 * kern/file.c (grub_file_open): Fix an error check.
36632
36633 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36634
36635 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36636 partition map couldn't be identified.
36637
36638 2009-07-23 Pavel Roskin <proski@gnu.org>
36639
36640 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36641 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36642 case of little endian words becomes just an optimization.
36643 Respect const modifier.
36644 (md5_final): Use code that doesn't depend on endianness.
36645
36646 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36647 to avoid loss of upper bits if align is unsigned and shorter
36648 than addr.
36649
36650 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36651
36652 UUID support for UFS
36653
36654 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36655 (grub_ufs_uuid): New function.
36656 (grub_ufs_fs): add .uuid
36657
36658 2009-07-21 Pavel Roskin <proski@gnu.org>
36659
36660 * kern/dl.c (grub_dl_check_header): Make static.
36661
36662 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36663
36664 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36665 add drivemap for Vista. It breaks Windows 7.
36666
36667 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36668
36669 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36670 128 bytes
36671
36672 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36673
36674 Add BFS support
36675
36676 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36677 (grub_fstest_SOURCES): Likewise.
36678 (pkglib_MODULES): Add befs.mod.
36679 (befs_mod_SOURCES): New variable.
36680 (befs_mod_CFLAGS): Likewise.
36681 (befs_mod_LDFLAGS): Likewise.
36682 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36683 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36684 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36685 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36686 (grub_setup_SOURCES): Likewise.
36687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36688 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36689 (grub_setup_SOURCES): Likewise.
36690 * fs/befs.c: New file.
36691 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36692 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36693 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36694 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36695 (B_KEY_INDEX_ALIGN): New declaration.
36696 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36697 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36698 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36699 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36700 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36701 (grub_afs_mount) [MODE_BFS]: Likewise.
36702 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36703 (grub_afs_fs): Use GRUB_AFS_FSNAME
36704 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36705 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36706 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36707 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36708
36709 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36710
36711 * util/getroot.c (find_root_device): Add support for MacOSX.
36712 * util/hostdisk.c: Likewise.
36713
36714 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36715
36716 * font/font.c (find_glyph): Check whether a font is present to avoid
36717 segmentation fault.
36718
36719 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36720
36721 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36722
36723 2009-07-20 Pavel Roskin <proski@gnu.org>
36724
36725 * configure.ac: Trim excessively wordy excuses.
36726
36727 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36728
36729 Add symlink, mtime and label support to AtheFS.
36730
36731 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36732 (grub_afs_iterate_dir): Handle symlinks.
36733 (grub_afs_open): Use grub_afs_read_symlink.
36734 (grub_afs_dir): Likewise.
36735 Pass mtime.
36736 (grub_afs_label): New function.
36737 (grub_afs_fs): Add grub_afs_label.
36738 (grub_afs_read_symlink): New function.
36739
36740 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36741
36742 Fix AtheFS support.
36743
36744 * fs/afs.c: Fix comments style.
36745 (grub_afs_blockrun): Declare as packed.
36746 (grub_afs_datastream): Likewise.
36747 (grub_afs_bnode): Likewise.
36748 (grub_afs_btree): Likewise.
36749 (grub_afs_sblock): Likewise.
36750 Declare `name' as char.
36751 (grub_afs_inode): Declare as packed.
36752 Change void *vnode to grub_uint32_t unused.
36753 (grub_afs_iterate_dir): Check that key_size is positive.
36754 (grub_afs_mount): Don't read superblock twice.
36755 (grub_afs_dir): Don't free node in case of error,
36756 grub_fshelp_find_file already handles this.
36757 (grub_afs_open): Likewise.
36758
36759 2009-07-19 Pavel Roskin <proski@gnu.org>
36760
36761 * Makefile.in: Remove LIBLZO and enable_lzo.
36762 * conf/i386-pc.rmk: Remove lzo support.
36763 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36764 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36765 support.
36766 * kern/i386/pc/lzo1x.S: Remove.
36767 * kern/i386/pc/startup.S: Remove lzo support.
36768 * util/i386/pc/grub-mkimage.c: Likewise.
36769
36770 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36771
36772 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36773 * fs/xfs.c (grub_xfs_dir): Likewise.
36774 * fs/afs.c (grub_afs_dir): Likewise.
36775 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36776 (grub_iso9660_open): Likewise.
36777 * fs/jfs.c (grub_jfs_open): Likewise.
36778 * fs/ext2.c (grub_ext2_dir): Likewise.
36779 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36780 * script/sh/lexer.c (grub_script_yylex): Likewise.
36781
36782 2009-07-16 Pavel Roskin <proski@gnu.org>
36783
36784 * configure.ac: Never add "-c" to CFLAGS.
36785
36786 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36787
36788 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36789 grub_cv_cc_efiemu should be used.
36790
36791 * configure.ac: Typo fixes.
36792
36793 * kern/mm.c (grub_zalloc): New function.
36794 (grub_debug_zalloc): Likewise.
36795 * include/grub/mm.h: Declare grub_zalloc() and
36796 grub_debug_zalloc().
36797 * util/misc.c (grub_zalloc): New function.
36798 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36799 instead of grub_malloc(), remove unneeded initializations.
36800 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36801 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36802 * commands/parttool.c (grub_cmd_parttool): Likewise.
36803 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36804 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36805 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36806 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36807 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36808 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36809 (grub_cmd_efiemu_pnvram): Likewise.
36810 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36811 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36812 (grub_iso9660_iterate_dir): Likewise.
36813 * fs/jfs.c (grub_jfs_opendir): Likewise.
36814 * fs/ntfs.c (list_file): Likewise.
36815 (grub_ntfs_mount): Likewise.
36816 * kern/disk.c (grub_disk_open): Likewise.
36817 * kern/dl.c (grub_dl_load_core): Likewise.
36818 * kern/elf.c (grub_elf_file): Likewise.
36819 * kern/env.c (grub_env_context_open): Likewise.
36820 (grub_env_set): Likewise.
36821 (grub_env_set_data_slot): Likewise.
36822 * kern/file.c (grub_file_open): Likewise.
36823 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36824 * loader/i386/multiboot.c (grub_module): Likewise.
36825 * loader/xnu.c (grub_xnu_create_key): Likewise.
36826 (grub_xnu_create_value): Likewise.
36827 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36828 (read_config_file): Likewise.
36829 * normal/menu_entry.c (make_screen): Likewise.
36830 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36831 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36832 * script/sh/script.c (grub_script_parse): Likewise.
36833 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36834 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36835 * video/readers/png.c (grub_png_output_byte): Likewise.
36836 (grub_video_reader_png): Likewise.
36837
36838 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36839
36840 Enable all targets that can be built by default
36841
36842 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36843 grub-mkfont and grub-fstest if they can be built
36844
36845 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36846
36847 Fix hang and segmentation fault in grub-emu-usb
36848
36849 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36850 * util/usb.c (grub_libusb_devices): likewise
36851 (grub_libusb_init): rename to ...
36852 (GRUB_MOD_INIT (libusb)):...this
36853 (grub_libusb_fini): rename to ..
36854 (GRUB_MOD_FINI (libusb)):...this
36855 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36856 * include/grub/disk.h (grub_raid_init): removed, it's useless
36857 (grub_raid_fini): likewise
36858 (grub_lvm_init): likewise
36859 (grub_lvm_fini): likewise
36860 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36861 by grub_init_all
36862
36863 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36864
36865 Fix libusb
36866
36867 * Makefile.in (LIBUSB): new macro
36868 * genmk.rb (Utility/print_tail): new method
36869 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36870 (top level): call util.print_tail at the end.
36871
36872 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36873
36874 Make FreeBSD accept zpool.cache
36875
36876 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36877 type is /boot/zfs/zpool.cache
36878
36879 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36880
36881 Fix 64-bit efiemu
36882
36883 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36884 correct wrong typedef
36885 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36886
36887 2009-07-15 Pavel Roskin <proski@gnu.org>
36888
36889 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36890 * kern/disk.c (struct grub_disk_cache): Likewise.
36891
36892 * commands/probe.c (options): Typo fix.
36893
36894 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36895 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36896 accordingly.
36897 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36898
36899 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36900 the end of "Error" to make the message more readable.
36901
36902 * boot/i386/pc/boot.S (kernel_segment): Remove.
36903 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36904 for destination.
36905
36906 * boot/i386/pc/boot.S (boot_version): Remove.
36907 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36908 Remove.
36909
36910 * include/grub/i386/pc/boot.h: Sort all offsets.
36911 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36912 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36913 * boot/i386/pc/boot.S: Assert location of every offset listed in
36914 include/grub/i386/pc/boot.h.
36915
36916 2009-07-13 Pavel Roskin <proski@gnu.org>
36917
36918 * include/grub/i386/coreboot/machine.h: Rename
36919 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36920 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36921 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36922
36923 * kern/dl.c: Force native word size to suppress warnings when
36924 compiling grub-emu.
36925
36926 * kern/device.c (grub_device_iterate): Change struct part_ent to
36927 hold the name, not a pointer to it. Use one grub_malloc() per
36928 partition, not two. Free partition_name if grub_malloc() fails.
36929 Set ents to NULL only before grub_partition_iterate() is called.
36930
36931 2009-07-11 Bean <bean123ch@gmail.com>
36932
36933 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36934 childname.
36935
36936 2009-07-10 Bean <bean123ch@gmail.com>
36937 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36938
36939 * kern/ieee1275/openfw.c (grub_children_iterate)
36940 (grub_devalias_iterate): Fix size evaluation for property or path
36941 strings, which was broken since r2132.
36942
36943 2009-07-07 Pavel Roskin <proski@gnu.org>
36944
36945 * commands/search.c (search_file): Merge into ...
36946 (search_fs): ... this. Accept search type as argument.
36947 (grub_cmd_search): Pass search type to search_fs().
36948
36949 * include/grub/util/console.h: New file.
36950 * util/console.c: Use it instead of grub/machine/console.h.
36951 * util/grub-emu.c: Likewise.
36952
36953 * lib/arg.c (find_long_option): Remove.
36954 (find_long): Add `len' argument, make `s' const char *.
36955 (grub_arg_parse): Parse long options in place, not in a
36956 temporary buffer.
36957
36958 2009-07-06 Pavel Roskin <proski@gnu.org>
36959
36960 * commands/search.c (search_fs): Fix potential NULL pointer
36961 dereference.
36962
36963 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36964 function pointer.
36965
36966 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36967
36968 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36969 comparison.
36970
36971 2009-07-05 Pavel Roskin <proski@gnu.org>
36972
36973 * include/grub/i386/linux.h (struct linux_kernel_params):
36974 Restore padding3, it's still needed.
36975
36976 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
36977 FreeBSD.
36978 * util/osdetect.lua: Likewise.
36979
36980 2009-07-05 Bean <bean123ch@gmail.com>
36981
36982 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
36983
36984 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
36985 (grub_lua_getenv): Likewise.
36986 (grub_lua_setenv): Likewise.
36987 (save_errno): New function.
36988 (push_result): Likewise.
36989 (grub_lua_enum_device): Likewise.
36990 (grub_lua_enum_file): Likewise.
36991 (grub_lua_file_open): Likewise.
36992 (grub_lua_file_close): Likewise.
36993 (grub_lua_file_seek): Likewise.
36994 (grub_lua_file_read): Likewise.
36995 (grub_lua_file_getline): Likewise.
36996 (grub_lua_file_getsize): Likewise.
36997 (grub_lua_file_getpos): Likewise.
36998 (grub_lua_file_eof): Likewise.
36999 (grub_lua_file_exist): Likewise.
37000 (grub_lua_add_menu): Likewise.
37001
37002 * script/lua/grub_lua.h (isupper): New inline function.
37003 (islower): Likewise.
37004 (ispunct): Likewise.
37005 (isxdigit): Likewise.
37006 (strcspn): Change to normal function.
37007 (strpbkr): New function declaration.
37008 (memchr): Likewise.
37009
37010 * script/lua/grub_main.c (scan_str): New function.
37011 (strcspn): Likewise.
37012 (strpbrk): Likewise.
37013 (memchr): Likewise.
37014
37015 * script/lua/linit.c (lualibs): Enable the string library.
37016
37017 * util/osdetect.lua: New file.
37018
37019 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37020
37021 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37022 `capabilities' member.
37023
37024 2009-07-02 Pavel Roskin <proski@gnu.org>
37025
37026 * genparttoollist.sh: Add missing newline at the end.
37027
37028 2009-07-01 Pavel Roskin <proski@gnu.org>
37029
37030 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37031
37032 * util/hostdisk.c (open_device): Remove `const' from
37033 `sysctl_size', as sysctlbyname() can change it (in this case it
37034 doesn't actually happen).
37035
37036 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37037 using signed long int constants.
37038
37039 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37040 constant to avoid a warning on FreeBSD.
37041
37042 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37043 where it's needed.
37044
37045 * Makefile.in: Install include/grub/machine symlink.
37046
37047 * Makefile.in: When installing symlinks, use "cp -fR", which
37048 works on FreeBSD and MacOSX.
37049 From Yves Blusseau <cl7m42e02@sneakemail.com>
37050
37051 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37052 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37053
37054 * util/misc.c: Move grub_reboot() and grub_halt() ...
37055 * util/grub-emu.c: ... here. Make main_env static.
37056 * include/grub/util/misc.h: Remove main_env.
37057
37058 * kern/mm.c: Use correct format to print size_t.
37059
37060 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37061 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37062 * kern/powerpc/dl.c: Likewise.
37063 * kern/sparc64/dl.c: Likewise.
37064 * kern/x86_64/dl.c: Likewise.
37065
37066 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37067
37068 Fix grub-emu build on sparc64-ieee1275.
37069
37070 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37072
37073 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37074
37075 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37076 (grub_reboot, grub_halt): New functions.
37077
37078 * util/i386/pc/misc.c: Delete. Update all users.
37079 * util/sparc64/ieee1275/misc.c: Likewise.
37080 * util/powerpc/ieee1275/misc.c: Likewise.
37081
37082 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37083
37084 * conf/i386.rmk (setjmp_mod_SOURCES)
37085 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37086 * conf/common.rmk (setjmp_mod_SOURCES)
37087 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37088 to use $(target_cpu).
37089 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37090 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37091 * conf/powerpc-ieee1275.rmk: Likewise.
37092 * conf/sparc64-ieee1275.rmk: Likewise.
37093
37094 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37095 $(target_cpu) for kern/$(target_cpu)/dl.c.
37096 * conf/i386-efi.rmk: Likewise.
37097 * conf/i386-ieee1275.rmk: Likewise.
37098 * conf/x86_64-efi.rmk: Likewise.
37099 * conf/i386-coreboot.rmk: Likewise.
37100 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37101 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37102 kern/$(target_cpu)/cache.S.
37103 * conf/sparc64-ieee1275.rmk: Likewise.
37104
37105 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37106
37107 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37108 type to `grub_uint8_t', and adjust `padding9' accordingly.
37109
37110 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37111
37112 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37113
37114 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37115 assembly in final jump, using register constraints.
37116
37117 (grub_linux_boot): For text mode, initialize `have_vga' using
37118 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37119
37120 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37121 right before the final jump.
37122
37123 Set `video_mode' to 0x3.
37124
37125 Document initialization of `video_page', `video_mode' and
37126 `video_ega_bx'.
37127
37128 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37129
37130 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37131 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37132 and set GRUB_LINUX_FLAG_QUIET appropriately.
37133
37134 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37135
37136 Fix build on Debian / sparc.
37137
37138 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37139
37140 2009-06-28 Pavel Roskin <proski@gnu.org>
37141
37142 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37143 fix a warning.
37144
37145 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37146
37147 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37148
37149 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37150 `err'.
37151
37152 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37153
37154 Revert r2338.
37155
37156 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37157 file can't be opened. grub_file_open() is already supposed to set
37158 grub_errno / grub_errmsg appropriately.
37159 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37160
37161 2009-06-27 Pavel Roskin <proski@gnu.org>
37162 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37163
37164 * include/grub/dl.h: Include grub/elf.h.
37165 (struct grub_dl): Add symtab field.
37166 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37167 GRUB_MODULES_MACHINE_READONLY.
37168 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37169 of the header for read-only modules.
37170 (grub_dl_unload): Free mod->symtab for read-only modules.
37171 * kern/i386/dl.c: Use mod->symtab.
37172 * kern/powerpc/dl.c: Likewise.
37173 * kern/sparc64/dl.c: Likewise.
37174 * kern/x86_64/dl.c: Likewise.
37175
37176 * conf/i386-qemu.rmk: New file.
37177 * kern/i386/qemu/startup.S: Likewise.
37178 * kern/i386/qemu/mmap.c: Likewise.
37179 * boot/i386/qemu/boot.S: Likewise.
37180 * include/grub/i386/qemu/time.h: Likewise.
37181 * include/grub/i386/qemu/serial.h: Likewise.
37182 * include/grub/i386/qemu/kernel.h: Likewise.
37183 * include/grub/i386/qemu/console.h: Likewise.
37184 * include/grub/i386/qemu/boot.h: Likewise.
37185 * include/grub/i386/qemu/init.h: Likewise.
37186 * include/grub/i386/qemu/machine.h: Likewise.
37187 * include/grub/i386/qemu/loader.h: Likewise.
37188 * include/grub/i386/qemu/memory.h: Likewise.
37189
37190 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37191 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37192 [qemu] (pkglib_IMAGES): Add `boot.img'.
37193 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37194 [qemu] (boot_img_FORMAT): New variables.
37195 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37196 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37197 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37198 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37199 [qemu] (kernel_img_FORMAT): New variables.
37200
37201 * configure.ac: Recognise `i386-qemu'.
37202
37203 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37204 (for no compression).
37205 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37206 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37207 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37208 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37209 ifdefs).
37210
37211 2009-06-27 Pavel Roskin <proski@gnu.org>
37212
37213 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37214 read.
37215 * efiemu/prepare32.c: Likewise.
37216 * efiemu/prepare64.c: Likewise.
37217
37218 2009-06-26 Pavel Roskin <proski@gnu.org>
37219
37220 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37221 * include/grub/elf.h: Define symbols without "32" or "64" based
37222 on GRUB_TARGET_WORDSIZE.
37223 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37224 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37225 ELF definitions.
37226 * efiemu/loadcore64.c: Likewise.
37227 * loader/i386/bsd32.c: Likewise.
37228 * loader/i386/bsd64.c: Likewise.
37229 * kern/dl.c: Remove own ELF definitions.
37230 * util/i386/efi/grub-mkimage.c: Likewise.
37231
37232 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37233
37234 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37235 segment 0x0 unconditionally, because the reference generated by
37236 GAS is an absolute address.
37237
37238 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37239
37240 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37241 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37242
37243 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37244
37245 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37246 indexes. Check for -f explicitly.
37247 (search_file): Improve error message.
37248 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37249
37250 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37251
37252 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37253 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37254
37255 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37256
37257 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37258 * conf/i386-ieee1275.rmk: Likewise.
37259 * conf/i386-coreboot.rmk: Likewise.
37260
37261 * kern/i386/pc/startup.S (grub_stop): Remove function.
37262 * kern/i386/ieee1275/startup.S: Likewise.
37263 * kern/i386/coreboot/startup.S: Likewise.
37264 * kern/i386/misc.S (grub_stop): New function.
37265
37266 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37267
37268 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37269 * kern/i386/realmode.S (real_to_prot): ... to here.
37270
37271 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37272
37273 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37274 with `kernel.img'.
37275 (kernel_elf_SOURCES): Rename to ...
37276 (kernel_img_SOURCES): ... this.
37277 (kernel_elf_HEADERS): Rename to ...
37278 (kernel_img_HEADERS): ... this. Update all users.
37279 (kernel_elf_ASFLAGS): Rename to ...
37280 (kernel_img_ASFLAGS): ... this.
37281 (kernel_elf_CFLAGS): Rename to ...
37282 (kernel_img_CFLAGS): ... this.
37283 (kernel_elf_LDFLAGS): Rename to ...
37284 (kernel_img_LDFLAGS): ... this.
37285 * conf/i386-coreboot.rmk: Likewise.
37286 * conf/powerpc-ieee1275.rmk: Likewise.
37287
37288 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37289 with "kernel.img".
37290
37291 2009-06-21 Pavel Roskin <proski@gnu.org>
37292
37293 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37294 to match nested functions.
37295 * loader/sparc64/ieee1275/linux.c: Likewise.
37296
37297 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37298
37299 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37300
37301 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37302 all i386 platforms.
37303
37304 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37305
37306 Fix asm file handling on ELF, and remove workarounds.
37307
37308 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37309 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37310 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37311 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37312
37313 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37314
37315 Load BSD ELF modules
37316
37317 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37318 and loader/i386/bsd64.c
37319 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37320 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37321 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37322 (grub_freebsd_load_elfmodule32): New declaration
37323 (grub_freebsd_load_elfmoduleobj64): Likewise
37324 (grub_freebsd_load_elf_meta32): Likewise
37325 (grub_freebsd_load_elf_meta64): Likewise
37326 (grub_freebsd_add_meta): Likewise
37327 (grub_freebsd_add_meta_module): Likewise
37328 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37329 (grub_freebsd_add_meta_module): Likewise and move module-specific
37330 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37331 (grub_cmd_freebsd): Add elf-kernel specific parts
37332 based on grub_freebsd_add_meta_module
37333 (grub_cmd_freebsd_module): Add type parsing moved from
37334 grub_freebsd_add_meta_module
37335 (grub_cmd_freebsd_module_elf): New function
37336 (cmd_freebsd_module_elf): New variable
37337 (GRUB_MOD_INIT): Register freebsd_module_elf
37338 * loader/i386/bsd32.c: New file
37339 * loader/i386/bsd64.c: Likewise
37340 * loader/i386/bsdXX.c: Likewise
37341 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37342 (grub_elf64_load): Likewise
37343 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37344 All users updated
37345 (grub_elf64_load_hook_t): Likewise
37346
37347 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37348
37349 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37350 variable.
37351 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37352 don't write a menu entry for recovery mode.
37353
37354 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37355
37356 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37357 after it's no longer needed.
37358
37359 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37360
37361 * include/grub/i386/loader.h (grub_linux_prot_size)
37362 (grub_linux_tmp_addr, grub_linux_real_addr)
37363 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37364 GRUB_MACHINE_PCBIOS.
37365 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37366 common grub_util_info() call to ...
37367 (generate_image): ... here.
37368 Fix use of uninitialized memory, comparison of signed with
37369 unsigned integers and memory leak.
37370 Remove bogus module address message.
37371
37372 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37373
37374 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37375 grub_raid_register
37376 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37377
37378 2009-06-19 Pavel Roskin <proski@gnu.org>
37379
37380 * configure.ac: Remove stray AC_MSG_CHECKING.
37381
37382 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37383
37384 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37385
37386 2009-06-18 Pavel Roskin <proski@gnu.org>
37387
37388 * conf/common.rmk: Add fs_file.mod.
37389 * disk/fs_file.c: New file.
37390 * include/grub/disk.h (enum grub_disk_dev_id): Add
37391 GRUB_DISK_DEVICE_FILE_ID.
37392
37393 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37394
37395 Fix build with Apple's toolchain. Part 2
37396
37397 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37398 a fake start
37399
37400 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37401
37402 Fix build with Apple's toolchain. Part 1
37403
37404 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37405 for long calls
37406 * configure.ac: remove a leftover AC_MSG_RESULT
37407 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37408 Apple's toolchain
37409
37410 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37411
37412 Fix warnings
37413
37414 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37415 (decomp_block): initialize ch
37416 use grub_memcpy instead of memcpy
37417
37418 2009-06-17 Pavel Roskin <proski@gnu.org>
37419
37420 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37421 version, use declarations needed to use vga_text as the startup
37422 console.
37423
37424 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37425 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37426 the kernel.
37427 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37428 and grub_at_keyboard_fini(), it's done on module load and
37429 unload.
37430
37431 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37432
37433 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37434 file can't be found.
37435 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37436
37437 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37438
37439 Fix newline handling
37440
37441 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37442 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37443 (grub_script_yylex): don't segfault on unterminated script
37444 newline terminates command and variable
37445
37446 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37447
37448 avoid double grub_adjust_range call. Bug reported by David Simner
37449
37450 * kern/disk.c (grub_disk_write): change to raw disk access before
37451 calling disk_read
37452
37453 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37454
37455 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37456 spaces, for the benefit of help2man.
37457 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37458
37459 2009-06-16 Pavel Roskin <proski@gnu.org>
37460
37461 * kern/i386/halt.c: Include grub/machine/init.h.
37462 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37463
37464 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37465
37466 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37467 drivemap menuentry.
37468
37469 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37470
37471 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37472 `echo' command.
37473
37474 2009-06-16 Pavel Roskin <proski@gnu.org>
37475
37476 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37477 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37478 save %dx, we only need %dl and we never change it.
37479 * boot/i386/pc/cdboot.S: Don't set the root drive.
37480 * boot/i386/pc/pxeboot.S: Likewise.
37481 * include/grub/i386/pc/boot.h: Remove
37482 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37483 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37484 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37485 * kern/i386/pc/init.c (make_install_device): Remove references
37486 to grub_root_drive.
37487 * kern/i386/pc/startup.S: Likewise.
37488 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37489
37490 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37491
37492 xnu_uuid command
37493
37494 * commands/xnu_uuid.c: new file
37495 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37496 (xnu_uuid_mod_SOURCES): new variable
37497 (xnu_uuid_mod_CFLAGS): likewise
37498 (xnu_uuid_mod_LDFLAGS): likewise
37499 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37500 * conf/i386-ieee1275.rmk: likewise
37501 * conf/i386-pc.rmk: likewise
37502 * conf/powerpc-ieee1275.rmk: likewise
37503 * conf/sparc64-ieee1275.rmk: likewise
37504 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37505
37506 2009-06-16 Pavel Roskin <proski@gnu.org>
37507
37508 * configure.ac: Avoid '==' in test command, it's not portable.
37509
37510 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37511
37512 Probe command
37513
37514 * commands/probe.c: new file
37515 * conf/common.rmk (pkglib_MODULES): add probe.mod
37516 (probe_mod_SOURCES): new variable
37517 (probe_mod_CFLAGS): likewise
37518 (probe_mod_LDFLAGS): likewise
37519 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37520 * conf/i386-ieee1275.rmk: likewise
37521 * conf/i386-pc.rmk: likewise
37522 * conf/powerpc-ieee1275.rmk: likewise
37523 * conf/sparc64-ieee1275.rmk: likewise
37524
37525 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37526
37527 Fix handling of string like \"hello\" and "a
37528 b"
37529
37530 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37531 (grub_script_yylex): fix parsing of quoting, escaping and newline
37532
37533 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37534
37535 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37536 handling
37537
37538 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37539
37540 * util/grub-mkconfig.in: Fix parsing of --output option.
37541
37542 2009-06-12 Pavel Roskin <proski@gnu.org>
37543
37544 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37545 genmk.rb don't need to be generated or installed.
37546
37547 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37548
37549 * commands/i386/pc/drivemap_int13h.S: add more comments
37550
37551 2009-06-11 Pavel Roskin <proski@gnu.org>
37552
37553 * Makefile.in (uninstall): Uninstall manuals.
37554
37555 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37556 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37557 and update-grub_lib in two places.
37558 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37559
37560 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37561 a compiler warning.
37562
37563 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37564 `entry_lo' to fix variable shadowing.
37565
37566 2009-06-11 Christian Franke <franke@computer.org>
37567
37568 * kern/misc.c (__enable_execute_stack): Add missing return type
37569 to prevent gcc warning.
37570
37571 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37572
37573 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37574
37575 2009-06-11 Pavel Roskin <proski@gnu.org>
37576
37577 * Makefile.in: Don't rely on any scripts being executable.
37578 Always use $(SHELL) to run shell scripts.
37579
37580 * configure.ac: Always define ___main if using -nostdlib. This
37581 fixes tests on Cygwin.
37582
37583 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37584
37585 UDF fix
37586
37587 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37588 is in bytes and not in blocks
37589
37590 2009-06-11 Pavel Roskin <proski@gnu.org>
37591
37592 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37593 warning.
37594
37595 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37596
37597 * util/grub.d/30_os-prober.in: Fix a comment. Source
37598 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37599 to set the root device. Place drivemap command in the generated
37600 chain entry.
37601
37602 2009-06-11 Pavel Roskin <proski@gnu.org>
37603
37604 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37605 have long been resolved.
37606
37607 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37608
37609 * util/grub.d/10_linux.in: Capitalise "Linux".
37610
37611 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37612
37613 2009-06-11 Pavel Roskin <proski@gnu.org>
37614
37615 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37616 fix a gcc warning and ensure that the function won't ever exit.
37617
37618 * kern/i386/ieee1275/init.c: Add missing prototype for
37619 grub_stop_floppy().
37620
37621 * loader/ieee1275/multiboot2.c [__i386__]: Include
37622 grub/cpu/multiboot.h.
37623
37624 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37625 casts to short - they are not portable and cause warnings. Fix
37626 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37627
37628 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37629
37630 Drivemap fixes
37631
37632 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37633 new function
37634 (grub_get_root_biosnumber_saved): new variable
37635 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37636 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37637 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37638 %dx after the call if necessary
37639 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37640 (boot_mod_SOURCES): remove
37641 (boot_mod_CFLAGS): remove
37642 (boot_mod_LDFLAGS): remove
37643 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37644 (boot_mod_SOURCES): new variable
37645 (boot_mod_CFLAGS): likewise
37646 (boot_mod_LDFLAGS): likewise
37647 * conf/i386-efi.rmk: likewise
37648 * conf/i386-ieee1275.rmk: likewise
37649 * conf/i386-pc.rmk: likewise
37650 * conf/powerpc-ieee1275.rmk: likewise
37651 * conf/sparc64-ieee1275.rmk: likewise
37652 * conf/x86_64-efi.rmk: likewise
37653 * include/grub/i386/pc/biosnum.h: new file
37654 * lib/i386/pc/biosnum.c: likewise
37655 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37656 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37657 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37658
37659 2009-06-10 Pavel Roskin <proski@gnu.org>
37660
37661 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37662 Use separate variables. Read only the file size at the end, but
37663 not the checksum that we don't use.
37664
37665 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37666 Adjust all callers.
37667
37668 * kern/ieee1275/openfw.c: Remove libc includes.
37669 * kern/ieee1275/cmain.c: Likewise.
37670 * include/grub/ieee1275/ieee1275.h: Likewise.
37671
37672 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37673 compiler warnings.
37674
37675 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37676
37677 * Makefile.in: Remove all trailing whitespace.
37678 * conf/i386-pc.rmk: Likewise.
37679 * conf/powerpc-ieee1275.rmk: Likewise.
37680 * conf/sparc64-ieee1275.rmk: Likewise.
37681 * docs/grub.texi: Likewise.
37682 * docs/texinfo.tex: Likewise.
37683 * disk/fs_uuid.c: Likewise.
37684 * disk/lvm.c: Likewise.
37685 * disk/scsi.c: Likewise.
37686 * disk/ata.c: Likewise.
37687 * disk/ieee1275/ofdisk.c: Likewise.
37688 * disk/i386/pc/biosdisk.c: Likewise.
37689 * disk/host.c: Likewise.
37690 * disk/raid.c: Likewise.
37691 * disk/efi/efidisk.c: Likewise.
37692 * disk/usbms.c: Likewise.
37693 * disk/memdisk.c: Likewise.
37694 * disk/loopback.c: Likewise.
37695 * kern/powerpc/dl.c: Likewise.
37696 * kern/device.c: Likewise.
37697 * kern/dl.c: Likewise.
37698 * kern/sparc64/dl.c: Likewise.
37699 * kern/ieee1275/ieee1275.c: Likewise.
37700 * kern/term.c: Likewise.
37701 * kern/fs.c: Likewise.
37702 * kern/i386/dl.c: Likewise.
37703 * kern/i386/pc/startup.S: Likewise.
37704 * kern/i386/pc/init.c: Likewise.
37705 * kern/i386/pc/mmap.c: Likewise.
37706 * kern/i386/pc/lzo1x.S: Likewise.
37707 * kern/i386/ieee1275/init.c: Likewise.
37708 * kern/i386/realmode.S: Likewise.
37709 * kern/i386/tsc.c: Likewise.
37710 * kern/partition.c: Likewise.
37711 * kern/corecmd.c: Likewise.
37712 * kern/file.c: Likewise.
37713 * kern/efi/efi.c: Likewise.
37714 * kern/efi/init.c: Likewise.
37715 * kern/efi/mm.c: Likewise.
37716 * kern/main.c: Likewise.
37717 * kern/err.c: Likewise.
37718 * kern/env.c: Likewise.
37719 * kern/disk.c: Likewise.
37720 * kern/generic/millisleep.c: Likewise.
37721 * kern/generic/rtc_get_time_ms.c: Likewise.
37722 * kern/misc.c: Likewise.
37723 * kern/parser.c: Likewise.
37724 * genmk.rb: Likewise.
37725 * configure.ac: Likewise.
37726 * boot/i386/pc/diskboot.S: Likewise.
37727 * boot/i386/pc/pxeboot.S: Likewise.
37728 * boot/i386/pc/boot.S: Likewise.
37729 * boot/i386/pc/lnxboot.S: Likewise.
37730 * boot/i386/pc/cdboot.S: Likewise.
37731 * parttool/pcpart.c: Likewise.
37732 * video/readers/tga.c: Likewise.
37733 * video/video.c: Likewise.
37734 * video/bitmap.c: Likewise.
37735 * lib/envblk.c: Likewise.
37736 * lib/i386/setjmp.S: Likewise.
37737 * fs/xfs.c: Likewise.
37738 * fs/afs.c: Likewise.
37739 * fs/fat.c: Likewise.
37740 * fs/ntfs.c: Likewise.
37741 * fs/udf.c: Likewise.
37742 * fs/affs.c: Likewise.
37743 * fs/iso9660.c: Likewise.
37744 * fs/hfs.c: Likewise.
37745 * fs/fshelp.c: Likewise.
37746 * fs/ext2.c: Likewise.
37747 * fs/jfs.c: Likewise.
37748 * fs/reiserfs.c: Likewise.
37749 * fs/hfsplus.c: Likewise.
37750 * fs/minix.c: Likewise.
37751 * fs/cpio.c: Likewise.
37752 * fs/sfs.c: Likewise.
37753 * fs/ufs.c: Likewise.
37754 * efiemu/prepare.c: Likewise.
37755 * efiemu/loadcore_common.c: Likewise.
37756 * efiemu/runtime/efiemu.sh: Likewise.
37757 * efiemu/runtime/efiemu.S: Likewise.
37758 * efiemu/runtime/efiemu.c: Likewise.
37759 * efiemu/pnvram.c: Likewise.
37760 * efiemu/main.c: Likewise.
37761 * efiemu/i386/pc/cfgtables.c: Likewise.
37762 * efiemu/i386/loadcore64.c: Likewise.
37763 * efiemu/i386/loadcore32.c: Likewise.
37764 * efiemu/loadcore.c: Likewise.
37765 * efiemu/symbols.c: Likewise.
37766 * efiemu/mm.c: Likewise.
37767 * include/grub/autoefi.h: Likewise.
37768 * include/grub/datetime.h: Likewise.
37769 * include/grub/term.h: Likewise.
37770 * include/grub/hfs.h: Likewise.
37771 * include/grub/lvm.h: Likewise.
37772 * include/grub/i386/tsc.h: Likewise.
37773 * include/grub/i386/linux.h: Likewise.
37774 * include/grub/i386/xnu.h: Likewise.
37775 * include/grub/i386/efiemu.h: Likewise.
37776 * include/grub/i386/pc/biosdisk.h: Likewise.
37777 * include/grub/i386/pc/memory.h: Likewise.
37778 * include/grub/i386/pc/vbe.h: Likewise.
37779 * include/grub/parttool.h: Likewise.
37780 * include/grub/video.h: Likewise.
37781 * include/grub/memory.h: Likewise.
37782 * include/grub/fs.h: Likewise.
37783 * include/grub/partition.h: Likewise.
37784 * include/grub/xnu.h: Likewise.
37785 * include/grub/efi/api.h: Likewise.
37786 * include/grub/efi/pe32.h: Likewise.
37787 * include/grub/efi/memory.h: Likewise.
37788 * include/grub/multiboot.h: Likewise.
37789 * include/grub/usbdesc.h: Likewise.
37790 * include/grub/multiboot2.h: Likewise.
37791 * include/grub/acpi.h: Likewise.
37792 * include/grub/efiemu/efiemu.h: Likewise.
37793 * include/grub/disk.h: Likewise.
37794 * include/grub/ieee1275/ieee1275.h: Likewise.
37795 * include/grub/net.h: Likewise.
37796 * include/grub/machoload.h: Likewise.
37797 * include/grub/macho.h: Likewise.
37798 * include/multiboot.h: Likewise.
37799 * genmoddep.awk: Likewise.
37800 * normal/main.c: Likewise.
37801 * normal/menu_entry.c: Likewise.
37802 * normal/menu_viewer.c: Likewise.
37803 * normal/completion.c: Likewise.
37804 * normal/cmdline.c: Likewise.
37805 * normal/misc.c: Likewise.
37806 * normal/datetime.c: Likewise.
37807 * bus/usb/usbtrans.c: Likewise.
37808 * bus/usb/ohci.c: Likewise.
37809 * bus/usb/uhci.c: Likewise.
37810 * bus/usb/usb.c: Likewise.
37811 * mmap/efi/mmap.c: Likewise.
37812 * mmap/i386/pc/mmap_helper.S: Likewise.
37813 * mmap/i386/pc/mmap.c: Likewise.
37814 * mmap/i386/mmap.c: Likewise.
37815 * mmap/i386/uppermem.c: Likewise.
37816 * mmap/mmap.c: Likewise.
37817 * commands/acpi.c: Likewise.
37818 * commands/echo.c: Likewise.
37819 * commands/blocklist.c: Likewise.
37820 * commands/loadenv.c: Likewise.
37821 * commands/usbtest.c: Likewise.
37822 * commands/boot.c: Likewise.
37823 * commands/parttool.c: Likewise.
37824 * commands/search.c: Likewise.
37825 * commands/cat.c: Likewise.
37826 * commands/i386/pc/play.c: Likewise.
37827 * commands/i386/pc/drivemap.c: Likewise.
37828 * commands/i386/pc/vbeinfo.c: Likewise.
37829 * commands/i386/pc/acpi.c: Likewise.
37830 * commands/i386/pc/vbetest.c: Likewise.
37831 * commands/ls.c: Likewise.
37832 * commands/cmp.c: Likewise.
37833 * commands/test.c: Likewise.
37834 * commands/efi/acpi.c: Likewise.
37835 * commands/gptsync.c: Likewise.
37836 * commands/help.c: Likewise.
37837 * partmap/amiga.c: Likewise.
37838 * partmap/apple.c: Likewise.
37839 * partmap/acorn.c: Likewise.
37840 * partmap/pc.c: Likewise.
37841 * partmap/sun.c: Likewise.
37842 * partmap/gpt.c: Likewise.
37843 * script/sh/lexer.c: Likewise.
37844 * script/sh/function.c: Likewise.
37845 * font/font.c: Likewise.
37846 * font/font_cmd.c: Likewise.
37847 * loader/powerpc/ieee1275/linux.c: Likewise.
37848 * loader/efi/chainloader.c: Likewise.
37849 * loader/multiboot_loader.c: Likewise.
37850 * loader/macho.c: Likewise.
37851 * loader/i386/multiboot.c: Likewise.
37852 * loader/i386/linux.c: Likewise.
37853 * loader/i386/pc/linux.c: Likewise.
37854 * loader/i386/pc/multiboot2.c: Likewise.
37855 * loader/i386/pc/chainloader.c: Likewise.
37856 * loader/i386/pc/xnu.c: Likewise.
37857 * loader/i386/bsd_trampoline.S: Likewise.
37858 * loader/i386/efi/linux.c: Likewise.
37859 * loader/i386/multiboot_elfxx.c: Likewise.
37860 * loader/i386/bsd_helper.S: Likewise.
37861 * loader/i386/bsd.c: Likewise.
37862 * loader/i386/linux_trampoline.S: Likewise.
37863 * loader/i386/xnu_helper.S: Likewise.
37864 * loader/i386/xnu.c: Likewise.
37865 * loader/i386/bsd_pagetable.c: Likewise.
37866 * loader/i386/multiboot_helper.S: Likewise.
37867 * loader/xnu.c: Likewise.
37868 * loader/xnu_resume.c: Likewise.
37869 * io/gzio.c: Likewise.
37870 * term/efi/console.c: Likewise.
37871 * term/terminfo.c: Likewise.
37872 * term/ieee1275/ofconsole.c: Likewise.
37873 * term/i386/pc/serial.c: Likewise.
37874 * term/i386/pc/vesafb.c: Likewise.
37875 * term/i386/pc/vga.c: Likewise.
37876 * term/usb_keyboard.c: Likewise.
37877 * term/gfxterm.c: Likewise.
37878 * aclocal.m4: Likewise.
37879 * util/lvm.c: Likewise.
37880 * util/grub.d/30_os-prober.in: Likewise.
37881 * util/grub.d/10_hurd.in: Likewise.
37882 * util/console.c: Likewise.
37883 * util/grub-macho2img.c: Likewise.
37884 * util/grub-probe.c: Likewise.
37885 * util/hostfs.c: Likewise.
37886 * util/i386/pc/grub-mkimage.c: Likewise.
37887 * util/i386/pc/grub-setup.c: Likewise.
37888 * util/i386/efi/grub-mkimage.c: Likewise.
37889 * util/grub-mkconfig.in: Likewise.
37890 * util/raid.c: Likewise.
37891 * util/resolve.c: Likewise.
37892 * util/grub-mkdevicemap.c: Likewise.
37893 * util/grub-emu.c: Likewise.
37894 * util/getroot.c: Likewise.
37895 * util/hostdisk.c: Likewise.
37896 * util/usb.c: Likewise.
37897 * util/grub-editenv.c: Likewise.
37898 * util/misc.c: Likewise.
37899
37900 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37901
37902 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37903 `genparttoollist.sh'.
37904 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37905 Add `*.sh' to the list find searches for and change `mdate.sh'
37906 to `mdate-sh'.
37907
37908 2009-06-10 Pavel Roskin <proski@gnu.org>
37909
37910 * include/grub/multiboot2.h: Provide compatibility defines for
37911 multiboot2.h.
37912 * include/multiboot2.h: Include stdint.h only if needed, using
37913 angle brackets.
37914 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37915 grub/multiboot2.h.
37916 * loader/ieee1275/multiboot2.c: Likewise.
37917 * loader/multiboot2.c: Likewise.
37918 * loader/multiboot_loader.c: Likewise.
37919
37920 * configure.ac: Use -nostdlib when probing for the target. It
37921 should not be required to have libc for the target.
37922
37923 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37924 they fail without libc headers for the target.
37925 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37926 exports.
37927 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37928 preprocessor conditionals.
37929
37930 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37931 build system doesn't need to be aware of the tar.c internals.
37932
37933 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37934
37935 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37936
37937 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37938
37939 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37940 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37941
37942 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37943
37944 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37945 aren't available if ata.mod gets used.
37946
37947 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37948
37949 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37950 initialising controller.
37951 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37952
37953 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37954
37955 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37956 to choose between ata and biosdisk module on i386-pc.
37957
37958 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37959
37960 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37961 Subclass and Programming Interface fields in terms of the 3 byte
37962 Class Code register.
37963 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37964
37965 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37966 interface is OHCI. Add grub_dprintf for symmetry with
37967 bus/usb/uhci.c.
37968 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37969 interface is UHCI. Add interf variable for programming
37970 interface. Print interface with class/subclass.
37971
37972 * bus/usb/ohci.c: Set interf with correct field.
37973
37974 * bus/usb/uhci.c: Remove unneeded doubled lines.
37975 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
37976 Remove whitespace inside comment.
37977
37978 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
37979
37980 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
37981 as fallback an equivalent option without depth.
37982
37983 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
37984
37985 Not fail if unable to retrieve C/H/S on LBA disks
37986
37987 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
37988 if unable to retrieve C/H/S on LBA disks
37989
37990 2009-06-08 Pavel Roskin <proski@gnu.org>
37991
37992 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
37993 about aliasing.
37994
37995 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37996
37997 * Makefile.in (uninstall): Remove all $lib_DATA files.
37998
37999 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38000
38001 Bugfix: install on partitionless device
38002
38003 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38004 is a whole disk
38005
38006 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38007
38008 * Makefile.in (uninstall): Remove all $include_DATA files.
38009
38010 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38011
38012 * commands/true.c: New file. Implement the true and false commands.
38013 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38014 (true_mod_SOURCES): New variable.
38015 (true_mod_CFLAGS): Likewise.
38016 (true_mod_LDFLAGS): Likewise.
38017
38018 2009-06-05 Colin D Bennett <colin@gibibit.com>
38019
38020 Optimized font character lookup using binary search instead of linear
38021 search. Fonts now are required to have the character index ordered by
38022 code point.
38023
38024 * font/font.c (load_font_index): Verify that fonts have ordered
38025 character indices.
38026 (find_glyph): Use binary search instead of linear search to find a
38027 character in a font.
38028
38029 2009-06-05 Michael Scherer <misc@mandriva.org>
38030
38031 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38032 uses case sensitive btree.
38033 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38034 only for case insensitive filesystems.
38035
38036 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38037
38038 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38039 * conf/common.rmk (search_mod_CFLAGS): likewise
38040
38041 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38042
38043 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38044 compensate a compiler bug
38045
38046 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38047
38048 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38049 instead of '\b'
38050
38051 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38052
38053 Definitions for creating asm symbols with Apple's CC
38054
38055 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38056 [APPLE_CC] (VARIABLE): likewise
38057
38058 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38059
38060 Disable lnxboot.img when compiled
38061 with Apple's CC
38062
38063 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38064 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38065 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38066 [! APPLE_CC] (CODE_LENG): skip
38067 [! APPLE_CC] (setup_sects): likewise
38068 [! APPLE_CC]: skip filling
38069
38070 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38071
38072 Address in trampolines based on 32-bit registers when compiled
38073 with Apple's CC
38074
38075 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38076 for addresses
38077 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38078
38079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38080
38081 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38082
38083 * kern/misc.c [APPLE_CC] (memcpy): new function
38084 [APPLE_CC] (memmove): likewise
38085 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38086 (memcpy): define alias conditionally on !APPLE_CC
38087 (memset): likewise
38088 (abort): likewise
38089 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38090 APPLE_CC are defined
38091 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38092 (grub_assert_fail): make prototype conditional
38093
38094 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38095
38096 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38097
38098 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38099 grub-macho2img
38100 (CLEANFILES): add grub-macho2img
38101 (grub_macho2img_SOURCES): new variable
38102 * kern/i386/pc/startup.S (bss_start): new variable
38103 (bss_end): likewise
38104 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38105 * util/grub-macho2img.c: new file
38106
38107 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38108
38109 Use objconv when compiling with Apple's CC
38110
38111 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38112 (efiemu64.o): likewise
38113 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38114 when compiling with Apple's CC
38115 (efiemu64_s.o): likewise
38116 * configure.ac: check for objconv when compiling with Apple's CC
38117 * genmk.rb: use objconv for modules when compiled with Apple's CC
38118
38119 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38120
38121 Define segment as well as section when compiling with
38122 Apple's CC
38123
38124 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38125 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38126 (efiemu_convert_pointer): likewise
38127 (efiemu_set_virtual_address_map): likewise
38128 (efiemu_convert_pointer): likewise
38129 (efiemu_getcrc32): likewise
38130 (init_crc32_table): likewise
38131 (reflect): likewise
38132 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38133 (GRUB_MOD_DEP): likewise
38134
38135 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38136
38137 Allow a compilation without -mcmodel=large
38138
38139 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38140 when compiled without -mcmodel=large
38141 (filter_memory_map): remove memory post 4 GiB when compiled
38142 without -mcmodel=large
38143 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38144 TARGET_CFLAGS when -mcmodel=large isn't supported
38145
38146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38147
38148 Remove nested functions in efiemu core
38149
38150 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38151
38152 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38153
38154 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38155
38156 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38157 temporary storage
38158 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38159 using Apple's CC
38160 (grub_cpu_is_tsc_supported): likewise
38161 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38162
38163 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38164
38165 Absolute addressing through constant with Apple's cc
38166
38167 * kern/i386/pc/startup.S: Define necessary constants
38168 and address through it when using ABS with Apple's CC
38169 * boot/i386/pc/diskboot.S: likewise
38170 * boot/i386/pc/boot.S: likewise
38171 * boot/i386/pc/lnxboot.S: likewise
38172 * boot/i386/pc/cdboot.S: likewise
38173 * mmap/i386/pc/mmap_helper.S: likewise
38174 * commands/i386/pc/drivemap_int13h.S: likewise
38175
38176 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38177
38178 Check if compiler is apple cc
38179
38180 * Makefile.in (ASFLAGS): new variable
38181 (TARGET_ASFLAGS): likewise
38182 (TARGET_MODULE_FORMAT): likewise
38183 (TARGET_APPLE_CC): likewise
38184 (OBJCONV): likewise
38185 (TARGET_IMG_CFLAGS): likewise
38186 (TARGET_CPPFLAGS): add includedir
38187 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38188 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38189 Check for linker script only if compiler isn't Apple's CC
38190 (TARGET_MODULE_FORMAT): set
38191 (TARGET_APPLE_CC): likewise
38192 (TARGET_ASFLAGS): likewise
38193 (ASFLAGS): likewise
38194 Check for objcopy only if compiler isn't Apple's CC
38195 Check for BSS symbol only if compiler isn't Apple's CC
38196 * genmk.rb: adapt nm options if we use Apple's utils
38197 * aclocal.m4 (grub_apple_cc): new test
38198 (grub_apple_target_cc): likewise
38199
38200 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38201
38202 Simplify sed expressions and improve awk
38203
38204 * Makefile.in (install-local): simplify sed expression
38205 * gencmdlist.sh: likewise
38206 * genmoddep.awk: avoid adding module as a dependency of itself
38207
38208 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38209
38210 Add missing start symbols
38211
38212 * boot/i386/pc/boot.S: add start
38213 * boot/i386/pc/pxeboot.S: likewise
38214
38215 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38216
38217 Fix wrong assumptions with grub-mkimage on EFI
38218
38219 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38220 (relocate_addresses): consider both r_addend and value at offset
38221 (make_mods_section): zerofill modinfo and header
38222 (convert_elf): write prefix here
38223
38224 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38225
38226 Use .asciz instead of .string
38227
38228 * i386/pc/diskboot.S: use .asciz instead of .string
38229 * i386/pc/boot.S: likewise
38230 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38231 (GRUB_MOD_NAME): likewise
38232
38233 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38234
38235 gfxpayload support
38236
38237 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38238 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38239 (grub_video_setup): remove
38240 (grub_video_set_mode): new prototype
38241 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38242 (vid_mode): remove
38243 (linux_vesafb_res): compile only on PCBIOS
38244 (grub_linux_boot): support gfxpayload
38245 * loader/i386/pc/xnu.c (video_hook): new function
38246 (grub_xnu_set_video): support gfxpayload
38247 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38248 (DEFAULT_VIDEO_HEIGHT): likewise
38249 (DEFAULT_VIDEO_FLAGS): likewise
38250 (DEFAULT_VIDEO_MODE): new definition
38251 (video_hook): new function
38252 (grub_gfxterm_init): use grub_video_set_mode
38253 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38254 loading xnu
38255 * video/video.c (grub_video_setup): removed
38256 (grub_video_set_mode): new function based on grub_gfxterm_init and
38257 grub_video_setup
38258
38259 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38260
38261 Avoid calling biosdisk in drivemap
38262
38263 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38264 (revparse_biosdisk): likewise
38265 (list_mappings): derive name from id directly
38266 (grub_cmd_drivemap): use tryparse_diskstring
38267
38268 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38269
38270 Script fixes
38271
38272 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38273 (grub_lexer_param): add tokenonhold
38274 (grub_script_create_cmdline): remove cmdline. All callers updated
38275 (grub_script_function_create): make functionname
38276 grub_script_arg. All callers updated
38277 (grub_script_execute_argument_to_string): new prototype
38278 * kern/parser.c (state_transitions): reorder
38279 (grub_parser_cmdline_state): fix a bug and make more compact
38280 * script/sh/execute.c (grub_script_execute_argument_to_string):
38281 make global
38282 (grub_script_execute_cmdline): use new format
38283 * script/sh/function.c (grub_script_function_create): make functionname
38284 grub_script_arg. All callers updated
38285 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38286 (grub_script_yylex): remove
38287 (grub_script_yylex2): renamed to ...
38288 (grub_script_yylex): ...renamed
38289 parse the expressions like a${b}c
38290 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38291 (GRUB_PARSER_TOKEN_VAR): remove
38292 (GRUB_PARSER_TOKEN_NAME): likewise
38293 ("if"): declare as typeless
38294 ("while"): likewise
38295 ("function"): likewise
38296 ("else"): likewise
38297 ("then"): likewise
38298 ("fi"): likewise
38299 (text): remove
38300 (argument): likewise
38301 (script): accept empty scripts and make exit on error
38302 (arguments): use GRUB_PARSER_TOKEN_ARG
38303 (function): likewise
38304 (command): move error handling to script
38305 (menuentry): move grub_script_lexer_ref before
38306 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38307 argument. All callers updated
38308
38309 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38310
38311 Prevent GRUB from probing floppies during boot.
38312
38313 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38314 * commands/search.c (options): Add --no-floppy.
38315 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38316 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38317 --no-floppy when searching for UUIDs.
38318
38319 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38320
38321 Simplify the code duplication in commands/search.c.
38322
38323 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38324 (search_fs): ... this. Update all users.
38325
38326 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38327
38328 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38329
38330 2009-05-28 Pavel Roskin <proski@gnu.org>
38331
38332 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38333 Remove the original symlink explicitly.
38334
38335 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38336 just one slash. That's how grub_fshelp_find_file() does it.
38337
38338 2009-05-26 Pavel Roskin <proski@gnu.org>
38339
38340 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38341 to `str'.
38342
38343 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38344 possibly unused.
38345
38346 2009-05-25 Christian Franke <franke@computer.org>
38347
38348 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38349 register.
38350 (grub_atapi_identify): Add wait after drive select.
38351 (grub_ata_identify): Do more strict status register check before
38352 calling grub_atapi_identify (). Suppress error message if status
38353 register is 0x00 after command failure. Add status register
38354 check after PIO read to avoid bogus identify due to stuck DRQ.
38355 Thanks to Pavel Roskin for testing.
38356 (grub_device_initialize): Remove unsafe status register check.
38357 Thanks to 'phcoder' for problem report and patch.
38358 Prevent sign extension in debug message.
38359
38360 2009-05-23 Colin D Bennett <colin@gibibit.com>
38361
38362 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38363 definition file, and functions defined in `normal/menu.c' have had
38364 their prototypes moved to `include/grub/menu.h' for consistency.
38365
38366 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38367 from normal.h.
38368 (grub_menu_get_entry): Likewise.
38369 (grub_menu_get_timeout): Likewise.
38370 (grub_menu_set_timeout): Likewise.
38371 (grub_menu_execute_entry): Likewise.
38372 (grub_menu_execute_with_fallback): Likewise.
38373 (grub_menu_entry_run): Likewise.
38374
38375 * include/grub/normal.h: Re-ordered and grouped function
38376 prototypes by file that the function is defined in.
38377 (grub_menu_execute_callback): Removed; moved to menu.h.
38378 (grub_menu_get_entry): Likewise.
38379 (grub_menu_get_timeout): Likewise.
38380 (grub_menu_set_timeout): Likewise.
38381 (grub_menu_execute_entry): Likewise.
38382 (grub_menu_execute_with_fallback): Likewise.
38383 (grub_menu_entry_run): Likewise.
38384 (grub_menu_addentry): Renamed from this ...
38385 (grub_normal_add_menu_entry): ... to this.
38386
38387 * normal/main.c (grub_menu_addentry): Renamed from this ...
38388 (grub_normal_add_menu_entry): ... to this.
38389
38390 * script/sh/execute.c (grub_script_execute_menuentry): Update
38391 reference to renamed grub_menu_addentry function.
38392
38393 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38394
38395 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38396
38397 2009-05-22 Pavel Roskin <proski@gnu.org>
38398
38399 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38400 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38401 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38402 compiling for the i386 targets, but not for the utilities.
38403
38404 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38405 to grub_uint8_t.
38406 (grub_root_drive): Likewise.
38407 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38408 remove alignment.
38409 (grub_root_drive): Change size to byte.
38410 (grub_start_addr): Remove.
38411 (grub_end_addr): Likewise.
38412 (grub_apm_bios_info): Likewise.
38413
38414 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38415
38416 * normal/i386: Remove.
38417 * normal/powerpc: Likewise.
38418 * normal/sparc64: Likewise.
38419 * normal/x86_64: Likewise.
38420
38421 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38422
38423 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38424 * loader/i386/linux_trampoline.S: Fix indentation
38425 * loader/i386/xnu_helper.S: Likewise
38426
38427 2009-05-18 Colin D Bennett <colin@gibibit.com>
38428
38429 Display error messages when parsing a Lua statement fails.
38430 Previously, executing a syntactically invalid statement like
38431 ")foo" or "bar;" would silently fail.
38432
38433 * script/lua/grub_main.c (handle_lua_error): New function.
38434 (grub_lua_parse_line): Improved reporting of Lua parser and
38435 execution errors.
38436
38437 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38438
38439 Remove -Werror which causes build to fail on some systems
38440
38441 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38442 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38443 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38444
38445 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38446
38447 trampoline for linux on 64-bit platform
38448
38449 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38450 loader/i386/efi/linux_trampoline.S
38451 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38452 declaration
38453 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38454 here
38455 * loader/i386/linux_trampoline.S: moved here
38456 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38457 trampoline
38458 (jumpvector): removed
38459 (grub_linux_trampoline_start): new declaration
38460 (grub_linux_trampoline_end): likewise
38461 (grub_linux_boot): use trampoline when on 64-bit platform
38462 * loader/i386/linux.c: likewise
38463
38464 2009-05-16 Pavel Roskin <proski@gnu.org>
38465
38466 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38467 const to avoid a warning.
38468 (grub_lua_setenv): Likewise.
38469 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38470 lmsg to fix a warning.
38471
38472 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38473
38474 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38475 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38476 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38477 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38478 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38479 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38480 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38481 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38482
38483 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38484
38485 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38486
38487 2009-05-16 Bean <bean123ch@gmail.com>
38488
38489 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38490 (lua_mod_SOURCES): New variable.
38491 (lua_mod_CFLAGS): Likewise.
38492 (lua_mod_LDFLAGS): Likewise.
38493
38494 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38495 (setjmp_mod_SOURCES): New variable.
38496 (setjmp_mod_CFLAGS): Likewise.
38497 (setjmp_LDFLAGS): Likewise.
38498
38499 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38500 (setjmp_mod_SOURCES): New variable.
38501 (setjmp_mod_CFLAGS): Likewise.
38502 (setjmp_LDFLAGS): Likewise.
38503
38504 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38505 (setjmp_mod_SOURCES): New variable.
38506 (setjmp_mod_CFLAGS): Likewise.
38507 (setjmp_LDFLAGS): Likewise.
38508
38509 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38510 (setjmp_mod_SOURCES): New variable.
38511 (setjmp_mod_CFLAGS): Likewise.
38512 (setjmp_LDFLAGS): Likewise.
38513
38514 * normal/i386/setjmp.S: Moved from here ...
38515 * lib/i386/setjmp.S: ... Moved here
38516 * normal/x86_64/setjmp.S: Moved from here ...
38517 * lib/x86_64/setjmp.S: ... Moved here
38518 * normal/powerpc/setjmp.S: Moved from here ...
38519 * lib/powerpc/setjmp.S: ... Moved here
38520 * normal/sparc64/setjmp.S: Moved from here ...
38521 * lib/sparc64/setjmp.S: ... Moved here
38522
38523 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38524 returns_twice in mingw.
38525
38526 * script/lua/grub_lib.c: New file.
38527 * script/lua/grub_lib.h: Likewise.
38528 * script/lua/grub_lua.h: Likewise.
38529 * script/lua/grub_main.c: Likewise.
38530 * script/lua/lapi.c: Likewise.
38531 * script/lua/lapi.h: Likewise.
38532 * script/lua/lauxlib.c: Likewise.
38533 * script/lua/lauxlib.h: Likewise.
38534 * script/lua/lbaselib.c: Likewise.
38535 * script/lua/lcode.c: Likewise.
38536 * script/lua/lcode.h: Likewise.
38537 * script/lua/ldblib.c: Likewise.
38538 * script/lua/ldebug.c: Likewise.
38539 * script/lua/ldebug.h: Likewise.
38540 * script/lua/ldo.c: Likewise.
38541 * script/lua/ldo.h: Likewise.
38542 * script/lua/ldump.c: Likewise.
38543 * script/lua/lfunc.c: Likewise.
38544 * script/lua/lfunc.h: Likewise.
38545 * script/lua/lgc.c: Likewise.
38546 * script/lua/lgc.h: Likewise.
38547 * script/lua/linit.c: Likewise.
38548 * script/lua/liolib.c: Likewise.
38549 * script/lua/llex.c: Likewise.
38550 * script/lua/llex.h: Likewise.
38551 * script/lua/llimits.h: Likewise.
38552 * script/lua/lmathlib.c: Likewise.
38553 * script/lua/lmem.c: Likewise.
38554 * script/lua/lmem.h: Likewise.
38555 * script/lua/loadlib.c: Likewise.
38556 * script/lua/lobject.c: Likewise.
38557 * script/lua/lobject.h: Likewise.
38558 * script/lua/lopcodes.c: Likewise.
38559 * script/lua/lopcodes.h: Likewise.
38560 * script/lua/loslib.c: Likewise.
38561 * script/lua/lparser.c: Likewise.
38562 * script/lua/lparser.h: Likewise.
38563 * script/lua/lstate.c: Likewise.
38564 * script/lua/lstate.h: Likewise.
38565 * script/lua/lstring.c: Likewise.
38566 * script/lua/lstring.h: Likewise.
38567 * script/lua/lstrlib.c: Likewise.
38568 * script/lua/ltable.c: Likewise.
38569 * script/lua/ltable.h: Likewise.
38570 * script/lua/ltablib.c: Likewise.
38571 * script/lua/ltm.c: Likewise.
38572 * script/lua/ltm.h: Likewise.
38573 * script/lua/lua.h: Likewise.
38574 * script/lua/luaconf.h: Likewise.
38575 * script/lua/lualib.h: Likewise.
38576 * script/lua/lundump.c: Likewise.
38577 * script/lua/lundump.h: Likewise.
38578 * script/lua/lvm.c: Likewise.
38579 * script/lua/lvm.h: Likewise.
38580 * script/lua/lzio.c: Likewise.
38581 * script/lua/lzio.h: Likewise.
38582
38583 2009-05-16 Bean <bean123ch@gmail.com>
38584
38585 * include/grub/kernel.h (grub_module_header_types): Add type
38586 OBJ_TYPE_CONFIG.
38587
38588 * kern/main.c (grub_load_config): New function.
38589 (grub_main): Call grub_load_config to read boot config.
38590
38591 * grub-mkimage (generate_image): New parameter config_path.
38592 (options): New option --config.
38593 (main): Parse --config option, and pass it to generate_image.
38594
38595 2009-05-14 Christian Franke <franke@computer.org>
38596
38597 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38598 This fixes build on Cygwin.
38599
38600 2009-05-14 Pavel Roskin <proski@gnu.org>
38601
38602 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38603 jump. This saves two bytes, so the typical case of 2 swapped
38604 drives would fit 32 bytes.
38605
38606 2009-05-13 Pavel Roskin <proski@gnu.org>
38607
38608 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38609 grub_uint32_t to avoid a warning.
38610
38611 * loader/i386/linux.c (allocate_pages): When assigning
38612 real_mode_mem, cast through grub_size_t to fix a warning. The
38613 code already makes sure that the value would fit a pointer.
38614 (grub_linux_setup_video): Cast render_target->data to
38615 grub_size_t to fix a warning.
38616
38617 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38618
38619 * commands/i386/pc/drivemap.c: New file - implement drivemap
38620 command.
38621 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38622 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38623
38624 2009-05-13 Pavel Roskin <proski@gnu.org>
38625
38626 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38627 embedding_area_exists.
38628
38629 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38630
38631 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38632 it easier to understand / work with.
38633 Improve warning messages for cases where there's no embedding area,
38634 or when it is too small (or core.img too large).
38635
38636 2009-05-13 Pavel Roskin <proski@gnu.org>
38637
38638 * loader/i386/pc/multiboot2.c: Add necessary includes for
38639 grub_multiboot2_real_boot().
38640
38641 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38642 PX record is always little-endian. We only need the lower 2
38643 bytes of the mode.
38644
38645 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38646 facilitate code reuse.
38647 (grub_cpio_mount): Use "struct head", not a char buffer. This
38648 fixes a warning reported by gcc 4.4.
38649
38650 * kernel/disk.c (grub_disk_read): Use void pointer for the
38651 buffer.
38652 (grub_disk_write): Use const void pointer for the buffer.
38653 Adjust all callers. Remove unnecessary casts.
38654
38655 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38656
38657 * util/i386/pc/grub-install.in: Update copyright year.
38658
38659 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38660
38661 gptsync
38662
38663 * commands/gptsync.c: new file
38664 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38665 (gptsync_mod_SOURCES): new variable
38666 (gptsync_mod_CFLAGS): likewise
38667 (gptsync_mod_LDFLAGS): likewise
38668 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38669 new definition
38670 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38671 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38672 * conf/i386-ieee1275.rmk: likewise
38673 * conf/i386-pc.rmk: likewise
38674 * conf/powerpc-ieee1275.rmk: likewise
38675
38676 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38677
38678 Fixed grub-emu
38679
38680 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38681 (grub_dl_ref): likewise
38682
38683 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38684
38685 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38686 split in two functions (one for msdos and one for gpt).
38687
38688 2009-05-08 Pavel Roskin <proski@gnu.org>
38689
38690 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38691 not modified.
38692
38693 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38694 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38695 Initialize them with -1. Add sanity check for bad1. Eliminate
38696 nerr variable.
38697
38698 2009-05-08 David S. Miller <davem@davemloft.net>
38699
38700 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38701
38702 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38703
38704 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38705 existence.
38706
38707 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38708
38709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38710 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38711
38712 2009-05-05 David S. Miller <davem@davemloft.net>
38713
38714 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38715
38716 2009-05-05 Pavel Roskin <proski@gnu.org>
38717
38718 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38719 of grub_dl_ref() and grub_dl_unref().
38720 * commands/parttool.c: Remove preprocessor conditionals around
38721 grub_dl_ref() and grub_dl_unref().
38722 * fs/affs.c: Likewise.
38723 * fs/afs.c: Likewise.
38724 * fs/cpio.c: Likewise.
38725 * fs/ext2.c: Likewise.
38726 * fs/fat.c: Likewise.
38727 * fs/hfs.c: Likewise.
38728 * fs/hfsplus.c: Likewise.
38729 * fs/iso9660.c: Likewise.
38730 * fs/jfs.c: Likewise.
38731 * fs/minix.c: Likewise.
38732 * fs/ntfs.c: Likewise.
38733 * fs/reiserfs.c: Likewise.
38734 * fs/sfs.c: Likewise.
38735 * fs/udf.c: Likewise.
38736 * fs/ufs.c: Likewise.
38737 * fs/xfs.c: Likewise.
38738 * include/grub/dl.h: Likewise.
38739 * loader/xnu.c: Likewise.
38740
38741 2009-05-04 Pavel Roskin <proski@gnu.org>
38742
38743 * commands/acpi.c: Remove unused variable my_mod.
38744 * partmap/amiga.c: Likewise.
38745 * partmap/apple.c: Likewise.
38746 * partmap/gpt.c: Likewise.
38747 * partmap/pc.c: Likewise.
38748 * partmap/sun.c: Likewise.
38749 * term/gfxterm.c: Likewise.
38750 * term/i386/pc/vesafb.c: Likewise.
38751 * term/i386/pc/vga.c: Likewise.
38752
38753 2009-05-04 David S. Miller <davem@davemloft.net>
38754
38755 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38756 pointer args to grub_ieee1275_get_property().
38757
38758 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38759
38760 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38761 devices, and do not traverse down under controller nodes.
38762
38763 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38764 (grub_ofdisk_open): Use it to un-escape "," characters.
38765 * kern/disk.c (find_part_sep): New.
38766 (grub_disk_open): Use it to find the first non-escaped ','
38767 character in the disk name.
38768 * util/ieee1275/devicemap.c (escape_of_path): New.
38769 (grub_util_emit_devicemap_entry): Use it.
38770 * util/sparc64/ieee1275/grub-install.in: Update script to
38771 strip partition specifiers properly by not triggering on
38772 '\' escaped ',' characters.
38773
38774 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38775
38776 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38777 to 0x300.
38778 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38779 resolutions.
38780 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38781 on documentation from Wikipedia).
38782
38783 2009-05-04 Pavel Roskin <proski@gnu.org>
38784
38785 * disk/ata.c: Spelling fixes.
38786 * disk/raid.c: Likewise.
38787 * disk/usbms.c: Likewise.
38788 * disk/dmraid_nvidia.c: Likewise.
38789 * kern/ieee1275/openfw.c: Likewise.
38790 * kern/ieee1275/init.c: Likewise.
38791 * kern/ieee1275/cmain.c: Likewise.
38792 * boot/i386/pc/cdboot.S: Likewise.
38793 * video/readers/png.c: Likewise.
38794 * video/i386/pc/vbe.c: Likewise.
38795 * fs/udf.c: Likewise.
38796 * fs/hfs.c: Likewise.
38797 * fs/reiserfs.c: Likewise.
38798 * efiemu/runtime/efiemu.c: Likewise.
38799 * efiemu/main.c: Likewise.
38800 * efiemu/mm.c: Likewise.
38801 * include/grub/elf.h: Likewise.
38802 * include/grub/xnu.h: Likewise.
38803 * include/grub/usbdesc.h: Likewise.
38804 * include/grub/usb.h: Likewise.
38805 * include/grub/script_sh.h: Likewise.
38806 * include/grub/lib/LzmaEnc.h: Likewise.
38807 * include/grub/efiemu/efiemu.h: Likewise.
38808 * include/grub/command.h: Likewise.
38809 * normal/menu.c: Likewise.
38810 * normal/main.c: Likewise.
38811 * normal/datetime.c: Likewise.
38812 * bus/usb/uhci.c: Likewise.
38813 * mmap/i386/uppermem.c: Likewise.
38814 * mmap/mmap.c: Likewise.
38815 * commands/acpi.c: Likewise.
38816 * commands/test.c: Likewise.
38817 * partmap/apple.c: Likewise.
38818 * font/font.c: Likewise.
38819 * loader/sparc64/ieee1275/linux.c: Likewise.
38820 * loader/macho.c: Likewise.
38821 * loader/i386/bsd_trampoline.S: Likewise.
38822 * loader/i386/bsd.c: Likewise.
38823 * loader/xnu.c: Likewise.
38824 * term/i386/pc/vesafb.c: Likewise.
38825 * term/usb_keyboard.c: Likewise.
38826 * util/resolve.c: Likewise.
38827 * util/getroot.c: Likewise.
38828
38829 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38830
38831 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38832
38833 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38834
38835 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38836 build error.
38837
38838 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38839
38840 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38841 parameter only available on BIOS.
38842
38843 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38844
38845 Removed wrong semicolon in declaration
38846
38847 * grub/misc.h (grub_dprintf): remove semicolon
38848
38849 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38850
38851 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38852 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38853 is done by grub_cmd_linux() now).
38854 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38855 restore video to text mode.
38856 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38857 indicates lack of "vga=" parameter. "vga=0" is mapped to
38858 `GRUB_LINUX_VID_MODE_NORMAL'.
38859
38860 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38861
38862 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38863 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38864 and `normal/script.c'. Add `kern/rescue_reader.c',
38865 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38866 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38867 `grub_script.tab.c'.
38868
38869 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38870 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38871 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38872 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38873 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38874
38875 * Makefile.in: Remove duplicated 2008 in Copyright line.
38876
38877 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38878
38879 * util/misc.c (grub_util_warn): New function. Emits a warning
38880 unconditionally.
38881 * include/grub/util/misc.h (grub_util_warn): New declaration.
38882
38883 * util/i386/pc/grub-install.in: Understand --force and pass it down
38884 to grub-setup.
38885
38886 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38887 down to setup().
38888 (setup): Improve error messages and add warnings when requested to
38889 install in odd layouts. Refuse to install using blocklists unless
38890 --force was set.
38891
38892 2009-05-04 martin f. krafft <madduck@madduck.net>
38893
38894 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38895
38896 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38897
38898 Updated copyright year
38899
38900 * fs/hfsplus.c: updated copyright year
38901
38902 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38903
38904 HFS+ UUID
38905
38906 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38907 in the space previously used by unused3
38908 (grub_hfsplus_uuid): new function
38909 (grub_hfsplus_fs): added uuid field
38910
38911 2009-05-03 Pavel Roskin <proski@gnu.org>
38912
38913 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38914 suppress warnings. It's no longer needed.
38915 * disk/host.c: Likewise.
38916 * disk/ata_pthru.c: Likewise.
38917 * disk/loopback.c: Likewise.
38918 * hook/datehook.c: Likewise.
38919 * parttool/pcpart.c: Likewise.
38920 * fs/i386/pc/pxe.c: Likewise.
38921 * fs/ntfscomp.c: Likewise.
38922 * efiemu/main.c: Likewise.
38923 * mmap/mmap.c: Likewise.
38924 * commands/crc.c: Likewise.
38925 * commands/hexdump.c: Likewise.
38926 * commands/hdparm.c: Likewise.
38927 * commands/acpi.c: Likewise.
38928 * commands/echo.c: Likewise.
38929 * commands/minicmd.c: Likewise.
38930 * commands/blocklist.c: Likewise.
38931 * commands/memrw.c: Likewise.
38932 * commands/loadenv.c: Likewise.
38933 * commands/usbtest.c: Likewise.
38934 * commands/lsmmap.c: Likewise.
38935 * commands/boot.c: Likewise.
38936 * commands/parttool.c: Likewise.
38937 * commands/configfile.c: Likewise.
38938 * commands/search.c: Likewise.
38939 * commands/ieee1275/suspend.c: Likewise.
38940 * commands/cat.c: Likewise.
38941 * commands/i386/pc/pxecmd.c: Likewise.
38942 * commands/i386/pc/play.c: Likewise.
38943 * commands/i386/pc/halt.c: Likewise.
38944 * commands/i386/pc/vbeinfo.c: Likewise.
38945 * commands/i386/pc/vbetest.c: Likewise.
38946 * commands/lspci.c: Likewise.
38947 * commands/date.c: Likewise.
38948 * commands/handler.c: Likewise.
38949 * commands/ls.c: Likewise.
38950 * commands/test.c: Likewise.
38951 * commands/cmp.c: Likewise.
38952 * commands/efi/loadbios.c: Likewise.
38953 * commands/efi/fixvideo.c: Likewise.
38954 * commands/halt.c: Likewise.
38955 * commands/help.c: Likewise.
38956 * commands/reboot.c: Likewise.
38957 * hello/hello.c: Likewise.
38958 * script/sh/main.c: Likewise.
38959 * loader/xnu.c: Likewise.
38960 * term/terminfo.c: Likewise.
38961 * term/i386/pc/serial.c: Likewise.
38962 * term/usb_keyboard.c: Likewise.
38963
38964 2009-05-03 David S. Miller <davem@davemloft.net>
38965
38966 * normal/menu.c: Include grub/parser.h
38967
38968 2009-05-03 Pavel Roskin <proski@gnu.org>
38969
38970 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38971 not char*.
38972 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38973 Suggested by Javier Martín <lordhabbit@gmail.com>
38974
38975 * util/i386/pc/grub-mkrescue.in: Allow for the case when
38976 efiemu??.o doesn't exist.
38977 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
38978 copying.
38979
38980 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
38981
38982 FreeBSD 64-bit support
38983
38984 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
38985 and loader/i386/bsd_trampoline.S
38986 (bsd_mod_ASFLAGS): new variable
38987 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
38988 (FREEBSD_MODTYPE_KERNEL64): likewise
38989 (grub_bsd64_trampoline_start): likewise
38990 (grub_bsd64_trampoline_end): likewise
38991 (grub_bsd64_trampoline_selfjump): likewise
38992 (grub_bsd64_trampoline_gdt): likewise
38993 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
38994 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
38995 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
38996 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
38997 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
38998 of "attrib" member
38999 * loader/i386/bsd_pagetable.c: new file
39000 * loader/i386/bsd_trampoline.S: likewise
39001 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39002 (ALIGN_VAR): likewise
39003 (entry_hi): new variable
39004 (kern_end_mdofs): likewise
39005 (is_64bit): likewise
39006 (grub_freebsd_add_meta): use ALIGN_VAR
39007 (grub_e820_mmap): new declaration
39008 (grub_freebsd_add_mmap): new function
39009 (grub_freebsd_add_meta_module): support 64 bit kernels
39010 (grub_freebsd_list_modules): use ALIGN_VAR
39011 (gdt_descriptor): new declaration
39012 (grub_freebsd_boot): support 64 bit kernels
39013 (grub_bsd_elf64_hook): new function
39014 (grub_bsd_load_elf): support elf64
39015
39016 2009-05-03 Bean <bean123ch@gmail.com>
39017
39018 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39019 after we get the result of if statement.
39020
39021 2009-05-03 Bean <bean123ch@gmail.com>
39022
39023 * Makefile.in (enable_efiemu): New variable.
39024
39025 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39026 set.
39027 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39028 path.
39029 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39030 path, add -mno-red-zone option.
39031 (efiemu64_s.o): Likewise.
39032 (efiemu64.o): Use macro $^ for source file.
39033
39034 * configure.ac (--enable-efiemu): New option.
39035
39036 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39037
39038 xnu support
39039
39040 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39041 (pkglib_MODULES): add xnu.mod
39042 (xnu_mod_SOURCES): new variable
39043 (xnu_mod_CFLAGS): likewise
39044 (xnu_mod_LDFLAGS): likewise
39045 (xnu_mod_ASFLAGS): likewise
39046 * conf/i386-pc.rmk: likewise
39047 * conf/x86_64-efi.rmk: likewise
39048 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39049 new declaration
39050 * include/grub/i386/macho.h: new file
39051 * include/grub/i386/xnu.h: likewise
39052 * include/grub/macho.h: likewise
39053 * include/grub/machoload.h: likewise
39054 * include/grub/x86_64/macho.h: likewise
39055 * include/grub/x86_64/xnu.h: likewise
39056 * include/grub/xnu.h: likewise
39057 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39058 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39059 * loader/i386/efi/xnu.c: new file
39060 * loader/i386/pc/xnu.c: likewise
39061 * loader/i386/xnu.c: likewise
39062 * loader/i386/xnu_helper.S: likewise
39063 * loader/macho.c: likewise
39064 * loader/xnu.c: likewise
39065 * loader/xnu_resume.c: likewise
39066 * util/grub-dumpdevtree: likewise
39067 * include/grub/i386/pit.h: include grub/err.h
39068 (grub_pit_wait): export
39069 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39070
39071 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39072
39073 Efiemu
39074
39075 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39076 _linux_efi, linux_efi.
39077 new files in grub-emu
39078 new targets efiemu32.o and efiemu64.o
39079 * loader/linux_normal_efiemu.c: likewise
39080 * loader/i386/efi/linux.c: added preliminary efiemu support
39081 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39082 files to copy
39083 * include/grub/autoefi.h: new file
39084 * include/grub/i386/efiemu.h: likewise
39085 * include/grub/i386/pc/efiemu.h: likewise
39086 * include/grub/efi/api.h: add LL suffix when necessary
39087 new definitions relating to tables
39088 * include/grub/efiemu/efiemu.h: new file
39089 * include/grub/efiemu/runtime.h: likewise
39090 * efiemu/prepare.c: likewise
39091 * efiemu/loadcore_common.c: likewise
39092 * efiemu/loadcore64.c: likewise
39093 * efiemu/runtime/efiemu.sh: likewise
39094 * efiemu/runtime/efiemu.S: likewise
39095 * efiemu/runtime/efiemu.c: likewise
39096 * efiemu/runtime/config.h: likewise
39097 * efiemu/prepare32.c: likewise
39098 * efiemu/main.c: likewise
39099 * efiemu/modules/pnvram.c: likewise
39100 * efiemu/modules/i386: likewise
39101 * efiemu/modules/i386/pc: likewise
39102 * efiemu/modules/acpi.c: likewise
39103 * efiemu/i386/pc/cfgtables.c: likewise
39104 * efiemu/i386/loadcore64.c: likewise
39105 * efiemu/i386/loadcore32.c: likewise
39106 * efiemu/prepare64.c: likewise
39107 * efiemu/loadcore.c: likewise
39108 * efiemu/symbols.c: likewise
39109 * efiemu/mm.c: likewise
39110 * efiemu/loadcore32.c: likewise
39111
39112 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39113
39114 ACPI spoofing
39115
39116 * commands/acpi.c: new file
39117 * commands/i386/pc/acpi.c: likewise
39118 * commands/efi/acpi.c: likewise
39119 * include/grub/acpi.h: likewise
39120 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39121 (acpi_mod_SOURCES): new variable
39122 (acpi_mod_CFLAGS): likewise
39123 (acpi_mod_LDFLAGS): likewise
39124 * conf/i386-efi.rmk: likewise
39125 * conf/x86_64-efi.rmk: likewise
39126
39127 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39128
39129 Missing part from mmap patch
39130
39131 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39132 (grub_mmap_unregister)
39133 (grub_mmap_free_and_unregister): use grub_mmap_register
39134
39135 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39136
39137 Mmap services
39138
39139 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39140 * loader/i386/linux.c (find_mmap_size): likewise
39141 (allocate_pages): likewise
39142 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39143 (grub_fill_multiboot_mmap): likewise
39144 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39145 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39146 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39147 (OPENBSD_MMAP_RESERVED): likewise
39148 * include/grub/i386/pc/memory.h: include grub/memory.h
39149 (grub_lower_mem): removed
39150 (grub_upper_mem): likewise
39151 (GRUB_MACHINE_MEMORY_ACPI): new definition
39152 (GRUB_MACHINE_MEMORY_NVS): likewise
39153 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39154 (GRUB_MACHINE_MEMORY_HOLE): likewise
39155 (grub_machine_mmap_register): likewise
39156 (grub_machine_mmap_unregister): likewise
39157 (grub_machine_get_upper): likewise
39158 (grub_machine_get_lower): likewise
39159 (grub_machine_get_post64): likewise
39160 * include/grub/i386/efi/memory.h: new file
39161 * include/grub/x86_64/efi/memory.h: likewise
39162 * include/grub/efi/memory.h: likewise
39163 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39164 (mmap_mod_SOURCES): new variable
39165 (mmap_mod_LDFLAGS): likewise
39166 (mmap_mod_ASFLAGS): likewise
39167 * conf/i386-coreboot.rmk: likewise
39168 * conf/i386-ieee1275.rmk: likewise
39169 * conf/i386-efi.rmk: likewise
39170 * conf/x86_64-efi.rmk: likewise
39171 * include/grub/types.h (UINT_TO_PTR): new macro
39172 (PTR_TO_UINT32): likewise
39173 (PTR_TO_UINT64): likewise
39174 * include/grub/memory.h: new file
39175 * mmap/i386/pc/mmap.c: likewise
39176 * mmap/i386/pc/mmap_helper.S: likewise
39177 * mmap/i386/uppermem.c: likewise
39178 * mmap/mmap.c: likewise
39179 * mmap/efi/mmap.c: likewise
39180 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39181 grub_upper_mem
39182 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39183 (grub_upper_mem): likewise
39184 (grub_machine_init): don't use grub_upper_mem,
39185 make grub_lower_mem local
39186 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39187 grub_mmap_iterate and grub_mmap_get_upper
39188 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39189
39190 2009-05-02 Bean <bean123ch@gmail.com>
39191
39192 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39193 script/sh/parser.y.
39194 (pkglib_MODULES): Add normal.mod and sh.mod.
39195 (normal_SOURCES): New variable.
39196 (normal_mod_CFLAGS): Likewise.
39197 (normal_mod_LDFLAGS): Likewise.
39198 (sh_mod_SOURCES): Likewise.
39199 (sh_mod_CFLAGS): Likewise.
39200 (sh_mod_LDFLAGS): Likewise.
39201
39202 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39203 script/sh/lexer.c_DEPENDENCIES.
39204 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39205 kern/rescue_reader.c and kern/rescue_parser.c.
39206 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39207 (grub_emu_SOURCES): Change source files.
39208 (pkglib_MODULES): Remove normal.mod.
39209 (normal_SOURCES): Removed.
39210 (normal_mod_CFLAGS): Likewise.
39211 (normal_mod_LDFLAGS): Likewise.
39212 * conf/i386-coreboot.rmk: Likewise.
39213 * conf/i386-efi.rmk: Likewise.
39214 * conf/i386-ieee1276.rmk: Likewise.
39215 * conf/powerpc-ieee1275.rmk: Likewise.
39216 * conf/sparc64-ieee1275.rmk: Likewise.
39217 * conf/x86_64-efi.rmk: Likewise.
39218
39219 * include/grub/command.h (grub_command_execute): New inline function.
39220
39221 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39222
39223 * include/grub/normal.h: Remove <grub/setjmp.h>.
39224 (grub_fs_module_list): Moved to normal/autofs.c.
39225 (grub_exit_env): Removed.
39226 (grub_command_execute): Likewise.
39227 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39228 parameter script.
39229 (read_command_list): New function declaration.
39230 (read_fs_list): Likewise.
39231
39232 * include/parser.h: Include <grub/reader.h>.
39233 (grub_parser_split_cmdline): Change type of getline parameter.
39234 (grub_parser): New structure.
39235 (grub_parser_class): New variable.
39236 (grub_parser_execute): New function declaration.
39237 (grub_register_rescue_parser): Likewise.
39238 (grub_parser_register): New inline function.
39239 (grub_parser_unregister): Likewise.
39240 (grub_parser_get_current): Likewise.
39241 (grub_parser_set_current): Likewise.
39242
39243 * include/grub/reader.h: New file.
39244 * kern/reader.c: Likewise.
39245 * kern/rescue_parser.c: Likewise.
39246 * kern/rescue_reader.c: Likewise.
39247 * normal/autofs.c: Likewise.
39248 * normal/dyncmd.c: Likewise.
39249
39250 * include/grub/rescue.h: Removed.
39251 * normal/command.h: Likewise.
39252
39253 * include/grub/script.h: Moved to ...
39254 * include/grub/script_sh.h: ... Moved here.
39255 * normal/execute.c: Moved to ...
39256 * script/sh/execute.c: ... Moved here.
39257 * normal/function.c: Moved to ...
39258 * script/sh/function.c: ... Moved here.
39259 * normal/lexer.c: Moved to ...
39260 * script/sh/lexer.c: ... Moved here.
39261 * normal/parser.y: Moved to ...
39262 * script/sh/parser.y: ... Moved here.
39263 * normal/script.c: Moved to ...
39264 * script/sh/script.c: ... Moved here.
39265
39266 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39267 <grub/reader.h>.
39268 (grub_exit_env): Removed.
39269 (fs_module_list): Moved to normal/autofs.c.
39270 (grub_file_getline): Don't handle comment here.
39271 (free_menu): Skip removed field entry->commands.
39272 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39273 script parameter.
39274 (read_config_file): Removed nested parameter, change getline function.
39275 (grub_enter_normal_mode): Removed.
39276 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39277 (read_command_list): Likewise.
39278 (autoload_fs_module): Moved to normal/autofs.c.
39279 (read_fs_list): Likewise.
39280 (reader_nested): New variable.
39281 (grub_normal_execute): Run parser.sh to switch to sh parser.
39282 (grub_cmd_rescue): Removed.
39283 (cmd_normal): Removed.
39284 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39285 rescue command.
39286 (grub_cmdline_run): New function.
39287 (grub_normal_reader_init): Likewise.
39288 (grub_normal_read_line): Likewise.
39289 (grub_env_write_pager): Likewise.
39290 (cmdline): New variable.
39291 (grub_normal_reader): Likewise.
39292 (GRUB_MOD_INIT): Register normal reader and set as current, register
39293 pager hook, register normal command with grub_register_command_prio,
39294 so that it won't show up in command.lst.
39295 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39296 grub_fs_autoload_hook.
39297
39298 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39299 (grub_menu_execute_entry): Replace grub_script_execute with
39300 grub_parser_execute, change parameter to grub_command_execute.
39301
39302 * normal/menu_text.c: Remove <grub/script.h>.
39303
39304 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39305 and <grub/parser.h>.
39306 (run): Change editor_getline to use new parser interface. Change
39307 parameter to grub_command_execute.
39308
39309 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39310 <grub/reader.h> and <grub/parser.h>.
39311 (grub_load_normal_mode): Execute normal command.
39312 (grub_main): Call grub_register_core_commands,
39313 grub_register_rescue_parser and grub_register_rescue_reader, use
39314 grub_reader_loop to enter input loop.
39315
39316 * kern/parser.c (grub_parser_split_cmdline): Change type of
39317 getline parameter.
39318 (grub_parser_class): New variable.
39319 (grub_parser_execute): New function.
39320
39321 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39322 * loader/multiboot2.c: Likewise.
39323 * loader/sparc64/ieee1275/linux.c: Likewise.
39324
39325 * util/grub-emu.c (read_command_list): New dummy function.
39326
39327 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39328
39329 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39330 count to 16 for CCISS and IDA.
39331
39332 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39333
39334 * normal/menu_text.c (grub_wait_after_message): Print a newline
39335 after waiting for user input.
39336
39337 * loader/i386/linux.c: Include `<grub/normal.h>'.
39338 (grub_cmd_linux): Improve the error message about `ask' mode, by
39339 waiting for user input so it's not missed (we can do this, since
39340 user requested interaction).
39341
39342 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39343
39344 Added missing lst to grub-mkrescue
39345
39346 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39347 and ${input_dir}/parttool.lst
39348
39349 2009-04-30 David S. Miller <davem@davemloft.net>
39350
39351 * util/hostdisk.c (device_is_wholedisk): New function.
39352 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39353 zero only if device_is_wholedisk() returns true.
39354
39355 * util/hostdisk.c (convert_system_partition_to_system_disk):
39356 Handle virtual disk devices named /dev/vdiskX as found on sparc
39357 and powerpc.
39358
39359 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39360 lettered partition specifier is found, convert to numbered.
39361
39362 2009-04-29 David S. Miller <davem@davemloft.net>
39363
39364 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39365 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39366
39367 * normal/command.c: Add missing newline at end of file.
39368
39369 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39370 warnings.
39371 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39372 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39373 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39374 ihandles have a 32-bit type but need to be stored in a "void *".
39375
39376 2009-04-28 Pavel Roskin <proski@gnu.org>
39377
39378 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39379 not disk. Adjust all dependencies.
39380 (grub_fs_uuid_close): Use grub_device_close(), not
39381 grub_disk_close().
39382
39383 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39384 parent's partition, don't copy it by reference, as it gets freed
39385 on close.
39386
39387 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39388
39389 Preboot hooks support
39390
39391 * commands/boot.c (struct grub_preboot_t): new declaration
39392 (preboots_head): new variable
39393 (preboots_tail): likewise
39394 (grub_loader_register_preboot_hook): new function
39395 (grub_loader_unregister_preboot_hook): likewise
39396 (grub_loader_set): launch preboot hooks
39397 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39398 (grub_loader_register_preboot_hook): new declaration
39399 (grub_loader_unregister_preboot_hook): likewise
39400
39401 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39402
39403 Warning fix
39404
39405 * disk/scsi.c (grub_scsi_open): added missing cast when
39406 calling grub_dprintf
39407
39408 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39409
39410 Bug and warning fixes
39411
39412 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39413 declaration
39414 * commands/test.c (test_parse): fixed bug with file tests and corrected
39415 declaration of find_file
39416
39417 2009-04-26 Pavel Roskin <proski@gnu.org>
39418
39419 * Makefile.in: Don't install empty manual pages if help2man is
39420 missing. Use help2man option for output, not shell redirection.
39421
39422 2009-04-26 David S. Miller <davem@davemloft.net>
39423
39424 * util/grub-mkdevicemap.c (make_device_map): Add missing
39425 NESTED_FUNC_ATTR to process_device().
39426
39427 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39428
39429 Test command
39430
39431 * commands/test.c: rewritten to use bash-like test
39432
39433 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39434
39435 Parttool autoloading and improvements
39436
39437 * Makefile.in (pkglib_DATA): add parttool.lst
39438 (parttool.lst): new target
39439 * genmk.rb: generate parttool-*
39440 (CLEANFILES): add #{parttool}
39441 (PARTTOOLFILES): new variable
39442 * genparttoollist.sh: new file
39443 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39444 (grub_pcpart_type): likewise
39445 * commands/parttool.c (helpmsg): new variable
39446 (grub_cmd_parttool): output help if not enough arguments are supplied
39447 autoload modules
39448 (GRUB_MOD_INIT(parttool)): use helpmsg
39449
39450 2009-04-24 David S. Miller <davem@davemloft.net>
39451
39452 Avoiding opening same device multiple times in device iterator.
39453
39454 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39455 and use it to build a list of partitions in iterate_disk() and
39456 iterate_partition().
39457
39458 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39459 on disk->data.
39460
39461 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39462 grub_devalias_iterate() result instead of unconditional 0.
39463 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39464 Also, capture hook return value, either directly or via
39465 grub_children_iterate(), and propagate to caller.
39466 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39467 grub_children_iterate): Return value is now 'int' instead of
39468 'grub_err_t'.
39469 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39470 like a proper iterator, stopping when hooks return non-zero.
39471 (grub_devalias_iterate): Likewise.
39472
39473 2009-04-23 David S. Miller <davem@davemloft.net>
39474
39475 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39476
39477 2009-04-22 David S. Miller <davem@davemloft.net>
39478
39479 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39480 is larger than address_cells, use that value for address_cells too.
39481
39482 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39483 IEEE1275_MAX_PATH_LEN): Define.
39484 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39485 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39486 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39487 'devtype'. Explicitly NULL terminate devalias expansion.
39488
39489 * util/sparc64/ieee1275/misc.c: New file.
39490 * util/sparc64/ieee1275/grub-setup.c: New file.
39491 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39492 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39493 * util/sparc64/ieee1275/grub-install.in: New file.
39494 * util/ieee1275/ofpath.c: New file.
39495 * util/ieee1275/devicemap.c: New file.
39496 * util/devicemap.c: New file.
39497 * util/deviceiter.c: New file.
39498 * kern/sparc64/ieee1275/init.c: New file.
39499 * include/grub/util/ofpath.h: New file.
39500 * include/grub/util/deviceiter.h: New file.
39501 * util/grub-mkdevicemap.c: Include deviceiter.h.
39502 Implement using grub_util_emit_devicemap_entry and
39503 grub_util_iterate_devices.
39504 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39505 util/devicemap.c into grub-mkdevicemap
39506 * conf/i386-efi.rmk: Likewise.
39507 * conf/i386-ieee1275.rmk: Likewise.
39508 * conf/i386-pc.rmk: Likewise.
39509 * conf/powerpc-ieee1275.rmk: Likewise.
39510 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39511 images and installation utilities. Build kernel as image
39512 instead of as elf binary. Use common rules as much as possible.
39513
39514 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39515
39516 Correct GPT definition
39517
39518 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39519 of "attrib" member
39520
39521 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39522
39523 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39524
39525 2009-04-19 David S. Miller <davem@davemloft.net>
39526
39527 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39528 (grub_rescue_cmd_linux): Rename to...
39529 (grub_cmd_linux): and fix prototype.
39530 (grub_rescue_cmd_initrd): Rename to...
39531 (grub_cmd_initrd): and fix prototype.
39532 (cmd_linux, cmd_initrd): New.
39533 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39534 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39535
39536 2009-04-17 Pavel Roskin <proski@gnu.org>
39537
39538 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39539 format.
39540 (grub_ohci_transfer): Likewise.
39541
39542 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39543
39544 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39545 return without a value. Fix inconsistent indentation.
39546
39547 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39548 match struct grub_fs.
39549
39550 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39551 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39552 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39553 * commands/lspci.c (grub_lspci_iter): Likewise.
39554
39555 2009-04-16 Bean <bean123ch@gmail.com>
39556
39557 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39558 value.
39559
39560 2009-04-15 Pavel Roskin <proski@gnu.org>
39561
39562 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39563 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39564 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39565 definitions.
39566
39567 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39568
39569 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39570 that no multiple data or metadata areas are supported and `Unknown
39571 metadata header'.
39572
39573 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39574
39575 Move loader out of the kernel
39576
39577 * kern/loader.c: moved to ...
39578 * commands/boot.c: ... moved here
39579 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39580 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39581 * include/grub/kernel.h (grub_machine_fini): export
39582 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39583 (grub_loader_set): likewise
39584 (grub_loader_unset): likewise
39585 (grub_loader_boot): likewise
39586 * conf/common.rmk: new module boot.mod
39587 (pkglib_MODULES): add boot.mod
39588 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39589 (grub_emu_SOURCES): likewise
39590 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39591 (grub_emu_SOURCES): likewise
39592 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39593 (grub_emu_SOURCES): likewise
39594 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39595 (grub_emu_SOURCES): likewise
39596 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39597 (grub_emu_SOURCES): likewise
39598 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39599 (grub_emu_SOURCES): likewise
39600 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39601 (grub_emu_SOURCES): likewise
39602
39603 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39604
39605 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39606
39607 * kern/misc.c (grub_itoa): Removed function
39608 (grub_ltoa): likewise
39609 (grub_vsprintf): use grub_lltoa
39610
39611 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39612
39613 Restore grub-emu
39614
39615 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39616 * conf/i386-coreboot.rmk: likewise
39617 * conf/i386-ieee1275.rmk: likewise
39618 * conf/powerpc-ieee1275.rmk: likewise
39619
39620 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39621
39622 * INSTALL: Add that `./autogen.sh' needs to be run before
39623 `./configure.'.
39624
39625 2009-04-14 Bean <bean123ch@gmail.com>
39626
39627 * Makefile.in (pkglib_DATA): Add handler.lst.
39628 (handler.lst): New rule.
39629
39630 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39631 * conf/i386-coreboot.rmk: Likewise.
39632 * conf/i386-ieee1275.rmk: Likewise.
39633 * conf/i386-efi.rmk: Likewise.
39634 * conf/x86_64-efi.rmk: Likewise.
39635 * conf/powerpc-ieee1275.rmk: Likewise.
39636 * conf/sparc64-ieee1275.rmk: Likewise.
39637
39638 * genhandlerlist.sh: New file.
39639
39640 * genmk.rb: Add rules to generate handler.lst.
39641
39642 * include/grub/normal.h (grub_file_getline): New function definition.
39643 (read_handler_list): Likewise.
39644 (free_handler_list): Likewise.
39645
39646 * include/grub/term.h (grub_term_register_input): Add name parameter
39647 for auto generation of handler.lst.
39648 (grub_term_register_output): Likewise.
39649
39650 * normal/handler.c: New file.
39651
39652 * normal/main.c (get_line): Renamed to grub_file_getline.
39653 (read_config_file): Use the newly renamed grub_file_getline.
39654 (read_command_list): Likewise.
39655 (read_fs_list): Likewise.
39656 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39657 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39658
39659 * term/efi/console.c (grub_console_init): Add name parameter for auto
39660 generation of handler.lst.
39661 * term/gfxterm.c: Likewise.
39662 * term/i386/pc/at_keyboard.c: Likewise.
39663 * term/i386/pc/console.c: Likewise.
39664 * term/i386/pc/serial.c: Likewise.
39665 * term/i386/pc/vesafb.c: Likewise.
39666 * term/i386/pc/vga.c: Likewise.
39667 * term/i386/pc/vga_text.c: Likewise.
39668 * term/ieee1275/ofconsole.c: Likewise.
39669 * term/usb_keyboard.c: Likewise.
39670
39671 2009-04-14 Bean <bean123ch@gmail.com>
39672
39673 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39674 properly with null character.
39675
39676 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39677
39678 * configure: Remove.
39679 * config.h.in: Likewise.
39680 * stamp-h.in: Likewise.
39681 * DISTLIST: Likewise.
39682 * conf/common.mk: Likewise.
39683 * conf/i386-coreboot.mk: Likewise.
39684 * conf/i386-efi.mk: Likewise.
39685 * conf/i386-ieee1275.mk: Likewise.
39686 * conf/i386.mk: Likewise.
39687 * conf/i386-pc.mk: Likewise.
39688 * conf/powerpc-ieee1275.mk: Likewise.
39689 * conf/sparc64-ieee1275.mk: Likewise.
39690 * conf/x86_64-efi.mk: Likewise.
39691
39692 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39693 develop on GRUB.
39694
39695 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39696 David S. Miller <davem@davemloft.net>
39697
39698 * util/hostdisk.c (make_device_name): Fix buffer length
39699 calculations.
39700
39701 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39702
39703 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39704 <sys/param.h> and <sys/sysctl.h>.
39705 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39706 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39707 opening the device and reset them afterwards.
39708
39709 2009-04-13 Pavel Roskin <proski@gnu.org>
39710
39711 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39712 Reported by John Stanley <jpsinthemix@verizon.net>
39713
39714 2009-04-13 Robert Millan <rmh@aybabtu.com>
39715
39716 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39717 that name for menuentries when appropriate.
39718
39719 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39720
39721 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39722
39723 2009-04-13 Robert Millan <rmh@aybabtu.com>
39724
39725 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39726 to Linux, simply abort telling the user it's no longer supported.
39727
39728 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39729
39730 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39731 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39732 `freebsd_loadenv' only when devices.hints exist.
39733
39734 2009-04-13 Pavel Roskin <proski@gnu.org>
39735
39736 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39737
39738 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39739
39740 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39741 partition number.
39742 (grub_drive): Likewise.
39743
39744 2009-04-13 David S. Miller <davem@davemloft.net>
39745
39746 * kern/sparc64/ieee1275/ieee1275.c: New file.
39747 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39748 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39749 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39750 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39751 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39752 grub_ieee1275_alloc_physmem): Declare new exported functions.
39753
39754 * include/grub/sparc64/ieee1275/loader.h: New file.
39755 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39756 * include/grub/sparc64/kernel.h: Likewise.
39757 * loader/sparc64/ieee1275/linux.c: Likewise.
39758
39759 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39760 (grub_fstest_SOURCES): Likewise.
39761
39762 * util/hostdisk.c (make_device_name): Do not make any assumptions
39763 about the length of drive names.
39764
39765 * kern/dl.c (grub_dl_load_file): Close file immediately when
39766 we are done using it.
39767
39768 2009-04-12 David S. Miller <davem@davemloft.net>
39769
39770 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39771 values. Noticed by Pavel Roskin.
39772
39773 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39774 target compiler.
39775
39776 * genmk.rb: Add more flexible image type specification, also
39777 pass --strip-unneeded to objcopy.
39778 * conf/i386-pc.rmk: Use *_FORMAT.
39779 * conf/i386-pc.mk: Rebuilt.
39780
39781 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39782 (OFDISK_HASH_SZ): Define.
39783 (ofdisk_hash): New hash table.
39784 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39785 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39786 instead of device phandle which is not unique.
39787
39788 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39789 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39790 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39791 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39792 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39793 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39794 GRUB_KERNEL_MACHINE_DATA_END): Define.
39795 (grub_kernel_image_size, grub_total_module_size): Declare.
39796
39797 2009-04-12 Pavel Roskin <proski@gnu.org>
39798
39799 * configure.ac: Change the logic when we check for target tools.
39800 Do it when the target is specified and it's different from the
39801 specified value of the host.
39802
39803 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39804
39805 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39806 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39807 GNU/kFreeBSD. Check if a device is a character device. Use
39808 DIOCGMEDIASIZE to get the size.
39809 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39810 support for GNU/kFreeBSD.
39811 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39812 is a character device instead of a block device. Add support for
39813 FreeBSD device names.
39814
39815 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39816 is a character device instead of a block device.
39817
39818 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39819 is a character device instead of a block device.
39820
39821 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39822
39823 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39824 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39825 FreeBSD. Check if a device is a character device. Use
39826 DIOCGMEDIASIZE to get the size.
39827 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39828 support for FreeBSD.
39829 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39830 is a character device instead of a block device. Add support for
39831 FreeBSD device names.
39832
39833 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39834 a character device instead of a block device.
39835 (grub_util_check_char_device): New function.
39836
39837 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39838 a character device instead of a block device.
39839
39840 * include/grub/util/getroot.h (grub_util_check_char_device): New
39841 prototype.
39842
39843 2009-04-11 David S. Miller <davem@davemloft.net>
39844
39845 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39846 static libgcc.
39847 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39848 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39849 function, if present.
39850 (__bswapdi2): Likewise.
39851
39852 * include/grub/sparc64/ieee1275/boot.h: New file.
39853 * boot/sparc64/ieee1275/boot.S: Likewise.
39854 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39855
39856 * kern/misc.c (grub_ltoa): New function.
39857 (grub_vsprintf): Use it to format 'long' integers.
39858
39859 2009-04-10 David S. Miller <davem@davemloft.net>
39860
39861 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39862 slots are of type grub_ieee1275_cell_t.
39863 (grub_nand_read): Likewise.
39864 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39865 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39866 macros are used to compare values in arg/ret block of the call.
39867 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39868 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39869 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39870 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39871 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39872 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39873 grub_ieee1275_close, grub_ieee1275_set_property,
39874 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39875 grub_ieee1275_cell_t.
39876 * kern/ieee1275/openfw.c (grub_map): Likewise.
39877 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39878 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39879
39880 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39881 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39882 (grub_devalias_iterate): Likewise.
39883
39884 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39885
39886 UFS improvements
39887
39888 * fs/ufs.c (INODE_NBLOCKS): new definition
39889 (struct grub_ufs_dirent): added fields for non-BSD dirents
39890 (grub_ufs_get_file_block): fixed double indirect handling
39891 (grub_ufs_lookup_symlink): use more robust way to determine whether
39892 symlink is inline
39893 (grub_ufs_find_file): support for non-BSD dirents
39894 (grub_ufs_dir): support for non-BSD dirents
39895
39896 2009-04-10 Bean <bean123ch@gnail.com>
39897
39898 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39899 attribute, otherwise the size would be wrong for i386 platform.
39900
39901 * include/grub/pci.h (grub_pci_read_word): New inline function.
39902 (grub_pci_read_byte): Likewise.
39903 (grub_pci_write): Likewise.
39904 (grub_pci_write_word): Likewise.
39905 (grub_pci_write_byte): Likewise.
39906
39907 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39908
39909 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39910 (find_framebuf): Scan pci to locate the frame buffer address.
39911
39912 * commands/efi/fixvideo.c: New file.
39913
39914 * commands/efi/loadbios.c: Likewise.
39915
39916 * commands/memrw.c: Likewise.
39917
39918 * util/grub-dumpbios.in: Likewise.
39919
39920 * conf/common.rmk (grub-dumpbios): New utility.
39921 (pkglib_MODULES): New module memrw.mod.
39922 (memrw_mod_SOURCE): New macro.
39923 (memrw_mod_CFLAGS): Likewise.
39924 (memrw_mod_LDFLAGS): Likewise.
39925
39926 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39927 fixvideo.mod.
39928 (loadbios_mod_SOURCE): New macro.
39929 (loadbios_mod_CFLAGS): Likewise.
39930 (loadbios_mod_LDFLAGS): Likewise.
39931 (fixvideo_mod_SOURCE): Likewise.
39932 (fixvideo_mod_CFLAGS): Likewise.
39933 (fixvideo_mod_LDFLAGS): Likewise.
39934
39935 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39936 fixvideo.mod.
39937 (loadbios_mod_SOURCE): New macro.
39938 (loadbios_mod_CFLAGS): Likewise.
39939 (loadbios_mod_LDFLAGS): Likewise.
39940 (fixvideo_mod_SOURCE): Likewise.
39941 (fixvideo_mod_CFLAGS): Likewise.
39942 (fixvideo_mod_LDFLAGS): Likewise.
39943
39944 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39945
39946 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39947
39948 2009-04-07 David S. Miller <davem@davemloft.net>
39949
39950 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39951 support for R_SPARC_OLO10 relocations. Fix compile warning for
39952 R_SPARC_WDISP30 case.
39953 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39954
39955 2009-04-06 Pavel Roskin <proski@gnu.org>
39956
39957 * include/grub/misc.h (ARRAY_SIZE): New macro.
39958 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39959 New macro.
39960 * loader/i386/linux.c (allocate_pages): Use free_pages().
39961 (grub_linux_unload): Don't use free_pages().
39962 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39963 wrong index. Treat all other modes as text modes.
39964 (grub_cmd_linux): Initialize vid_mode unconditionally to
39965 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39966
39967 * commands/help.c (print_command_help): Use cmd->prio, not
39968 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39969
39970 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39971
39972 Parttool
39973
39974 * parttool/pcpart.c: new file
39975 * commands/parttool.c: likewise
39976 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
39977 (parttool_mod_SOURCES): new variable
39978 (parttool_mod_CFLAGS): likewise
39979 (parttool_mod_LDFLAGS): likewise
39980 (pcpart_mod_SOURCES): likewise
39981 (pcpart_mod_CFLAGS): likewise
39982 (pcpart_mod_LDFLAGS): likewise
39983 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
39984 and parttool/pcpart.c
39985 * conf/i386-efi.rmk: likewise
39986 * conf/i386-ieee1275.rmk: likewise
39987 * conf/i386-pc.rmk: likewise
39988 * conf/powerpc-ieee1275.rmk: likewise
39989 * conf/sparc64-ieee1275.rmk: likewise
39990 * conf/x86_64-ieee1275.rmk: likewise
39991
39992 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
39993
39994 Support for mtime and further expandability of dir command
39995
39996 * include/grub/lib/datetime.h: moved to ...
39997 * include/grub/datetime.h: ... moved here and added
39998 declaration of grub_unixtime2datetime. All users updated
39999 * include/grub/fs.h: new syntax for dir and mtime functions in
40000 struct grub_fs
40001 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40002 and GRUB_FSHELP_FLAGS_MASK
40003 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40004 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40005 (grub_ext2_mtime): new function
40006 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40007 (grub_hfsplus_mtime): new function
40008 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40009 (GRUB_UFS_ATTR_FILE): likewise
40010 (GRUB_UFS_ATTR_LNK): likewise
40011 (struct grub_ufs_sblock): new fields mtime
40012 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40013 all users updated
40014 (grub_ufs_dir): mtime support
40015 (grub_ufs_mtime): new function
40016 * fs/affs.c (grub_affs_dir): use new dir syntax
40017 * fs/afs.c (grub_afs_dir): likewise
40018 * fs/cpio.c (grub_cpio_dir): likewise
40019 * fs/fat.c (grub_fat_find_dir): likewise
40020 * fs/hfs.c (grub_hfs_dir): likewise
40021 * fs/iso9660.c (grub_iso9660_dir): likewise
40022 * fs/jfs.c (grub_jfs_dir): likewise
40023 * fs/minix.c (grub_minix_dir): likewise
40024 * fs/ntfs.c (grub_ntfs_dir): likewise
40025 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40026 * fs/sfs.c (grub_sfs_dir): likewise
40027 * fs/xfs.c (grub_xfs_dir): likewise
40028 * util/hostfs.c (grub_hostfs_dir): likewise
40029 * lib/datetime.c: moved to ...
40030 * normal/datetime.c: ... moved here
40031 (grub_unixtime2datetime): new function
40032 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40033 * normal/completion.c (iterate_dir): use new dir syntax
40034 * normal/misc.c (grub_normal_print_device_info): tell the
40035 last modification time of a volume
40036 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40037 * conf/common.rmk: added lib/datetime.c to ls.mod
40038 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40039 (normal_mod_SOURCES): likewise
40040 (datetime_mod_SOURCES): Removed lib/datetime.c
40041 * conf/i386-efi.rmk: likewise
40042 * conf/i386-ieee1275.rmk: likewise
40043 * conf/i386-pc.rmk: likewise
40044 * conf/powerpc-ieee1275.rmk: likewise
40045 * conf/sparc64-ieee1275.rmk: likewise
40046 * conf/x86_64-efi.rmk: likewise
40047
40048 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40049
40050 Trim trailing spaces in FAT label and support mtools-like labels
40051
40052 * fs/fat.c (grub_fat_iterate_dir): New function based
40053 on grub_fat_find_dir
40054 (grub_fat_find_dir): use grub_fat_iterate_dir
40055 (grub_fat_label): likewise
40056
40057 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40058
40059 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40060 and command.h
40061 remove extraneous kernel_elf_HEADERS
40062
40063 2009-04-04 Bean <bean123ch@gnail.com>
40064
40065 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40066
40067 * util/misc.c: Likewise.
40068
40069 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40070
40071 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40072 instead of grub_printf.
40073
40074 2009-04-03 Robert Millan <rmh@aybabtu.com>
40075
40076 * loader/i386/linux.c (grub_linux_setup_video): Fill
40077 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40078 values from `mode info' structure instead of hardcoded
40079 values.
40080
40081 2009-04-01 Pavel Roskin <proski@gnu.org>
40082
40083 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40084 unused now.
40085 * genmk.rb: Likewise.
40086 * configure.ac: Likewise.
40087
40088 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40089
40090 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40091 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40092
40093 2009-04-01 David S. Miller <davem@davemloft.net>
40094
40095 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40096 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40097 (grub_setjmp): Mark with 'returns_twice' attribute.
40098 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40099 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40100 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40101
40102 2009-04-01 Robert Millan <rmh@aybabtu.com>
40103
40104 Reapply fix from 2008-07-28 which was accidentally reverted; also
40105 perform the same fix to a similar check in same function.
40106
40107 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40108 with the same number are found, just use issue a warning with
40109 grub_dprintf(), as this error has been reported to be non-fatal.
40110
40111 2009-03-31 Pavel Roskin <proski@gnu.org>
40112
40113 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40114 for cross-compilation.
40115
40116 2009-03-30 Robert Millan <rmh@aybabtu.com>
40117
40118 Fix i386-ieee1275 build.
40119
40120 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40121 Remove declaration.
40122
40123 2009-03-30 Pavel Roskin <proski@gnu.org>
40124
40125 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40126 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40127 zero-terminated, rely only on the strlen value. Fix comparison
40128 of strings differing in length.
40129
40130 2009-03-30 Robert Millan <rmh@aybabtu.com>
40131
40132 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40133 checking for abi version. Improve error messages on BIOS to notify
40134 user about `linux16' command.
40135
40136 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40137
40138 Leak fixes
40139
40140 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40141 in case of collision
40142 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40143
40144 2009-03-29 Robert Millan <rmh@aybabtu.com>
40145
40146 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40147 set `vid_mode' accordingly.
40148 (grub_linux_boot): Process `vid_mode' and set video mode.
40149
40150 2009-03-29 Robert Millan <rmh@aybabtu.com>
40151
40152 * util/grub.d/10_linux.in (linux_entry): New function.
40153 Factorize generation of Linux boot entries.
40154
40155 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40156
40157 Make the format of Environment Block plain text. The boot loader
40158 part is not tested well yet.
40159
40160 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40161 (buffer): Removed.
40162 (envblk): Likewise.
40163 (usage): Remove "info" and "clear". Add "unset". Update the
40164 description of "set", as this does not delete variables any
40165 longer.
40166 (create_envblk_file): Complete rewrite.
40167 (open_envblk_file): Likewise.
40168 (cmd_info): Removed.
40169 (cmd_list): Likewise.
40170 (cmd_set): Likewise.
40171 (cmd_clear): Likewise.
40172 (list_variables): New function.
40173 (write_envblk): Likewise.
40174 (set_variables): Likewise.
40175 (unset_variables): Likewise.
40176 (main): Complete rewrite.
40177
40178 * commands/loadenv.c (buffer): Removed.
40179 (envblk): Likewise.
40180 (open_envblk_file): New function.
40181 (read_envblk_file): Complete rewrite.
40182 (grub_cmd_load_env): Likewise.
40183 (grub_cmd_list_env): Likewise.
40184 (struct blocklist): New struct.
40185 (free_blocklists): New function.
40186 (check_blocklists): Likewise.
40187 (write_blocklists): Likewise.
40188 (grub_cmd_save_env): Complete rewrite.
40189
40190 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40191 a plain text signature.
40192 (GRUB_ENVBLK_MAXLEN): Removed.
40193 (struct grub_envblk): Complete rewrite.
40194 (grub_envblk_find): Removed.
40195 (grub_envblk_insert): Likewise.
40196 (grub_envblk_open): New prototype.
40197 (grub_envblk_set): Likewise.
40198 (grub_envblk_delete): Put const to VALUE.
40199 (grub_envblk_iterate): Put const to NAME and VALUE.
40200 (grub_envblk_close): New prototype.
40201 (grub_envblk_buffer): New inline function.
40202 (grub_envblk_size): Likewise.
40203
40204 * lib/envblk.c: Include grub/mm.h.
40205 (grub_env_find): Removed.
40206 (grub_envblk_open): New function.
40207 (grub_envblk_close): Likewise.
40208 (escaped_value_len): Likewise.
40209 (find_next_line): Likewise.
40210 (grub_envblk_insert): Removed.
40211 (grub_envblk_set): New function.
40212 (grub_envblk_delete): Complete rewrite.
40213 (grub_envblk_iterate): Likewise.
40214
40215 2009-03-28 Robert Millan <rmh@aybabtu.com>
40216
40217 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40218 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40219 variables. Use 16-bit loader.
40220 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40221 loader.
40222 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40223 (grub_linux16_boot): ... this. Update all users.
40224 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40225 (grub_linux_boot): ... this. Update all users.
40226
40227 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40228 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40229 commands to `linux16' and `initrd16'.
40230 (GRUB_MOD_FINI(linux)): Rename to ...
40231 (GRUB_MOD_FINI(linux16)): ... this.
40232
40233 2009-03-24 Pavel Roskin <proski@gnu.org>
40234
40235 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40236 not just for compilation.
40237
40238 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40239
40240 Move multiboot helper out of kernel
40241
40242 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40243 `loader/i386/multiboot_helper.S'.
40244 * conf/i386-coreboot.rmk: Likewise
40245 * conf/i386-ieee1275.rmk: Likewise
40246
40247 * kern/i386/loader.S: Move multiboot helpers from here...
40248 * loader/i386/multiboot_helper.S: ...moved here
40249 * include/grub/i386/loader.h: Move declarations of multiboot
40250 helpers from here...
40251 * include/grub/i386/multiboot.h: ...moved here
40252 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40253
40254 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40255
40256 * kern/env.c (grub_env_context_open): Added an argument to specify
40257 whether a new context inherits exported variables from current
40258 one. This is useful when making a sandbox to interpret a config
40259 file.
40260 All callers updated.
40261
40262 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40263
40264 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40265
40266 * kern/env.c (grub_env_context_close): Fix memory leaks.
40267
40268 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40269
40270 * normal/main.c (grub_normal_execute): Added an argument
40271 BATCH to specify if an interactive interface should be provided
40272 after reading a config file.
40273 All callers updated.
40274 (read_command_list): Prevent being executed twice.
40275 (read_fs_list): Likewise.
40276
40277 * include/grub/normal.h (grub_normal_execute): Updated the
40278 prototype.
40279
40280 2009-03-22 Pavel Roskin <proski@gno.org>
40281
40282 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40283 _start.
40284 * kern/i386/pc/startup.S: Likewise.
40285 * kern/i386/efi/startup.S: Likewise.
40286 * kern/i386/ieee1275/startup.S: Likewise.
40287 * kern/i386/coreboot/startup.S: Likewise.
40288 * kern/x86_64/efi/startup.S: Likewise.
40289
40290 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40291 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40292 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40293
40294 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40295
40296 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40297
40298 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40299 limit detection.
40300 Use vaddr of correct segment for entry_point.
40301
40302 2009-03-21 Bean <bean123ch@gmail.com>
40303
40304 * commands/blocklist.c: Add include file <grub/command.h>, remove
40305 <grub/normal.h> and <grub/arg.h>.
40306 (grub_cmd_blocklist): Use the new command interface.
40307 (GRUB_MOD_INIT): Likewise.
40308 (GRUB_MOD_FINI): Likewise.
40309 * commands/boot.c: Likewise.
40310 * commands/cat.c: Likewise.
40311 * commands/cmp.c: Likewise.
40312 * commands/configfile.c: Likewise.
40313 * commands/crc.c: Likewise.
40314 * commands/echo.c: Likewise.
40315 * commands/halt.c: Likewise.
40316 * commands/handler.c: Likewise.
40317 * commands/hdparm.c: Likewise.
40318 * commands/help.c: Likewise.
40319 * commands/hexdump.c: Likewise.
40320 * commands/loadenv.c: Likewise.
40321 * commands/ls.c: Likewise.
40322 * commands/lsmmap.c: Likewise.
40323 * commands/lspci.c: Likewise.
40324 * commands/loadenv.c: Likewise.
40325 * commands/read.c: Likewise.
40326 * commands/reboot.c: Likewise.
40327 * commands/search.c: Likewise.
40328 * commands/sleep.c: Likewise.
40329 * commands/test.c: Likewise.
40330 * commands/usbtest.c: Likewise.
40331 * commands/videotest.c: Likewise.
40332 * commands/i386/cpuid.c: Likewise.
40333 * commands/i386/pc/halt.c: Likewise.
40334 * commands/i386/pc/play.c: Likewise.
40335 * commands/i386/pc/pxecmd.c: Likewise.
40336 * commands/i386/pc/vbeinfo.c: Likewise.
40337 * commands/i386/pc/vbetest.c: Likewise.
40338 * commands/ieee1275/suspend.c: Likewise.
40339 * disk/loopback.c: Likewise.
40340 * font/font_cmd.c: Likewise.
40341 * hello/hello.c: Likewise.
40342 * loader/efi/appleloader.c: Likewise.
40343 * loader/efi/chainloader.c: Likewise.
40344 * loader/i386/bsd.c: Likewise.
40345 * loader/i386/efi/linux.c: Likewise.
40346 * loader/i386/ieee1275/linux.c: Likewise.
40347 * loader/i386/linux.c: Likewise.
40348 * loader/i386/pc/chainloader.c: Likewise.
40349 * loader/i386/pc/linux.c: Likewise.
40350 * loader/powerpc/ieee1275/linux.c: Likewise.
40351 * loader/multiboot_loader.c: Likewise.
40352 * term/gfxterm.c: Likewise.
40353 * term/i386/pc/serial.c: Likewise.
40354 * term/terminfo.c: Likewise.
40355
40356 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40357 * term/i386/pc/vga.c: Likewise.
40358 * video/readers/jpeg.c: Likewise.
40359 * video/readers/png.c: Likewise.
40360 * video/readers/tga.c: Likewise.
40361
40362 * util/grub-fstest (cmd_loopback): Removed.
40363 (cmd_blocklist): Likewise.
40364 (cmd_ls): Likewise.
40365 (grub_register_command): Likewise.
40366 (grub_unregister_command): Likewise.
40367 (execute_command): Use grub_command_find to locate command and execute
40368 it.
40369
40370 * include/grub/efi/chainloader.h: Removed.
40371 * loader/efi/chainloader_normal.c: Likewise.
40372 * loader/i386/bsd_normal.c: Likewise.
40373 * loader/i386/pc/chainloader_normal.c: Likewise.
40374 * loader/i386/pc/multiboot_normal.c: Likewise.
40375 * loader/linux_normal.c: Likewise.
40376 * loader/multiboot_loader_normal.c: Likewise.
40377 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40378
40379 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40380 and grub_register_command_p1.
40381
40382 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40383 kern/command.c, lib/arg.c and commands/extcmd.c.
40384 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40385 (minicmd_mod_SOURCES): New variable.
40386 (minicmd_mod_CFLAGS): Likewise.
40387 (minicmd_mod_LDFLAGS): Likewise.
40388 (extcmd_mod_SOURCES): Likewise.
40389 (extcmd_mod_CFLAGS): Likewise.
40390 (extcmd_mod_LDFLAGS): Likewise.
40391 (boot_mod_SOURCES): Removed.
40392 (boot_mod_CFLAGS): Likewise.
40393 (boot_mod_LDFLAGS): Likewise.
40394
40395 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40396 kern/corecmd.c.
40397 (kernel_img_HEADERS): Add command.h.
40398 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40399 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40400 and lib/arg.c.
40401 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40402 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40403 remove the corresponding normal mode command.
40404 (normal_mod_SOURCES): Remove normal/arg.c.
40405 * conf/i386-coreboot.rmk: Likewise.
40406 * conf/i386-efi.rmk: Likewise.
40407 * conf/i386-ieee1275.rmk: Likewise.
40408 * conf/powerpc-ieee1275.rmk: Likewise.
40409 * conf/x86_64-efi.rmk: Likewise.
40410
40411 * include/grub/arg.h: Move from here ...
40412 * include/grub/lib/arg.h: ... to here.
40413
40414 * normal/arg.c: Move from here ...
40415 * lib/arg.c: ... to here.
40416
40417 * commands/extcmd.c: New file.
40418 * commands/minicmd.c: Likewise.
40419 * include/grub/command.h: Likewise.
40420 * include/grub/extcmd.h: Likewise.
40421 * kern/command.c: Likewise.
40422 * kern/corecmd.c: Likewise.
40423
40424 * kern/list.c (grub_list_iterate): Return int instead of void.
40425 (grub_list_insert): New function.
40426 (grub_prio_list_insert): Likewise.
40427
40428 * kern/rescue.c (grub_rescue_command): Removed.
40429 (grub_rescue_command_list): Likewise.
40430 (grub_rescue_register_command): Likewise.
40431 (grub_rescue_unregister_command): Likewise.
40432 (grub_rescue_cmd_boot): Move to minicmd.c
40433 (grub_rescue_cmd_help): Likewise.
40434 (grub_rescue_cmd_info): Likewise.
40435 (grub_rescue_cmd_boot): Likewise.
40436 (grub_rescue_cmd_testload): Likewise.
40437 (grub_rescue_cmd_dump): Likewise.
40438 (grub_rescue_cmd_rmmod): Likewise.
40439 (grub_rescue_cmd_lsmod): Likewise.
40440 (grub_rescue_cmd_exit): Likewise.
40441 (grub_rescue_print_devices): Moved to corecmd.c.
40442 (grub_rescue_print_files): Likewise.
40443 (grub_rescue_cmd_ls): Likewise.
40444 (grub_rescue_cmd_insmod): Likewise.
40445 (grub_rescue_cmd_set): Likewise.
40446 (grub_rescue_cmd_unset): Likewise.
40447 (attempt_normal_mode): Use grub_command_find to get normal module.
40448 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40449 commands, remove grub_rescue_register_command calls.
40450
40451 * normal/command.c (grub_register_command): Removed.
40452 (grub_unregister_command): Likewise.
40453 (grub_command_find): Likewise.
40454 (grub_iterate_commands): Likewise.
40455 (rescue_command): Likewise.
40456 (export_command): Moved to corecmd.c.
40457 (set_command): Removed.
40458 (unset_command): Likewise.
40459 (insmod_command): Likewise.
40460 (rmmod_command): Likewise.
40461 (lsmod_command): Likewise.
40462 (grub_command_init): Likewise.
40463
40464 * normal/completion.c (iterate_command): Use cmd->prio to check for
40465 active command.
40466 (complete_arguments): Use grub_extcmd_t structure to find options.
40467 (grub_normal_do_completion): Change function grub_iterate_commands to
40468 grub_command_iterate.
40469
40470 * normal/execute.c (grub_script_execute_cmd): No need to parse
40471 argument here.
40472
40473 * normal/main.c (grub_dyncmd_dispatcher): New function.
40474 (read_command_list): Register unload commands as dyncmd.
40475 (grub_cmd_normal): Use new command interface, register rescue,
40476 unregister normal at entry, register normal, unregister rescue at exit.
40477
40478 * include/grub/list.h (grub_list_test_t): New type.
40479 (grub_list_iterate): Return int instead of void.
40480 (grub_list_insert): New function.
40481 (GRUB_AS_NAMED_LIST_P): New macro.
40482 (GRUB_AS_PRIO_LIST): Likewise.
40483 (GRUB_AS_PRIO_LIST_P): Likewise.
40484 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40485 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40486 (grub_prio_list): New structure.
40487 (grub_prio_list_insert): New function.
40488 (grub_prio_list_remove): New inline function.
40489
40490 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40491 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40492 (GRUB_COMMAND_FLAG_MENU): Likewise.
40493 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40494 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40495 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40496 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40497 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40498 (grub_command): Likewise.
40499 (grub_register_command): Likewise.
40500 (grub_command_find): Likewise.
40501 (grub_iterate_commands): Likewise.
40502 (grub_command_init): Likewise.
40503 (grub_arg_parse): Likewise.
40504 (grub_arg_show_help): Likewise.
40505
40506 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40507 (grub_rescue_unregister_command): Likewise.
40508
40509 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40510 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40511 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40512
40513 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40514 grub_rescue_cmd_initrd.
40515 * include/grub/i386/loader.h: Likewise.
40516 * include/grub/x86_64/loader.h: Likewise.
40517
40518 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40519
40520 2009-03-21 Bean <bean123ch@gmail.com>
40521
40522 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40523 instead of stat in mingw environment.
40524
40525 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40526
40527 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40528
40529 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40530 AC_CONFIG_LINKS.
40531
40532 2009-03-21 Bean <bean123ch@gmail.com>
40533
40534 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40535 out of range error.
40536
40537 2009-03-18 Michel Dänzer <michel@daenzer.net>
40538
40539 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40540 checking inode flags for EXT4_EXTENTS_FLAG.
40541
40542 2009-03-18 Robert Millan <rmh@aybabtu.com>
40543
40544 * loader/i386/linux.c: Include `<grub/video.h>' and
40545 `<grub/i386/pc/vbe.h>'..
40546 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40547 (grub_linux32_boot): Attempt to configure video settings with
40548 grub_linux_setup_video().
40549 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40550 to avoid grub_console_fini() which would step out of graphical mode
40551 unconditionally.
40552
40553 2009-03-14 Robert Millan <rmh@aybabtu.com>
40554
40555 Fix build on powerpc.
40556 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40557
40558 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40559
40560 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40561 background image command.
40562
40563 2009-03-12 Colin D Bennett <colin@gibibit.com>
40564
40565 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40566 (grub_gfxterm_putchar): Extract pairs of identical calls to
40567 draw_cursor out of conditional blocks.
40568
40569 2009-03-11 Pavel Roskin <proski@gnu.org>
40570
40571 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40572 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40573
40574 2009-03-11 Robert Millan <rmh@aybabtu.com>
40575
40576 * loader/i386/multiboot_elfxx.c
40577 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40578
40579 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40580
40581 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40582 `kern/handler.c'.
40583
40584 2009-03-11 Robert Millan <rmh@aybabtu.com>
40585
40586 * loader/i386/multiboot.c (code_size): New variable.
40587 (grub_multiboot): Define offsets by adding to `code_size' rather
40588 than subtracting from `grub_multiboot_payload_size'. Provide
40589 4-byte alignment to MBI and others by increasing
40590 `boot_loader_name_length' appropriately.
40591
40592 * loader/i386/multiboot_elfxx.c
40593 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40594
40595 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40596
40597 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40598 `fs/ext2.c'.
40599
40600 2009-03-08 Robert Millan <rmh@aybabtu.com>
40601
40602 Make loader/i386/linux.c usable on i386-pc again.
40603
40604 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40605 memory to heap.
40606 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40607 `#error' stanza.
40608
40609 2009-03-07 Bean <bean123ch@gmail.com>
40610
40611 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40612 allocation.
40613
40614 2009-03-06 Robert Millan <rmh@aybabtu.com>
40615
40616 Fix display issue on terminals with screen size other than 80x25
40617 (e.g. gfxterm with resolution higher than 640x480).
40618
40619 * normal/main.c (grub_normal_init_page): Display title text in a
40620 position relative to the center of the terminal instead of relying
40621 on a hardcoded offset.
40622
40623 2009-03-04 Robert Millan <rmh@aybabtu.com>
40624
40625 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40626 installed.
40627
40628 * Makefile.in (host_kernel): New variable.
40629 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40630 scripts instead of just the windows one.
40631 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40632
40633 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40634
40635 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40636 `kern/handler.c'.
40637 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40638 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40641 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40642 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40643
40644 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40645
40646 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40647 or if there's no space for the disk label and print the partition number on a
40648 invalid magic.
40649
40650 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40651
40652 * util/misc.c: Include <time.h>.
40653 (grub_millisleep): New function.
40654
40655 2009-03-04 Bean <bean123ch@gmail.com>
40656
40657 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40658 another option -mno-red-zone.
40659
40660 * commands/handler.c: Change module description.
40661
40662 * kern/handler.c: Add missing space at the end of description line.
40663
40664 * kern/list.c: Likewise.
40665
40666 2009-03-03 Robert Millan <rmh@aybabtu.com>
40667
40668 Move more components to the relocation area, and fix mbi pointer
40669 handling to use the destination rather than the origin (thanks to
40670 Vladimir Serbinenko for spotting).
40671
40672 * loader/i386/multiboot.c (mbi_dest): New variable.
40673 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40674 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40675 relocation area.
40676
40677 2009-03-01 Bean <bean123ch@gmail.com>
40678
40679 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40680 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40681 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40682 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40683
40684 * loader/i386/efi/linux.c (acpi_guid): New variable.
40685 (acpi_guid): Likewise.
40686 (EBDA_SEG_ADDR): New constant.
40687 (LOW_MEM_ADDR): Likewise.
40688 (FAKE_EBDA_SEG): Likewise.
40689 (fake_bios_data): New function.
40690 (grub_linux_boot): Call fake_bios_data.
40691
40692 2009-03-01 Bean <bean123ch@gmail.com>
40693
40694 * commands/terminal.c: Removed.
40695
40696 * commands/handler.c: New file.
40697
40698 * include/grub/list.h: Likewise.
40699
40700 * include/grub/handler.h: Likewise.
40701
40702 * kern/list.c: Likewise.
40703
40704 * kern/handler.c: Likewise.
40705
40706 * kern/term.h: Include header file <grub/handler.h>.
40707 (grub_term_input): Move next field to the beginning.
40708 (grub_term_output): Likewise.
40709 (grub_term_input_class): New variable.
40710 (grub_term_output_class): Likewise.
40711 (grub_term_register_input): Changed to inline function.
40712 (grub_term_register_output): Likewise.
40713 (grub_term_unregister_input): Likewise.
40714 (grub_term_unregister_output): Likewise.
40715 (grub_term_set_current_input): Likewise.
40716 (grub_term_set_current_output): Likewise.
40717 (grub_term_get_current_input): Likewise.
40718 (grub_term_get_current_output): Likewise.
40719 (grub_term_iterate_input): Removed.
40720 (grub_term_iterate_output): Likewise.
40721
40722 * kern/term.c (grub_term_list_input): Removed.
40723 (grub_term_list_output): Likewise.
40724 (grub_term_input_class): New variable.
40725 (grub_term_output_class): Likewise.
40726 (grub_cur_term_input): Change variable as macro.
40727 (grub_cur_term_output): Likewise.
40728 (grub_term_register_input): Removed.
40729 (grub_term_register_output): Likewise.
40730 (grub_term_unregister_input): Likewise.
40731 (grub_term_unregister_output): Likewise.
40732 (grub_term_set_current_input): Likewise.
40733 (grub_term_set_current_output): Likewise.
40734 (grub_term_iterate_input): Likewise.
40735 (grub_term_iterate_output): Likewise.
40736 (grub_term_get_current_input): Likewise.
40737 (grub_term_get_current_output): Likewise.
40738
40739 * util/grub-editenv.c: Include header file <grub/handler.h>.
40740 (grub_term_get_current_input): Removed.
40741 (grub_term_get_current_output): Likewise.
40742 (grub_term_input_class): New variable.
40743 (grub_term_output_class): Likewise.
40744
40745 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40746 (grub_term_get_current_output): Likewise.
40747 (grub_term_input_class): New variable.
40748 (grub_term_output_class): Likewise.
40749
40750 * util/grub-probe.c (grub_term_get_current_input): Removed.
40751 (grub_term_get_current_output): Likewise.
40752 (grub_term_input_class): New variable.
40753 (grub_term_output_class): Likewise.
40754
40755 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40756 (grub_term_get_current_output): Likewise.
40757 (grub_term_input_class): New variable.
40758 (grub_term_output_class): Likewise.
40759
40760 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40761 (terminal_mod_SOURCES): Likewise.
40762 (terminal_mod_CFLAGS): Likewise.
40763 (terminal_mod_LDFLAGS): Likewise.
40764
40765 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40766 handler.c.
40767 (kernel_img_SOURCES): Add list.c and handler.c.
40768 (kernel_img_HEADERS): Add list.h and handler.h.
40769
40770 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40771 handler.c.
40772 (kernel_mod_SOURCES): Add list.c and handler.c.
40773 (kernel_mod_HEADERS): Add list.h and handler.h.
40774
40775 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40776 handler.c.
40777 (kernel_elf_SOURCES): Add list.c and handler.c.
40778 (kernel_elf_HEADERS): Add list.h and handler.h.
40779
40780 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40781 handler.c.
40782 (kernel_elf_SOURCES): Add list.c and handler.c.
40783 (kernel_elf_HEADERS): Add list.h and handler.h.
40784
40785 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40786 handler.c.
40787 (kernel_mod_SOURCES): Add list.c and handler.c.
40788 (kernel_mod_HEADERS): Add list.h and handler.h.
40789
40790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40791 handler.c.
40792 (kernel_elf_SOURCES): Add list.c and handler.c.
40793 (kernel_elf_HEADERS): Add list.h and handler.h.
40794
40795 2009-02-27 Robert Millan <rmh@aybabtu.com>
40796
40797 Factorize elf32 / elf64 code in Multiboot loader. This will
40798 prevent it from getting out of sync again.
40799
40800 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40801 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40802 grub_multiboot_load_elf64): Move from here ...
40803 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40804 grub_multiboot_load_elf): ... to here (new file).
40805
40806 2009-02-27 Robert Millan <rmh@aybabtu.com>
40807
40808 * util/grub.d/10_linux.in: Rename "single-user mode" to
40809 "recovery mode".
40810
40811 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40812
40813 Don't leak in SCSI code.
40814 * disk/scsi.c (grub_scsi_close): free `scsi'.
40815
40816 2009-02-27 Robert Millan <rmh@aybabtu.com>
40817
40818 * loader/i386/pc/multiboot.c: Move from here ...
40819 * loader/i386/multiboot.c: ... to here. Update all users.
40820
40821 2009-02-27 Robert Millan <rmh@aybabtu.com>
40822
40823 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40824 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40825
40826 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40827
40828 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40829 b-tree.
40830
40831 2009-02-27 Robert Millan <rmh@aybabtu.com>
40832
40833 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40834 `0x' qualifier as 0 when base is specified as parameter).
40835
40836 2009-02-24 Bean <bean123ch@gmail.com>
40837
40838 * configure.ac: Check for -mcmodel=large in x86_64 target.
40839
40840 * include/grub/efi/api.h (efi_call_10): New macro.
40841 (efi_wrap_10): New function.
40842
40843 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40844 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40845 (GRUB_PE32_REL_BASED_LOW): Likewise.
40846 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40847 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40848 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40849 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40850 (GRUB_PE32_REL_BASED_REL): Likewise.
40851 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40852 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40853 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40854
40855 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40856 issue.
40857
40858 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40859 (efi_wrap_10): New function.
40860
40861 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40862
40863 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40864 MB/MBP model (NV chipset).
40865 (devdata_devs): Add devpath_5 to the list.
40866
40867 * load/i386/efi/linux.c (video_base): Remove variable.
40868 (RGB_MASK): New macro.
40869 (RGB_MAGIC): Likewise.
40870 (LINE_MIN): Likewise.
40871 (LINE_MAX): Likewise.
40872 (FBTEST_STEP): Likewise.
40873 (FBTEST_COUNT): Likewise.
40874 (fb_list): New variable.
40875 (grub_find_video_card): Remove function.
40876 (find_framebuf): New function.
40877 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40878 line length.
40879
40880 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40881 problem for x86_64.
40882
40883 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40884
40885 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40886
40887 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40888 coding tool name.
40889
40890 2009-02-22 Robert Millan <rmh@aybabtu.com>
40891
40892 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40893 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40894 in our relocation, instead of using it directly from heap. Also
40895 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40896
40897 2009-02-21 Robert Millan <rmh@aybabtu.com>
40898
40899 Implement USB keyboard support (based on patch by Marco Gerards)
40900
40901 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40902 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40903 (usb_keyboard_mod_LDFLAGS): New variables.
40904
40905 * term/usb_keyboard.c: New file.
40906
40907 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40908
40909 Corrected wrong declaration
40910
40911 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40912
40913 2009-02-14 Christian Franke <franke@computer.org>
40914
40915 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40916 (grub_lspci_iter): Print class code and programming interface byte.
40917
40918 2009-02-14 Christian Franke <franke@computer.org>
40919
40920 * gendistlist.sh: Ignore `.svn' directories.
40921
40922 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40923
40924 * fs/fat.c: Add 2009 to Copyright line.
40925
40926 2009-02-14 Christian Franke <franke@computer.org>
40927
40928 * commands/hdparm.c: New file. Provides `hdparm' command
40929 which sends ATA commands via grub_disk_ata_pass_through ().
40930
40931 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40932
40933 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40934 and <grub/cpu/io.h> to include/grub/ata.h.
40935 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40936 (GRUB_CDROM_SECTOR_SIZE): Remove.
40937 (GRUB_ATA_*): Move to include/grub/ata.h.
40938 (GRUB_ATAPI_*): Likewise.
40939 (enum grub_ata_commands): Likewise.
40940 (enum grub_ata_timeout_milliseconds): Likewise.
40941 (struct grub_ata_device): Likewise.
40942 (grub_ata_regset): Likewise.
40943 (grub_ata_regget): Likewise.
40944 (grub_ata_regset2): Likewise.
40945 (grub_ata_regget2): Likewise.
40946 (grub_ata_check_ready): Likewise.
40947 (grub_ata_wait_not_busy): Remove static, exported in
40948 include/grub/ata.h.
40949 (grub_ata_wait_drq): Likewise.
40950 (grub_ata_pio_read): Likewise.
40951
40952 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40953 function for hdparm.mod.
40954
40955 * include/grub/ata.h: New file, contains declarations from
40956 disk/ata.c.
40957 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40958
40959 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40960 (grub_disk_ata_pass_through): New exported variable.
40961
40962 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40963
40964 2009-02-13 Colin D Bennett <colin@gibibit.com>
40965
40966 Support multiple fallback entries, and provide an API to support
40967 executing default+fallback menu entries. Renamed the `terminal' menu
40968 viewer to `text'.
40969
40970 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40971 variable declaration.
40972 (grub_menu_execute_callback): New structure declaration.
40973 (grub_menu_execute_callback_t): New typedef.
40974 (grub_menu_execute_with_fallback): New function declaration.
40975 (grub_menu_get_entry): Likewise.
40976 (grub_menu_get_timeout): Likewise.
40977 (grub_menu_set_timeout): Likewise.
40978
40979 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
40980
40981 * normal/menu.c (grub_wait_after_message): Moved to
40982 `normal/menu_text.c'.
40983 (draw_border): Likewise.
40984 (print_message): Likewise.
40985 (print_entry): Likewise.
40986 (print_entries): Likewise.
40987 (grub_menu_init_page): Likewise.
40988 (get_entry_number): Likewise.
40989 (print_timeout): Likewise.
40990 (run_menu): Likewise.
40991 (grub_menu_execute_entry): Likewise.
40992 (show_text_menu): Likewise.
40993 (get_and_remove_first_entry_number): New function.
40994 (grub_menu_execute_with_fallback): Likewise.
40995 (get_entry): Renamed to ...
40996 (grub_menu_get_entry): .. this and made it global.
40997 (get_timeout): Renamed to ...
40998 (grub_menu_get_timeout): ... this and made it global.
40999 (set_timeout): Renamed to ...
41000 (grub_menu_set_timeout): ... this and made it global.
41001 (grub_normal_terminal_menu_viewer): Renamed to ...
41002 (grub_normal_text_menu_viewer): ... this.
41003
41004 * normal/menu_text.c: New file. Extracted text-menu-specific code
41005 from normal/menu.c.
41006
41007 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41008 (normal_mod_SOURCES): Likewise.
41009
41010 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41011 (normal_mod_SOURCES): Likewise.
41012
41013 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41014 (normal_mod_SOURCES): Likewise.
41015
41016 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41017 (normal_mod_SOURCES): Likewise.
41018
41019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41020 (normal_mod_SOURCES): Likewise.
41021
41022 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41023 (normal_mod_SOURCES): Likewise.
41024
41025 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41026 (normal_mod_SOURCES): Likewise.
41027
41028 2009-02-11 Robert Millan <rmh@aybabtu.com>
41029
41030 * util/grub.d/00_header.in: Update old reference to `font' command.
41031
41032 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41033
41034 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41035
41036 Based on patch from Javier Martín.
41037
41038 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41039
41040 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41041 to avoid false positives with FAT.
41042 (grub_fstest_SOURCES): Likewise.
41043 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41044 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41046 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41047 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41048 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41049
41050 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41051
41052 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41053 bpb.version_specific.fat12_or_fat16.fstype and
41054 bpb.version_specific.fat32.fstype.
41055
41056 2009-02-08 Robert Millan <rmh@aybabtu.com>
41057
41058 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41059
41060 2009-02-08 Robert Millan <rmh@aybabtu.com>
41061
41062 * Makefile.in (host_os, host_cpu): New variables.
41063 (target_os): Remove. Update all users.
41064
41065 2009-02-08 Marco Gerards <marco@gnu.org>
41066
41067 * Makefile.in (enable_grub_emu_usb): New variable.
41068 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41069 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41070 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41071 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41072 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41073 `usbtest.mod' and `usbms.mod'.
41074 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41075 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41076 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41077 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41078 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41079 variables.
41080
41081 * disk/usbms.c: New file.
41082
41083 * include/grub/usb.h: Likewise.
41084
41085 * include/grub/usbtrans.h: Likewise.
41086
41087 * include/grub/usbdesc.h: Likewise.
41088
41089 * bus/usb/usbtrans.c: Likewise.
41090
41091 * bus/usb/ohci.c: Likewise.
41092
41093 * bus/usb/uhci.c: Likewise.
41094
41095 * bus/usb/usbhub.c: Likewise.
41096
41097 * bus/usb/usb.c: Likewise.
41098
41099 * commands/usbtest.c: Likewise.
41100
41101 * util/usb.c: Likewise.
41102
41103 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41104
41105 * configure.ac: Test for libusb presence.
41106
41107 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41108
41109 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41110
41111 * kern/mm.c: Add more comments.
41112
41113 2009-02-08 Robert Millan <rmh@aybabtu.com>
41114
41115 Patch from Javier Martín.
41116 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41117 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41118
41119 2009-02-08 Robert Millan <rmh@aybabtu.com>
41120
41121 * fs/cpio.c: Split tar functionality to ...
41122 * fs/tar.c: ... here (new file). Update all users.
41123
41124 2009-02-07 Robert Millan <rmh@aybabtu.com>
41125
41126 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41127 backward-incompatible features.
41128
41129 Based on patch from Javier Martín, with some adjustments.
41130
41131 2009-02-07 Michael Scherer <misc@mandriva.org>
41132
41133 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41134
41135 2009-02-07 Robert Millan <rmh@aybabtu.com>
41136
41137 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41138 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41139 after the RAID stuff.
41140
41141 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41142
41143 Fixes problem when running vbetest command as reported by
41144 Vladimir Serbinenko <phcoder@gmail.com>.
41145
41146 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41147
41148 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41149
41150 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41151 /dev/md/NpN style mdraid devices.
41152
41153 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41154
41155 * util/unifont2pff.rb: Remove.
41156
41157 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41158
41159 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41160 `#'.
41161
41162 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41163
41164 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41165 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41166 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41168 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41169 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41170 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41171
41172 2009-02-02 Christian Franke <franke@computer.org>
41173
41174 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41175
41176 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41177
41178 * INSTALL: Note that we now require at least autoconf 2.59 and
41179 that LZO is optional.
41180
41181 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41182
41183 Base on patch on bug #24154 created by Tomas Tintera
41184 <trosos@seznam.cz>.
41185
41186 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41187
41188 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41189
41190 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41191 <bero@arklinux.org>.
41192
41193 * normal/parser.y (script_init): Add missing semicolon.
41194
41195 2009-01-31 Colin D Bennett <colin@gibibit.com>
41196
41197 * normal/main.c: Add include to grub/menu_viewer.h.
41198 (free_menu_entry_classes): Added.
41199 (grub_normal_menu_addentry): Added class property handling.
41200 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41201 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41202
41203 * normal/menu_viewer.c: New file.
41204
41205 * normal/menu.c (run_menu_entry): Renamed to ...
41206 (grub_menu_execute_entry): ... this and made it as global.
41207 (grub_menu_run): Renamed to ...
41208 (show_text_menu): ... this and made it local.
41209 (show_text_menu): Adapt to new function names.
41210 (grub_normal_terminal_menu_viewer): New global variable.
41211
41212 * include/grub/menu.h: New file.
41213
41214 * include/grub/menu_viewer.h: New file.
41215
41216 * include/grub/normal.h: Added include to grub/menu.h.
41217 (grub_menu_entry): Moved to include/grub/menu.h.
41218 (grub_menu_entry_t): Likewise.
41219 (grub_menu): Likewise.
41220 (grub_menu_t): Likewise.
41221 (grub_normal_terminal_menu_viewer): Added.
41222 (grub_menu_execute_entry): Likewise.
41223 (grub_menu_run): Removed.
41224
41225 * DISTLIST: Added include/grub/menu.h.
41226 Added include/grub/menu_viewer.h.
41227 Added normal/menu_viewer.c.
41228
41229 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41230
41231 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41232 arglist for menutitle arguments.
41233
41234 * normal/main.c (grub_normal_menu_addentry): Likewise.
41235
41236 * normal/parser.y (menuentry): Likewise.
41237
41238 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41239
41240 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41241 (grub_script_create_cmdmenu): Likewise.
41242
41243 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41244
41245 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41246 changes.
41247
41248 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41249
41250 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41251
41252 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41253
41254 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41255
41256 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41257
41258 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41259
41260 2009-01-30 Christian Franke <franke@computer.org>
41261
41262 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41263 in option help text.
41264
41265 2009-01-27 Pavel Roskin <proski@gnu.org>
41266
41267 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41268
41269 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41270
41271 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41272
41273 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41274
41275 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41276 unregister function.
41277
41278 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41279
41280 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41281
41282 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41283
41284 * util/grub-mkfont.c (usage): Fix typo.
41285
41286 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41287
41288 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41289
41290 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41291
41292 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41293
41294 * kern/misc.c (grub_strcasecmp): New function.
41295 (grub_strcasecmp): Use grub_size_t instead of int for length.
41296 Fix return value.
41297 * include/grub/misc.h: Update function prototypes.
41298
41299 2009-01-26 Robert Millan <rmh@aybabtu.com>
41300
41301 * configure.ac: Fix cross-compilation check.
41302
41303 2009-01-22 Christian Franke <franke@computer.org>
41304
41305 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41306 (precision) digit string. Allow `.format2' without `format1' (width).
41307 Limit input chars for `%s' output to `format2' if specified. This is
41308 compatible with standard printf ().
41309
41310 2009-01-22 Christian Franke <franke@computer.org>
41311
41312 * disk/ata.c (grub_ata_wait_status): Replace by ...
41313 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41314 other status bits may be invalid while BSY is asserted.
41315 (grub_ata_check_ready): New function.
41316 (grub_ata_cmd): Removed.
41317 (grub_ata_wait_drq): New function.
41318 (grub_ata_strncpy): Remove inline.
41319 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41320 and error check now done by grub_ata_wait_drq ().
41321 (grub_ata_pio_write): Likewise.
41322 (grub_atapi_identify): Set DEV before check for !BSY. Use
41323 grub_ata_wait_drq () to wait for data.
41324 (grub_ata_device_initialize): Add status register check to
41325 detect missing SATA slave devices. Add debug messages.
41326 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41327 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41328 transfer loop by grub_ata_pio_write ().
41329 (grub_ata_identify): Set DEV before check for !BSY. Use
41330 grub_ata_wait_drq () to wait for data.
41331 (grub_ata_setaddress): Set DEV before check for !BSY.
41332 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41333 read/write in one loop. Fix invalid command on write. Fix incomplete
41334 command on (size % batch) == 0. Add missing error check after write of
41335 last block. Add debug messages.
41336 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41337
41338 2009-01-19 Christian Franke <franke@computer.org>
41339
41340 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41341 (GRUB_ATAPI_IREASON_*): Likewise.
41342 (grub_ata_pio_write): Fix timeout error return.
41343 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41344 (grub_atapi_wait_drq): New function.
41345 (grub_atapi_packet): New parameter `size'.
41346 Use grub_atapi_wait_drq () and direct write instead of
41347 grub_ata_pio_write ().
41348 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41349 reads the number of bytes requested by the device for each DRQ
41350 assertion.
41351 (grub_atapi_write): Remove old implementation, return not
41352 implemented instead.
41353
41354 2009-01-19 Christian Franke <franke@computer.org>
41355
41356 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41357 of 512 to calculate data size.
41358 (grub_scsi_read12): Likewise.
41359 (grub_scsi_write10): Likewise.
41360 (grub_scsi_write12): Likewise.
41361 (grub_scsi_read): Adjust size according to blocksize.
41362 Add checks for invalid blocksize and unaligned transfer.
41363
41364 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41365
41366 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41367
41368 * term/gfxterm.c (write_char): Fix background rendering for wide
41369 width glyphs.
41370
41371 2009-01-19 Robert Millan <rmh@aybabtu.com>
41372
41373 * config.guess: Update to latest version from config git.
41374 * config.sub: Likewise.
41375
41376 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41377
41378 * Makefile.in: Change font compilation to use new grub-mkfont instead
41379 of java version.
41380
41381 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41382 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41383 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41384 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41385 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41386 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41387 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41388 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41389 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41390
41391 2009-01-16 Christian Franke <franke@computer.org>
41392
41393 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41394 (enum grub_ata_timeout_milliseconds): New enum.
41395 (grub_ata_wait_status): Add parameter milliseconds.
41396 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41397 recovery from timed-out commands.
41398 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41399 return grub_errno instead of REG_ERROR.
41400 (grub_ata_pio_write): Add parameter milliseconds.
41401 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41402 Pass milliseconds to grub_ata_wait_status () and
41403 grub_ata_pio_read ().
41404 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41405 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41406 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41407 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41408 It is not suitable for device detection, because DEV bit is ignored,
41409 the command may run too long, and not all devices set the signature
41410 properly.
41411 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41412 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41413 Fix device selection, DEV bit must be set first to address the registers
41414 of the correct device.
41415 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41416 grub_ata_pio_read/write ().
41417 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41418 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41419
41420 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41421
41422 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41423
41424 2009-01-13 Bean <bean123ch@gmail.com>
41425
41426 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41427
41428 2009-01-13 Bean <bean123ch@gmail.com>
41429
41430 * Makefile.in: (enable_grub_mkfont): New variable.
41431 (freetype_cflags): Likewise.
41432 (freetype_libs): Likewise.
41433
41434 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41435 (grub_mkfont_SOURCES): New variable.
41436 (grub_mkfont_CFLAGS): Likewise.
41437 (grub_mkfont_LDFLAGS): Likewise.
41438
41439 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41440 library if `--enable-grub-mkfont' is requested.
41441 (enable_grub_mkfont): New variable.
41442 (freetype_cflags): Likewise.
41443 (freetype_libs): Likewise.
41444
41445 * util/grub-mkfont.c: New file.
41446
41447 2009-01-12 Christian Franke <franke@computer.org>
41448
41449 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41450 mode check. Fix setting of compat_use[].
41451
41452 2009-01-10 Robert Millan <rmh@aybabtu.com>
41453
41454 Update a few copyright years which we forgot to do in 2008 (only for
41455 files whose changes made in 2008 were copyright-significant)
41456
41457 * Makefile.in: Add 2008 to Copyright line.
41458 * disk/ieee1275/ofdisk.c: Likewise.
41459 * disk/efi/efidisk.c: Likewise.
41460 * kern/dl.c: Likewise.
41461 * kern/sparc64/ieee1275/init.c: Likewise.
41462 * kern/mm.c: Likewise.
41463 * kern/efi/mm.c: Likewise.
41464 * boot/i386/pc/boot.S: Likewise.
41465 * genfslist.sh: Likewise.
41466 * fs/iso9660.c: Likewise.
41467 * fs/hfs.c: Likewise.
41468 * fs/jfs.c: Likewise.
41469 * fs/minix.c: Likewise.
41470 * fs/ufs.c: Likewise.
41471 * gensymlist.sh.in: Likewise.
41472 * genkernsyms.sh.in: Likewise.
41473 * include/grub/misc.h: Likewise.
41474 * include/grub/types.h: Likewise.
41475 * include/grub/symbol.h: Likewise.
41476 * include/grub/elf.h: Likewise.
41477 * include/grub/kernel.h: Likewise.
41478 * include/grub/disk.h: Likewise.
41479 * include/grub/dl.h: Likewise.
41480 * include/grub/i386/linux.h: Likewise.
41481 * include/grub/i386/pc/biosdisk.h: Likewise.
41482 * include/grub/efi/api.h: Likewise.
41483 * include/grub/efi/pe32.h: Likewise.
41484 * include/grub/util/misc.h: Likewise.
41485 * normal/execute.c: Likewise.
41486 * normal/arg.c: Likewise.
41487 * normal/completion.c: Likewise.
41488 * normal/lexer.c: Likewise.
41489 * normal/parser.y: Likewise.
41490 * normal/misc.c: Likewise.
41491 * commands/i386/pc/vbeinfo.c: Likewise.
41492 * commands/hexdump.c: Likewise.
41493 * commands/terminal.c: Likewise.
41494 * commands/ls.c: Likewise.
41495 * commands/help.c: Likewise.
41496 * partmap/pc.c: Likewise.
41497 * loader/efi/chainloader.c: Likewise.
41498 * loader/multiboot_loader.c: Likewise.
41499 * loader/i386/pc/multiboot2.c: Likewise.
41500 * term/efi/console.c: Likewise.
41501 * term/i386/pc/serial.c: Likewise.
41502 * util/lvm.c: Likewise.
41503 * util/console.c: Likewise.
41504 * util/i386/efi/grub-mkimage.c: Likewise.
41505 * util/raid.c: Likewise.
41506
41507 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41508
41509 * commands/videotest.c: Removed include to grub/machine/memory.h.
41510
41511 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41512 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41513 (video_mod_SOURCES): Removed.
41514 (video_mod_CFLAGS): Likewise.
41515 (video_mod_LDFLAGS): Likewise.
41516 (gfxterm_mod_SOURCES): Likewise.
41517 (gfxterm_mod_CFLAGS): Likewise.
41518 (gfxterm_mod_LDFLAGS): Likewise.
41519 (videotest_mod_SOURCES): Likewise.
41520 (videotest_mod_CFLAGS): Likewise.
41521 (videotest_mod_LDFLAGS): Likewise.
41522 (bitmap_mod_SOURCES): Likewise.
41523 (bitmap_mod_CFLAGS): Likewise.
41524 (bitmap_mod_LDFLAGS): Likewise.
41525 (tga_mod_SOURCES): Likewise.
41526 (tga_mod_CFLAGS): Likewise.
41527 (tga_mod_LDFLAGS): Likewise.
41528 (jpeg_mod_SOURCES): Likewise.
41529 (jpeg_mod_CFLAGS): Likewise.
41530 (jpeg_mod_LDFLAGS): Likewise.
41531 (png_mod_SOURCES): Likewise.
41532 (png_mod_CFLAGS): Likewise.
41533 (png_mod_LDFLAGS): Likewise.
41534
41535 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41536 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41537 (video_mod_SOURCES): Added.
41538 (video_mod_CFLAGS): Likewise.
41539 (video_mod_LDFLAGS): Likewise.
41540 (videotest_mod_SOURCES): Likewise.
41541 (videotest_mod_CFLAGS): Likewise.
41542 (videotest_mod_LDFLAGS): Likewise.
41543 (bitmap_mod_SOURCES): Likewise.
41544 (bitmap_mod_CFLAGS): Likewise.
41545 (bitmap_mod_LDFLAGS): Likewise.
41546 (tga_mod_SOURCES): Likewise.
41547 (tga_mod_CFLAGS): Likewise.
41548 (tga_mod_LDFLAGS): Likewise.
41549 (jpeg_mod_SOURCES): Likewise.
41550 (jpeg_mod_CFLAGS): Likewise.
41551 (jpeg_mod_LDFLAGS): Likewise.
41552 (png_mod_SOURCES): Likewise.
41553 (png_mod_CFLAGS): Likewise.
41554 (png_mod_LDFLAGS): Likewise.
41555 (gfxterm_mod_SOURCES): Likewise.
41556 (gfxterm_mod_CFLAGS): Likewise.
41557 (gfxterm_mod_LDFLAGS): Likewise.
41558
41559 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41560 grub/machine/console.h.
41561
41562 2009-01-04 Jerone Young <jerone@gmail.com>
41563
41564 Make on screen instructions clearer
41565
41566 Based on patch created by Jidanni <jidanni@jidanni.org>
41567
41568 * normal/menu.c: print clearer instructions on the screen
41569
41570 2009-01-02 Colin D Bennett <colin@gibibit.com>
41571
41572 New font engine.
41573
41574 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41575 build system and fixed gfxterm.c to work with different sized fonts.
41576
41577 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41578
41579 * configure: Re-generated.
41580
41581 * DISTLIST: Removed font/manager.c.
41582 Added font/font.c.
41583 Added font/font_cmd.c.
41584
41585 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41586 compilation.
41587
41588 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41589
41590 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41591
41592 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41593
41594 * normal/menu.c: Likewise.
41595
41596 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41597 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41598
41599 * include/grub/font.h: Replaced with new file.
41600
41601 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41602 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41603 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41604 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41605 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41606 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41607 fg_red, fg_green, fg_blue, fg_alpha.
41608 (grub_video_adapter): Removed blit_glyph.
41609 (grub_video_blit_glyph): Removed.
41610
41611 * font/manager.c: Removed file.
41612
41613 * font/font.c: New file.
41614
41615 * font/font_cmd.c: Likewise.
41616
41617 * video/video.c (grub_video_blit_glyph): Removed.
41618
41619 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41620 (grub_video_vbe_map_rgba): Likewise.
41621 (grub_video_vbe_unmap_color_int): Likewise.
41622 (grub_video_vbe_blit_glyph): Removed.
41623 (grub_video_vbe_adapter): Removed blit_glyph.
41624
41625 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41626 (get_pixel): Likewise.
41627 (set_pixel): Likewise.
41628
41629 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41630
41631 * term/gfxterm.c: Adapted to new font engine.
41632
41633 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41634
41635 * term/i386/pc/vga.c: Likewise.
41636
41637 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41638
41639 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41640
41641 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41642
41643 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41644
41645 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41646
41647 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41648
41649 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41650
41651 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41652
41653 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41654
41655 * util/grub.d/00_header.in: Changed to use new loadfont command.
41656
41657 * util/grub-mkconfig_lib.in: Changed font extension.
41658
41659 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41660
41661 * util/getroot.c (grub_util_get_grub_dev): Add support for
41662 /dev/md/dNNpNN style partitionable mdraid devices.
41663
41664 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41665
41666 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41667 at a time limit of the PXE TFTP API correctly.
41668 (grub_pxefs_close): Likewise.
41669
41670 2008-11-29 Robert Millan <rmh@aybabtu.com>
41671
41672 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41673 grub_ata_device_initialize() calls.
41674
41675 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41676
41677 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41678 iteration failed.
41679 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41680
41681 2008-11-28 Robert Millan <rmh@aybabtu.com>
41682
41683 Fix build on powerpc-ieee1275. Based on patch created by
41684 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41685 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41686 `kern/ieee1275/mmap.c'.
41687 * include/grub/powerpc/ieee1275/memory.h: New file.
41688
41689 Provide grub-install on coreboot.
41690 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41691 (grub_install_SOURCES): New variable.
41692 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41693 usable on coreboot.
41694
41695 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41696
41697 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41698 to `grub_term_input_t'.
41699 (grub_term_get_current_output): Change return type to
41700 `grub_term_output_t'.
41701
41702 2008-11-22 Robert Millan <rmh@aybabtu.com>
41703
41704 Fix breakage on coreboot due to declaration mismatch.
41705 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41706 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41707 grub_vga_text_cls().
41708
41709 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41710 comments. Avoid copying one more byte than necessary (just in case).
41711
41712 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41713 to 0x200000 (avoids trouble with some OFW implementations, and matches
41714 with the one in Yaboot).
41715 Reported by Manoel Abranches
41716
41717 2008-11-20 Robert Millan <rmh@aybabtu.com>
41718
41719 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41720 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41721
41722 * util/grub-mkconfig_lib.in (grub_warn): New function.
41723 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41724 warnings, to obtain consistent formatting.
41725 * util/grub.d/00_header.in: Likewise.
41726 * util/update-grub_lib.in: Likewise.
41727
41728 * loader/i386/linux.c (allocate_pages): Fix a warning.
41729 Move comment text to `#error' stanza.
41730
41731 Harmonize ieee1275's grub_available_iterate() with the generic
41732 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41733 build problem on i386-ieee1275):
41734 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41735 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41736 parameter `type'. Update all users of this function.
41737 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41738 `kern/ieee1275/mmap.c'.
41739 * kern/ieee1275/init.c
41740 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41741 with ...
41742 (grub_machine_mmap_iterate): ... this.
41743 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41744 return type to `grub_err_t'. Update all implementations of this
41745 function prototype.
41746 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41747 Likewise.
41748
41749 Add `lsmmap' command (lists firmware-provided memory map):
41750 * commands/lsmmap.c: New file.
41751 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41752 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41753 variables.
41754 * conf/powerpc-ieee1275.rmk: Likewise.
41755 * conf/i386-coreboot.rmk: Likewise.
41756 * conf/i386-ieee1275.rmk: Likewise.
41757
41758 2008-11-19 Robert Millan <rmh@aybabtu.com>
41759
41760 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41761 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41762 constraints to initrd allocation (based on code from
41763 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41764 for Linux to find it.
41765
41766 2008-11-14 Robert Millan <rmh@aybabtu.com>
41767
41768 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41769 order to cope with duplicate slashes.
41770
41771 2008-11-14 Robert Millan <rmh@aybabtu.com>
41772
41773 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41774 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41775 don't want to mess with lower memory, because it is used in the Linux
41776 loader.
41777
41778 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41779 an appropriate place in lower memory, between 0x10000 and 0x90000,
41780 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41781 is in our heap (probably as a result of it being corrupted during
41782 decompression). Add #error instance with comment to explain why this
41783 loader isn't currently usable on PC/BIOS.
41784
41785 2008-11-14 Robert Millan <rmh@aybabtu.com>
41786
41787 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41788 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41789
41790 2008-11-12 Robert Millan <rmh@aybabtu.com>
41791
41792 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41793
41794 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41795 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41796 from here ...
41797 * include/grub/i386/pc/memory.h: ... to here.
41798
41799 2008-11-12 Robert Millan <rmh@aybabtu.com>
41800
41801 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41802 split).
41803
41804 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41805 (grub_console_cur_color, grub_console_real_putchar)
41806 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41807 (grub_console_setcolorstate, grub_console_setcolor)
41808 (grub_console_getcolor): Move from here ...
41809 * include/grub/i386/vga_common.h: ... to here (new file).
41810
41811 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41812 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41813 `<grub/i386/io.h>'.
41814 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41815 `<grub/i386/vga_common.h>'.
41816
41817 2008-11-12 Robert Millan <rmh@aybabtu.com>
41818
41819 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41820 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41821 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41822 variables.
41823 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41824 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41825
41826 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41827 grub_console_init() with call to grub_vga_text_init().
41828 (grub_machine_fini): Replace call to
41829 grub_console_fini() with call to grub_vga_text_fini() and
41830 grub_at_keyboard_fini().
41831
41832 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41833 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41834 (grub_console_setcolorstate, grub_console_setcolor)
41835 (grub_console_getcolor): New function prototypes.
41836
41837 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41838 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41839 (grub_vga_text_setcursor): Static-ize.
41840 (grub_vga_text_term): New structure.
41841 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41842
41843 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41844 (grub_console_cur_color, grub_console_standard_color)
41845 (grub_console_normal_color, grub_console_highlight_color)
41846 (map_char, grub_console_putchar, grub_console_getcharwidth)
41847 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41848 (grub_console_getcolor): Move from here ...
41849 * term/i386/vga_common.c: ... to here (same function names).
41850
41851 2008-11-12 Robert Millan <rmh@aybabtu.com>
41852
41853 Use newly-added Multiboot support in coreboot.
41854
41855 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41856 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41857
41858 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41859 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41860 (codestart): Store the MBI in `startup_multiboot_info' when we're
41861 being loaded using Multiboot.
41862
41863 * kern/i386/coreboot/init.c (grub_machine_init): Move
41864 grub_at_keyboard_init() call to beginning of function (useful for
41865 debugging). Call grub_machine_mmap_init() before attempting to use
41866 grub_machine_mmap_iterate().
41867 (grub_lower_mem, grub_upper_mem): Move from here ...
41868 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41869 here (new file).
41870
41871 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41872 function prototype.
41873
41874 2008-11-12 Robert Millan <rmh@aybabtu.com>
41875
41876 Fix a regression introduced by the at_keyboard.mod split. Because
41877 some terminals are default on some platforms and non-default on
41878 others, the first terminal being registered determines which is
41879 going to be default.
41880
41881 * kern/term.c (grub_term_register_input): If this is the first
41882 terminal being registered, set it as the current one.
41883 (grub_term_register_output): Likewise.
41884
41885 * term/efi/console.c (grub_console_init): Do not call
41886 grub_term_set_current_output() or grub_term_set_current_input().
41887 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41888 * term/i386/pc/console.c (grub_console_init): Likewise.
41889 (grub_console_fini): Do not call grub_term_set_current_input()
41890 (but leave grub_term_set_current_output() to restore text mode).
41891
41892 2008-11-10 Robert Millan <rmh@aybabtu.com>
41893
41894 * util/grub.d/00_header.in: Add backward compatibility check for
41895 versions of terminal.mod that don't understand `terminal_input' or
41896 `terminal_output'.
41897
41898 2008-11-09 Robert Millan <rmh@aybabtu.com>
41899
41900 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41901 `terminal_input' / `terminal_output', not `terminal'.
41902
41903 2008-11-08 Robert Millan <rmh@aybabtu.com>
41904
41905 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41906 (DISTCLEANFILES): Add `build_env.mk'.
41907
41908 2008-11-08 Robert Millan <rmh@aybabtu.com>
41909
41910 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41911 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41912 members. Update all users.
41913 * util/console.c (grub_ncurses_term): Split in ...
41914 (grub_ncurses_term_input): ... this, and ...
41915 (grub_ncurses_term_output): ... this. Update all users.
41916 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41917
41918 2008-11-08 Robert Millan <rmh@aybabtu.com>
41919
41920 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41921 (PKGDATA): Add $(pkgdata_SRCDIR).
41922 (pkglib_BUILDDIR): New variable.
41923 (pkgdata_SRCDIR): New variable.
41924 (build_env.mk): New target.
41925 (include_DATA): New variable.
41926 (install-local): Install $(include_DATA) files in $(includedir).
41927
41928 2008-11-07 Pavel Roskin <proski@gnu.org>
41929
41930 * gendistlist.sh: Use C locale for sorting to ensure consistent
41931 output on all systems.
41932
41933 * util/grub.d/00_header.in: Remove incorrect space before
41934 "serial".
41935
41936 2008-11-07 Robert Millan <rmh@aybabtu.com>
41937
41938 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41939 per specification.
41940 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41941 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41942 (based on find_multi_boot1_header).
41943 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41944 using find_multi_boot2_header(), and abort if neither Multiboot or
41945 Multiboot headers were found.
41946
41947 2008-11-07 Robert Millan <rmh@aybabtu.com>
41948
41949 Modularize at_keyboard.mod:
41950
41951 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41952 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41953 (at_keyboard_mod_LDFLAGS): New variables.
41954
41955 Actual terminal split:
41956
41957 * include/grub/term.h (struct grub_term): Split in ...
41958 (struct grub_term_input): ... this, and ...
41959 (struct grub_term_output): ... this. Update all users.
41960 (grub_term_set_current): Split in ...
41961 (grub_term_set_current_input): ... this, and ...
41962 (grub_term_set_current_output): ... this.
41963 (grub_term_get_current): Split in ...
41964 (grub_term_get_current_input): ... this, and ...
41965 (grub_term_get_current_output): ... this.
41966 (grub_term_register): Split in ...
41967 (grub_term_register_input): ... this, and ...
41968 (grub_term_register_output): ... this.
41969 (grub_term_unregister): Split in ...
41970 (grub_term_unregister_input): ... this, and ...
41971 (grub_term_unregister_output): ... this.
41972 (grub_term_iterate): Split in ...
41973 (grub_term_iterate_input): ... this, and ...
41974 (grub_term_iterate_output): ... this.
41975
41976 * kern/term.c (grub_term_list): Split in ...
41977 (grub_term_list_input): ... this, and ...
41978 (grub_term_list_output): ... this. Update all users.
41979 (grub_cur_term): Split in ...
41980 (grub_cur_term_input): ... this, and ...
41981 (grub_cur_term_output): ... this. Update all users.
41982 (grub_term_set_current): Split in ...
41983 (grub_term_set_current_input): ... this, and ...
41984 (grub_term_set_current_output): ... this.
41985 (grub_term_get_current): Split in ...
41986 (grub_term_get_current_input): ... this, and ...
41987 (grub_term_get_current_output): ... this.
41988 (grub_term_register): Split in ...
41989 (grub_term_register_input): ... this, and ...
41990 (grub_term_register_output): ... this.
41991 (grub_term_unregister): Split in ...
41992 (grub_term_unregister_input): ... this, and ...
41993 (grub_term_unregister_output): ... this.
41994 (grub_term_iterate): Split in ...
41995 (grub_term_iterate_input): ... this, and ...
41996 (grub_term_iterate_output): ... this.
41997
41998 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
41999 a check for input and one for output (and only attempt to get keys
42000 from user when input works).
42001
42002 * util/grub-probe.c (grub_term_get_current): Split in ...
42003 (grub_term_get_current_input): ... this, and ...
42004 (grub_term_get_current_output): ... this.
42005 * util/grub-fstest.c: Likewise.
42006 * util/i386/pc/grub-setup.c: Likewise.
42007 * util/grub-editenv.c: Likewise.
42008
42009 Portability adjustments:
42010
42011 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42012 `term/i386/pc/at_keyboard.c'.
42013 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42014 grub_keyboard_controller_init() (now handled by terminal .init).
42015 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42016 grub_at_keyboard_init().
42017 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42018 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42019 at_keyboard.mod via input terminal interface).
42020 * include/grub/i386/coreboot/console.h: Convert into a stub for
42021 `<grub/i386/pc/console.h>'.
42022
42023 Migrate full terminals to new API:
42024
42025 * term/efi/console.c (grub_console_term): Split into ...
42026 (grub_console_term_input): ... this, and ...
42027 (grub_console_term_output): ... this. Update all users.
42028 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42029 (grub_ofconsole_init): Split into ...
42030 (grub_ofconsole_init_input): ... this, and ...
42031 (grub_ofconsole_init_output): ... this.
42032 (grub_ofconsole_term): Split into ...
42033 (grub_ofconsole_term_input): ... this, and ...
42034 (grub_ofconsole_term_output): ... this. Update all users.
42035 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42036 (grub_serial_term_input): ... this, and ...
42037 (grub_serial_term_output): ... this. Update all users.
42038 * term/i386/pc/console.c (grub_console_term): Split into ...
42039 (grub_console_term_input): ... this, and ...
42040 (grub_console_term_output): ... this. Update all users.
42041 (grub_console_term_input): Only enable it on PC/BIOS platform.
42042 (grub_console_init): Remove grub_keyboard_controller_init() call.
42043
42044 Migrate input terminals to new API:
42045
42046 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42047 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42048 i386-specific anyway).
42049 (grub_console_checkkey): Rename to ...
42050 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42051 users.
42052 (grub_keyboard_controller_orig): New variable.
42053 (grub_console_getkey): Rename to ...
42054 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42055 users.
42056 (grub_keyboard_controller_init): Static-ize. Save original
42057 controller value so that it can be restored ...
42058 (grub_keyboard_controller_fini): ... here (new function).
42059 (grub_at_keyboard_term): New structure.
42060 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42061 functions.
42062
42063 Migrate output terminals to new API:
42064
42065 * term/i386/pc/vga.c (grub_vga_term): Change type to
42066 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42067 members. Update all users.
42068 * term/gfxterm.c (grub_video_term): Change type to
42069 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42070 members. Update all users.
42071 * include/grub/i386/pc/console.h (grub_console_checkkey)
42072 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42073 etc).
42074
42075 Migrate `terminal' command and userland tools to new API:
42076
42077 * commands/terminal.c (grub_cmd_terminal): Split into ...
42078 (grub_cmd_terminal_input): ... this, and ...
42079 (grub_cmd_terminal_output): ... this.
42080 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42081 `terminal_input' and `terminal_output'.
42082 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42083 `terminal_input' / `terminal_output' API.
42084 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42085 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42086 provided ${GRUB_TERMINAL}, convert it).
42087
42088 2008-11-04 Robert Millan <rmh@aybabtu.com>
42089
42090 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42091 for FreeBSD.
42092 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42093
42094 2008-11-03 Bean <bean123ch@gmail.com>
42095
42096 * kern/elf.c (grub_elf32_load): Revert to previous code.
42097 (grub_elf64_load): Likewise.
42098
42099 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42100
42101 2008-11-01 Robert Millan <rmh@aybabtu.com>
42102
42103 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42104 (TARGET_CPPFLAGS): Likewise.
42105 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42106
42107 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42108
42109 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42110
42111 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42112
42113 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42114 addition of objects until the code is not going to be able to fail.
42115
42116 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42117
42118 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42119 (add a missing NULL check, and correct them by moving the pointer
42120 operations after the actual check).
42121
42122 2008-10-29 Robert Millan <rmh@aybabtu.com>
42123
42124 * util/i386/pc/grub-install.in: Handle empty string as output from
42125 make_system_path_relative_to_its_root().
42126
42127 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42128
42129 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42130 circular metadata worst case scenario. If the metadata is circular
42131 then copy the wrap in place.
42132 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42133 project lib/format_text/layout.h
42134 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42135
42136 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42137
42138 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42139
42140 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42141
42142 * util/update-grub_lib.in: Mention filename in warning message.
42143
42144 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42145
42146 * NEWS: Update for rename of update-grub to grub-mkconfig.
42147
42148 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42149
42150 * util/update-grub_lib.in: Copy to ...
42151 * util/grub-mkconfig_lib.in: ... this. Update all users.
42152 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42153 * util/update-grub.in: Rename to ...
42154 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42155 option. Add `--output' option to allow users to specify the generated
42156 configuration file. Default to stdout.
42157 (update_grub_dir): Rename to ...
42158 (grub_mkconfig_dir): ... this.
42159 (grub_cfg): Default to an empty string.
42160 * conf/common.rmk (update-grub): Rename to ...
42161 (grub-mkconfig): ... this.
42162 (update-grub_lib): Copy to ...
42163 (grub-mkconfig_lib): ... this.
42164 (update-grub_SCRIPTS): Copy to ...
42165 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42166 (update-grub_DATA): Rename to ...
42167 (grub-mkconfig_DATA): ... this.
42168
42169 2008-09-28 Robert Millan <rmh@aybabtu.com>
42170
42171 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42172 to `modified'. Add the real `created' field.
42173 (grub_iso9660_uuid): Use `modified' rather than `created' for
42174 constructing the UUID.
42175
42176 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42177
42178 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42179 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42180
42181 2008-09-28 Bean <bean123ch@gmail.com>
42182
42183 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42184 Thanks to Christian Franke for finding this bug.
42185
42186 2008-09-25 Robert Millan <rmh@aybabtu.com>
42187
42188 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42189 instances of grub_util_get_disk_name() (see previous commit).
42190
42191 2008-09-25 Robert Millan <rmh@aybabtu.com>
42192
42193 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42194 `util/i386/get_disk_name.c'.
42195 * conf/i386-efi.rmk: Likewise.
42196 * conf/x86_64-efi.rmk: Likewise.
42197 * conf/i386-coreboot.rmk: Likewise.
42198 * conf/i386-ieee1275.rmk: Likewise.
42199 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42200 `util/ieee1275/get_disk_name.c'.
42201 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42202 * util/ieee1275/get_disk_name.c: Remove file.
42203 * util/i386/get_disk_name.c: Remove file.
42204 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42205 "hd%d" for device.map entries, rather than using
42206 grub_util_get_disk_name().
42207
42208 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42209
42210 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42211 warning.
42212 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42213
42214 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42215
42216 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42217 Changed to 0x5100.
42218 (GRUB_TERM_PPAGE): Changed to 0x4900.
42219
42220 2008-09-24 Robert Millan <rmh@aybabtu.com>
42221
42222 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42223 macros (they were i386-pc specific).
42224 * include/grub/sparc64/ieee1275/console.h: Likewise.
42225 * include/grub/efi/console.h: Likewise.
42226
42227 2008-09-22 Bean <bean123ch@gmail.com>
42228
42229 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42230 resident and in attribute list.
42231
42232 * include/grub/ntfs.h (BMP_LEN): Removed.
42233
42234 2008-09-22 Bean <bean123ch@gmail.com>
42235
42236 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42237 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42238
42239 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42240 error occurs, as grub_disk_open will call grub_disk_close, which will
42241 call p->close (scsi).
42242
42243 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42244
42245 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42246 (AC_PREREQ): Bumped to 2.59.
42247 (AC_TRY_COMPILE): Replace obsolete macro with ...
42248 (AC_COMPILE_IFELSE): ... this.
42249 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42250 (AC_LINK_IFELSE): ... this.
42251
42252 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42253
42254 * autogen.sh: Add a call to `gendistlist.sh'.
42255
42256 2008-09-19 Christian Franke <franke@computer.org>
42257
42258 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42259 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42260 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42261 Export __enable_execute_stack() to modules.
42262 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42263 New function.
42264
42265 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42266
42267 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42268 Sort the list.
42269
42270 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42271
42272 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42273 #include <grub/util/hostdisk.h>.
42274
42275 2008-09-08 Robert Millan <rmh@aybabtu.com>
42276
42277 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42278 segments when their filesz is zero (grub_file_read() interprets
42279 zero-size as "read until EOF", which results in memory corruption).
42280 Use `lowest_segment' rather than 0 for calculating the current
42281 segment load address.
42282
42283 2008-09-08 Robert Millan <rmh@aybabtu.com>
42284
42285 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42286 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42287 clobbered useful information.
42288
42289 2008-09-08 Robert Millan <rmh@aybabtu.com>
42290
42291 * include/grub/util/biosdisk.h: Move to ...
42292 * include/grub/util/hostdisk.h: ... here. Update all users.
42293 * util/biosdisk.c: Move to ...
42294 * util/hostdisk.c: ... here. Update all users.
42295
42296 2008-09-07 Robert Millan <rmh@aybabtu.com>
42297
42298 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42299 variables.
42300 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42301 and length can be stored directly in the `mbi->mmap_addr' and
42302 `mbi->mmap_length' struct fields.
42303
42304 2008-09-07 Robert Millan <rmh@aybabtu.com>
42305
42306 * conf/i386.rmk: New file. Provides declaration for building
42307 `cpuid.mod'.
42308 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42309 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42310 variables.
42311 Include `conf/i386.mk'.
42312 * conf/i386-efi.rmk: Likewise.
42313 * conf/x86_64-efi.rmk: Likewise.
42314 * conf/i386-coreboot.rmk: Likewise.
42315 * conf/i386-ieee1275.rmk: Likewise.
42316
42317 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42318
42319 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42320 Adds optimization support for BGR based modes.
42321
42322 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42323 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42324 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42325 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42326 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42327 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42328 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42329 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42330 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42331 (grub_video_i386_vbeblit_index_index): Likewise.
42332 (grub_video_i386_vbeblit_replace_directN): Added.
42333 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42334 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42335 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42336 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42337 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42338 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42339 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42340 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42341 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42342 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42343 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42344 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42345 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42346
42347 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42348 (grub_video_i386_vbefill_R8G8B8): Likewise.
42349 (grub_video_i386_vbefill_index): Likewise.
42350 (grub_video_i386_vbefill_direct32): Added.
42351 (grub_video_i386_vbefill_direct24): Likewise.
42352 (grub_video_i386_vbefill_direct16): Likewise.
42353 (grub_video_i386_vbefill_direct8): Likewise.
42354
42355 * include/grub/video.h (grub_video_blit_format): Removed
42356 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42357 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42358 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42359 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42360 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42361
42362 * video/video.c (grub_video_get_blit_format): Updated to use new
42363 blit formats. Added handling for 16 bit color modes.
42364
42365 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42366 fillers.
42367 (common_blitter): Updated to use new blitters.
42368
42369 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42370 Removed.
42371 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42372 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42373 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42374 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42375 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42376 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42377 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42378 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42379 (grub_video_i386_vbeblit_index_index): Likewise.
42380 (grub_video_i386_vbeblit_replace_directN): Added.
42381 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42382 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42383 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42384 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42385 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42386 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42387 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42388 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42389 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42390 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42391 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42392 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42393 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42394
42395 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42396 (grub_video_i386_vbefill_R8G8B8): Likewise.
42397 (grub_video_i386_vbefill_index): Likewise.
42398 (grub_video_i386_vbefill_direct32): Added.
42399 (grub_video_i386_vbefill_direct24): Likewise.
42400 (grub_video_i386_vbefill_direct16): Likewise.
42401 (grub_video_i386_vbefill_direct8): Likewise.
42402
42403 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42404 types.
42405
42406 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42407 types.
42408
42409 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42410 blitter types.
42411
42412 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42413 types.
42414
42415 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42416
42417 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42418 RAID level 1.
42419
42420 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42421
42422 * fs/iso9660.c (grub_iso9660_date): New structure.
42423 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42424 (grub_iso9660_uuid): New function.
42425
42426 2008-09-05 Bean <bean123ch@gmail.com>
42427
42428 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42429
42430 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42431 insensitive bit for names in Win32 and Win32 & DOS namespace.
42432
42433 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42434
42435 * include/grub/types.h (LONG_MAX): Likewise.
42436
42437 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42438
42439 * util/getroot.c: Include <config.h>.
42440 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42441 add support for /dev/md/N devices and handle LVM double dash escaping.
42442
42443 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42444
42445 * config.guess: Update to latest version from config git.
42446 * config.sub: Likewise.
42447
42448 2008-09-03 Robert Millan <rmh@aybabtu.com>
42449
42450 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42451 `disk->total_sectors'.
42452
42453 2008-09-01 Colin D Bennett <colin@gibibit.com>
42454
42455 * include/grub/normal.h: Fixed incorrect comment for
42456 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42457
42458 2008-09-01 Colin D Bennett <colin@gibibit.com>
42459
42460 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42461 values with defines.
42462
42463 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42464 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42465 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42466 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42467 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42468 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42469 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42470 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42471 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42472 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42473 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42474 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42475 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42476 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42477 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42478 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42479 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42480 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42481 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42482
42483 2008-08-31 Robert Millan <rmh@aybabtu.com>
42484
42485 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42486 declaration.
42487 (grub_multiboot): Fix a few warnings.
42488
42489 2008-08-31 Robert Millan <rmh@aybabtu.com>
42490
42491 * loader/i386/pc/multiboot.c: Update comment not to say that
42492 boot_device support is unimplemented.
42493
42494 2008-08-31 Robert Millan <rmh@aybabtu.com>
42495
42496 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42497 or memory map support are unimplemented.
42498
42499 2008-08-31 Colin D Bennett <colin@gibibit.com>
42500
42501 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42502
42503 2008-08-31 Colin D Bennett <colin@gibibit.com>
42504
42505 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42506 total video memory in 'vbeinfo' output; show color format details for
42507 each video mode.
42508
42509 2008-08-30 Pavel Roskin <proski@gnu.org>
42510
42511 * util/genmoddep.c: Remove for real this time.
42512 * DISTLIST: Remove util/genmoddep.c.
42513
42514 2008-08-30 Robert Millan <rmh@aybabtu.com>
42515
42516 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42517 as required by Multiboot spec (it was already 4-byte aligned, but
42518 only by chance).
42519
42520 2008-08-29 Pavel Roskin <proski@gnu.org>
42521
42522 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42523 * kern/powerpc/ieee1275/startup.S: ... this.
42524 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42525 * DISTLIST: Likewise.
42526
42527 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42528 grub/cpu/kernel.h. Add start label for consistency with other
42529 platforms. Add grub_prefix immediately after start. Add jump
42530 to the code after grub_prefix.
42531 * include/grub/powerpc/kernel.h: Provide valid values for
42532 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42533
42534 2008-08-29 Bean <bean123ch@gmail.com>
42535
42536 * configure.ac: Change host_os to cygwin for mingw.
42537 (asprintf): New check for function.
42538
42539 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42540 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42541
42542 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42543 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42544 sync, sleep and grub_util_get_disk_size for mingw.
42545
42546 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42547 to get size in mingw.
42548 (open_device): Use flag O_BINARY if it's defined.
42549 (find_root_device): Add dummy code for mingw.
42550
42551 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42552 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42553 (get_scsi_disk_name): Return 0 for mingw.
42554
42555 * util/hostfs.c: #include <grub/util/misc.h>.
42556 (grub_hostfs_open): Use "rb" flag to open file, use
42557 grub_util_get_disk_size to get disk size for mingw.
42558
42559 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42560 (asprintf): New function if HAVE_ASPRINTF is not set.
42561 (sync): New function for mingw.
42562 (sleep): Likewise.
42563 (grub_util_get_disk_size): Likewise.
42564
42565 2008-08-28 Pavel Roskin <proski@gnu.org>
42566
42567 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42568 kern/time.c.
42569
42570 2008-08-28 Robert Millan <rmh@aybabtu.com>
42571
42572 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42573
42574 2008-08-28 Robert Millan <rmh@aybabtu.com>
42575
42576 Change find_grub_drive() syntax so it doesn't prevent it from
42577 detecting NULL names as errors.
42578
42579 * util/biosdisk.c (find_grub_drive): Move free slot search code
42580 from here ...
42581 (find_free_slot): ... to here.
42582 (read_device_map): Use find_free_slot() to search for free slots.
42583
42584 2008-08-27 Marco Gerards <marco@gnu.org>
42585
42586 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42587 (scsi_mod_SOURCES): New variable.
42588 (scsi_mod_CFLAGS): Likewise
42589 (scsi_mod_LDFLAGS): Likewise.
42590
42591 * disk/scsi.c: New file.
42592
42593 * include/grub/scsi.h: Likewise.
42594
42595 * include/grub/scsicmd.h: Likewise.
42596
42597 * disk/ata.c: Include <grub/scsi.h>.
42598 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42599 instead.
42600 (grub_ata_iterate): Skip ATAPI devices.
42601 (grub_ata_open): Only handle ATAPI devices.
42602 (struct grub_atapi_read): Removed.
42603 (grub_atapi_readsector): Likewise.
42604 (grub_ata_read): No longer handle ATAPI devices.
42605 (grub_ata_write): Likewise.
42606 (grub_atapi_iterate): New function.
42607 (grub_atapi_read): Likewise.
42608 (grub_atapi_write): Likewise.
42609 (grub_atapi_open): Likewise.
42610 (grub_atapi_close): Likewise.
42611 (grub_atapi_dev): New variable.
42612 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42613 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42614
42615 * include/grub/disk.h (enum grub_disk_dev_id): Add
42616 `GRUB_DISK_DEVICE_SCSI_ID'.
42617
42618 2008-08-26 Robert Millan <rmh@aybabtu.com>
42619
42620 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42621 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42622 descriptive.
42623
42624 2008-08-23 Bean <bean123ch@gmail.com>
42625
42626 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42627 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42628 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42629 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42630 dm_nv.mod.
42631 (raid5rec_mod_SOURCES): New macro.
42632 (raid5rec_mod_CFLAGS): Likewise.
42633 (raid5rec_mod_LDFLAGS): Likewise.
42634 (raid6rec_mod_SOURCES): Likewise.
42635 (raid6rec_mod_CFLAGS): Likewise.
42636 (raid6rec_mod_LDFLAGS): Likewise.
42637 (mdraid_mod_SOURCES): Likewise.
42638 (mdraid_mod_CFLAGS): Likewise.
42639 (mdraid_mod_LDFLAGS): Likewise.
42640 (dm_nv_mod_SOURCES): Likewise.
42641 (dm_nv_mod_CFLAGS): Likewise.
42642 (dm_nv_mod_LDFLAGS): Likewise.
42643
42644 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42645 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42646 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42647
42648 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42649 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42650
42651 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42652
42653 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42654
42655 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42656
42657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42658
42659 * disk/raid5_recover.c: New file.
42660
42661 * disk/raid6_recover.c: Likewise.
42662
42663 * disk/mdraid_linux.c: Likewise.
42664
42665 * disk/dmraid_nvidia.c: Likewise.
42666
42667 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42668 ULONG_MAX.
42669
42670 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42671 calculate the size of raid device.
42672 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42673 different layout of raid5.
42674 (grub_raid_scan_device): Remove code specific to mdraid.
42675 (grub_raid_list): New variable.
42676 (free_array): New function.
42677 (grub_raid_register): Likewise.
42678 (grub_raid_unregister): Likewise.
42679 (grub_raid_rescan): Likewise.
42680 (GRUB_MOD_INIT): Don't iterate device here.
42681 (GRUB_MOD_FINI): Use free_array to release resource.
42682
42683 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42684 (grub_raid5_recover_func_t): New function variable type.
42685 (grub_raid6_recover_func_t): Likewise.
42686 (grub_raid5_recover_func): New variable.
42687 (grub_raid6_recover_func): Likewise.
42688 (grub_raid_register): New function.
42689 (grub_raid_unregister): Likewise.
42690 (grub_raid_rescan): Likewise.
42691 (grub_raid_block_xor): Likewise.
42692
42693 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42694 (CMD_CRC): New macro.
42695 (part): Removed.
42696 (read_file): Handle device as well as file.
42697 (cmd_crc): New function.
42698 (fstest): Handle multiple disks.
42699 (options): Remove part, raw and long, add root and diskcount.
42700 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42701 (main): Find the first non option entry and ignore subsequent options,
42702 add handling for the new options, support multiple disks.
42703
42704 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42705
42706 2008-08-23 Bean <bean123ch@gmail.com>
42707
42708 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42709
42710 * genfslist.sh: Ignore kernel.mod.
42711
42712 * genpartmaplist.sh: Likewise.
42713
42714 2008-08-23 Robert Millan <rmh@aybabtu.com>
42715
42716 * util/getroot.c (find_root_device): Skip anything that starts with
42717 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42718
42719 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42720
42721 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42722 * util/grub.d/00_header.in: Allow the administrator to change default
42723 gfxmode via ${GRUB_GFXMODE}.
42724
42725 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42726
42727 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42728
42729 2008-08-21 Robert Millan <rmh@aybabtu.com>
42730
42731 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42732 loader.
42733 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42734 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42735
42736 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42737
42738 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42739 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42740
42741 2008-08-19 Robert Millan <rmh@aybabtu.com>
42742
42743 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42744 (struct grub_virtual_screen): Remove `cursor_color'.
42745 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42746 initialization.
42747 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42748
42749 2008-08-18 Robert Millan <rmh@aybabtu.com>
42750
42751 Unify (identical) linux_normal.c files.
42752 * loader/i386/efi/linux_normal.c: Move from here ...
42753 * loader/linux_normal.c: ... to here. Update all users.
42754 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42755 * loader/i386/ieee1275/linux_normal.c: Likewise.
42756
42757 2008-08-18 Robert Millan <rmh@aybabtu.com>
42758
42759 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42760 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42761 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42762 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42763 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42764 New macros.
42765 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42766 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42767 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42768 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42769 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42770 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42771 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42772 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42773 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42774 portably using grub_getxy().
42775 Replace `-EFI' with `-bzImage' in boot message.
42776
42777 2008-08-17 Robert Millan <rmh@aybabtu.com>
42778
42779 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42780
42781 2008-08-17 Robert Millan <rmh@aybabtu.com>
42782
42783 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42784
42785 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42786 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42787 (grub_machine_mmap_iterate): New function declaration.
42788 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42789 structure.
42790 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42791 macros.
42792
42793 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42794 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42795 Move e820 parsing from here ...
42796 * kern/i386/pc/mmap.c: New file.
42797 (grub_machine_mmap_iterate): ... to here.
42798
42799 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42800 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42801 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42802 (grub_available_iterate): Redeclare to return `void', and redeclare
42803 its hook to use grub_uint64_t as addr and size parameters, and rename
42804 to ...
42805 (grub_machine_mmap_iterate): ... this. Update all users.
42806
42807 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42808 to make it more readable. Rename to ...
42809 (grub_machine_mmap_iterate): ... this.
42810
42811 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42812 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42813 (grub_multiboot): Allocate an extra region after the payload, and fill
42814 it with a Multiboot memory map. Adjust a.out loader to calculate size
42815 with the extra space.
42816 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42817 with the extra space.
42818
42819 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42820
42821 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42822
42823 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42824
42825 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42826 mdate-sh to the list `find' searches for.
42827 * DISTLIST: Regenerated.
42828
42829 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42830
42831 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42832 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42833 genmoddep.awk, gensymlist.sh.in.
42834 (DISTDIRS): Add bus, docs, hook, lib.
42835 * DISTLIST: Regenerated.
42836 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42837
42838 2008-08-16 Robert Millan <rmh@aybabtu.com>
42839
42840 * disk/raid.c (grub_raid_init): Handle/report errors set by
42841 grub_device_iterate().
42842 * disk/lvm.c (grub_lvm_init): Likewise.
42843
42844 2008-08-15 Bean <bean123ch@gmail.com>
42845
42846 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42847 and datehook.mod.
42848 (datetime_mod_SOURCES): New macro.
42849 (datetime_mod_CFLAGS): Likewise.
42850 (datetime_mod_LDFLAGS): Likewise.
42851 (date_mod_SOURCES): Likewise.
42852 (date_mod_CFLAGS): Likewise.
42853 (date_mod_LDFLAGS): Likewise.
42854 (datehook_mod_SOURCES): Likewise.
42855 (datehook_mod_CFLAGS): Likewise.
42856 (datehook_mod_LDFLAGS): Likewise.
42857
42858 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42859 and datehook.mod.
42860 (datetime_mod_SOURCES): New macro.
42861 (datetime_mod_CFLAGS): Likewise.
42862 (datetime_mod_LDFLAGS): Likewise.
42863 (date_mod_SOURCES): Likewise.
42864 (date_mod_CFLAGS): Likewise.
42865 (date_mod_LDFLAGS): Likewise.
42866 (datehook_mod_SOURCES): Likewise.
42867 (datehook_mod_CFLAGS): Likewise.
42868 (datehook_mod_LDFLAGS): Likewise.
42869
42870 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42871 and datehook.mod.
42872 (datetime_mod_SOURCES): New macro.
42873 (datetime_mod_CFLAGS): Likewise.
42874 (datetime_mod_LDFLAGS): Likewise.
42875 (date_mod_SOURCES): Likewise.
42876 (date_mod_CFLAGS): Likewise.
42877 (date_mod_LDFLAGS): Likewise.
42878 (datehook_mod_SOURCES): Likewise.
42879 (datehook_mod_CFLAGS): Likewise.
42880 (datehook_mod_LDFLAGS): Likewise.
42881
42882 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42883 and datehook.mod.
42884 (datetime_mod_SOURCES): New macro.
42885 (datetime_mod_CFLAGS): Likewise.
42886 (datetime_mod_LDFLAGS): Likewise.
42887 (date_mod_SOURCES): Likewise.
42888 (date_mod_CFLAGS): Likewise.
42889 (date_mod_LDFLAGS): Likewise.
42890 (datehook_mod_SOURCES): Likewise.
42891 (datehook_mod_CFLAGS): Likewise.
42892 (datehook_mod_LDFLAGS): Likewise.
42893
42894 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42895 and datehook.mod.
42896 (datetime_mod_SOURCES): New macro.
42897 (datetime_mod_CFLAGS): Likewise.
42898 (datetime_mod_LDFLAGS): Likewise.
42899 (date_mod_SOURCES): Likewise.
42900 (date_mod_CFLAGS): Likewise.
42901 (date_mod_LDFLAGS): Likewise.
42902 (datehook_mod_SOURCES): Likewise.
42903 (datehook_mod_CFLAGS): Likewise.
42904 (datehook_mod_LDFLAGS): Likewise.
42905
42906 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42907
42908 * commands/date.c: New file.
42909
42910 * hook/datehook.c: Likewise.
42911
42912 * include/grub/lib/datetime.h: Likewise.
42913
42914 * include/grub/i386/cmos.h: Likewise.
42915
42916 * lib/datetime.c: Likewise.
42917
42918 * lib/i386/datetime.c: Likewise.
42919
42920 * lib/efi/datetime.c: Likewise.
42921
42922 2008-08-14 Robert Millan <rmh@aybabtu.com>
42923
42924 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42925 (grub_mkelfimage_SOURCES): New variable.
42926 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42927
42928 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42929 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42930 * conf/powerpc-ieee1275.rmk: Likewise.
42931 * conf/i386-ieee1275.rmk: Likewise.
42932
42933 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42934 * kern/i386/coreboot/init.c: Likewise.
42935
42936 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42937 with `<grub/cpu/kernel.h>'.
42938 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42939 to ...
42940 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42941 * kern/i386/coreboot/startup.S: Likewise.
42942
42943 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42944 (GRUB_MOD_GAP): Remove.
42945 * include/grub/powerpc/kernel.h: New file.
42946 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42947 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42948 * include/grub/i386/kernel.h: New file.
42949 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42950 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42951 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42952
42953 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42954 `grub-mkelfimage'.
42955 Use --directory when invoking grub_mkimage.
42956
42957 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42958 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42959 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42960 and GRUB_KERNEL_CPU_PREFIX.
42961
42962 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42963
42964 * include/grub/err.h (grub_err_printf): New function prototype.
42965 * util/misc.c (grub_err_printf): New function.
42966 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42967 grub_printf.
42968 * kern/err.c (grub_print_error): Use grub_err_printf.
42969
42970 2008-08-13 Robert Millan <rmh@aybabtu.com>
42971
42972 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42973
42974 2008-08-13 Robert Millan <rmh@aybabtu.com>
42975
42976 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
42977 boot entry.
42978
42979 2008-08-12 Robert Millan <rmh@aybabtu.com>
42980
42981 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
42982 of the relocation code from here ...
42983 (grub_multiboot): ... to here.
42984 (forward_relocator, backward_relocator): Move from here ...
42985 * kern/i386/loader.S (grub_multiboot_forward_relocator)
42986 (grub_multiboot_backward_relocator): ... to here.
42987 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
42988 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
42989 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
42990 (grub_multiboot_forward_relocator_end)
42991 (grub_multiboot_backward_relocator)
42992 (grub_multiboot_backward_relocator_end): New variables.
42993
42994 2008-08-12 Bean <bean123ch@gmail.com>
42995
42996 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
42997
42998 2008-08-11 Robert Millan <rmh@aybabtu.com>
42999
43000 * kern/i386/linuxbios/startup.S: Move from here ...
43001 * kern/i386/coreboot/startup.S: ... to here.
43002
43003 * kern/i386/linuxbios/init.c: Move from here ...
43004 * kern/i386/coreboot/init.c: ... to here.
43005
43006 * kern/i386/linuxbios/table.c: Move from here ...
43007 * kern/i386/coreboot/mmap.c: ... to here.
43008
43009 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43010
43011 2008-08-11 Robert Millan <rmh@aybabtu.com>
43012
43013 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43014 errors. Leave it to the upper layer to handle them.
43015
43016 2008-08-09 Christian Franke <franke@computer.org>
43017
43018 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43019 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43020 Install `grub.d/10_windows' only on Cygwin.
43021 * configure.ac: Add subst of `target_os'.
43022 Check `target_os' also before setting TARGET_OBJ2ELF.
43023 Add `--enable-grub-pe2elf'.
43024
43025 2008-08-08 Robert Millan <rmh@aybabtu.com>
43026
43027 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43028 (grub_last_time): Change type to grub_uint64_t.
43029 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43030 (grub_disk_close): Likewise.
43031
43032 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43033 (run_menu): Migrate code from to using grub_get_time_ms().
43034
43035 * util/misc.c (grub_get_time_ms): New function.
43036
43037 2008-08-08 Marco Gerards <marco@gnu.org>
43038
43039 * disk/ata.c (grub_ata_regget): Change return type to
43040 `grub_uint8_t'.
43041 (grub_ata_regget2): Likewise.
43042 (grub_ata_wait_status): New function.
43043 (grub_ata_wait_busy): Removed function, updated all users to use
43044 `grub_ata_wait_status'.
43045 (grub_ata_wait_drq): Likewise.
43046 (grub_ata_cmd): New function.
43047 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43048 error handling.
43049 (grub_ata_pio_write): Add error handling.
43050 (grub_atapi_identify): Likewise.
43051 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43052 handling.
43053 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43054 handling. Actually use the detected registers. Reorder the
43055 detection logic such that it is easier to read.
43056 (grub_ata_pciinit): Do not assign the same ID to each controller.
43057 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43058 handling.
43059 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43060
43061 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43062
43063 2008-08-08 Marco Gerards <marco@gnu.org>
43064
43065 * NEWS: Update.
43066
43067 2008-08-07 Bean <bean123ch@gmail.com>
43068
43069 * include/grub/x86_64/pci.h: New file.
43070
43071 2008-08-07 Christian Franke <franke@computer.org>
43072
43073 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43074 (TIMER2_GATE): Likewise.
43075 (grub_pit_wait): Add enable/disable of the timer2 gate
43076 bit of port 0x61. This fixes a possible infinite loop.
43077
43078 2008-08-07 Bean <bean123ch@gmail.com>
43079
43080 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43081 kern/i386/tsc.c and kern/i386/pit.c.
43082
43083 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43084 x86_64 platform.
43085
43086 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43087 <grub/i386/tsc.h>.
43088
43089 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43090
43091 2008-08-07 Bean <bean123ch@gmail.com>
43092
43093 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43094
43095 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43096
43097 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43098 multiple inclusion. Add #include <grub/types.h>.
43099
43100 2008-08-06 Christian Franke <franke@computer.org>
43101
43102 * conf/common.rmk: Build and install `10_windows'.
43103 * util/grub.d/10_windows.in: New script.
43104
43105 2008-08-06 Pavel Roskin <proski@gnu.org>
43106
43107 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43108
43109 2008-08-06 Robert Millan <rmh@aybabtu.com>
43110
43111 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43112 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43113
43114 2008-08-06 Bean <bean123ch@gmail.com>
43115
43116 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43117 (grub_pxefs_fs_int): Remove dummy definition.
43118 (grub_pxefs_open): Use data->block_size to store the current block
43119 size setting.
43120 (grub_pxefs_read): Use block size stored in data->block_size. As the
43121 value of grub_pxe_blksize can be changed after the file is opened.
43122
43123 2008-08-06 Bean <bean123ch@gmail.com>
43124
43125 * fs/i386/pc/pxe.c (curr_file): new variable.
43126 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43127 require the dummy internal file system anymore.
43128 (grub_pxefs_read): Removed.
43129 (grub_pxefs_close): Likewise.
43130 (grub_pxefs_fs_int): Likewise.
43131 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43132 connection when we switch file.
43133 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43134
43135 2008-08-06 Robert Millan <rmh@aybabtu.com>
43136
43137 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43138 `halt.mod'.
43139 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43140 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43141
43142 * kern/i386/halt.c: New file.
43143 * kern/i386/reboot.c: Likewise.
43144 * include/grub/i386/reboot.h: Likewise.
43145 * include/grub/i386/halt.h: Likewise.
43146
43147 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43148 Include `<grub/cpu/halt.h>'.
43149 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43150 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43151
43152 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43153 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43154 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43155 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43156 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43157 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43158 from here ...
43159 * include/grub/i386/at_keyboard.h: ... to here.
43160
43161 2008-08-05 Robert Millan <rmh@aybabtu.com>
43162
43163 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43164 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43165 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43166 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43167 `kern/generic/millisleep.c'.
43168
43169 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43170 instead of grub_get_rtc().
43171 (grub_tsc_init): Initialize `tsc_boot_time'.
43172
43173 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43174 (grub_machine_init): Use grub_tsc_init() rather than
43175 installing an RTC-based handler via grub_install_get_time_ms().
43176
43177 * kern/i386/pit.c: New file.
43178 * include/grub/i386/pit.h: Likewise.
43179
43180 2008-08-05 Bean <bean123ch@gmail.com>
43181
43182 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43183
43184 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43185 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43186 (pxe_mod_SOURCES): New macro.
43187 (pxe_mod_CFLAGS): Likewise.
43188 (pxe_mod_LDFLAGS): Likewise.
43189 (pxecmd_mod_SOURCES): Likewise.
43190 (pxecmd_mod_CFLAGS): Likewise.
43191 (pxecmd_mod_LDFLAGS): Likewise.
43192
43193 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43194 (grub_pxe_call): Likewise.
43195
43196 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43197
43198 * commands/i386/pc/pxecmd.c: New file.
43199
43200 * fs/i386/pc/pxe.c: Likewise.
43201
43202 * include/grub/i386/pc/pxe.h: Likewise.
43203
43204 2008-08-05 Bean <bean123ch@gmail.com>
43205
43206 * util/console.c (grub_console_cur_color): New variable.
43207 (grub_console_standard_color): Likewise.
43208 (grub_console_normal_color): Likewise.
43209 (grub_console_highlight_color): Likewise.
43210 (color_map): Likewise.
43211 (use_color): Likewise.
43212 (NUM_COLORS): New macro.
43213 (grub_ncurses_setcolorstate): Handle color properly.
43214 (grub_ncurses_setcolor): Don't change color here, just remember the
43215 settings, color will be set in grub_ncurses_setcolorstate.
43216 (grub_ncurses_getcolor): New function.
43217 (grub_ncurses_init): Initialize color pairs.
43218 (grub_ncurses_term): New member grub_ncurses_getcolor.
43219
43220 2008-08-05 Colin D Bennett <colin@gibibit.com>
43221
43222 High resolution timer support. Implemented for x86 CPUs using TSC.
43223 Extracted generic grub_millisleep() so it's linked in only as needed.
43224 This requires a Pentium compatible CPU; if the RDTSC instruction is
43225 not supported, then it falls back on the generic grub_get_time_ms()
43226 implementation that uses the machine's RTC.
43227
43228 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43229 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43230 `kern/generic/millisleep.c'.
43231
43232 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43233 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43234
43235 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43236 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43237
43238 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43239
43240 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43241 `kern/generic/millisleep.c'.
43242
43243 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43244
43245 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43246
43247 * kern/generic/rtc_get_time_ms.c: New file.
43248
43249 * kern/generic/millisleep.c: New file.
43250
43251 * kern/misc.c: Don't include
43252 <kern/time.h> anymore.
43253 (grub_millisleep_generic): Removed.
43254
43255 * commands/sleep.c (grub_interruptible_millisleep): Uses
43256 grub_get_time_ms() instead of grub_get_rtc().
43257
43258 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43259 function.
43260 (grub_cpu_is_cpuid_supported): New inline function.
43261 (grub_cpu_is_tsc_supported): New inline function.
43262 (grub_tsc_init): New function prototype.
43263 (grub_tsc_get_time_ms): New function prototype.
43264
43265 * kern/i386/tsc.c (grub_get_time_ms): New file.
43266
43267 * include/grub/time.h: Include <grub/types.h.
43268 (grub_millisleep_generic): Removed.
43269 (grub_get_time_ms): New prototype.
43270 (grub_install_get_time_ms): New prototype.
43271 (grub_rtc_get_time_ms): New prototype.
43272
43273 * kern/time.c (grub_get_time_ms): New function.
43274 (grub_install_get_time_ms): New function.
43275
43276 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43277 <grub/time.h> anymore.
43278 (grub_millisleep): Removed.
43279 (grub_machine_init): Call grub_tsc_init.
43280
43281 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43282 get_time_ms() implementation.
43283
43284 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43285 (ieee1275_get_time_ms): New function.
43286 (grub_machine_init): Install get_time_ms() implementation.
43287
43288 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43289 (grub_machine_init): Call grub_tsc_init().
43290 (grub_millisleep): Removed.
43291
43292 * kern/ieee1275/init.c (grub_millisleep): Removed.
43293 (grub_machine_init): Install ieee1275_get_time_ms()
43294 implementation.
43295 (ieee1275_get_time_ms): New function.
43296 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43297 real work.
43298
43299 2008-08-05 Marco Gerards <marco@gnu.org>
43300
43301 * disk/ata.c: Include <grub/pci.h>.
43302 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43303 (grub_ata_initialize): Rewritten.
43304 (grub_ata_device_initialize): New function.
43305
43306 2008-08-04 Pavel Roskin <proski@gnu.org>
43307
43308 * kern/main.c: Include grub/mm.h.
43309
43310 2008-08-04 Robert Millan <rmh@aybabtu.com>
43311
43312 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43313 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43314 corruption problem).
43315
43316 2008-08-04 Robert Millan <rmh@aybabtu.com>
43317
43318 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43319 warnings introduced in my last commit.
43320
43321 2008-08-03 Robert Millan <rmh@aybabtu.com>
43322
43323 Make PCI available on all i386 architectures.
43324
43325 * include/grub/i386/pc/pci.h: Move from here ...
43326 * include/grub/i386/pci.h: ... to here.
43327
43328 * include/grub/i386/pc/pci.h: Remove.
43329 * include/grub/i386/efi/pci.h: Remove.
43330 * include/grub/x86_64/efi/pci.h: Remove.
43331
43332 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43333 `<grub/cpu/pci.h>'.
43334
43335 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43336 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43337 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43338
43339 * conf/i386-ieee1275.rmk: Likewise.
43340
43341 2008-08-03 Robert Millan <rmh@aybabtu.com>
43342
43343 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43344 (grub_console_setcursor): Make it possible to set cursor off.
43345
43346 2008-08-03 Robert Millan <rmh@aybabtu.com>
43347
43348 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43349 of modules instead of assuming which platform provides what.
43350 * util/update-grub.in: Likewise.
43351
43352 2008-08-03 Robert Millan <rmh@aybabtu.com>
43353
43354 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43355 instead of `grub_install_dos_part' to determine whether a drive needs
43356 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43357 because it can be overridden when loading GRUB via Multiboot).
43358
43359 2008-08-02 Robert Millan <rmh@aybabtu.com>
43360
43361 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43362
43363 2008-08-02 Robert Millan <rmh@aybabtu.com>
43364
43365 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43366 of informational grub_dprintf() calls.
43367
43368 2008-08-02 Robert Millan <rmh@aybabtu.com>
43369
43370 * disk/memdisk.c (memdisk_size): Don't initialize.
43371 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43372
43373 * include/grub/i386/pc/kernel.h
43374 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43375 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43376 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43377 (grub_arch_memdisk_size): Remove.
43378
43379 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43380 field (was only used to transfer a constant). Add `type' field to
43381 support multiple module types.
43382 (grub_module_iterate): New function.
43383
43384 * kern/device.c (grub_device_open): Do not hide error messages
43385 when grub_disk_open() fails. Use grub_print_error() instead.
43386
43387 * kern/i386/pc/init.c (grub_arch_modules_addr)
43388 (grub_arch_memdisk_size): Remove functions.
43389 (grub_arch_modules_addr): Return the module address in high memory
43390 (now that it isn't copied anymore).
43391
43392 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43393 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43394 decompression routine (grub_total_module_size already includes that
43395 now). Don't copy modules back to low memory.
43396
43397 * kern/main.c: Include `<grub/mm.h>'.
43398 (grub_load_modules): Split out (and use) ...
43399 (grub_module_iterate): ... this function, which iterates through
43400 module objects and runs a hook.
43401 Comment out grub_mm_init_region() call, as it would cause non-ELF
43402 modules to be overwritten.
43403
43404 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43405 the memdisk image in its own region, make it part of the module list.
43406 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43407 (main): Parse --memdisk|-m option, and pass user-provided path as
43408 parameter to generate_image().
43409 (add_segments): Pass `memdisk_path' down to load_modules().
43410 (load_modules): Embed memdisk image in module section when requested.
43411 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43412 `header.type' instead of `header.offset'.
43413
43414 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43415 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43416 (memdisk_mod_LDFLAGS): New variables.
43417 * conf/i386-coreboot.rmk: Likewise.
43418 * conf/i386-ieee1275.rmk: Likewise.
43419
43420 2008-08-02 Robert Millan <rmh@aybabtu.com>
43421
43422 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43423 (backward_relocator): New variables. Used to allocate and relocate
43424 the payload, respectively.
43425 (grub_multiboot_load_elf32): Load into heap instead of requested
43426 address, install the appropriate relocator code in each bound of
43427 the payload, and set the entry point such that
43428 grub_multiboot_real_boot() will jump to one of them.
43429
43430 * kern/i386/loader.S (grub_multiboot_payload_size)
43431 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43432 (grub_multiboot_payload_entry_offset): New variables.
43433 (grub_multiboot_real_boot): Set cpu context to what the relocator
43434 expects, and jump to the relocator instead of the payload.
43435
43436 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43437 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43438 (grub_multiboot_payload_entry_offset): Export.
43439
43440 2008-08-01 Bean <bean123ch@gmail.com>
43441
43442 * normal/menu_entry.c (editor_getline): Don't return the original
43443 string as result, as it will be released by lexer once it has done
43444 using it.
43445
43446 2008-08-01 Robert Millan <rmh@aybabtu.com>
43447
43448 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43449 within menuentries, not before them.
43450 util/grub.d/10_hurd.in: Likewise.
43451
43452 2008-08-01 Bean <bean123ch@gmail.com>
43453
43454 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43455 (bufio_mod_SOURCES): New macro.
43456 (bufio_mod_CFLAGS): Likewise.
43457 (bufio_mod_LDFLAGS): Likewise.
43458
43459 * include/grub/bufio.h: New file.
43460
43461 * io/bufio.c: Likewise.
43462
43463 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43464 (grub_video_reader_png): Use grub_buffile_open to open file.
43465
43466 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43467 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43468
43469 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43470 (grub_video_reader_tga): Use grub_buffile_open to open file.
43471
43472 * font/manager.c: Include <grub/bufio.h>.
43473 (add_font): Use grub_buffile_open to open file.
43474
43475 2008-07-31 Robert Millan <rmh@aybabtu.com>
43476
43477 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43478 ELF segments, use a macro for arbitrarily accessing any of them instead
43479 of preparing a pointer that allows access to one at a time.
43480 (grub_multiboot_load_elf64): Likewise.
43481
43482 2008-07-31 Bean <bean123ch@gmail.com>
43483
43484 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43485 GRUB_KERNEL_MACHINE_DATA_END.
43486
43487 2008-07-30 Robert Millan <rmh@aybabtu.com>
43488
43489 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43490 Increase from 0x50 to 0x60.
43491 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43492 use UUIDs to identify the root drive for them. If that's not
43493 possible, abort.
43494 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43495 check, for cross-disk installs.
43496
43497 2008-07-30 Robert Millan <rmh@aybabtu.com>
43498
43499 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43500 is non-empty, use it to set the `prefix' environment variable instead
43501 of the usual approach.
43502 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43503 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43504 environment variable instead of dummy make_install_device().
43505
43506 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43507 (start): Insert a data section, with `grub_prefix' variable.
43508 * kern/i386/linuxbios/startup.S: Likewise.
43509
43510 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43511 New variable reference.
43512 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43513 New macro. Defines offset of `grub_prefix' within startup.S (relative
43514 to `start').
43515 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43516 section within startup.S (relative to `start').
43517 * include/grub/i386/coreboot/kernel.h: Likewise.
43518
43519 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43520 Overwrite grub_prefix with its contents, at the beginning of the
43521 first segment.
43522 (main): Understand -p|--prefix.
43523
43524 2008-07-30 Robert Millan <rmh@aybabtu.com>
43525
43526 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43527
43528 2008-07-30 Robert Millan <rmh@aybabtu.com>
43529
43530 * term/i386/pc/vga_text.c (grub_console_cls): Use
43531 grub_console_gotoxy() to go back to beginning of the screen.
43532 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43533
43534 2008-07-29 Christian Franke <franke@computer.org>
43535
43536 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43537 Add conversion of emulated mount points on Cygwin.
43538
43539 2008-07-29 Christian Franke <franke@computer.org>
43540
43541 * util/update-grub.in: Add a check for admin
43542 group on Cygwin.
43543 Remove old `grub.cfg.new' before creation.
43544 Add `-f' to `mv' to handle the different filesystem
43545 semantics of Windows.
43546
43547 2008-07-29 Bean <bean123ch@gmail.com>
43548
43549 * normal/main.c (get_line): Fix buffer overflow bug.
43550
43551 2008-07-28 Robert Millan <rmh@aybabtu.com>
43552
43553 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43554 (struct grub_apple_header): New struct. Describes the layout of
43555 the partmap header.
43556 (apple_partition_map_iterate): Check the header magic as well as the
43557 partition magic (which was already being checked).
43558
43559 2008-07-28 Pavel Roskin <proski@gnu.org>
43560
43561 * genmk.rb: Add a warning to the beginning of the output that
43562 it's a generated file and should not be edited.
43563
43564 2008-07-28 Robert Millan <rmh@aybabtu.com>
43565
43566 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43567 with the same number are found, just use issue a warning with
43568 grub_dprintf(), as this error has been reported to be non-fatal.
43569
43570 2008-07-27 Robert Millan <rmh@aybabtu.com>
43571
43572 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43573 information.
43574
43575 2008-07-27 Bean <bean123ch@gmail.com>
43576
43577 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43578 (grub_fat_find_dir): Ignore case when comparing filename.
43579
43580 2008-07-27 Bean <bean123ch@gmail.com>
43581
43582 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43583 smallino, as it's more descriptive, and i8count can be confused with
43584 the other field count.
43585 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43586 inode type.
43587
43588 2008-07-27 Bean <bean123ch@gmail.com>
43589
43590 * commands/crc.c: New file.
43591
43592 * lib/crc.c: Likewise.
43593
43594 * include/grub/lib/crc.h: Likewise.
43595
43596 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43597
43598 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43599 (hexdump): Move this function to ...
43600
43601 * lib/hexdump.c: ... here.
43602
43603 * include/grub/hexdump.h: Renamed to ...
43604
43605 * include/grub/lib/hexdump.h: ... this.
43606
43607 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43608
43609 * util/grub-editenv.c: Likewise.
43610
43611 * include/envblk.h: Renamed to ...
43612
43613 * include/lib/envblk.h: ... this.
43614
43615 * util/envblk.c: Renamed to ...
43616
43617 * lib/envblk.c: ... this.
43618
43619 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43620 lib/hexdump.c.
43621 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43622 (pkglib_MODULES): Add crc.mod.
43623 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43624 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43625 (crc_mod_SOURCES): New macro.
43626 (crc_mod_CFLAGS): Likewise.
43627 (crc_mod_LDFLAGS): Likewise.
43628
43629 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43630
43631 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43632
43633 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43634
43635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43636
43637 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43638
43639 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43640
43641 * commands/help.c: Include <grub/term.h>.
43642 (TERM_WIDTH): Removed. Updated all users.
43643
43644 2008-07-27 Pavel Roskin <proski@gnu.org>
43645
43646 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43647 spurious warnings about a comment within a comment.
43648
43649 2008-07-25 Robert Millan <rmh@aybabtu.com>
43650
43651 * util/getroot.c (find_root_device): Skip devices that match
43652 /dev/dm-[0-9]. This lets the real device be found for any type of
43653 abstraction (LVM, EVMS, RAID..).
43654 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43655 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43656 device is found first, find_root_device() will now skip it.
43657
43658 2008-07-24 Pavel Roskin <proski@gnu.org>
43659
43660 * include/grub/types.h: Use __builtin_bswap32() and
43661 __builtin_bswap64() with gcc 4.3 and newer.
43662
43663 2008-07-24 Christian Franke <franke@computer.org>
43664
43665 * util/i386/pc/grub-install.in: If `--debug' is specified,
43666 pass `--verbose' to grub-setup.
43667 Abort script if make_system_path_relative_to_its_root() fails.
43668
43669 2008-07-24 Bean <bean123ch@gmail.com>
43670
43671 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43672 variable `target_platform' should be `platform'.
43673
43674 2008-07-24 Bean <bean123ch@gmail.com>
43675
43676 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43677 (grub_png_init_fixed_block): New function.
43678 (grub_png_decode_image_data): Handle fixed huffman code compression.
43679
43680 2008-07-24 Bean <bean123ch@gmail.com>
43681
43682 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43683 (grub_pe2elf_SOURCES): New macro.
43684 (CLEANFILES): Add grub-pe2elf.
43685
43686 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43687 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43688 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43689 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43690 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43691 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43692 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43693 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43694 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43695 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43696 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43697 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43698 (GRUB_PE32_DT_FUNCTION): Likewise.
43699 (GRUB_PE32_REL_I386_DIR32): Likewise.
43700 (GRUB_PE32_REL_I386_REL32): Likewise.
43701 (grub_pe32_symbol): New structure.
43702 (grub_pe32_reloc): Likewise.
43703
43704 * util/grub-pe2elf.c: New file.
43705
43706 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43707 start symbol in non pc platform.
43708
43709 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43710
43711 The following patches are from Christian Franke.
43712
43713 * include/grub/dl.h: Remove .previous, gas supports this only
43714 for ELF format.
43715
43716 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43717 Remove .type, gas supports this only for ELF format.
43718
43719 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43720 nullbytes in symbol table. This fixes an infinite loop if table is
43721 zero filled.
43722
43723 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43724 TARGET_IMG_LDFLAGS and EXEEXT.
43725
43726 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43727 TARGET_IMG_LDFLAGS_AC.
43728 (grub_CHECK_STACK_ARG_PROBE): New function.
43729
43730 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43731
43732 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43733
43734 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43735 to set TARGET_IMG_LD* accordingly.
43736 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43737 Add call to grub_CHECK_STACK_ARG_PROBE.
43738 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43739
43740 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43741
43742 * genmk.rb: Add EXEEXT to CLEANFILES.
43743
43744 2008-07-23 Robert Millan <rmh@aybabtu.com>
43745
43746 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43747 define the codes for arrows and lines used for the menu).
43748 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43749 as well.
43750
43751 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43752 fonts, because the latter are too slow.
43753
43754 2008-07-21 Bean <bean123ch@gmail.com>
43755
43756 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43757 a20. Run keyboard test last, as it will cause macbook to halt.
43758
43759 2008-07-18 Pavel Roskin <proski@gnu.org>
43760
43761 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43762 load foreign architecture modules correctly anyway. Keep
43763 support for loading host architecture modules, whether we
43764 compile them or not.
43765
43766 2008-07-17 Pavel Roskin <proski@gnu.org>
43767
43768 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43769 change target_cpu. The compiler default can mismatch target_cpu
43770 in any case.
43771
43772 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43773 * kern/efi/efi.c: Likewise.
43774
43775 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43776 target compiler is functional.
43777 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43778 are set up.
43779
43780 * configure.ac: Default to efi platform for x86_64-apple. Allow
43781 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43782 adjustments from the rest, only do them if target is not
43783 explicitly given. Merge other adjustments with the final sanity
43784 check. Remove an extraneous check for supported CPU. Be
43785 specific which CPU and which platform is not supported.
43786
43787 * configure.ac: Default to pc platform for x86_64.
43788
43789 2008-07-17 Robert Millan <rmh@aybabtu.com>
43790
43791 Partial LinuxBIOS -> Coreboot rename.
43792
43793 * conf/i386-linuxbios.rmk: Renamed to ...
43794 * conf/i386-coreboot.rmk: ... this.
43795 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43796 * configure.ac: Accept "coreboot" as input platform (but maintain
43797 compatibility with "linuxbios").
43798 * include/grub/i386/linuxbios: Renamed to ...
43799 * include/grub/i386/coreboot: ... this.
43800
43801 2008-07-17 Bean <bean123ch@gmail.com>
43802
43803 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43804 (appleldr_mod_SOURCE): New variable.
43805 (appleldr_mod_CFLAGS): Likewise.
43806 (appleldr_mod_LDFLAGS): Likewise.
43807 (pci_mod_SOURCES): Likewise.
43808 (pci_mod_CFLAGS): Likewise.
43809 (pci_mod_LDFLAGS): Likewise.
43810 (lspci_mod_SOURCES): Likewise.
43811 (lspci_mod_CFLAGS): Likewise.
43812 (lspci_mod_LDFLAGS): Likewise.
43813
43814 * conf/x86_64-efi.rmk: New file.
43815
43816 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43817 macro.
43818 (grub_efidisk_write): Likewise.
43819
43820 * include/efi/api.h (efi_call_0): New macro.
43821 (efi_call_1): Likewise.
43822 (efi_call_2): Likewise.
43823 (efi_call_3): Likewise.
43824 (efi_call_4): Likewise.
43825 (efi_call_5): Likewise.
43826 (efi_call_6): Likewise.
43827
43828 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43829 grub_rescue_cmd_chainloader.
43830
43831 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43832 (grub_pe32_optional_header): Change some fields based on i386 or
43833 x86_64 platform.
43834 (GRUB_PE32_PE32_MAGIC): Likewise.
43835
43836 * include/grub/efi/uga_draw.h: New file.
43837
43838 * include/grub/elf.h (STN_ABS): New constant.
43839 (R_X86_64_NONE): Relocation constant for x86_64.
43840 (R_X86_64_64): Likewise.
43841 (R_X86_64_PC32): Likewise.
43842 (R_X86_64_GOT32): Likewise.
43843 (R_X86_64_PLT32): Likewise.
43844 (R_X86_64_COPY): Likewise.
43845 (R_X86_64_GLOB_DAT): Likewise.
43846 (R_X86_64_JUMP_SLOT): Likewise.
43847 (R_X86_64_RELATIVE): Likewise.
43848 (R_X86_64_GOTPCREL): Likewise.
43849 (R_X86_64_32): Likewise.
43850 (R_X86_64_32S): Likewise.
43851 (R_X86_64_16): Likewise.
43852 (R_X86_64_PC16): Likewise.
43853 (R_X86_64_8): Likewise.
43854 (R_X86_64_PC8): Likewise.
43855
43856 * include/grub/i386/efi/pci.h: New file.
43857
43858 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43859 Change it value based on platform.
43860 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43861 (GRUB_E820_RAM): Likewise.
43862 (GRUB_E820_RESERVED): Likewise.
43863 (GRUB_E820_ACPI): Likewise.
43864 (GRUB_E820_NVS): Likewise.
43865 (GRUB_E820_EXEC_CODE): Likewise.
43866 (GRUB_E820_MAX_ENTRY): Likewise.
43867 (grub_e820_mmap): New structure.
43868 (linux_kernel_header): Change the efi field according to different
43869 kernel version, also field from linux_kernel_header.
43870
43871 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43872
43873 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43874 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43875 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43876 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43877 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43878 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43879 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43880 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43881 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43882 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43883
43884 * include/grub/x86_64/efi/kernel.h: New file.
43885
43886 * include/grub/x86_64/efi/loader.h: Likewise.
43887
43888 * include/grub/x86_64/efi/machine.h: Likewise.
43889
43890 * include/grub/x86_64/efi/pci.h: Likewise.
43891
43892 * include/grub/x86_64/efi/time.h: Likewise.
43893
43894 * include/grub/x86_64/linux.h: Likewise.
43895
43896 * include/grub/x86_64/setjmp.h: Likewise.
43897
43898 * include/grub/x86_64/time.h: Likewise.
43899
43900 * include/grub/x86_64/types.h: Likewise.
43901
43902 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43903 GRUB_TARGET_SIZEOF_VOID_P.
43904
43905 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43906 (grub_efi_locate_handle): Likewise.
43907 (grub_efi_open_protocol): Likewise.
43908 (grub_efi_set_text_mode): Likewise.
43909 (grub_efi_stall): Likewise.
43910 (grub_exit): Likewise.
43911 (grub_reboot): Likewise.
43912 (grub_halt): Likewise.
43913 (grub_efi_exit_boot_services): Likewise.
43914 (grub_get_rtc): Likewise.
43915
43916 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43917 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43918 (grub_efi_allocate_pages): Wrap efi calls.
43919 (grub_efi_free_pages): Wrap efi calls.
43920 (grub_efi_get_memory_map): Wrap efi calls.
43921
43922 * kern/x86_64/dl.c: New file.
43923
43924 * kern/x86_64/efi/callwrap.S: Likewise.
43925
43926 * kern/x86_64/efi/startup.S: Likewise.
43927
43928 * loader/efi/appleloader.c: Likewise.
43929
43930 * loader/efi/chainloader.c (cmdline): New variable.
43931 (grub_chainloader_unload): Wrap efi calls.
43932 (grub_chainloader_boot): Likewise.
43933 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43934 command line.
43935
43936 * loader/efi/chainloader_normal.c (chainloader_command):
43937 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43938 command line.
43939
43940 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43941 method.
43942 (grub_e820_add_region): New function.
43943 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43944 booting.
43945 (grub_find_video_card): New function.
43946 (grub_linux_setup_video): New function.
43947 (grub_rescue_cmd_linux): Probe for video information.
43948
43949 * normal/x86_64/setjmp.S: New file.
43950
43951 * term/efi/console.c (map_char): New function.
43952 (grub_console_putchar): Map unicode char.
43953 (grub_console_checkkey): Wrap efi calls.
43954 (grub_console_getkey): Likewise.
43955 (grub_console_getwh): Likewise.
43956 (grub_console_gotoxy): Likewise.
43957 (grub_console_cls): Likewise.
43958 (grub_console_setcolorstate): Likewise.
43959 (grub_console_setcursor): Likewise.
43960
43961 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43962
43963 2008-07-16 Pavel Roskin <proski@gnu.org>
43964
43965 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43966 format strings.
43967
43968 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43969 pointer, not an integer. This fixes a warning and prevents
43970 precision loss on 64-bit systems.
43971 (relocate_addresses): Remove unneeded cast.
43972
43973 2008-07-15 Pavel Roskin <proski@gnu.org>
43974
43975 * kern/i386/ieee1275/init.c: Include grub/cache.h.
43976
43977 * term/ieee1275/ofconsole.c: Disable code unused on i386.
43978
43979 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
43980 Fix comparison between signed and unsigned.
43981
43982 * include/grub/i386/ieee1275/console.h: Declare
43983 grub_console_init() and grub_console_fini().
43984
43985 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
43986 It's empty and unused.
43987
43988 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
43989 beginning to avoid warnings with some compilers.
43990
43991 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
43992 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
43993
43994 2008-07-14 Pavel Roskin <proski@gnu.org>
43995
43996 * kern/env.c (grub_register_variable_hook): Don't copy empty
43997 string, it leaks memory. Pass "" to grub_env_set(), it should
43998 handle constant strings.
43999
44000 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44001 * commands/cmp.c (grub_cmd_cmp): Likewise.
44002 * kern/dl.c (grub_dl_flush_cache): Likewise.
44003 (grub_dl_load_core): Likewise.
44004 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44005 (grub_elf64_load_phdrs): Likewise.
44006
44007 2008-07-13 Pavel Roskin <proski@gnu.org>
44008
44009 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44010 between signed and unsigned.
44011 (LzmaEnc_Finish): Fix warning about an unused parameter.
44012
44013 2008-07-13 Bean <bean123ch@gmail.com>
44014
44015 * Makefile.in (enable_lzo): New rule.
44016
44017 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44018
44019 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44020
44021 * boot/i386/pc/lnxboot.S: #include <config.h>.
44022
44023 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44024 its value according to the compression algorithm used, lzo or lzma.
44025
44026 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44027 compression algorithm according to configure macro.
44028
44029 * kern/i386/pc/startup.S (codestart): Likewise.
44030
44031 * kern/i386/pc/lzma_decode.S: New file.
44032
44033 * include/grub/lib/LzFind.h: Likewise.
44034
44035 * include/grub/lib/LzHash.h: Likewise.
44036
44037 * include/grub/lib/LzmaDec.h: Likewise.
44038
44039 * include/grub/lib/LzmaEnc.h: Likewise.
44040
44041 * include/grub/lib/LzmaTypes.h: Likewise.
44042
44043 * lib/LzFind.c: Likewise.
44044
44045 * lib/LzmaDec.c: Likewise.
44046
44047 * lib/LzmaEnc.c: Likewise.
44048
44049 2008-07-13 Bean <bean123ch@gmail.com>
44050
44051 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44052 (grub_ext4_extent_header): New structure.
44053 (grub_ext4_extent): Likewise.
44054 (grub_ext4_extent_idx): Likewise.
44055 (grub_ext4_find_leaf): New function.
44056 (grub_ext2_read_block): Handle extents.
44057
44058 2008-07-12 Robert Millan <rmh@aybabtu.com>
44059
44060 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44061
44062 2008-07-11 Robert Millan <rmh@aybabtu.com>
44063
44064 * util/grub.d/40_custom.in: New file. Example on how to add custom
44065 entries to /etc/grub.d.
44066 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44067 40_custom (implicitly, by merging all the grub.d rules).
44068
44069 2008-07-11 Pavel Roskin <proski@gnu.org>
44070
44071 * commands/read.c (grub_getline): Fix invalid memory access.
44072 Don't add newline to the variable value.
44073
44074 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44075 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44076 (serial_hw_get_port): Check validity of the port number.
44077 (grub_cmd_serial): Check return value of serial_hw_get_port().
44078
44079 2008-07-07 Pavel Roskin <proski@gnu.org>
44080
44081 * boot/i386/pc/diskboot.S (notification_string): Replace
44082 "Loading kernel" with just "loading". This is shorter, less
44083 confusing and saves a few bytes for possible future changes.
44084
44085 2008-07-05 Pavel Roskin <proski@gnu.org>
44086
44087 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44088 size for ATAPI devices, they are undefined. Output sector
44089 number in decimal form.
44090
44091 * disk/ata.c: Use named constants for status bits.
44092
44093 2008-07-04 Pavel Roskin <proski@gnu.org>
44094
44095 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44096 grub_addr_t before casting it to the void pointer to fix a
44097 warning. Non-addressable regions are discarded earlier.
44098 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44099 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44100 (check_signature): Don't shadow table_header.
44101 (grub_linuxbios_table_iterate): Cast numeric constants to
44102 grub_linuxbios_table_header_t.
44103 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44104 grub_stop().
44105
44106 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44107 prevent warnings.
44108
44109 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44110 pointer, which can cause warnings. Support 64-bit addresses.
44111
44112 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44113 of sizeof(long). This fixes PowerPC image generation on x86_64.
44114
44115 2008-07-04 Robert Millan <rmh@aybabtu.com>
44116
44117 This fixes a performance issue when pc & gpt partmap iterators
44118 didn't abort iteration even after our hook found what it was
44119 looking for (often causing expensive probes of non-existent drives).
44120
44121 Some callers relied on previous buggy behaviour, since they would
44122 raise an error when their own hooks caused early abortion of its
44123 iteration.
44124
44125 * kern/device.c (grub_device_open): Improve error message.
44126 * disk/lvm.c (grub_lvm_open): Likewise.
44127 * disk/raid.c (grub_raid_open): Likewise.
44128
44129 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44130 when hook requests it, independently of grub_errno.
44131 (pc_partition_map_probe): Do not fail when find_func() caused
44132 early abortion of pc_partition_map_iterate().
44133
44134 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44135 when hook requests it, independently of grub_errno.
44136 (gpt_partition_map_probe): Do not fail when find_func() caused
44137 early abortion of gpt_partition_map_iterate().
44138
44139 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44140 when hook requests it, independently of grub_errno. Do not fail when
44141 part_map_iterate_hook() caused early abortion of p->iterate().
44142
44143 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44144 when grub_partition_iterate() returned with non-zero.
44145
44146 2008-07-03 Pavel Roskin <proski@gnu.org>
44147
44148 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44149 like we do in grub_ata_pio_read().
44150 (grub_ata_readwrite): Always write individual sectors. Fix the
44151 sector count for the remainder.
44152 (grub_ata_write): Enable writing to ATA devices. Correctly
44153 report error for ATAPI devices.
44154
44155 2008-07-02 Pavel Roskin <proski@gnu.org>
44156
44157 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44158 warning.
44159
44160 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44161 for every read sector, we already increment it for the whole
44162 batch. This fixes reading more than 256 sectors at once.
44163
44164 * util/grub-editenv.c (cmd_info): Cast argument to long
44165 explicitly. ptrdiff_t reduces to int on i386.
44166
44167 * util/grub-editenv.c (main): Be specific which parameter is
44168 missing.
44169
44170 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44171 (memdisk): Make memdisk_orig_addr a pointer.
44172
44173 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44174 for file offsets, use grub_off_t instead. Fix printf format
44175 warnings.
44176
44177 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44178 there. Real unexpected warnings should not drown in the noise
44179 about known problems.
44180
44181 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44182 grub_disk_addr_t for memory addresses.
44183
44184 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44185 explicitly to fix a warning.
44186
44187 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44188
44189 * Makefile.in (MODULE_LDFLAGS): New variable.
44190 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44191 the linker accepts --build-id=none.
44192 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44193 MODULE_LDFLAGS.
44194 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44195
44196 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44197 those in Linux XFS code. Provide a way to access 64-bit parent
44198 inode.
44199 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44200 the end of struct grub_xfs_dir_header.
44201
44202 2008-07-02 Bean <bean123ch@gmail.com>
44203
44204 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44205 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44206 and GRUB_IEEE1275_FLAG_NO_ANSI.
44207
44208 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44209 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44210 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44211
44212 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44213 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44214
44215 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44216 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44217
44218 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44219 esc sequence on non ANSI terminal.
44220 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44221
44222 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44223 beginning of file.
44224
44225 2008-07-02 Bean <bean123ch@gmail.com>
44226
44227 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44228 (grub_editenv_SOURCES): New variable.
44229 (pkglib_MODULES): Add loadenv.mod.
44230 (loadenv_mod_SOURCES): New variable.
44231 (loadenv_mod_CFLAGS): Likewise.
44232 (loadenv_mod_LDFLAGS): Likewise.
44233
44234 * include/grub/envblk.h: New file.
44235
44236 * util/envblk.c: New file.
44237
44238 * util/grub-editenv.c: New file.
44239
44240 * commands/loadenv.c: New file.
44241
44242 2008-07-01 Pavel Roskin <proski@gnu.org>
44243
44244 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44245 not unsigned char. This fixes warnings and is consistent with
44246 other tags.
44247
44248 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44249
44250 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44251
44252 * term/tparm.c (analyze): Always set *popcount.
44253
44254 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44255 cast to fix a warning.
44256
44257 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44258 cast to suppress a warning.
44259
44260 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44261 grub_fshelp_read_file() expects.
44262
44263 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44264 write uuid as a 32-bit value in CPU byte order, so declare and
44265 use it as such.
44266
44267 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44268 long if the format specifier expects it.
44269 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44270 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44271 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44272 long to fix a warning.
44273 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44274 grub_dprintf() arguments to fix warnings.
44275
44276 2008-06-30 Pavel Roskin <proski@gnu.org>
44277
44278 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44279 install_bsd_part immediately before core.img is embedded or
44280 modified on disk. This fixes core.img verification if core.img
44281 cannot be embedded.
44282
44283 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44284 core_path to calculate the blocklist.
44285 Patch from Javier Martín <lordhabbit@gmail.com>
44286
44287 2008-06-29 Robert Millan <rmh@aybabtu.com>
44288
44289 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44290 block to disk block.
44291 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44292 Patch from Niels Böhm <bitbucket@arcor.de>
44293
44294 2008-06-29 Robert Millan <rmh@aybabtu.com>
44295
44296 * util/update-grub_lib.in (font_path): Search for fonts in
44297 /boot/grub first, which is more likely to be readable (we aren't
44298 deciding where fonts live, just looking for them).
44299
44300 2008-06-26 Pavel Roskin <proski@gnu.org>
44301
44302 * util/biosdisk.c (read_device_map): Don't leave dead map
44303 entries for devices failing stat() check.
44304
44305 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44306 core_path_dev for the core.img path on the target device.
44307
44308 2008-06-26 Robert Millan <rmh@aybabtu.com>
44309
44310 * disk/fs_uuid.c: New file.
44311 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44312 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44313 (fs_uuid_mod_LDFLAGS): New variables.
44314 * include/grub/disk.h (grub_disk_dev_id): Add
44315 `GRUB_DISK_DEVICE_UUID_ID'.
44316 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44317 implement iterate().
44318
44319 2008-06-26 Robert Millan <rmh@aybabtu.com>
44320
44321 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44322 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44323 Linux image includes no initrd.
44324
44325 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44326
44327 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44328 call to resolve the core image location that effectively appended the
44329 name twice.
44330
44331 2008-06-21 Robert Millan <rmh@aybabtu.com>
44332
44333 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44334 call from here ...
44335
44336 * util/grub.d/10_hurd.in: ... to here ...
44337 * util/grub.d/10_linux.in: ... and here.
44338
44339 2008-06-19 Robert Millan <rmh@aybabtu.com>
44340
44341 * kern/main.c (grub_main): Export `prefix' variable immediately
44342 after it has been set by grub_machine_set_prefix().
44343
44344 2008-06-19 Robert Millan <rmh@aybabtu.com>
44345
44346 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44347 search result when not saving to variable, not the other way around.
44348 When saving to variable, abort iteration as soon as a match is found.
44349
44350 2008-06-19 Robert Millan <rmh@aybabtu.com>
44351
44352 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44353 check for partition that provides /boot/grub. Its logic is flawed,
44354 as it prevents prepare_grub_to_access_device() from being called
44355 multiple times.
44356
44357 2008-06-19 Robert Millan <rmh@aybabtu.com>
44358
44359 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44360 "insmod" command directly when abstraction modules are needed,
44361 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44362 since it had already been processed).
44363
44364 2008-06-19 Pavel Roskin <proski@gnu.org>
44365
44366 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44367 changed. This is needed in case GRUB_LIBDIR changes.
44368 * conf/i386-ieee1275.rmk: Likewise.
44369 * conf/i386-linuxbios.rmk: Likewise.
44370 * conf/i386-pc.rmk: Likewise.
44371 * conf/powerpc-ieee1275.rmk: Likewise.
44372
44373 2008-06-18 Pavel Roskin <proski@gnu.org>
44374
44375 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44376 kernel_elf_symlist.c to symlist.c for consistency with other
44377 architectures. Update all users.
44378 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44379
44380 2008-06-18 Robert Millan <rmh@aybabtu.com>
44381
44382 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44383 it in prefix.
44384
44385 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44386 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44387 a RAID device, run setup() for all members independently on whether
44388 LVM abstraction is being used.
44389 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44390 If grub-mkimage has set `*install_dos_part == -2', don't override this
44391 value.
44392 Perform *install_dos_part adjustments independently on whether
44393 we're embedding or not.
44394 Clarify error message when image is too big for embedding.
44395 Remove duplicate *install_dos_part stanza.
44396
44397 2008-06-17 Robert Millan <rmh@aybabtu.com>
44398
44399 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44400 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44401 variables.
44402 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44403 values in grub_ofconsole_normal_color and
44404 grub_ofconsole_highlight_color (they're not directly related to
44405 background and foreground).
44406 (grub_ofconsole_setcolorstate): Extract background and foreground
44407 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44408
44409 2008-06-17 Robert Millan <rmh@aybabtu.com>
44410
44411 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44412 /boot/grub for the check in last commit, not /boot (they could be
44413 different partitions).
44414
44415 2008-06-16 Robert Millan <rmh@aybabtu.com>
44416
44417 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44418 asked to setup access for the same partition that provides /boot,
44419 don't bother using UUIDs since our root already has the value we
44420 want.
44421
44422 2008-06-16 Robert Millan <rmh@aybabtu.com>
44423
44424 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44425 I2O devices.
44426 Patch from Sven Mueller <sven@debian.org>.
44427
44428 2008-06-16 Robert Millan <rmh@aybabtu.com>
44429
44430 * util/update-grub.in: Check for $EUID instead of $UID.
44431 Reported by Vincent Zweije.
44432
44433 2008-06-16 Bean <bean123ch@gmail.com>
44434
44435 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44436 (grub_ext2_read_block): Likewise.
44437 (grub_ext2_read_inode): Likewise.
44438 (grub_ext2_mount): Likewise.
44439 (grub_ext2_close): Likewise.
44440 (grub_ext3_get_journal): Removed.
44441
44442 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44443 (grub_reiserfs_read_symlink): Likewise.
44444 (grub_reiserfs_mount): Likewise.
44445 (grub_reiserfs_open): Likewise.
44446 (grub_reiserfs_read): Likewise.
44447 (grub_reiserfs_close): Likewise.
44448 (grub_reiserfs_get_journal): Removed.
44449
44450 * fs/fshelp.c (grub_fshelp_read): Removed.
44451 (grub_fshelp_map_block): Likewise.
44452
44453 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44454 (grub_fshelp_journal): Likewise.
44455 (grub_fshelp_read): Likewise.
44456 (grub_fshelp_map_block): Likewise.
44457
44458 2008-06-16 Pavel Roskin <proski@gnu.org>
44459
44460 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44461 floating point anymore.
44462 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44463
44464 2008-06-15 Pavel Roskin <proski@gnu.org>
44465
44466 * commands/ls.c (grub_ls_list_files): Use integer calculations
44467 for human readable format, avoid floating point use.
44468 * kern/misc.c (grub_ftoa): Remove.
44469 (grub_vsprintf): Remove floating point support.
44470
44471 2008-06-15 Robert Millan <rmh@aybabtu.com>
44472
44473 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44474 devices.
44475 Reported by Max Vozeler.
44476
44477 2008-06-15 Robert Millan <rmh@aybabtu.com>
44478
44479 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44480 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44481 skipped later.
44482 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44483 the beginning of the prefix.
44484
44485 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44486 It is assumed that if we have a memdisk, grub-mkimage has set
44487 grub_prefix to include the "(memdisk)" drive in it.
44488
44489 2008-06-15 Robert Millan <rmh@aybabtu.com>
44490
44491 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44492 Initialize keyboard controller after registering the terminal, so that
44493 grub_printf() can be called from grub_keyboard_controller_init().
44494
44495 2008-06-15 Robert Millan <rmh@aybabtu.com>
44496
44497 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44498 extent-btree which is written as big endian on disk.
44499 Reported by Alain Greppin <al@chilibi.org>.
44500
44501 2008-06-14 Robert Millan <rmh@aybabtu.com>
44502
44503 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44504 * util/i386/pc/grub-install.in (modules): Likewise.
44505
44506 2008-06-13 Pavel Roskin <proski@gnu.org>
44507
44508 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44509
44510 2008-06-13 Bean <bean123ch@gmail.com>
44511
44512 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44513
44514 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44515
44516 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44517 to indicate sparse block.
44518
44519 2008-06-12 Pavel Roskin <proski@gnu.org>
44520
44521 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44522 number, grub_fshelp_read() does it for us.
44523
44524 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44525 linear disk read with journal translation.
44526 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44527 * include/grub/fshelp.h: Declare grub_fshelp_read().
44528
44529 2008-06-09 Pavel Roskin <proski@gnu.org>
44530
44531 * fs/minix.c (grub_minix_mount): Handle error reading
44532 superblock.
44533
44534 2008-06-08 Robert Millan <rmh@aybabtu.com>
44535
44536 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44537 don't append the RAID prefix afterwards.
44538 Reported by Clint Adams.
44539
44540 2008-06-08 Robert Millan <rmh@aybabtu.com>
44541
44542 Based on description from Pavel:
44543 * kern/disk.c (grub_disk_check_range): Rename to ...
44544 (grub_disk_adjust_range): ... this. Add a comment explaining the
44545 tasks performed by this function.
44546
44547 2008-06-08 Robert Millan <rmh@aybabtu.com>
44548
44549 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44550 `num_serial' (for consistency with other variables).
44551 (struct grub_ntfs_data): Add `uuid' member.
44552 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44553 (grub_ntfs_uuid): New function.
44554 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44555
44556 2008-06-07 Pavel Roskin <proski@gnu.org>
44557
44558 * util/biosdisk.c (open_device): Revert last change to the
44559 function, it broke installation. The sector needs to be
44560 different dependent on which device is opened.
44561
44562 2008-06-06 Robert Millan <rmh@aybabtu.com>
44563
44564 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44565 rest of GRUB, and breakage doesn't happen if its value were modified.
44566
44567 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44568 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44569 a constant (same value).
44570 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44571 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44572
44573 2008-06-06 Robert Millan <rmh@aybabtu.com>
44574
44575 * util/biosdisk.c (open_device): Do not modify sector offset when
44576 accessing a partition. kern/disk.c already handles this for us.
44577
44578 2008-06-06 Robert Millan <rmh@aybabtu.com>
44579
44580 * util/grub-emu.c (grub_machine_init): Move code in this function from
44581 here ...
44582 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44583 segfault in case grub_printf() is called).
44584
44585 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44586 grub_probe. Update all users not to explicitly add it again.
44587 (grub_device): New variable; contains corresponding device for grubdir.
44588 (fs_module, partmap_module, devabstraction_module): Pass
44589 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44590 every time.
44591
44592 2008-06-05 Robert Millan <rmh@aybabtu.com>
44593
44594 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44595 is found, print it (same layout as with labels).
44596
44597 2008-06-04 Robert Millan <rmh@aybabtu.com>
44598
44599 * util/biosdisk.c (get_drive): Rename to ...
44600 (find_grub_drive): ... this. Update all users.
44601
44602 (get_os_disk): Rename to ...
44603 (convert_system_partition_to_system_disk): ... this. Update all users.
44604
44605 (find_drive): Rename to ...
44606 (find_system_device): ... this. Update all users.
44607
44608 2008-06-04 Robert Millan <rmh@aybabtu.com>
44609
44610 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44611 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44612 (make_device_map): Likewise.
44613
44614 2008-06-01 Robert Millan <rmh@aybabtu.com>
44615
44616 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44617 before dereferencing it.
44618
44619 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44620 union with fat12/fat16-specific ones. Add some new fields, including
44621 `num_serial' for both versions.
44622 (struct grub_fat_data): Add `uuid' member.
44623 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44624 names. Initialize `data->uuid' using `num_serial'.
44625 (grub_fat_uuid): New function.
44626 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44627
44628 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44629 (grub_reiserfs_uuid): New function.
44630 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44631 member.
44632
44633 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44634 (grub_xfs_uuid): New function.
44635 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44636
44637 2008-06-01 Robert Millan <rmh@aybabtu.com>
44638
44639 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44640 code that is backward compatible with pre-uuid search command.
44641
44642 2008-05-31 Robert Millan <rmh@aybabtu.com>
44643
44644 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44645 floppies after everything else, to ensure floppy drive isn't accessed
44646 unnecessarily (patch from Bean).
44647
44648 2008-05-31 Robert Millan <rmh@aybabtu.com>
44649
44650 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44651 not print device names when we were asked to set a variable.
44652
44653 2008-05-31 Robert Millan <rmh@aybabtu.com>
44654
44655 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44656 using "cursor-on" and "cursor-off" commands (understood at least by
44657 the Open Firmware flavour on OLPC).
44658
44659 2008-05-31 Michael Gorven <michael@gorven.za.net>
44660
44661 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44662 on and off sequences.
44663
44664 2008-05-31 Robert Millan <rmh@aybabtu.com>
44665
44666 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44667 * util/update-grub.in: Likewise.
44668
44669 2008-05-30 Pavel Roskin <proski@gnu.org>
44670
44671 * util/biosdisk.c (linux_find_partition): Simplify logic and
44672 make the code more universal. Keep special processing for
44673 devfs, but use a simple rule for all other devices. If the
44674 device ends with a number, append 'p' and the partition number.
44675 Otherwise, append only the partition number.
44676
44677 2008-05-30 Robert Millan <rmh@aybabtu.com>
44678
44679 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44680 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44681 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44682 the `root' parameter to Linux.
44683
44684 2008-05-30 Robert Millan <rmh@aybabtu.com>
44685
44686 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44687 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44688 --fs_uuid with --fs-uuid.
44689 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44690 all filesystems support them).
44691
44692 2008-05-30 Robert Millan <rmh@aybabtu.com>
44693
44694 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44695 grub_printf() flags, since we're printing in units of 2 bytes.
44696
44697 2008-05-30 Robert Millan <rmh@aybabtu.com>
44698
44699 * util/grub.d/00_header.in: Remove obsolete comment referencing
44700 convert_system_path_to_grub_path().
44701 * util/update-grub.in: Likewise.
44702 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44703 (convert_system_path_to_grub_path): Add a warning message explaining
44704 that this function is deprecated. Rely on is_path_readable_by_grub()
44705 for the readability checks.
44706 (font_path): Use is_path_readable_by_grub() for the readability
44707 check rather than convert_system_path_to_grub_path().
44708
44709 2008-05-30 Robert Millan <rmh@aybabtu.com>
44710
44711 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44712 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44713 converting it first.
44714 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44715 grub.cfg for access to font file, and afterwards call it again to set
44716 the root device.
44717
44718 2008-05-30 Robert Millan <rmh@aybabtu.com>
44719
44720 * commands/search.c (options): Add --fs_uuid option.
44721 (search_fs_uuid): New function.
44722 (grub_cmd_search): Fix --set argument passing.
44723 Use search_fs_uuid() when requested via --fs_uuid.
44724 (grub_search_init): Update help message.
44725 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44726 and redeclare it as an array of 16-bit words.
44727 (grub_ext2_uuid): New function.
44728 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44729 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44730 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44731 (GRUB_DEVICE_BOOT_UUID): New variables.
44732 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44733 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44734 whenever possible.
44735 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44736 just assume `root' variable has the right value.
44737 * util/grub.d/10_linux.in: Likewise.
44738 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44739 via PRINT_FS_UUID.
44740 (main): Recognise `-t fs_uuid' argument.
44741
44742 2008-05-30 Robert Millan <rmh@aybabtu.com>
44743
44744 * util/biosdisk.c (map): Redefine structure to hold information
44745 about GRUB drive name.
44746 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44747 drive names.
44748 (call_hook): Remove.
44749 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44750 member. Assume drive has partitions.
44751 (grub_util_biosdisk_open): Access device names via `.device' struct
44752 member.
44753 (open_device): Likewise.
44754 (find_drive): Likewise.
44755 (read_device_map): Adjust map[] usage to match the new struct
44756 definition. Don't check for duplicates (still possible, but not cheap
44757 anymore).
44758 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44759 (make_device_name): Remove assumption of BIOS-like drive names.
44760
44761 2008-05-30 Pavel Roskin <proski@gnu.org>
44762
44763 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44764 compiling execute.c doesn't need grub_script.tab.h anymore.
44765 (normal/command.c_DEPENDENCIES): Likewise.
44766 (normal/function.c_DEPENDENCIES): Likewise.
44767 * conf/i386-ieee1275.rmk: Likewise.
44768 * conf/i386-linuxbios.rmk: Likewise.
44769 * conf/i386-pc.rmk: Likewise.
44770 * conf/powerpc-ieee1275.rmk: Likewise.
44771 * conf/sparc64-ieee1275.rmk: Likewise.
44772
44773 2008-05-29 Pavel Roskin <proski@gnu.org>
44774
44775 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44776 when scanning metadata for volume group name.
44777
44778 * include/grub/script.h: Don't include grub_script.tab.h. It's
44779 a generated file, which may only be included from the files with
44780 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44781 use union YYSTYPE, as the later allows forward declaration.
44782 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44783
44784 2008-05-29 Robert Millan <rmh@aybabtu.com>
44785
44786 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44787 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44788 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44789 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44790 scan codes.
44791
44792 2008-05-29 Robert Millan <rmh@aybabtu.com>
44793
44794 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44795 control key combinations.
44796
44797 2008-05-29 Robert Millan <rmh@aybabtu.com>
44798
44799 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44800 * util/ieee1275/grub-install.in: ... to here.
44801 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44802 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44803 (grub_install_SOURCES): Likewise.
44804
44805 2008-05-29 Robert Millan <rmh@aybabtu.com>
44806
44807 * fs/affs.c: Update copyright year.
44808 * fs/ext2.c: Likewise.
44809 * fs/fshelp.c: Likewise.
44810 * fs/hfsplus.c: Likewise.
44811 * fs/ntfs.c: Likewise.
44812 * fs/xfs.c: Likewise.
44813 * include/grub/fshelp.h: Likewise.
44814 * util/grub-mkdevicemap.c: Likewise.
44815
44816 2008-05-28 Robert Millan <rmh@aybabtu.com>
44817
44818 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44819 might need to be fatfs to support some firmware implementations
44820 (e.g. OFW or EFI).
44821
44822 2008-05-28 Robert Millan <rmh@aybabtu.com>
44823
44824 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44825 devices.
44826 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44827 (make_device_map): Likewise.
44828
44829 2008-05-20 Bean <bean123ch@gmail.com>
44830
44831 * fs/fshelp.c (grub_fshelp_map_block): New function.
44832 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44833 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44834
44835 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44836 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44837 (grub_fshelp_journal): New structure.
44838 (grub_fshelp_map_block): New function prototype.
44839 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44840 (grub_fshelp_map_block): Likewise.
44841
44842 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44843 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44844 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44845 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44846 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44847 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44848 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44849 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44850 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44851 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44852 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44853 (grub_ext2_sblock): New members for journal support.
44854 (grub_ext3_journal_header): New structure.
44855 (grub_ext3_journal_revoke_header): Likewise.
44856 (grub_ext3_journal_block_tag): Likewise.
44857 (grub_ext3_journal_sblock): Likewise.
44858 (grub_fshelp_node): New members logfile and journal.
44859 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44860 grub_fshelp_map_block to get real block number.
44861 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44862 number.
44863 (grub_ext2_read_inode): Likewise.
44864 (grub_ext3_get_journal): New function.
44865 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44866 (grub_ext2_close): Release memory used by journal.
44867
44868 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44869 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44870 (grub_reiserfs_transaction_header): Renamed to
44871 grub_reiserfs_description_block, replace field data with real_blocks.
44872 (grub_reiserfs_commit_block): New structure.
44873 (grub_reiserfs_data): New member journal.
44874 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44875 number.
44876 (grub_reiserfs_read_symlink): Likewise.
44877 (grub_reiserfs_iterate_dir): Likewise.
44878 (grub_reiserfs_open): Likewise.
44879 (grub_reiserfs_read): Likewise.
44880 (grub_reiserfs_get_journal): New function.
44881 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44882 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44883 using grub_reiserfs_get_journal.
44884 (grub_reiserfs_close): Release memory used by journal.
44885
44886 * fs/affs.c (grub_affs_read_block): Change block type to
44887 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44888
44889 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44890
44891 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44892
44893 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44894
44895 * fs/udf.c (grub_udf_read_block): Change block type to
44896 grub_disk_addr_t. Use type cast to avoid warning.
44897
44898 * fs/xfs.c (grub_xfs_read_block): Likewise.
44899
44900 2008-05-16 Christian Franke <franke@computer.org>
44901
44902 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44903 to ensure that break with ESC will always work.
44904 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44905 Remove ESC from keyboard queue.
44906
44907 2008-05-16 Christian Franke <franke@computer.org>
44908
44909 * util/biosdisk.c: [__CYGWIN__] Add includes.
44910 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44911 (get_os_disk): Move variable declarations to OS specific
44912 parts to avoid warning.
44913 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44914 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44915 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44916 Cygwin.
44917 * util/getroot.c: [__CYGWIN__] Add includes.
44918 (strip_extra_slashes): Fix "/" case.
44919 [__CYGWIN__] (get_win32_path): New function.
44920 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44921 [__CYGWIN__] (find_root_device): Disable.
44922 [__CYGWIN__] (get_bootsec_serial): New function.
44923 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44924 [__linux__] (grub_guess_root_device): Add early returns to simplify
44925 structure.
44926 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44927 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44928 check for Linux only.
44929
44930 2008-05-15 Bean <bean123ch@gmail.com>
44931
44932 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44933 keyboard hang problem in apple's intel mac.
44934
44935 2008-05-09 Robert Millan <rmh@aybabtu.com>
44936
44937 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44938 devices.
44939 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44940 (make_device_map): Likewise.
44941 Reported by Aurelien Jarno <aurel32@debian.org>
44942
44943 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44944
44945 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44946 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44947 (make_device_map): Output entries for xvd type disks.
44948
44949 2008-05-07 Robert Millan <rmh@aybabtu.com>
44950
44951 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44952 devices.
44953 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44954 (make_device_map): Likewise.
44955 Reported by Roland Dreier <rdreier@cisco.com>
44956
44957 2008-05-07 Robert Millan <rmh@aybabtu.com>
44958
44959 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44960 grub_strstr() call. Correct a few mistakes in failure path handling.
44961
44962 2008-05-06 Robert Millan <rmh@aybabtu.com>
44963
44964 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44965 Do not print a trailing slash (therefore, the root directory is an
44966 empty string).
44967 (convert_system_path_to_grub_path): Do not remove trailing slash
44968 from make_system_path_relative_to_its_root() output.
44969
44970 * util/i386/pc/grub-install.in: Add trailing slash to output from
44971 make_system_path_relative_to_its_root().
44972
44973 2008-05-06 Robert Millan <rmh@aybabtu.com>
44974
44975 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
44976 ensures that output lines aren't intermangled with those sent to
44977 stderr (via grub_util_info()).
44978 * util/grub-probe.c (grub_refresh): Likewise.
44979 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
44980
44981 2008-05-05 Christian Franke <franke@computer.org>
44982
44983 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
44984 Add Cygwin device names.
44985 (get_ide_disk_name) [__CYGWIN__]: Likewise.
44986 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
44987 (check_device): Return error instead of success on empty name.
44988 (make_device_map): Move label inside linux specific code to
44989 prevent compiler warning.
44990
44991 2008-04-30 Robert Millan <rmh@aybabtu.com>
44992
44993 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
44994 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
44995 first boot option.
44996 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
44997
44998 2008-04-29 Robert Millan <rmh@aybabtu.com>
44999
45000 * docs/grub.cfg: New file (example GRUB configuration).
45001
45002 2008-04-26 Robert Millan <rmh@aybabtu.com>
45003
45004 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45005 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45006 and `disk/ieee1275/nand.c'.
45007
45008 2008-04-25 Bean <bean123ch@gmail.com>
45009
45010 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45011 i386-linuxbios.
45012
45013 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45014 change the buffer size to 4096 for cdrom device.
45015
45016 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45017 and nand.mod.
45018 (_linux_mod_SOURCES): New variable.
45019 (_linux_mod_CFLAGS): Likewise.
45020 (_linux_mod_LDFLAGS): Likewise.
45021 (linux_mod_SOURCES): Likewise.
45022 (linux_mod_CFLAGS): Likewise.
45023 (linux_mod_LDFLAGS): Likewise.
45024 (nand_mod_SOURCES): Likewise.
45025 (nand_mod_CFLAGS): Likewise.
45026 (nand_mod_LDFLAGS): Likewise.
45027
45028 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45029 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45030 type property. (nand device in olpc don't have this property)
45031
45032 * include/grub/disk.h (grub_disk_dev_id): New macro
45033 GRUB_DISK_DEVICE_NAND_ID.
45034
45035 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45036 function prototype.
45037 (grub_rescue_cmd_initrd): Likewise.
45038
45039 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45040 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45041 ofw_cif_handler and ofw_idt, adjust padding number.
45042
45043 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45044 GRUB_MACHINE_IEEE1275 is defined.
45045
45046 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45047 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45048
45049 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45050 on nested function heap_init.
45051 (grub_upper_mem): New variable for i386-ieee1275.
45052 (grub_get_extended_memory): New function for i386-ieee1275.
45053 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45054
45055 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45056 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45057 property.
45058
45059 * loader/i386/ieee1275/linux.c: New file.
45060
45061 * loader/i386/ieee1275/linux_normal.c: New file.
45062
45063 * disk/ieee1275/nand.c: New file.
45064
45065 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45066
45067 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45068 value.
45069 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45070
45071 2008-04-18 Robert Millan <rmh@aybabtu.com>
45072
45073 Restructures early code path on ieee1275 to unify grub_main() as
45074 the first C function that is executed in every platform.
45075
45076 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45077 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45078 cmain().
45079 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45080 * kern/ieee1275/cmain.c (cmain): Rename to ...
45081 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45082 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45083 at the beginning.
45084
45085 2008-04-18 Robert Millan <rmh@aybabtu.com>
45086
45087 * util/update-grub.in: Fix syntax error when setting
45088 `GRUB_PRELOAD_MODULES'.
45089 Reported by Stephane Chazelas <stephane@artesyncp.com>
45090
45091 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45092
45093 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45094 section into account, newer toolchains generate unique build ids
45095 * configure.ac: remove the test for --build-id=none acceptance,
45096 we want build ids to be preserved
45097 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45098 far from other sections don't cause the raw binary images grow
45099 size
45100
45101 2008-04-15 Robert Millan <rmh@aybabtu.com>
45102
45103 * disk/lvm.c: Update copyright year.
45104 * kern/misc.c: Likewise.
45105
45106 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45107
45108 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45109 there is no memory left for physical volume name.
45110
45111 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45112
45113 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45114 volume name mapping to support bigger than 9 character names properly.
45115
45116 2008-04-13 Robert Millan <rmh@aybabtu.com>
45117
45118 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45119 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45120
45121 2008-04-13 Christian Franke <franke@computer.org>
45122
45123 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45124 to create a floppy emulation boot CD when non emulation mode
45125 does not work.
45126 Enable Joliet CD filesystem extension.
45127
45128 2008-04-13 Robert Millan <rmh@aybabtu.com>
45129
45130 * kern/misc.c (grub_strncat): Fix off-by-one error.
45131 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45132
45133 * kern/env.c (grub_env_context_close): Clear current context, not
45134 previous one.
45135 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45136
45137 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45138
45139 2008-04-13 Robert Millan <rmh@aybabtu.com>
45140
45141 Improve robustness when handling LVM.
45142
45143 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45144 (and leave `*p' unmodified).
45145 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45146 through it.
45147 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45148 iterating through it.
45149 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45150 through it.
45151 (grub_lvm_scan_device): Check the return value (and fail gracefully
45152 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45153 Don't assume `vg->pvs != NULL' when iterating through it.
45154
45155 2008-04-13 Robert Millan <rmh@aybabtu.com>
45156
45157 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45158 * genmk.rb (partmap): New variable.
45159 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45160 (#{partmap}): New target rule.
45161 * genpartmaplist.sh: New file.
45162 * Makefile.in (pkglib_DATA): Add partmap.lst.
45163 (partmap.lst): New target rule.
45164 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45165 modules (including all partition maps), instead of preloading them.
45166
45167 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45168
45169 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45170 `linux-boot-prober' (if installed) to detect other operating
45171 systems which are installed on the computer and add them to
45172 the boot menu.
45173 * conf/common.rmk: Build and install 30_os-prober.
45174
45175 2008-04-12 Robert Millan <rmh@aybabtu.com>
45176
45177 * kern/powerpc/ieee1275/init.c: Move from here ...
45178 * kern/ieee1275/init.c: ... to here. Update all users.
45179
45180 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45181 * kern/ieee1275/cmain.c: ... to here. Update all users.
45182
45183 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45184 * kern/ieee1275/openfw.c: ... to here. Update all users.
45185
45186 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45187 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45188
45189 2008-04-10 Pavel Roskin <proski@gnu.org>
45190
45191 * configure.ac: Always use "_cv_" in cache variables for
45192 compatibility with Autoconf 2.62.
45193
45194 2008-04-07 Robert Millan <rmh@aybabtu.com>
45195
45196 Revert grub/machine/init.h addition by Pavel (since it breaks on
45197 i386-ieee1275 and others):
45198 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45199 * util/powerpc/ieee1275/misc.c: Likewise.
45200
45201 2008-04-07 Robert Millan <rmh@aybabtu.com>
45202
45203 * util/grub-probe.c (probe): Improve error message.
45204
45205 2008-04-07 Robert Millan <rmh@aybabtu.com>
45206
45207 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45208 (this prevents the presence of a bogus entry from ruining the whole
45209 thing).
45210
45211 2008-04-06 Pavel Roskin <proski@gnu.org>
45212
45213 * util/biosdisk.c: Include grub/util/biosdisk.h.
45214 * util/grub-fstest.c (execute_command): Make static.
45215 * util/grub-mkdevicemap.c (check_device): Likewise.
45216 * util/i386/pc/misc.c: Include grub/machine/init.h.
45217 * util/powerpc/ieee1275/misc.c: Likewise.
45218 * util/lvm.c: Include grub/util/lvm.h.
45219 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45220 grub/cache.h.
45221 * util/raid.c: Include grub/util/raid.h.
45222 (grub_util_getdiskname): Make static.
45223
45224 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45225 grub_hostfs_fini(), as they are called from grub_init_all() and
45226 grub_fini_all() respectively. This fixes an infinite loop in
45227 grub-fstest due to double registration of hostfs.
45228 Reported by Christian Franke <Christian.Franke@t-online.de>
45229
45230 2008-04-05 Pavel Roskin <proski@gnu.org>
45231
45232 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45233 all 8 functions. Otherwise, probe function 0 only.
45234
45235 2008-04-04 Pavel Roskin <proski@gnu.org>
45236
45237 * commands/lspci.c (grub_lspci_iter): Print the bus number
45238 correctly.
45239
45240 * commands/lspci.c (grub_pci_classes): Fix typos.
45241 (grub_lspci_iter): Don't print func twice. Print vendor ID
45242 before device ID, as it's normally done.
45243
45244 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45245 Fix signedness warnings.
45246 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45247 Likewise.
45248 * util/ieee1275/get_disk_name.c: Include config.h so that
45249 _GNU_SOURCE is defined and getline() is declared. Mark an
45250 unused argument as such. Fix a signedness warning.
45251
45252 2008-04-02 Pavel Roskin <proski@gnu.org>
45253
45254 * genkernsyms.sh.in: Use more robust assignments for CC and
45255 srcdir. Quote srcdir.
45256 * gensymlist.sh.in: Likewise. Assert at the compile time that
45257 the symbol table is not empty.
45258
45259 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45260 * fs/cpio.c (grub_cpio_read): Likewise.
45261
45262 2008-04-01 Pavel Roskin <proski@gnu.org>
45263
45264 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45265 * disk/host.c (grub_host_open): Likewise.
45266 * disk/loopback.c (grub_loopback_open): Likewise.
45267 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45268 disk->id as in disk/host.c, not a multi-character constant.
45269
45270 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45271 later is obsolete, potentially dangerous and sets a bad example.
45272 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45273 * util/misc.c (grub_util_get_image_size): Likewise.
45274
45275 * disk/loopback.c (options): Improve help for "--partitions".
45276
45277 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45278 options to align them with the short options, e.g. "echo -e".
45279
45280 2008-03-31 Bean <bean123ch@gmail.com>
45281
45282 * video/reader/png.c (grub_png_data): New member is_16bit and
45283 image_data.
45284 (grub_png_decode_image_header): Detect 16 bit png image.
45285 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45286 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45287 (grub_video_reader_png): Release memory occupied by image_data.
45288
45289 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45290 4096 bytes.
45291 (grub_nfs_mount): Skip the test for sector per cluster.
45292
45293 * include/grub/ntfs.h (MAX_SPC): Removed.
45294
45295 2008-03-31 Bean <bean123ch@gmail.com>
45296
45297 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45298 (grub_probe_SOURCES): Add fs/afs.c.
45299 (grub_fstest_SOURCES): Likewise.
45300 (afs_mod_SOURCES): New variable.
45301 (afs_mod_CFLAGS): Likewise.
45302 (afs_mod_LDFLAGS): Likewise.
45303
45304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45305 (grub_emu_SOURCES): Likewise.
45306
45307 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45308
45309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45310
45311 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45312
45313 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45314
45315 * fs/afs.c: New file.
45316
45317 2008-03-30 Pavel Roskin <proski@gnu.org>
45318
45319 * disk/host.c: Include grub/misc.h to fix a warning.
45320 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45321 warnings about implicit declarations.
45322
45323 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45324 variable.
45325 * include/grub/i386/loader.h: Change declaration of
45326 grub_linux_boot() to match what grub_loader_set() expects.
45327 * util/getroot.c (grub_guess_root_device): Return const char* to
45328 fix a warning.
45329 * util/grub-probe.c (probe): Fix a warning about uninitialized
45330 abstraction_name variable.
45331 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45332 second argument as unused to fix a warning.
45333
45334 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45335 missing grub_error() call.
45336
45337 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45338 2.60 and newer uses it to define datadir.
45339
45340 * commands/sleep.c: Fix warning about implicit declaration.
45341 * disk/memdisk.c: Likewise.
45342 * loader/aout.c: Likewise.
45343 * loader/i386/bsd_normal.c: Likewise.
45344 * util/grub-probe.c: Likewise.
45345
45346 * commands/i386/cpuid.c (has_longmode): Make static.
45347 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45348 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45349
45350 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45351 GDT. This is more robust, as %ds can change.
45352 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45353 calling real_to_prot().
45354 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45355
45356 2008-03-28 Pavel Roskin <proski@gnu.org>
45357
45358 * kern/i386/pc/startup.S: Assert that uncompressed functions
45359 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45360 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45361 code, as they push parts of the code (error handlers) beyond
45362 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45363 code as correctness and size.
45364
45365 2008-03-28 Pavel Roskin <proski@gnu.org>
45366
45367 * kern/i386/pc/startup.S
45368 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45369 data block address to the real mode, keep offset minimal. This
45370 works around a bug in AWARD BIOS on old Athlon systems, which
45371 makes CD detection hang.
45372
45373 2008-03-26 Pavel Roskin <proski@gnu.org>
45374
45375 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45376 const.
45377 * include/grub/normal.h: Add grub_parse_color_name_pair()
45378 declaration.
45379
45380 2008-03-24 Bean <bean123ch@gmail.com>
45381
45382 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45383 (cd_count): Removed.
45384 (cd_drive): New variable.
45385 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45386 (grub_biosdisk_call_hook): Likewise.
45387 (grub_biosdisk_iterate): Change cdrom detection method.
45388 (grub_biosdisk_open): Replace cd_start with cd_drive.
45389 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45390 detect cdrom device.
45391
45392 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45393 Removed.
45394 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45395 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45396 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45397 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45398 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45399 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45400 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45401 (grub_biosdisk_cdrp): New structure.
45402 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45403
45404 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45405
45406 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45407 device.
45408
45409 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45410 New function.
45411
45412 2008-03-20 Robert Millan <rmh@aybabtu.com>
45413
45414 Remove 2 TiB limit in ata.mod.
45415 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45416 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45417 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45418 grub_uint64_t instead of grub_uint32_t.
45419
45420 2008-03-05 Bean <bean123ch@gmail.com>
45421
45422 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45423 (grub_multiboot): Set boot device.
45424
45425 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45426
45427 2008-03-02 Bean <bean123ch@gmail.com>
45428
45429 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45430 symlink_buffer.
45431
45432 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45433
45434 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45435 texinfo.tex.
45436
45437 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45438 modified.
45439
45440 * docs/fdl.texi: New file.
45441
45442 * docs/mdate-sh: New file. Copied from gnulib.
45443 * docs/texinfo.tex: Likewise.
45444
45445 * config.guess: Updated from gnulib.
45446 * install-sh: Likewise.
45447
45448 2008-02-28 Robert Millan <rmh@aybabtu.com>
45449
45450 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45451 (aout_mod_SOURCES): New variable.
45452 (aout_mod_CFLAGS): Likewise.
45453 (aout_mod_LDFLAGS): Likewise.
45454
45455 * conf/i386-ieee1275.rmk: Likewise.
45456
45457 2008-02-28 Robert Millan <rmh@aybabtu.com>
45458
45459 * util/update-grub.in: Reorganise terminal validity check. Accept
45460 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45461 Based on suggestion by Franklin PIAT.
45462
45463 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45464
45465 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45466 function.
45467 * util/getroot.c (grub_util_check_block_device): New function that
45468 returns the given argument if it is a block device and returns NULL else.
45469 * util/grub-probe.c (argument_is_device): New variable.
45470 (probe): Promote device_name from a variable to an argument. Receive
45471 device_name from grub_util_check_block_device() if path is NULL and from
45472 grub_guess_root_device() else. Do not free() device_name anymore.
45473 (options): Introduce new parameter '-d, --device'.
45474 (main): Add description of the new parameter to the help screen.
45475 Rename path variable to argument. Set argument_is_device if the '-d'
45476 option is given. Pass argument to probe() depending on
45477 argument_is_device.
45478
45479 2008-02-24 Bean <bean123ch@gmail.com>
45480
45481 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45482 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45483 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45484 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45485 (GRUB_ISO9660_VOLDESC_END): Likewise.
45486 (grub_iso9660_primary_voldesc): New member escape.
45487 (grub_iso9660_data): New member joliet.
45488 (grub_iso9660_convert_string): New function.
45489 (grub_iso9660_mount): Detect joliet extension.
45490 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45491 (grub_iso9660_iso9660_label): Likewise.
45492
45493 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45494 (grub_setup_SOURCES): Add fs/udf.c.
45495 (grub_fstest_SOURCES): Likewise.
45496 (udf_mod_SOURCES): New variable.
45497 (udf_mod_CFLAGS): Likewise.
45498 (udf_mod_LDFLAGS): Likewise.
45499
45500 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45501 (grub_emu_SOURCES): Likewise.
45502
45503 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45504
45505 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45506
45507 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45508
45509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45510
45511 * fs/udf.c: New file.
45512
45513 2008-02-24 Robert Millan <rmh@aybabtu.com>
45514
45515 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45516 (normal/lexer.c_DEPENDENCIES): New variables.
45517 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45518 (normal/lexer.c_DEPENDENCIES): Likewise.
45519 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45520 (normal/lexer.c_DEPENDENCIES): Likewise.
45521 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45522 (normal/lexer.c_DEPENDENCIES): Likewise.
45523 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45524 (normal/lexer.c_DEPENDENCIES): Likewise.
45525 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45526 (normal/lexer.c_DEPENDENCIES): Likewise.
45527
45528 2008-02-23 Robert Millan <rmh@aybabtu.com>
45529
45530 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45531 since they were intended to be in hex. This didn't break previously
45532 because of a bug in gpt_partition_map_iterate() (see below).
45533
45534 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45535 when checking the validity of GPT header.
45536 Remove `partno', since it always provides the same information as `i'.
45537
45538 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45539
45540 * include/grub/efi/time.h: Fix a wrong comment.
45541
45542 2008-02-19 Pavel Roskin <proski@gnu.org>
45543
45544 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45545 message.
45546
45547 2008-02-19 Bean <bean123ch@gmail.com>
45548
45549 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45550 (aout_mod_SOURCES): New variable.
45551 (aout_mod_CFLAGS): Likewise.
45552 (aout_mod_LDFLAGS): Likewise.
45553 (_bsd_mod_SOURCES): New variable.
45554 (_bsd_mod_CFLAGS): Likewise.
45555 (_bsd_mod_LDFLAGS): Likewise.
45556 (bsd_mod_SOURCES): New variable.
45557 (bsd_mod_CFLAGS): Likewise.
45558 (bsd_mod_LDFLAGS): Likewise.
45559
45560 * include/grub/aout.h: New file.
45561
45562 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45563
45564 * include/grub/i386/bsd.h: New file.
45565
45566 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45567 to make it public.
45568
45569 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45570 function is called, so that it's possible to change it inside the hook.
45571 (grub_elf64_load): Likewise.
45572 (grub_elf_file): Don't close the file if elf header is not found.
45573 (grub_elf_close): Close the file if grub_elf_file fails (The new
45574 grub_elf_file won't close it).
45575 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45576 (grub_elf64_size): Likewise.
45577
45578 * kern/i386/loader.S (grub_unix_real_boot): New function.
45579
45580 * loader/aout.c: New file.
45581
45582 * loader/i386/bsd.c: New file.
45583
45584 * loader/i386/bsd_normal.c: New file.
45585
45586 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45587
45588 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45589 can test other formats.
45590
45591 2008-02-19 Robert Millan <rmh@aybabtu.com>
45592
45593 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45594 (grub_gpt_partition_type_empty): Redefine with macro from
45595 `<grub/gpt_partition.h>'.
45596 (gpt_partition_map_iterate): Adjust partition type comparison.
45597
45598 Export `entry' as partmap-specific `part.data' struct.
45599 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45600
45601 * include/grub/gpt_partition.h (grub_gpt_header)
45602 (grub_gpt_partentry): ... to here (new file).
45603
45604 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45605
45606 (grub_gpt_partition_type_bios_boot): New const variable, defined
45607 with macro from `<grub/gpt_partition.h>'.
45608
45609 (setup): Replace `first_start' with `embed_region', which keeps
45610 track of the embed region (and is partmap-agnostic).
45611
45612 Replace find_first_partition_start() with find_usable_region(),
45613 which finds a usable region for embedding using partmap-specific
45614 knowledge (supports PC/MSDOS and GPT).
45615
45616 Fix all assumptions that the embed region start at sector 1, using
45617 `embed_region.start' from now on. Similarly, use `embed_region.end'
45618 rather than `first_start' to calculate available size.
45619
45620 In grub_util_info() message, replace "into after the MBR" with an
45621 indication of the specific sector our embed region starts at.
45622
45623 2008-02-19 Robert Millan <rmh@aybabtu.com>
45624
45625 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45626 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45627 `commands/reboot.c'.
45628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45629 (halt_mod_SOURCES): Likewise.
45630 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45631 (halt_mod_SOURCES): Likewise.
45632
45633 2008-02-17 Christian Franke <franke@computer.org>
45634
45635 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45636
45637 2008-02-17 Robert Millan <rmh@aybabtu.com>
45638
45639 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45640 set `first_start' to 0 for non-PC/MSDOS partition maps.
45641
45642 2008-02-16 Robert Millan <rmh@aybabtu.com>
45643
45644 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45645 do not assume partition map is PC/MSDOS before performing checks that
45646 are specific to that layout.
45647
45648 2008-02-13 Robert Millan <rmh@aybabtu.com>
45649
45650 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45651 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45652 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45653
45654 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45655
45656 * configure.ac: Only a cosmetic change on the handling of
45657 -fno-stack-protector.
45658
45659 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45660
45661 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45662 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45663 reboot.c.
45664 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45665 (halt_mod_SOURCES): New variable.
45666 (halt_mod_CFLAGS): Likewise.
45667 (halt_mod_LDFLAGS): Likewise.
45668 (reboot_mod_SOURCES): Likewise.
45669 (reboot_mod_CFLAGS): Likewise.
45670 (reboot_mod_LDFLAGS): Likewise.
45671
45672 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45673 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45674 reboot.c.
45675 (halt_mod_SOURCES): Likewise.
45676 (reboot_mod_SOURCES): Likewise.
45677
45678 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45679 commands/i386/pc/reboot.c by commands/reboot.c.
45680 (reboot_mod_SOURCES): Likewise.
45681
45682 * commands/i386/pc/reboot.c: merge this file ...
45683
45684 * commands/ieee1275/reboot.c: ... and this file ...
45685
45686 * commands/reboot.c: ... to this file.
45687 Add some precompiler directive to include the correct header for
45688 each machine.
45689
45690 * commands/ieee1275/halt.c: move this file ...
45691
45692 * commands/halt.c: ... to here.
45693 Add some precompiler directive to include the correct header for
45694 each machine.
45695
45696 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45697 (grub_halt): Likewise.
45698
45699 * kern/efi/efi.c (grub_reboot): New function.
45700 (grub_halt): Likewise.
45701
45702 2008-02-12 Robert Millan <rmh@aybabtu.com>
45703
45704 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45705 /dev (like it is done for /dev/mapper). This doesn't provide support
45706 for EVMS, but at least it is now easy to identify the problem when it
45707 arises.
45708
45709 2008-02-11 Robert Millan <rmh@aybabtu.com>
45710
45711 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45712 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45713 comparing it with -1, not 0.
45714
45715 2008-02-10 Robert Millan <rmh@aybabtu.com>
45716
45717 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45718 `disk/lvm.c'.
45719 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45720 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45721
45722 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45723 `disk/lvm.c' to the end of the list.
45724 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45725 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45726
45727 2008-02-10 Robert Millan <rmh@aybabtu.com>
45728
45729 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45730 grub_print_error() instead. This will let user know why we're entering
45731 rescue mode.
45732 Based on suggestions from Sam Morris.
45733
45734 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45735
45736 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45737 on remaining N args, instead of "--" arg N times.
45738
45739 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45740
45741 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45742 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45743 pattern for unknown glyphs.
45744
45745 2008-02-09 Robert Millan <rmh@aybabtu.com>
45746
45747 * configure.ac: Probe for `help2man'.
45748 * Makefile.in (builddir): New variable.
45749 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45750 or otherwise add a few flags/options to it.
45751 (install-local): For every executable utility or script that is
45752 installed, invoke $(HELP2MAN) to install a manpage based on --help
45753 output.
45754
45755 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45756 that it doesn't prevent --help from working in build tree.
45757
45758 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45759 with `bug-grub@gnu.org'.
45760 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45761 * util/update-grub.in (usage): New function.
45762 Implement proper argument check, with support for --help and --version
45763 (as well as existing -y).
45764
45765 2008-02-09 Christian Franke <franke@computer.org>
45766
45767 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45768 avoid overwriting previous output.
45769 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45770
45771 2008-02-09 Robert Millan <rmh@aybabtu.com>
45772
45773 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45774 drawing the menu.
45775
45776 2008-02-09 Robert Millan <rmh@aybabtu.com>
45777
45778 * commands/sleep.c: New file.
45779 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45780 (sleep_mod_SOURCES): New variable.
45781 (sleep_mod_CFLAGS): Likewise.
45782 (sleep_mod_LDFLAGS): Likewise.
45783
45784 2008-02-09 Robert Millan <rmh@aybabtu.com>
45785
45786 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45787 situations in which we can deduce the RAID size and the superblock
45788 doesn't match it.
45789
45790 2008-02-09 Robert Millan <rmh@aybabtu.com>
45791
45792 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45793 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45794 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45795
45796 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45797 and return a grub_diskmemberlist_t composed of physical array members.
45798 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45799
45800 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45801 prototype.
45802 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45803 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45804 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45805
45806 * util/grub-probe.c (probe): Move partmap probing code from here ...
45807 (probe_partmap): ... to here.
45808 (probe): Use probe_partmap() once for the disk we're probing, and
45809 additionally, when such disk contains a memberlist() struct member,
45810 once for each disk that is contained in the structure returned by
45811 memberlist().
45812
45813 2008-02-09 Robert Millan <rmh@aybabtu.com>
45814
45815 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45816 environment variable to 'all' in order to obtain debug output from
45817 non-util/ code.
45818 * util/i386/pc/grub-setup.c (main): Likewise.
45819
45820 2008-02-08 Robert Millan <rmh@aybabtu.com>
45821
45822 * disk/raid.c (grub_raid_scan_device): Check for
45823 `array->device[sb.this_disk.number]' rather than for
45824 `array->device[sb.this_disk.number]->name', since the latter is not
45825 guaranteed to be accessible.
45826
45827 2008-02-08 Robert Millan <rmh@aybabtu.com>
45828
45829 * disk/raid.c: Update copyright.
45830 * fs/cpio.c: Likewise.
45831 * include/grub/raid.h: Likewise.
45832 * loader/i386/pc/multiboot.c: Likewise.
45833 * util/hostfs.c: Likewise.
45834
45835 2008-02-08 Robert Millan <rmh@aybabtu.com>
45836
45837 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45838 to a grub_disk_t array.
45839 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45840 `device[x]'.
45841 (grub_raid_scan_device): Replace `device[x].name' accesses with
45842 `device[x]->name'. Simplify initialization of `array->device[x]'.
45843
45844 2008-02-08 Robert Millan <rmh@aybabtu.com>
45845
45846 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45847 grub_dprintf() calls.
45848 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45849 error message.
45850
45851 2008-02-07 Christian Franke <franke@computer.org>
45852
45853 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45854 instead of fseek and ftell to support large files.
45855 (grub_hostfs_read): Likewise.
45856
45857 2008-02-07 Robert Millan <rmh@aybabtu.com>
45858
45859 Patch from Jeroen Dekkers.
45860 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45861 failure, since successfully reading all array members might not be
45862 required.
45863
45864 2008-02-06 Robert Millan <rmh@aybabtu.com>
45865
45866 * util/grub-probe.c (probe): Simplify partmap probing (with the
45867 assumption that the first word up to the underscore equals to
45868 the module name).
45869
45870 2008-02-06 Christian Franke <franke@computer.org>
45871
45872 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45873 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45874 last block of a cpio or tar stream.
45875 Check for "TRAILER!!!" instead of any empty data
45876 block to detect last block of a cpio stream.
45877 (grub_cpio_dir): Fix constness of variable np.
45878 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45879 cpio or tar trailer is detected. This fixes a crash
45880 on open of a non existing file.
45881
45882 2008-02-05 Bean <bean123ch@gmail.com>
45883
45884 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45885 address of entry.
45886 (grub_multiboot_load_elf64): Likewise.
45887 (grub_multiboot): Initialize mbi structure.
45888
45889 * util/grub-fstest.c: Don't include unused header file script.h.
45890
45891 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45892 of file.
45893 (grub_fstest_SOURCES): Likewise.
45894
45895 2008-02-05 Robert Millan <rmh@aybabtu.com>
45896
45897 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45898 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45899 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45900 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45901
45902 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45903 (translation_table): Replace hardcoded values with macros
45904 provided by `<grub/term.h>'.
45905
45906 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45907 (keyboard_map): Correct/add a few values, with macros provided
45908 by `<grub/term.h>'.
45909 (keyboard_map_shift): Zero values that don't differ from their
45910 `keyboard_map' equivalents.
45911 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45912 Discard the second scan code that is always sent by Caps lock.
45913 Only use `keyboard_map_shift' when it provides a non-zero value,
45914 otherwise fallback to `keyboard_map'.
45915
45916 2008-02-04 Bean <bean123ch@gmail.com>
45917
45918 * Makefile.in (enable_grub_fstest): New variable.
45919
45920 * conf/common.rmk (grub_fstest_init.lst): New rule.
45921 (grub_fstest_init.h): Likewise.
45922 (grub_fstest_init.c): Likewise.
45923 (util/grub-fstest.c_DEPENDENCIES): New variable.
45924 (grub_fstest_SOURCES): Likewise.
45925
45926 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45927
45928 * util/grub-fstest.c: New file.
45929
45930 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45931
45932 Make grub-setup handle a separate root device.
45933
45934 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45935 so that the root device can be compared with the destination
45936 device.
45937 When embedding the core image, if the root and destination devices
45938 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45939 0xFF.
45940 When not embedding, set ROOT_DRIVE to 0xFF.
45941
45942 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45943
45944 Add support for having a grub directory in a different drive. This
45945 is still only the data handling part.
45946
45947 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45948 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45949 (grub_root_drive): New variable.
45950
45951 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45952 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45953 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45954 as it was.
45955
45956 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45957
45958 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45959 macro.
45960 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45961
45962 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45963 is bogus, because PXE booting does not specify any drive
45964 correctly.
45965
45966 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45967 am not sure if this is really correct.
45968
45969 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45970 is always identical to the boot drive when booting from a CD.
45971
45972 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45973 longer.
45974 (root_drive): New variable.
45975 (real_start): Unconditionally set %dh to ROOT_DRIVE.
45976 (setup_sectors): Push %dx right after popping it, because %dh will
45977 be modified later.
45978 (copy_buffer): Restore %dx.
45979
45980 2008-02-03 Robert Millan <rmh@aybabtu.com>
45981
45982 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
45983 use `cdboot.img' for cdrom images.
45984
45985 2008-02-03 Robert Millan <rmh@aybabtu.com>
45986
45987 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
45988 only setup gfxterm when `font' command has succeeded.
45989
45990 2008-02-03 Robert Millan <rmh@aybabtu.com>
45991
45992 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
45993 (grub_rescue_cmd_multiboot_loader)
45994 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
45995
45996 2008-02-03 Pavel Roskin <proski@gnu.org>
45997
45998 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
45999 %edx and %esi from stack only after grub_gate_a20() is called.
46000 grub_gate_a20() clobbers %edx.
46001
46002 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46003
46004 * configure.ac (AC_INIT): Bumped to 1.96.
46005
46006 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46007 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46008 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46009 video/readers/png.c.
46010
46011 2008-02-03 Bean <bean123ch@gmail.com>
46012
46013 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46014 (cdboot_img_SOURCES): New variable.
46015 (cdboot_img_ASFLAGS): New variable.
46016 (cdboot_img_LDFLAGS): New variable.
46017
46018 * boot/i386/pc/cdboot.S: New file.
46019
46020 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46021 (cd_count): Likewise.
46022 (grub_biosdisk_get_drive): Add support for cd device.
46023 (grub_biosdisk_call_hook): Likewise.
46024 (grub_biosdisk_iterate): Likewise.
46025 (grub_biosdisk_open): Likewise.
46026 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46027 (grub_biosdisk_rw): Support reading from cd device.
46028 (GRUB_MOD_INIT): Iterate cd devices.
46029
46030 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46031 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46032 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46033
46034 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46035
46036 2008-02-02 Robert Millan <rmh@aybabtu.com>
46037
46038 * commands/read.c: New file.
46039 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46040 (read_mod_SOURCES): New variable.
46041 (read_mod_CFLAGS): Likewise.
46042 (read_mod_LDFLAGS): Likewise.
46043
46044 2008-02-02 Robert Millan <rmh@aybabtu.com>
46045
46046 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46047 determining whether menu has to be displayed.
46048
46049 2008-02-02 Marco Gerards <marco@gnu.org>
46050
46051 * bus/pci.c: New file.
46052
46053 * include/grub/pci.h: Likewise.
46054
46055 * include/grub/i386/pc/pci.h: Likewise.
46056
46057 * commands/lspci.c: Likewise.
46058
46059 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46060 `lspci.mod'.
46061 (pci_mod_SOURCES): New variable.
46062 (pci_mod_CFLAGS): Likewise.
46063 (pci_mod_LDFLAGS): Likewise.
46064 (lspci_mod_SOURCES): Likewise.
46065 (lspci_mod_CFLAGS): Likewise.
46066 (lspci_mod_LDFLAGS): Likewise.
46067
46068 2008-02-02 Bean <bean123ch@gmail.com>
46069
46070 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46071 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46072
46073 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46074 (grub_xfs_btree_node): New structure.
46075 (grub_xfs_btree_root): New structure.
46076 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46077 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46078 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46079 (GRUB_XFS_EXTENT_SIZE): Likewise.
46080 (grub_xfs_read_block): Support btree format type.
46081 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46082 Use directory block as basic unit.
46083
46084 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46085
46086 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46087 __attribute__ ((__regparm__ (1))).
46088
46089 2008-02-01 Robert Millan <rmh@aybabtu.com>
46090
46091 Correct a mistake in previous commit.
46092
46093 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46094 top.
46095 (normal/command.c_DEPENDENCIES): New variable.
46096
46097 2008-02-01 Robert Millan <rmh@aybabtu.com>
46098
46099 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46100 top.
46101 (normal/command.c_DEPENDENCIES): New variable.
46102 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46103 * conf/i386-ieee1275.rmk: Likewise.
46104 * conf/i386-linuxbios.rmk: Likewise.
46105 * conf/i386-pc.rmk: Likewise.
46106 * conf/sparc64-ieee1275.rmk: Likewise.
46107 * conf/powerpc-ieee1275.rmk: Likewise.
46108 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46109
46110 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46111
46112 2008-02-01 Robert Millan <rmh@aybabtu.com>
46113
46114 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46115 call at beginning of function.
46116
46117 2008-01-31 Pavel Roskin <proski@gnu.org>
46118
46119 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46120 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46121 (grub_mkrescue_SOURCES): Likewise.
46122 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46123
46124 2008-01-30 Robert Millan <rmh@aybabtu.com>
46125
46126 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46127 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46128 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46129 (grub_probe_SOURCES): ... to here.
46130
46131 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46132 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46133 * conf/i386-ieee1275.rmk: Likewise.
46134 * conf/i386-linuxbios.rmk: Likewise.
46135 * conf/powerpc-ieee1275.rmk: Likewise.
46136
46137 2008-01-30 Tristan Gingold <gingold@free.fr>
46138
46139 * kern/rescue.c: Silently accept empty lines.
46140
46141 2008-01-29 Bean <bean123ch@gmail.com>
46142
46143 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46144 (real_code_2): Code cleanup and change comment style.
46145 (move_memory): Avoid using 32-bit address mode.
46146
46147 2008-01-29 Bean <bean123ch@gmail.com>
46148
46149 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46150 (png_mod_SOURCES): New variable.
46151 (png_mod_CFLAGS): Likewise.
46152 (png_mod_LDFLAGS): Likewise.
46153
46154 * video/readers/png.c: New file.
46155
46156 2008-01-28 Robert Millan <rmh@aybabtu.com>
46157
46158 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46159 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46160 `ifndef GRUB_MOD_GAP' hack.
46161 * util/elf/grub-mkimage.c (add_segments): Likewise.
46162
46163 2008-01-27 Robert Millan <rmh@aybabtu.com>
46164
46165 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46166 `GRUB_MOD_GAP' for platforms in which it's not defined.
46167 * util/elf/grub-mkimage.c (add_segments): Likewise.
46168
46169 2008-01-27 Robert Millan <rmh@aybabtu.com>
46170
46171 Get grub-emu to build again (including parallel builds).
46172
46173 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46174 Split into ...
46175 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46176 (normal/execute.c_DEPENDENCIES): ... this, ...
46177 (grub-emu_DEPENDENCIES): ... and this.
46178
46179 * conf/i386-efi.rmk: Likewise.
46180 * conf/i386-linuxbios.rmk: Likewise.
46181 * conf/i386-ieee1275.rmk: Likewise.
46182 * conf/powerpc-ieee1275.rmk: Likewise.
46183 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46184
46185 2008-01-27 Robert Millan <rmh@aybabtu.com>
46186
46187 * NEWS: Add a few items.
46188
46189 2008-01-27 Robert Millan <rmh@aybabtu.com>
46190
46191 Fix parallel builds with grub-emu. Based on earlier commit for
46192 grub-probe and grub-setup.
46193
46194 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46195 (util/grub-emu.c_DEPENDENCIES): ... this.
46196 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46197 (util/grub-emu.c_DEPENDENCIES): ... this.
46198 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46199 (util/grub-emu.c_DEPENDENCIES): ... this.
46200 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46201 (util/grub-emu.c_DEPENDENCIES): ... this.
46202 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46203 (util/grub-emu.c_DEPENDENCIES): ... this.
46204
46205 2008-01-27 Pavel Roskin <proski@gnu.org>
46206
46207 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46208 to create a gap between _end and the modules added to the image
46209 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46210 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46211 * util/elf/grub-mkimage.c (add_segments): Likewise.
46212
46213 2008-01-26 Pavel Roskin <proski@gnu.org>
46214
46215 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46216 just return an error.
46217
46218 2008-01-26 Bean <bean123ch@gmail.com>
46219
46220 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46221 (grub_reiserfs_get_item): Save offset of the next item.
46222 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46223
46224 2008-01-25 Robert Millan <rmh@aybabtu.com>
46225
46226 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46227 make all filesystem sources appear together (possibly fixing omissions
46228 while at it).
46229 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46230 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46231 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46232 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46233
46234 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46235 add `kern/file.c'.
46236 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46237 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46238 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46239 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46240
46241 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46242 (probe): Add a sanity check to make sure of our ability to read
46243 requested files when probing for filesystem type.
46244
46245 * genmk.rb: Update copyright year (2007).
46246
46247 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46248 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46249 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46250 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46251 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46252 : Remove function prototypes.
46253
46254 2008-01-25 Robert Millan <rmh@aybabtu.com>
46255
46256 Revert my previous commits (based on wrong assumption of how grub_errno
46257 works).
46258
46259 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46260 * kern/file.c (grub_file_open): Likewise.
46261
46262 2008-01-24 Pavel Roskin <proski@gnu.org>
46263
46264 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46265 that hang if GRUB tries to setup colors.
46266 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46267 colors for firmwares that don't support it.
46268 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46269 Recognize Open Hack'Ware, set flags to work around its
46270 limitations.
46271
46272 2008-01-24 Robert Millan <rmh@aybabtu.com>
46273
46274 * kern/file.c (grub_file_open): Do not account previous failures of
46275 unrelated functions when grub_errno is checked for.
46276 Reported by Oleg Strikov.
46277
46278 2008-01-24 Bean <bean123ch@gmail.com>
46279
46280 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46281 (grub_ufs_sblock): New member volume name.
46282 (grub_ufs_find_file): Fix string copy bug.
46283 (grub_ufs_label): Implement this function properly.
46284
46285 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46286 (grub_hfs_iterate_records): Use the correct file number for extents
46287 and catalog file. Fix problem in next index calculation.
46288 (grub_hfs_find_node): Replace recursive function call with loop.
46289 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46290
46291 2008-01-23 Robert Millan <rmh@aybabtu.com>
46292
46293 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46294 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46295 (grub_multiboot2_real_boot): New function prototype.
46296
46297 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46298 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46299
46300 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46301 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46302
46303 2008-01-23 Robert Millan <rmh@aybabtu.com>
46304
46305 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46306 #ifdef'ed out grub_printf().
46307
46308 2008-01-23 Robert Millan <rmh@aybabtu.com>
46309
46310 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46311 grub_dprintf calls, since they make "debug=all" mode unusable.
46312 (grub_console_checkkey): Likewise.
46313
46314 2008-01-23 Robert Millan <rmh@aybabtu.com>
46315
46316 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46317 `term/i386/pc/at_keyboard.c'.
46318 (pkglib_MODULES): Add `serial.mod'.
46319 (serial_mod_SOURCES): New variable.
46320 (serial_mod_CFLAGS): Likewise.
46321 (serial_mod_LDFLAGS): Likewise.
46322
46323 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46324 `<grub/powerpc/ieee1275/console.h>'.
46325 (grub_keyboard_controller_init): New function prototype.
46326 (grub_console_checkkey): Likewise.
46327 (grub_console_getkey): Likewise.
46328
46329 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46330 keyboard on i386.
46331
46332 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46333 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46334
46335 2008-01-23 Robert Millan <rmh@aybabtu.com>
46336
46337 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46338 present, "(memdisk)/boot/grub" becomes the default prefix.
46339
46340 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46341 a memdisk tarball with all the modules. Add --overlay=DIR option that
46342 allows users to overlay additional files into the image.
46343
46344 2008-01-23 Robert Millan <rmh@aybabtu.com>
46345
46346 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46347 and `machine/memory.h'.
46348 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46349 (_multiboot_mod_SOURCES): New variable.
46350 (_multiboot_mod_CFLAGS): Likewise.
46351 (_multiboot_mod_LDFLAGS): Likewise.
46352 (multiboot_mod_SOURCES): Likewise.
46353 (multiboot_mod_CFLAGS): Likewise.
46354 (multiboot_mod_LDFLAGS): Likewise.
46355
46356 * include/grub/i386/ieee1275/loader.h: New file.
46357
46358 * include/grub/i386/ieee1275/machine.h: Likewise.
46359
46360 * include/grub/i386/ieee1275/memory.h: Likewise.
46361
46362 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46363 variable declaration.
46364 (grub_os_area_size): Likewise.
46365
46366 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46367 (grub_lower_mem, grub_upper_mem): New variables.
46368 (grub_stop_floppy): New function (just to make
46369 grub_multiboot2_real_boot() happy).
46370
46371 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46372 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46373 (grub_stop): New function.
46374 Include `"../realmode.S"' and `"../loader.S"'.
46375
46376 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46377 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46378
46379 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46380 rely on grub_multiboot2_real_boot() for final boot.
46381
46382 2008-01-22 Robert Millan <rmh@aybabtu.com>
46383
46384 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46385 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46386 device that doesn't look like an SD card.
46387 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46388 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46389 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46390 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46391 found.
46392
46393 2008-01-22 Robert Millan <rmh@aybabtu.com>
46394
46395 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46396 avoid claiming over our own code.
46397
46398 2008-01-22 Bean <bean123ch@gmail.com>
46399
46400 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46401 (jpeg_mod_SOURCES): New variable.
46402 (jpeg_mod_CFLAGS): Likewise.
46403 (jpeg_mod_LDFLAGS): Likewise.
46404
46405 * video/readers/jpeg.c : New file.
46406
46407 2008-01-22 Bean <bean123ch@gmail.com>
46408
46409 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46410 there are no more items.
46411
46412 2008-01-21 Robert Millan <rmh@aybabtu.com>
46413
46414 * kern/mm.c (grub_mm_init_region): Improve debug message.
46415
46416 2008-01-21 Robert Millan <rmh@aybabtu.com>
46417
46418 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46419 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46420 address.
46421 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46422 a C macro.
46423 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46424 Indicates start of upper memory.
46425 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46426 (generate_image): Abort when image size is big enough to corrupt
46427 upper memory.
46428
46429 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46430 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46431 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46432 instead of hardcoding 0xA0000.
46433 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46434 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46435 instead of hardcoding 0xA0000.
46436
46437 2008-01-21 Robert Millan <rmh@aybabtu.com>
46438
46439 * disk/memdisk.c (memdisk_size): New variable.
46440 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46441 `memdisk_size'.
46442 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46443 image to dynamic memory.
46444 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46445 `memdisk_size'. Free memdisk block.
46446
46447 2008-01-21 Robert Millan <rmh@aybabtu.com>
46448
46449 Fix detection of very small filesystems (like tar).
46450
46451 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46452 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46453 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46454 a problem with this disk).
46455
46456 2008-01-21 Robert Millan <rmh@aybabtu.com>
46457
46458 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46459 on grub_biosdisk_rw_standard() error.
46460
46461 2008-01-21 Robert Millan <rmh@aybabtu.com>
46462
46463 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46464 recent changes.
46465 * kern/elf.c: Likewise.
46466 * kern/ieee1275/ieee1275.c: Likewise.
46467 * kern/powerpc/ieee1275/openfw.c: Likewise.
46468 * term/ieee1275/ofconsole.c: Likewise.
46469
46470 2008-01-21 Robert Millan <rmh@aybabtu.com>
46471
46472 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46473
46474 * include/grub/kernel.h (grub_arch_memdisk_addr)
46475 (grub_arch_memdisk_size): Moved from here ...
46476
46477 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46478 (grub_arch_memdisk_size): ... to here.
46479
46480 2008-01-21 Robert Millan <rmh@aybabtu.com>
46481
46482 Mostly based on bugfix from Bean.
46483
46484 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46485 attribute with hook() parameter.
46486 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46487 declaration.
46488 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46489 attribute with hook() parameter.
46490 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46491 declaration.
46492
46493 2008-01-21 Robert Millan <rmh@aybabtu.com>
46494
46495 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46496 (pkglib_MODULES): Add `memdisk.mod'.
46497 (memdisk_mod_SOURCES): New variable.
46498 (memdisk_mod_CFLAGS): Likewise.
46499 (memdisk_mod_LDFLAGS): Likewise.
46500
46501 * disk/memdisk.c: New file.
46502
46503 * include/grub/disk.h (grub_disk_dev_id): Add
46504 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46505
46506 * include/grub/i386/pc/kernel.h
46507 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46508 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46509 (grub_kernel_image_size): New variable declaration.
46510 (grub_total_module_size): Likewise.
46511 (grub_memdisk_image_size): Likewise.
46512
46513 * include/grub/i386/pc/memory.h
46514 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46515
46516 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46517 (grub_arch_memdisk_addr): New variable declaration.
46518 (grub_arch_memdisk_size): Likewise.
46519
46520 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46521 (grub_arch_memdisk_size): Likewise.
46522
46523 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46524 (codestart): Replace hardcoded `0x100000' with
46525 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46526
46527 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46528 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46529 not NULL, append the contents of the file it refers to, at the end of
46530 the compressed kernel image. Initialize `grub_memdisk_image_size'
46531 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46532 (options): Add "memdisk"|'m' option.
46533 (main): Parse --memdisk|-m option, and pass user-provided path as
46534 parameter to generate_image().
46535
46536 2008-01-20 Robert Millan <rmh@aybabtu.com>
46537
46538 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46539 grub_dprintf() calls from here ...
46540 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46541
46542 2008-01-20 Robert Millan <rmh@aybabtu.com>
46543
46544 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46545
46546 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46547 declaration.
46548 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46549 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46550 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46551 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46552 property).
46553 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46554 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46555
46556 2008-01-19 Robert Millan <rmh@aybabtu.com>
46557
46558 Get rid of confusing function (superseded by
46559 `grub_ieee1275_get_integer_property')
46560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46561 prototype.
46562 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46563 function.
46564 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46565 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46566 in native endianness from grub_ieee1275_get_integer_property().
46567
46568 2008-01-19 Robert Millan <rmh@aybabtu.com>
46569
46570 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46571 command after "shut-down", since implementations differ on which
46572 the command for halt is.
46573
46574 2008-01-19 Robert Millan <rmh@aybabtu.com>
46575
46576 * include/grub/i386/linuxbios/console.h: Add header protection.
46577 (grub_keyboard_controller_init): New function prototype.
46578 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46579 (KEYBOARD_COMMAND_READ): Likewise.
46580 (KEYBOARD_COMMAND_WRITE): Likewise.
46581 (KEYBOARD_SCANCODE_SET1): Likewise.
46582 (grub_keyboard_controller_write): New function.
46583 (grub_keyboard_controller_read): Likewise.
46584 (grub_keyboard_controller_init): Likewise.
46585
46586 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46587 (grub_console_init): On coreboot/LinuxBIOS, call
46588 grub_keyboard_controller_init().
46589
46590 2008-01-19 Robert Millan <rmh@aybabtu.com>
46591
46592 PowerPC changes provided by Pavel Roskin.
46593
46594 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46595 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46596 don't rely on cmain() doing it.
46597 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46598 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46599
46600 2008-01-16 Robert Millan <rmh@aybabtu.com>
46601
46602 * include/grub/i386/linuxbios/memory.h
46603 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46604 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46605 receive `table_header' as argument. Instead, probe for it in the
46606 known memory ranges where it can be present.
46607 (grub_available_iterate): Do not pass a fixed `table_header' address
46608 to grub_linuxbios_table_iterate().
46609
46610 2008-01-15 Robert Millan <rmh@aybabtu.com>
46611
46612 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46613 * conf/i386-ieee1275.rmk: New file.
46614 * include/grub/i386/ieee1275/console.h: Likewise.
46615 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46616 * include/grub/i386/ieee1275/kernel.h: Likewise.
46617 * include/grub/i386/ieee1275/time.h: Likewise.
46618 * kern/i386/ieee1275/init.c: Likewise.
46619 * kern/i386/ieee1275/startup.S: Likewise.
46620
46621 2008-01-15 Robert Millan <rmh@aybabtu.com>
46622
46623 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46624 when pointers are 32-bit (but still do set it to one when they are
46625 64-bit).
46626
46627 2008-01-15 Robert Millan <rmh@aybabtu.com>
46628
46629 * include/grub/ieee1275/ieee1275.h
46630 (grub_ieee1275_get_integer_property): New function prototype.
46631
46632 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46633 (grub_ieee1275_get_integer_property): New function. Wraps around
46634 grub_ieee1275_get_property() to handle endianness.
46635
46636 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46637 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46638 where appropriate.
46639 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46640 (grub_map): Likewise.
46641 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46642
46643 2008-01-15 Bean <bean123ch@gmail.com>
46644
46645 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46646 (grub_script_execute_cmdline): Reset grub_errno.
46647
46648 * normal/main.c (read_config_file): Reset grub_errno.
46649
46650 * normal/parse.y (script_init): New.
46651 (script): Move function and menuentry here.
46652 (delimiter): New.
46653 (command): Add delimiter at the end of command.
46654 (commands): Adjust to match the new command.
46655 (commandblock): Remove grub_script_lexer_record_start.
46656 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46657 (if): Use the new commands.
46658
46659 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46660
46661 2008-01-15 Robert Millan <rmh@aybabtu.com>
46662
46663 * normal/menu.c (run_menu): Move timeout message from here ...
46664 (print_timeout): ... to here.
46665 (run_menu): Use print_timeout() once during initial draw to print
46666 the whole message, and again in every clock tick to update only
46667 the number of seconds.
46668
46669 2008-01-15 Robert Millan <rmh@aybabtu.com>
46670
46671 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46672 actual size of `available' from grub_ieee1275_get_property(), and
46673 restrict parsing to that bound.
46674
46675 2008-01-15 Christian Franke <franke@computer.org>
46676
46677 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46678 (argp_program_version): Remove variable.
46679 (argp_program_bug_address): Likewise.
46680 (options): Convert from struct argp_option to struct option.
46681 (struct arguments): Remove.
46682 (parse_opt): Remove.
46683 (usage): New function.
46684 (main): Replace struct args members by simple variables.
46685 Replace argp_parse() by getopt_long().
46686 Add switch to evaluate options.
46687 Add missing "(...)" around root_dev in prefix string.
46688
46689 2008-01-14 Robert Millan <rmh@aybabtu.com>
46690
46691 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46692 for grub_ieee1275_exit(), in order to improve portability.
46693
46694 2008-01-14 Robert Millan <rmh@aybabtu.com>
46695
46696 * util/grub.d/10_linux.in (prefix): Define.
46697 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46698
46699 2008-01-13 Pavel Roskin <proski@gnu.org>
46700
46701 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46702 grub_errno if no errors have been detected.
46703
46704 2008-01-12 Robert Millan <rmh@aybabtu.com>
46705
46706 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46707 (grub_util_get_dev_abstraction): New function prototype.
46708
46709 * util/getroot.c: Include `<grub/util/getroot.h>'
46710 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46711 (grub_util_get_dev_abstraction): ... here (new function).
46712
46713 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46714 `PRINT_ABSTRACTION'.
46715 (probe): Probe for abstraction type when requested.
46716 (main): Understand `--target=abstraction'.
46717
46718 * util/i386/efi/grub-install.in: Add abstraction module to core
46719 image when it is found to be necessary.
46720 * util/i386/pc/grub-install.in: Likewise.
46721 * util/powerpc/ieee1275/grub-install.in: Likewise.
46722
46723 * util/update-grub_lib.in (font_path): Return system path without
46724 converting to GRUB path.
46725 * util/update-grub.in: Convert system path returned by font_path()
46726 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46727 abstraction module is needed for loading fonts (if any). Export
46728 that as `GRUB_PRELOAD_MODULES'.
46729 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46730 insmod commands).
46731
46732 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46733
46734 Remove some unused code from reiserfs.
46735
46736 * fs/reiserfs.c (struct grub_reiserfs_key)
46737 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46738 (struct grub_reiserfs_node_body): Removed.
46739 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46740 Likewise.
46741 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46742 Likewise.
46743 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46744 Likewise.
46745 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46746 Likewise.
46747 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46748 Likewise.
46749 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46750 Likewise.
46751 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46752 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46753 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46754
46755 2008-01-10 Robert Millan <rmh@aybabtu.com>
46756
46757 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46758 Determines if a file is garbage left by packaging systems, etc.
46759 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46760 for processing /etc/grub.d scripts.
46761 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46762 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46763 as a condition for processing Linux images.
46764
46765 2008-01-10 Pavel Roskin <proski@gnu.org>
46766
46767 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46768 to compile reiserfs.c on PowerPC.
46769
46770 2008-01-10 Robert Millan <rmh@aybabtu.com>
46771
46772 * kern/device.c (grub_device_iterate): Do not abort device iteration
46773 when one of the devices cannot be opened.
46774 * kern/disk.c (grub_disk_open): Do not account previous failures of
46775 unrelated functions when grub_errno is checked for.
46776
46777 2008-01-08 Robert Millan <rmh@aybabtu.com>
46778
46779 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46780 `! grub_linux_is_bzimage', change order of address comparison to make
46781 it more intuitive, and improve "too big zImage" error message.
46782
46783 2008-01-08 Robert Millan <rmh@aybabtu.com>
46784
46785 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46786 `$(update-grub_DATA)'.
46787 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46788 targets.
46789
46790 2008-01-07 Robert Millan <rmh@aybabtu.com>
46791
46792 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46793 which instruction is modified by grub-setup during installation
46794 (since it wasn't obvious by only looking at this file).
46795
46796 2008-01-07 Robert Millan <rmh@aybabtu.com>
46797
46798 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46799 listing actual TODO items.
46800
46801 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46802
46803 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46804 correctly.
46805 (grub_reiserfs_get_key_offset): Likewise.
46806 (grub_reiserfs_set_key_offset): Likewise.
46807 (grub_reiserfs_set_key_type): Likewise.
46808 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46809
46810 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46811 better to remove the bitfield version completely.
46812
46813 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46814
46815 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46816 allocated from the heap, due to the fshelp implementation.
46817 (grub_reiserfs_dir): Free NODE, due to the same reason.
46818
46819 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46820
46821 Mostly from Vincent Pelletier:
46822
46823 * fs/reiserfs.c: New file.
46824
46825 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46826 (reiserfs_mod_SOURCES): New variable.
46827 (reiserfs_mod_CFLAGS): Likewise.
46828 (reiserfs_mod_LDFLAGS): Likewise.
46829
46830 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46831 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46832 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46833 normal/color.c.
46834
46835 2008-01-06 Robert Millan <rmh@aybabtu.com>
46836
46837 * normal/color.c: Remove `<grub/env.h>'.
46838
46839 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46840
46841 * include/grub/normal.h: Include <grub/env.h>.
46842
46843 2008-01-05 Robert Millan <rmh@aybabtu.com>
46844
46845 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46846 usage example with `(hd0,1)'.
46847 Reported by Samuel Thibault.
46848
46849 2008-01-05 Robert Millan <rmh@aybabtu.com>
46850
46851 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46852 (grub_linux_boot_zimage): Rename to ...
46853 (grub_linux_boot): ... this.
46854 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46855 (grub_linux_boot_zimage): Conditionalize zImage copy.
46856
46857 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46858 (grub_linux_boot_bzimage): Remove prototype.
46859 (grub_linux_boot_zimage): Rename to ...
46860 (grub_linux_boot): ... this.
46861
46862 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46863 (grub_linux_boot): Remove function.
46864
46865 2008-01-05 Robert Millan <rmh@aybabtu.com>
46866
46867 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46868 (grub_env_write_color_highlight): Likewise.
46869 (grub_wait_after_message): Likewise.
46870
46871 * normal/color.c: New file.
46872
46873 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46874 (normal_mod_DEPENDENCIES): Likewise.
46875
46876 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46877 (normal_mod_DEPENDENCIES): Likewise.
46878
46879 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46880 (normal_mod_DEPENDENCIES): Likewise.
46881
46882 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46883 (normal_mod_DEPENDENCIES): Likewise.
46884
46885 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46886 for waiting after a message is printed.
46887 * normal/main.c (read_config_file): Likewise.
46888 (grub_normal_init): Register grub_env_write_color_normal() and
46889 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46890 `color_highlight' variables as global.
46891
46892 * normal/menu.c (grub_wait_after_message): New function.
46893 (grub_color_menu_normal): New variable. Replaces ...
46894 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46895 (grub_color_menu_highlight): New variable. Replaces ...
46896 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46897 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46898 `GRUB_TERM_COLOR_STANDARD'.
46899 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46900 `normal_code' and `highlight_code' to `old_color_normal' and
46901 `old_color_highlight', respectively.
46902 (grub_menu_init_page): Update colors when drawing the menu, based on
46903 `menu_color_normal' and `menu_color_highlight' variables.
46904 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46905 a message is printed.
46906
46907 2008-01-05 Robert Millan <rmh@aybabtu.com>
46908
46909 * kern/env.c (grub_env_context_open): Propagate hooks for global
46910 variables to new context.
46911
46912 * kern/main.c (grub_set_root_dev): Export `root' variable.
46913
46914 2008-01-05 Robert Millan <rmh@aybabtu.com>
46915
46916 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46917 discs unconditionally, since udev and others have options to provide
46918 them.
46919
46920 2008-01-05 Robert Millan <rmh@aybabtu.com>
46921
46922 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46923
46924 2008-01-04 Christian Franke <franke@computer.org>
46925
46926 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46927 of eisa_mmap.
46928
46929 2008-01-03 Pavel Roskin <proski@gnu.org>
46930
46931 * kern/i386/linuxbios/init.c: Put "void" to all function
46932 declarations with no arguments.
46933 * kern/powerpc/ieee1275/init.c: Likewise.
46934 * term/i386/pc/at_keyboard.c: Likewise.
46935 * term/i386/pc/vga_text.c: Likewise.
46936 * util/grub-mkdevicemap.c: Likewise.
46937
46938 2008-01-02 Robert Millan <rmh@aybabtu.com>
46939
46940 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46941 message when loaded image is out of bounds.
46942 (grub_multiboot_load_elf64): Likewise.
46943
46944 2008-01-02 Pavel Roskin <proski@gnu.org>
46945
46946 * util/grub.d/10_linux.in: Try version without ".old" when
46947 looking for initrd. It's better to use initrd from the newer
46948 kernel of the same version than no initrd at all.
46949
46950 2008-01-01 Robert Millan <rmh@aybabtu.com>
46951
46952 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46953
46954 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46955
46956 * include/grub/video.h: Added grub_video_unmap_color and
46957 grub_video_get_active_render_target.
46958 (grub_video_adapter): Added unmap_color and get_active_render_target.
46959
46960 * video/video.c: Added grub_video_unmap_color and
46961 grub_video_get_active_render_target.
46962 (grub_video_get_info): Changed method to accept NULL pointer as an
46963 argument to allow detection of active video adapter.
46964
46965 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46966 grub_video_vbe_unmap_color_int.
46967 Added grub_video_vbe_unmap_color and
46968 grub_video_vbe_get_active_render_target.
46969 (grub_video_vbe_adapter): Added unmap_color and
46970 get_active_render_target.
46971
46972 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46973 with grub_video_vbe_unmap_color_int.
46974
46975 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
46976 (DEFAULT_NORMAL_COLOR): Likewise.
46977 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
46978 (DEFAULT_FG_COLOR): Removed.
46979 (DEFAULT_BG_COLOR): Likewise.
46980 (DEFAULT_CURSOR_COLOR): Changed value.
46981 (grub_virtual_screen): Added standard_color_setting,
46982 normal_color_setting, highlight_color_setting and term_color.
46983 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
46984 (bitmap_width): Added.
46985 (bitmap_height): Likewise.
46986 (bitmap): Likewise.
46987 (set_term_color): Likewise.
46988 (grub_virtual_screen_setup): Changed to use new terminal coloring
46989 settings.
46990 (grub_gfxterm_init): Added init for bitmap.
46991 (grub_gfxterm_fini): Added destroy for bitmap.
46992 (redraw_screen_rect): Updated to use background bitmap and new
46993 terminal coloring.
46994 (scroll_up): Added optimization for case when there is no bitmap.
46995 (grub_gfxterm_cls): Fixed to use correct background color.
46996 (grub_virtual_screen_setcolorstate): Changed to use new terminal
46997 coloring.
46998 (grub_virtual_screen_setcolor): Likewise.
46999 (grub_virtual_screen_getcolor): Added.
47000 (grub_gfxterm_background_image_cmd): Likewise.
47001 (grub_video_term): Added setcolor and getcolor.
47002 (MOD_INIT): Added registration of background_image command.
47003 (MOD_TERM): Added unregistration for background_image command.
47004
47005 2007-12-30 Pavel Roskin <proski@gnu.org>
47006
47007 * loader/multiboot_loader.c: Fix multiboot command
47008 unregistration. Fix all typos in the word "multiboot".
47009
47010 2007-12-29 Pavel Roskin <proski@gnu.org>
47011
47012 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47013 support for initrd names used in Fedora.
47014
47015 2007-12-26 Bean <bean123ch@gmail.com>
47016
47017 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47018 (cpio_mod_SOURCES): New variable.
47019 (cpio_mod_CFLAGS): Likewise.
47020 (cpio_mod_LDFLAGS): Likewise.
47021
47022 * fs/cpio.c: New file.
47023
47024 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47025
47026 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47027
47028 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47029
47030 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47031
47032 2007-12-25 Robert Millan <rmh@aybabtu.com>
47033
47034 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47035 (grub_getcolor): New function.
47036
47037 * kern/term.c (grub_getcolor): New function.
47038 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47039 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47040 (print_entry): Set normal and highlight colors to
47041 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47042 respectively, before printing and restore them to old
47043 values afterwards.
47044 (grub_menu_init_page): Likewise. Fill an additional colored space
47045 that would otherwise be left blank.
47046
47047 * term/efi/console.c (grub_console_getcolor): New function.
47048 (struct grub_console_term.getcolor): New variable.
47049 * term/i386/pc/console.c (grub_console_getcolor): New function.
47050 (struct grub_console_term.getcolor): New variable.
47051 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47052 (struct grub_console_term.getcolor): New variable.
47053
47054 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47055 (struct grub_console_term.setcolor): Remove variable.
47056 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47057 (struct grub_console_term.setcolor): Remove variable.
47058 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47059 (struct grub_console_term.setcolor): Remove variable.
47060 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47061 (struct grub_console_term.setcolor): Remove variable.
47062
47063 2007-12-25 Robert Millan <rmh@aybabtu.com>
47064
47065 * configure.ac: Search for possible unifont.hex locations, and
47066 define UNIFONT_HEX if found.
47067
47068 * Makefile.in (UNIFONT_HEX): Define variable.
47069 (DATA): Rename to ...
47070 (PKGLIB): ... this. Update all users.
47071 (PKGDATA): New variable.
47072 (pkgdata_IMAGES): Rename to ...
47073 (pkglib_IMAGES): ... this. Update all users.
47074 (pkgdata_MODULES): Rename to ...
47075 (pkglib_MODULES): ... this. Update all users.
47076 (pkgdata_PROGRAMS): Rename to ...
47077 (pkglib_PROGRAMS): ... this. Update all users.
47078 (pkgdata_DATA): Rename to ...
47079 (pkglib_DATA): ... this. Update all users.
47080 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47081 (unicode.pff, ascii.pff): New rules.
47082 (all-local): Add `$(PKGDATA)' dependency.
47083 (install-local): Process `$(PKGDATA)'.
47084
47085 * util/update-grub_lib.in (font_path): Search for *.pff files in
47086 a few more locations, including `${pkgdata}'.
47087
47088 2007-12-23 Robert Millan <rmh@aybabtu.com>
47089
47090 Patch from Bean <bean123ch@gmail.com>:
47091 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47092 `size'.
47093
47094 2007-12-21 Bean <bean123ch@gmail.com>
47095
47096 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47097 (ntfscomp_mod_SOURCES): New variable.
47098 (ntfscomp_mod_CFLAGS): Likewise.
47099 (ntfscomp_mod_LDFLAGS): Likewise.
47100
47101 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47102 (grub_probe_SOURCES): Likewise.
47103 (grub_emu_SOURCES): Likewise.
47104
47105 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47106 (grub_emu_SOURCES): Likewise.
47107
47108 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47109 (grub_emu_SOURCES): Likewise.
47110
47111 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47112 (grub_emu_SOURCES): Likewise.
47113
47114 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47115 (read_run_list): Renamed to grub_ntfs_read_run_list.
47116 (decomp_nextvcn): Moved to ntfscomp.c.
47117 (decomp_getch): Likewise.
47118 (decomp_get16): Likewise.
47119 (decomp_block): Likewise.
47120 (read_block): Likewise.
47121 (read_data): Partially moved to ntfscomp.c.
47122 (fixup): Change unsigned to grub_uint16_t.
47123 (read_mft): Change unsigned long to grub_uint32_t.
47124 (read_attr): Likewise.
47125 (read_data): Likewise.
47126 (read_run_data): Likewise.
47127 (read_run_list): Likewise.
47128 (read_mft): Likewise.
47129
47130 * fs/ntfscomp.c: New file.
47131
47132 * include/grub/ntfs.h: New file.
47133
47134 2007-12-16 Robert Millan <rmh@aybabtu.com>
47135
47136 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47137 IDE disk check, since Linux is known to support 20 IDE disks.
47138 Reported by Colin Watson.
47139
47140 2007-12-15 Bean <bean123ch@gmail.com>
47141
47142 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47143 (lnxboot_img_SOURCES): New variable.
47144 (lnxboot_img_ASFLAGS): Likewise.
47145 (lnxboot_img_LDFLAGS): Likewise.
47146
47147 * boot/i386/pc/lnxboot.S: New file.
47148
47149 2007-11-24 Pavel Roskin <proski@gnu.org>
47150
47151 * configure.ac: Test if '--build-id=none' is supported by the
47152 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47153 objcopy to generate incorrect binary files (binutils
47154 2.17.50.0.18-1 as shipped by Fedora 8).
47155 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47156 linking, so that build ID doesn't break the test.
47157
47158 2007-11-24 Pavel Roskin <proski@gnu.org>
47159
47160 * include/grub/i386/time.h: use "void" in the argument list
47161 of grub_cpu_idle().
47162 * include/grub/powerpc/time.h: Likewise.
47163 * include/grub/sparc64/time.h: Likewise.
47164
47165 2007-11-18 Christian Franke <franke@computer.org>
47166
47167 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47168 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47169 This fixes the problem that function keys did not work in grub-emu.
47170
47171 2007-11-18 Christian Franke <franke@computer.org>
47172
47173 * disk/host.c (grub_host_open): Remove attribute unused from
47174 name parameter. Add check for "host". This fixes the problem
47175 that grub-emu does not find partitions.
47176
47177 2007-11-18 Christian Franke <franke@computer.org>
47178
47179 * util/hostfs.c (is_dir): New function.
47180 (grub_hostfs_dir): Handle missing dirent.d_type case.
47181 (grub_hostfs_read): Add missing fseek().
47182 (grub_hostfs_label): Clear label pointer. This fixes a crash
47183 of grub-emu on "ls (host)".
47184
47185 2007-11-18 Christian Franke <franke@computer.org>
47186
47187 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47188 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47189 to 64 bit boundary by default.
47190
47191 2007-11-18 Bean <bean123ch@gmail.com>
47192
47193 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47194 (hexdump_mod_SOURCES): New variable.
47195 (hexdump_mod_CFLAGS): Likewise.
47196 (hexdump_mod_LDFLAGS): Likewise.
47197
47198 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47199
47200 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47201
47202 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47203
47204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47205
47206 * include/grub/hexdump.h: New file.
47207
47208 * commands/hexdump.c: New file.
47209
47210 2007-11-10 Robert Millan <rmh@aybabtu.com>
47211
47212 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47213 in grub_outb() calls.
47214 (beep_on): Likewise.
47215
47216 2007-11-10 Christian Franke <franke@computer.org>
47217
47218 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47219 (grub_menu_run): Likewise.
47220
47221 2007-11-10 Robert Millan <rmh@aybabtu.com>
47222
47223 * include/grub/i386/efi/machine.h: New file.
47224 * include/grub/i386/linuxbios/machine.h: Likewise.
47225 * include/grub/i386/pc/machine.h: Likewise.
47226 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47227 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47228
47229 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47230 (serial_hw_io_addr): New variable.
47231 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47232 instead of `(unsigned short *) 0x400'.
47233
47234 2007-11-10 Bean <bean123ch@gmail.com>
47235
47236 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47237
47238 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47239
47240 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47241 (vga_mod_SOURCES): Added.
47242 (vga_mod_CFLAGS): Likewise.
47243 (vga_mod_LDFLAGS): Likewise.
47244
47245 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47246 grub_outb() calls.
47247 (set_map_mask): Likewise.
47248 (set_read_map): Likewise.
47249 (set_read_address): Likewise.
47250 (vga_font): Removed variable.
47251 (get_vga_glyph): Removed function.
47252 (invalidate_char): Likewise.
47253 (write_char): Changed to use grub_font_get_glyph() for font
47254 information.
47255 (grub_vga_putchar): Likewise.
47256 (grub_vga_getcharwidth): Likewise.
47257
47258 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47259
47260 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47261 flags.
47262 (pxeboot_img_LDFLAGS): Likewise.
47263 (diskboot_img_LDFLAGS): Likewise.
47264 (kernel_img_LDFLAGS): Likewise.
47265
47266 2007-11-06 Robert Millan <rmh@aybabtu.com>
47267
47268 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47269 in grub_outb() calls.
47270 (serial_hw_init): Likewise.
47271
47272 2007-11-05 Robert Millan <rmh@aybabtu.com>
47273
47274 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47275 spaces. Skip non-regular files.
47276
47277 2007-11-05 Robert Millan <rmh@aybabtu.com>
47278
47279 * kern/disk.c (grub_disk_firmware_fini)
47280 (grub_disk_firmware_is_tainted): New variables.
47281
47282 * include/grub/disk.h (grub_disk_firmware_fini)
47283 (grub_disk_firmware_is_tainted): Likewise.
47284
47285 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47286 (grub_disk_biosdisk_fini): ... to here.
47287 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47288 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47289 is set. Register grub_disk_biosdisk_fini() in
47290 `grub_disk_firmware_fini'.
47291
47292 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47293 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47294 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47295 to finish existing firmware disk interface.
47296
47297 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47298 (ata_mod_SOURCES): New variable.
47299 (ata_mod_CFLAGS): Likewise.
47300 (ata_mod_LDFLAGS): Likewise.
47301
47302 2007-11-05 Robert Millan <rmh@aybabtu.com>
47303
47304 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47305 (grub_ata_wait): Reimplement using grub_millisleep().
47306
47307 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47308 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47309
47310 2007-11-03 Marco Gerards <marco@gnu.org>
47311
47312 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47313 (CRTC_ADDR_PORT): New macro.
47314 (CRTC_DATA_PORT): Likewise.
47315 (CRTC_CURSOR): Likewise.
47316 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47317 (CRTC_CURSOR_ADDR_LOW): Likewise.
47318 (update_cursor): New function.
47319 (grub_console_real_putchar): Call `update_cursor'.
47320 (grub_console_gotoxy): Likewise.
47321 (grub_console_cls): Set the default color when clearing the
47322 screen.
47323 (grub_console_setcursor): Implemented.
47324
47325 2007-11-03 Marco Gerards <marco@gnu.org>
47326
47327 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47328 become activate.
47329 (grub_ata_pio_write): Likewise.
47330
47331 (grub_atapi_identify): Wait after issuing an ATA command.
47332 (grub_atapi_packet): Likewise.
47333 (grub_ata_identify): Likewise.
47334 (grub_ata_readwrite): Likewise.
47335
47336 2007-11-03 Marco Gerards <marco@gnu.org>
47337
47338 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47339 (grub_ata_pio_write): Likewise.
47340 (grub_ata_readwrite): Use `grub_error', instead of
47341 returning `grub_errno'.
47342
47343 2007-11-03 Marco Gerards <marco@gnu.org>
47344
47345 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47346 grub_ata_pio_write once for every single sector, instead of for
47347 multiple sectors.
47348
47349 2007-10-31 Robert Millan <rmh@aybabtu.com>
47350
47351 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47352
47353 * conf/i386-linuxbios.rmk: New file.
47354
47355 * kern/i386/pc/hardware.c: Likewise.
47356 * term/i386/pc/at_keyboard.c: Likewise.
47357 * term/i386/pc/vga_text.c: Likewise.
47358
47359 * include/grub/i386/linuxbios/boot.h: Likewise.
47360 * include/grub/i386/linuxbios/console.h: Likewise.
47361 * include/grub/i386/linuxbios/init.h: Likewise.
47362 * include/grub/i386/linuxbios/kernel.h: Likewise.
47363 * include/grub/i386/linuxbios/loader.h: Likewise.
47364 * include/grub/i386/linuxbios/memory.h: Likewise.
47365 * include/grub/i386/linuxbios/serial.h: Likewise.
47366 * include/grub/i386/linuxbios/time.h: Likewise.
47367
47368 * kern/i386/linuxbios/init.c: Likewise.
47369 * kern/i386/linuxbios/startup.S: Likewise.
47370 * kern/i386/linuxbios/table.c: Likewise.
47371
47372 2007-10-31 Marco Gerards <marco@gnu.org>
47373
47374 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47375 (ata_mod_SOURCES): New variable.
47376 (ata_mod_CFLAGS): Likewise.
47377 (ata_mod_LDFLAGS): Likewise.
47378
47379 * disk/ata.c: New file.
47380
47381 * include/grub/disk.h (grub_disk_dev_id): Add
47382 `GRUB_DISK_DEV_ATA_ID'.
47383
47384 2007-10-31 Robert Millan <rmh@aybabtu.com>
47385
47386 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47387 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47388
47389 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47390 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47391
47392 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47393 `<grub/types.h>'.
47394
47395 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47396
47397 2007-10-27 Robert Millan <rmh@aybabtu.com>
47398
47399 * include/grub/types.h (ULONG_MAX): Define macro.
47400
47401 2007-10-22 Robert Millan <rmh@aybabtu.com>
47402
47403 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47404 `"../realmode.S"'.
47405 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47406
47407 2007-10-22 Robert Millan <rmh@aybabtu.com>
47408
47409 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47410 (pkgdata_MODULES): Add `biosdisk.mod'.
47411 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47412 variables.
47413
47414 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47415 (grub_biosdisk_init): Replace with ...
47416 (GRUB_MOD_INIT(biosdisk)): ... this.
47417 (grub_biosdisk_fini): Replace with ...
47418 (GRUB_MOD_FINI(biosdisk)): ... this.
47419
47420 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47421 (grub_machine_init): Remove call to grub_biosdisk_init().
47422 (grub_machine_fini): Remove call to grub_machine_fini().
47423
47424 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47425
47426 2007-10-22 Robert Millan <rmh@aybabtu.com>
47427
47428 * include/grub/time.h: New file.
47429 * include/grub/i386/time.h: Likewise.
47430 * include/grub/powerpc/time.h: Likewise.
47431 * include/grub/sparc64/time.h: Likewise.
47432
47433 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47434 instances to ...
47435 (KERNEL_MACHINE_TIME_HEADER): ... this.
47436 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47437 instances to ...
47438 (KERNEL_MACHINE_TIME_HEADER): ... this.
47439 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47440 instances to ...
47441 (KERNEL_MACHINE_TIME_HEADER): ... this.
47442
47443 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47444 (grub_millisleep): New function.
47445 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47446 (grub_millisleep): New function.
47447 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47448 Remove `grub/machine/time.h' include.
47449 (grub_millisleep): New function.
47450 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47451 Remove `grub/machine/time.h' include.
47452 (grub_millisleep): New function.
47453
47454 * include/grub/misc.h (grub_div_roundup): New function.
47455
47456 * kern/misc.c: Include `<grub/time.h>'.
47457 (grub_millisleep_generic): New function.
47458
47459 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47460 Add `time.h'.
47461 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47462 Add `time.h'.
47463 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47464 `machine/time.h'. Add `time.h'.
47465 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47466
47467 2007-10-21 Robert Millan <rmh@aybabtu.com>
47468
47469 * include/grub/misc.h (grub_max): New function.
47470
47471 2007-10-21 Robert Millan <rmh@aybabtu.com>
47472
47473 * util/misc.c (grub_util_info): Call fflush() before returning.
47474
47475 2007-10-20 Robert Millan <rmh@aybabtu.com>
47476
47477 * genmk.rb (Image): Copy `extra_flags' from here ...
47478 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47479
47480 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47481 to `argc' and `args' arguments.
47482
47483 2007-10-17 Robert Millan <rmh@aybabtu.com>
47484
47485 * kern/i386/loader.S: New file.
47486
47487 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47488 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47489 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47490 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47491 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47492 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47493 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47494 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47495 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47496 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47497 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47498 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47499 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47500 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47501
47502 * kern/i386/realmode.S: New file.
47503
47504 * kern/i386/pc/startup.S (protstack): Moved from here ...
47505 * kern/i386/realmode.S (protstack)... to here.
47506 * kern/i386/pc/startup.S (gdt): Moved from here ...
47507 * kern/i386/realmode.S (gdt)... to here.
47508 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47509 * kern/i386/realmode.S (prot_to_real)... to here.
47510
47511 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47512 `kern/i386/realmode.S'.
47513
47514 2007-10-17 Robert Millan <rmh@aybabtu.com>
47515
47516 * include/grub/i386/loader.h: New file.
47517
47518 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47519 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47520 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47521 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47522 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47523 * include/grub/i386/loader.h (grub_linux_prot_size)
47524 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47525 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47526 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47527 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47528
47529 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47530
47531 2007-10-15 Robert Millan <rmh@aybabtu.com>
47532
47533 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47534 filesystem when dev->disk is unset.
47535 Do probe for filesystem even when dev->disk->has_partitions is set.
47536 In case a filesystem is found, always report it.
47537 In case it isn't, if dev->disk->has_partitions is set, report that
47538 a partition table was found instead of reporting that no filesystem
47539 could be identified.
47540
47541 2007-10-12 Robert Millan <rmh@aybabtu.com>
47542
47543 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47544 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47545
47546 * include/grub/types.h (grub_host_to_target16): New macro.
47547 (grub_host_to_target32): Likewise.
47548 (grub_host_to_target64): Likewise.
47549 (grub_target_to_host16): Likewise.
47550 (grub_target_to_host32): Likewise.
47551 (grub_target_to_host64): Likewise.
47552
47553 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47554 Renamed from to ...
47555 (GRUB_MOD_ALIGN): ...this. Update all users.
47556
47557 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47558 grub_host_to_target32.
47559 Replace grub_be_to_cpu32 with grub_target_to_host32.
47560 (load_modules): Likewise.
47561 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47562 Replace grub_be_to_cpu32 with grub_target_to_host32.
47563 Replace grub_cpu_to_be16 with grub_host_to_target16.
47564 Replace grub_cpu_to_be32 grub_host_to_target32.
47565
47566 2007-10-12 Robert Millan <rmh@aybabtu.com>
47567
47568 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47569 * util/elf/grub-mkimage.c: ... here.
47570
47571 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47572 `util/powerpc/ieee1275/grub-mkimage.c'.
47573
47574 2007-10-07 Robert Millan <rmh@aybabtu.com>
47575
47576 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47577 and make it easier to figure out.
47578 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47579 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47580 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47581 leave us with less than HEAP_MIN_SIZE total heap.
47582 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47583
47584 2007-10-03 Robert Millan <rmh@aybabtu.com>
47585
47586 * include/grub/i386/io.h: New file.
47587 * commands/i386/pc/play.c (inb): Removed.
47588 (outb): Removed.
47589 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47590 with grub_outb().
47591 * term/i386/pc/serial.c (inb): Removed.
47592 (outb): Removed.
47593 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47594 with grub_outb().
47595 * term/i386/pc/vga.c (inb): Removed.
47596 (outb): Removed.
47597 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47598 with grub_outb().
47599
47600 2007-10-02 Robert Millan <rmh@aybabtu.com>
47601
47602 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47603 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47604 Reported by Marcin Kurek.
47605
47606 2007-09-07 Robert Millan <rmh@aybabtu.com>
47607
47608 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47609 SmartFirmware version updates (as released by Sven Luther), and avoid
47610 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47611 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47612 known broken.
47613
47614 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47615
47616 From Hitoshi Ozeki:
47617 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47618 when merging two regions.
47619
47620 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47621
47622 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47623 * normal/completion.c (grub_normal_do_completion): Likewise.
47624 Reported by Hitoshi Ozeki.
47625
47626 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47627
47628 Do not use devices at boot in chainloading.
47629
47630 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47631 (boot_part_addr): Likewise.
47632 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47633 with BOOT_DRIVE and BOOT_PART_ADDR.
47634 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47635 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47636
47637 2007-08-29 Robert Millan <rmh@aybabtu.com>
47638
47639 Patch from Simon Peter <dn.tlp@gmx.net>:
47640 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47641 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47642 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47643 util/i386/pc/grub-setup.c_DEPENDENCIES.
47644 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47645 util/grub-probe.c_DEPENDENCIES.
47646 * conf/powerpc-ieee1275.rmk: Likewise.
47647
47648 2007-08-28 Robert Millan <rmh@aybabtu.com>
47649
47650 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47651 to tell grub-mkdevicemap how to name devices.
47652 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47653 feature).
47654
47655 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47656 util/i386/get_disk_name.c.
47657 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47658 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47659 util/ieee1275/get_disk_name.c.
47660
47661 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47662
47663 * DISTLIST: Add util/i386/get_disk_name.c and
47664 util/ieee1275/get_disk_name.c.
47665
47666 * util/grub-mkdevicemap.c: Replace device naming logic with
47667 grub_util_get_disk_name() calls.
47668
47669 2007-08-20 Robert Millan <rmh@aybabtu.com>
47670
47671 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47672 (so that it works for both plural and singular quantities).
47673
47674 2007-08-05 Robert Millan <rmh@aybabtu.com>
47675
47676 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47677 so that [xz] isn't taken into account when determining order.
47678
47679 2007-08-02 Marco Gerards <marco@gnu.org>
47680
47681 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47682 `include/multiboot2.h', `include/grub/elfload.h',
47683 `include/multiboot.h', `include/grub/multiboot.h',
47684 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47685 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47686 `kern/elf.c', `loader/multiboot_loader.c',
47687 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47688 `loader/i386/pc/multiboot2.c',
47689 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47690 `util/i386/pc/grub-mkrescue.in'. Remove
47691 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47692 `include/grub/i386/pc/util/biosdisk.h' and
47693 `include/grub/powerpc/ieee1275/multiboot.h'.
47694
47695 2007-08-02 Bean <bean123ch@gmail.com>
47696
47697 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47698 (ntfs_mod_SOURCES): New variable.
47699 (ntfs_mod_CFLAGS): Likewise.
47700 (ntfs_mod_LDFLAGS): Likewise.
47701
47702 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47703 (grub_probe_SOURCES): Likewise.
47704 (grub_emu_SOURCES): Likewise.
47705
47706 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47707 (grub_emu_SOURCES): Likewise.
47708
47709 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47710 (grub_emu_SOURCES): Likewise.
47711
47712 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47713
47714 * fs/ntfs.c: New file.
47715
47716 2007-08-02 Bean <bean123ch@gmail.com>
47717
47718 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47719
47720 * file.h (grub_file): Likewise.
47721
47722 * fshelp.h (grub_fshelp_read_file): Likewise.
47723
47724 * util/i386/pc/grub-setup.c (setup): Likewise.
47725 (save_first_sector): Likewise.
47726 (save_blocklists): Likewise.
47727
47728 * fs/affs.c (grub_affs_read_file): Likewise.
47729
47730 * fs/ext2.c (grub_ext2_read_file): Likewise.
47731
47732 * fs/fat.c (grub_fat_read_data): Likewise.
47733
47734 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47735
47736 * fs/hfs.c (grub_hfs_read_file): Likewise.
47737
47738 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47739
47740 * fs/jfs.c (grub_jfs_read_file): Likewise.
47741
47742 * fs/minix.c (grub_minix_read_file): Likewise.
47743
47744 * fs/sfs.c (grub_sfs_read_file): Likewise.
47745
47746 * fs/ufs.c (grub_ufs_read_file): Likewise.
47747
47748 * fs/xfs.c (grub_xfs_read_file): Likewise.
47749
47750 * command/blocklist.c (read_blocklist): Likewise.
47751 (print_blocklist): Likewise.
47752
47753 2007-08-02 Marco Gerards <marco@gnu.org>
47754
47755 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47756 `util/hostfs.c'.
47757
47758 * disk/host.c: New file.
47759
47760 * util/hostfs.c: Likewise.
47761
47762 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47763 return `GRUB_ERR_BAD_FS'.
47764 * fs/sfs.c (grub_sfs_mount): Likewise.
47765 * fs/xfs.c (grub_xfs_mount): Likewise.
47766
47767 * include/grub/disk.h (enum grub_disk_dev_id): Add
47768 `GRUB_DISK_DEVICE_HOST_ID'.
47769
47770 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47771
47772 2007-07-24 Jerone Young <jerone@gmail.com>
47773
47774 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47775 modules for compilation.
47776 * conf/powerpc-ieee1275.rmk: Likewise.
47777
47778 * include/multiboot.h: Move multiboot definitions to one file. Rename
47779 many definitions to not get grub specific.
47780 * include/multiboot2.h: Create header with multiboot 2 definitions.
47781 * include/grub/multiboot.h: Header for grub specific function
47782 prototypes and definitions.
47783 * include/grub/multiboot2.h: Likewise.
47784 * include/grub/multiboot_loader.h: Likewise.
47785 * include/grub/i386/pc/multiboot.h: Removed.
47786 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47787
47788 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47789 and 2 to allow for one multiboot and module commands.
47790 * loader/multiboot2.c: Add multiboot2 functionality.
47791 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47792 and definition names.
47793 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47794 2 functions.
47795 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47796 ieee1275 specific multiboot2 code.
47797
47798 * kern/i386/pc/startup.S: Change headers and definition names for
47799 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47800
47801 2007-07-22 Robert Millan <rmh@aybabtu.com>
47802
47803 * geninitheader.sh: Process file specified in first parameter rather
47804 than hardcoding grub_modules_init.lst.
47805 * geninit.sh: Likewise. Also, construct header name dynamically rather
47806 than hardcoding grub_modules_init.h.
47807
47808 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47809 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47810 grub_probe_init.[ch] and grub_setup_init.[ch].
47811
47812 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47813 grub_modules_init.h with grub_emu_init.h.
47814 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47815 grub_probe_init.[ch] files.
47816 * conf/i386-efi.rmk: Likewise.
47817 * conf/i386-pc.rmk: Likewise.
47818 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47819 grub_setup_init.[ch] files.
47820
47821 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47822 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47823 to initialize modules rather than a list of hardcoded functions.
47824 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47825 grub_init_all() to initialize modules rather than a list of hardcoded
47826 functions.
47827
47828 2007-07-22 Robert Millan <rmh@aybabtu.com>
47829
47830 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47831 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47832
47833 2007-07-22 Robert Millan <rmh@aybabtu.com>
47834
47835 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47836 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47837 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47838 flag when running on SmartFirmware.
47839 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47840 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47841 was set.
47842
47843 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47844 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47845 rather than decreasing it.
47846
47847 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47848 there's not enough space to do it, fail in the same way as when it
47849 can't be done because there are no partitions.
47850
47851 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47852 when nvsetenv failed.
47853
47854 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47855
47856 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47857 because this rule is automatically generated.
47858 (grub-mkrescue): Removed for the same reason as above.
47859
47860 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47861
47862 Migrate to GNU General Public License Version 3.
47863
47864 * COPYING: Replaced with the plain text version of GPLv3.
47865
47866 * config.guess: Updated from gnulib.
47867 * config.sub: Likewise.
47868
47869 * geninit.sh: Output a GPLv3 copyright notice.
47870 * geninitheader.sh: Likewise.
47871 * genmodsrc.sh: Likewise.
47872 * gensymlist.sh.in: Likewise.
47873
47874 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47875 * boot/i386/pc/diskboot.S: Likewise.
47876 * boot/i386/pc/pxeboot.S: Likewise.
47877 * commands/blocklist.c: Likewise.
47878 * commands/boot.c: Likewise.
47879 * commands/cat.c: Likewise.
47880 * commands/cmp.c: Likewise.
47881 * commands/configfile.c: Likewise.
47882 * commands/echo.c: Likewise.
47883 * commands/help.c: Likewise.
47884 * commands/ls.c: Likewise.
47885 * commands/search.c: Likewise.
47886 * commands/terminal.c: Likewise.
47887 * commands/test.c: Likewise.
47888 * commands/videotest.c: Likewise.
47889 * commands/i386/cpuid.c: Likewise.
47890 * commands/i386/pc/halt.c: Likewise.
47891 * commands/i386/pc/play.c: Likewise.
47892 * commands/i386/pc/reboot.c: Likewise.
47893 * commands/i386/pc/vbeinfo.c: Likewise.
47894 * commands/i386/pc/vbetest.c: Likewise.
47895 * commands/ieee1275/halt.c: Likewise.
47896 * commands/ieee1275/reboot.c: Likewise.
47897 * commands/ieee1275/suspend.c: Likewise.
47898 * disk/loopback.c: Likewise.
47899 * disk/lvm.c: Likewise.
47900 * disk/raid.c: Likewise.
47901 * disk/efi/efidisk.c: Likewise.
47902 * disk/i386/pc/biosdisk.c: Likewise.
47903 * disk/ieee1275/ofdisk.c: Likewise.
47904 * font/manager.c: Likewise.
47905 * fs/affs.c: Likewise.
47906 * fs/ext2.c: Likewise.
47907 * fs/fat.c: Likewise.
47908 * fs/fshelp.c: Likewise.
47909 * fs/hfs.c: Likewise.
47910 * fs/hfsplus.c: Likewise.
47911 * fs/iso9660.c: Likewise.
47912 * fs/jfs.c: Likewise.
47913 * fs/minix.c: Likewise.
47914 * fs/sfs.c: Likewise.
47915 * fs/ufs.c: Likewise.
47916 * fs/xfs.c: Likewise.
47917 * hello/hello.c: Likewise.
47918 * include/grub/acorn_filecore.h: Likewise.
47919 * include/grub/arg.h: Likewise.
47920 * include/grub/bitmap.h: Likewise.
47921 * include/grub/boot.h: Likewise.
47922 * include/grub/cache.h: Likewise.
47923 * include/grub/device.h: Likewise.
47924 * include/grub/disk.h: Likewise.
47925 * include/grub/dl.h: Likewise.
47926 * include/grub/elfload.h: Likewise.
47927 * include/grub/env.h: Likewise.
47928 * include/grub/err.h: Likewise.
47929 * include/grub/file.h: Likewise.
47930 * include/grub/font.h: Likewise.
47931 * include/grub/fs.h: Likewise.
47932 * include/grub/fshelp.h: Likewise.
47933 * include/grub/gzio.h: Likewise.
47934 * include/grub/hfs.h: Likewise.
47935 * include/grub/kernel.h: Likewise.
47936 * include/grub/loader.h: Likewise.
47937 * include/grub/lvm.h: Likewise.
47938 * include/grub/misc.h: Likewise.
47939 * include/grub/mm.h: Likewise.
47940 * include/grub/net.h: Likewise.
47941 * include/grub/normal.h: Likewise.
47942 * include/grub/parser.h: Likewise.
47943 * include/grub/partition.h: Likewise.
47944 * include/grub/pc_partition.h: Likewise.
47945 * include/grub/raid.h: Likewise.
47946 * include/grub/rescue.h: Likewise.
47947 * include/grub/script.h: Likewise.
47948 * include/grub/setjmp.h: Likewise.
47949 * include/grub/symbol.h: Likewise.
47950 * include/grub/term.h: Likewise.
47951 * include/grub/terminfo.h: Likewise.
47952 * include/grub/tparm.h: Likewise.
47953 * include/grub/types.h: Likewise.
47954 * include/grub/video.h: Likewise.
47955 * include/grub/efi/api.h: Likewise.
47956 * include/grub/efi/chainloader.h: Likewise.
47957 * include/grub/efi/console.h: Likewise.
47958 * include/grub/efi/console_control.h: Likewise.
47959 * include/grub/efi/disk.h: Likewise.
47960 * include/grub/efi/efi.h: Likewise.
47961 * include/grub/efi/pe32.h: Likewise.
47962 * include/grub/efi/time.h: Likewise.
47963 * include/grub/i386/linux.h: Likewise.
47964 * include/grub/i386/setjmp.h: Likewise.
47965 * include/grub/i386/types.h: Likewise.
47966 * include/grub/i386/efi/kernel.h: Likewise.
47967 * include/grub/i386/efi/loader.h: Likewise.
47968 * include/grub/i386/efi/time.h: Likewise.
47969 * include/grub/i386/pc/biosdisk.h: Likewise.
47970 * include/grub/i386/pc/boot.h: Likewise.
47971 * include/grub/i386/pc/chainloader.h: Likewise.
47972 * include/grub/i386/pc/console.h: Likewise.
47973 * include/grub/i386/pc/init.h: Likewise.
47974 * include/grub/i386/pc/kernel.h: Likewise.
47975 * include/grub/i386/pc/loader.h: Likewise.
47976 * include/grub/i386/pc/memory.h: Likewise.
47977 * include/grub/i386/pc/multiboot.h: Likewise.
47978 * include/grub/i386/pc/serial.h: Likewise.
47979 * include/grub/i386/pc/time.h: Likewise.
47980 * include/grub/i386/pc/vbe.h: Likewise.
47981 * include/grub/i386/pc/vbeblit.h: Likewise.
47982 * include/grub/i386/pc/vbefill.h: Likewise.
47983 * include/grub/i386/pc/vbeutil.h: Likewise.
47984 * include/grub/i386/pc/vga.h: Likewise.
47985 * include/grub/ieee1275/ieee1275.h: Likewise.
47986 * include/grub/ieee1275/ofdisk.h: Likewise.
47987 * include/grub/powerpc/libgcc.h: Likewise.
47988 * include/grub/powerpc/setjmp.h: Likewise.
47989 * include/grub/powerpc/types.h: Likewise.
47990 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
47991 * include/grub/powerpc/ieee1275/console.h: Likewise.
47992 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
47993 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
47994 * include/grub/powerpc/ieee1275/loader.h: Likewise.
47995 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
47996 * include/grub/powerpc/ieee1275/time.h: Likewise.
47997 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
47998 * include/grub/sparc64/libgcc.h: Likewise.
47999 * include/grub/sparc64/setjmp.h: Likewise.
48000 * include/grub/sparc64/types.h: Likewise.
48001 * include/grub/sparc64/ieee1275/console.h: Likewise.
48002 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48003 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48004 * include/grub/sparc64/ieee1275/time.h: Likewise.
48005 * include/grub/util/biosdisk.h: Likewise.
48006 * include/grub/util/getroot.h: Likewise.
48007 * include/grub/util/lvm.h: Likewise.
48008 * include/grub/util/misc.h: Likewise.
48009 * include/grub/util/raid.h: Likewise.
48010 * include/grub/util/resolve.h: Likewise.
48011 * io/gzio.c: Likewise.
48012 * kern/device.c: Likewise.
48013 * kern/disk.c: Likewise.
48014 * kern/dl.c: Likewise.
48015 * kern/elf.c: Likewise.
48016 * kern/env.c: Likewise.
48017 * kern/err.c: Likewise.
48018 * kern/file.c: Likewise.
48019 * kern/fs.c: Likewise.
48020 * kern/loader.c: Likewise.
48021 * kern/main.c: Likewise.
48022 * kern/misc.c: Likewise.
48023 * kern/mm.c: Likewise.
48024 * kern/parser.c: Likewise.
48025 * kern/partition.c: Likewise.
48026 * kern/rescue.c: Likewise.
48027 * kern/term.c: Likewise.
48028 * kern/efi/efi.c: Likewise.
48029 * kern/efi/init.c: Likewise.
48030 * kern/efi/mm.c: Likewise.
48031 * kern/i386/dl.c: Likewise.
48032 * kern/i386/efi/init.c: Likewise.
48033 * kern/i386/efi/startup.S: Likewise.
48034 * kern/i386/pc/init.c: Likewise.
48035 * kern/i386/pc/lzo1x.S: Likewise.
48036 * kern/i386/pc/startup.S: Likewise.
48037 * kern/ieee1275/ieee1275.c: Likewise.
48038 * kern/powerpc/cache.S: Likewise.
48039 * kern/powerpc/dl.c: Likewise.
48040 * kern/powerpc/ieee1275/cmain.c: Likewise.
48041 * kern/powerpc/ieee1275/crt0.S: Likewise.
48042 * kern/powerpc/ieee1275/init.c: Likewise.
48043 * kern/powerpc/ieee1275/openfw.c: Likewise.
48044 * kern/sparc64/cache.S: Likewise.
48045 * kern/sparc64/dl.c: Likewise.
48046 * kern/sparc64/ieee1275/init.c: Likewise.
48047 * kern/sparc64/ieee1275/openfw.c: Likewise.
48048 * loader/efi/chainloader.c: Likewise.
48049 * loader/efi/chainloader_normal.c: Likewise.
48050 * loader/i386/efi/linux.c: Likewise.
48051 * loader/i386/efi/linux_normal.c: Likewise.
48052 * loader/i386/pc/chainloader.c: Likewise.
48053 * loader/i386/pc/chainloader_normal.c: Likewise.
48054 * loader/i386/pc/linux.c: Likewise.
48055 * loader/i386/pc/linux_normal.c: Likewise.
48056 * loader/i386/pc/multiboot.c: Likewise.
48057 * loader/i386/pc/multiboot_normal.c: Likewise.
48058 * loader/powerpc/ieee1275/linux.c: Likewise.
48059 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48060 * normal/arg.c: Likewise.
48061 * normal/cmdline.c: Likewise.
48062 * normal/command.c: Likewise.
48063 * normal/completion.c: Likewise.
48064 * normal/execute.c: Likewise.
48065 * normal/function.c: Likewise.
48066 * normal/lexer.c: Likewise.
48067 * normal/main.c: Likewise.
48068 * normal/menu.c: Likewise.
48069 * normal/menu_entry.c: Likewise.
48070 * normal/misc.c: Likewise.
48071 * normal/parser.y: Likewise.
48072 * normal/script.c: Likewise.
48073 * normal/i386/setjmp.S: Likewise.
48074 * normal/powerpc/setjmp.S: Likewise.
48075 * normal/sparc64/setjmp.S: Likewise.
48076 * partmap/acorn.c: Likewise.
48077 * partmap/amiga.c: Likewise.
48078 * partmap/apple.c: Likewise.
48079 * partmap/gpt.c: Likewise.
48080 * partmap/pc.c: Likewise.
48081 * partmap/sun.c: Likewise.
48082 * term/gfxterm.c: Likewise.
48083 * term/terminfo.c: Likewise.
48084 * term/efi/console.c: Likewise.
48085 * term/i386/pc/console.c: Likewise.
48086 * term/i386/pc/serial.c: Likewise.
48087 * term/i386/pc/vesafb.c: Likewise.
48088 * term/i386/pc/vga.c: Likewise.
48089 * term/ieee1275/ofconsole.c: Likewise.
48090 * util/biosdisk.c: Likewise.
48091 * util/console.c: Likewise.
48092 * util/genmoddep.c: Likewise.
48093 * util/getroot.c: Likewise.
48094 * util/grub-emu.c: Likewise.
48095 * util/grub-mkdevicemap.c: Likewise.
48096 * util/grub-probe.c: Likewise.
48097 * util/lvm.c: Likewise.
48098 * util/misc.c: Likewise.
48099 * util/raid.c: Likewise.
48100 * util/resolve.c: Likewise.
48101 * util/update-grub.in: Likewise.
48102 * util/update-grub_lib.in: Likewise.
48103 * util/grub.d/00_header.in: Likewise.
48104 * util/grub.d/10_hurd.in: Likewise.
48105 * util/grub.d/10_linux.in: Likewise.
48106 * util/i386/efi/grub-install.in: Likewise.
48107 * util/i386/efi/grub-mkimage.c: Likewise.
48108 * util/i386/pc/grub-install.in: Likewise.
48109 * util/i386/pc/grub-mkimage.c: Likewise.
48110 * util/i386/pc/grub-mkrescue.in: Likewise.
48111 * util/i386/pc/grub-setup.c: Likewise.
48112 * util/i386/pc/misc.c: Likewise.
48113 * util/powerpc/ieee1275/grub-install.in: Likewise.
48114 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48115 * util/powerpc/ieee1275/misc.c: Likewise.
48116 * video/bitmap.c: Likewise.
48117 * video/video.c: Likewise.
48118 * video/i386/pc/vbe.c: Likewise.
48119 * video/i386/pc/vbeblit.c: Likewise.
48120 * video/i386/pc/vbefill.c: Likewise.
48121 * video/i386/pc/vbeutil.c: Likewise.
48122 * video/readers/tga.c: Likewise.
48123
48124 2007-07-02 Robert Millan <rmh@aybabtu.com>
48125
48126 * conf/i386-efi.rmk: Replace obsolete reference to
48127 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48128 with util/getroot.c.
48129 * conf/powerpc-ieee1275.rmk: Likewise.
48130 * conf/sparc64-ieee1275.rmk: Likewise.
48131
48132 * util/grub-emu.c (main): Fix unchecked pointer handling.
48133
48134 2007-07-02 Robert Millan <rmh@aybabtu.com>
48135
48136 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48137 invocation to fail, in order to support partition-less media.
48138
48139 * util/i386/pc/grub-install.in: Likewise.
48140
48141 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48142 which fs or partmap modules are needed (akin to its sister scripts).
48143
48144 Also use grub-probe to get rid of unportable /proc/mounts check.
48145
48146 Print the same informational message that the other scripts do, before
48147 exiting.
48148
48149 2007-06-23 Robert Millan <rmh@aybabtu.com>
48150
48151 * util/update-grub_lib.in (font_path): New function. Determine whether
48152 a font file can be found and, if so, echo the GRUB path to it.
48153
48154 * util/update-grub.in: Handle multiple terminals depending on user
48155 input, platform availability and font file presence. Propagate
48156 variables of our findings to /etc/grub.d/ children.
48157
48158 * util/grub.d/00_header.in: Handle multiple terminals, based on
48159 environment setup by update-grub.
48160
48161 2007-06-23 Robert Millan <rmh@aybabtu.com>
48162
48163 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48164
48165 2007-06-21 Robert Millan <rmh@aybabtu.com>
48166
48167 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48168 indicate end of data section in kernel image.
48169 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48170 GRUB_KERNEL_MACHINE_DATA_END.
48171
48172 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48173 space for it.
48174 * kern/i386/efi/startup.S: Likewise.
48175
48176 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48177 during image generation. Implement --prefix option to override this
48178 patch.
48179 * util/i386/efi/grub-mkimage.c: Likewise.
48180
48181 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48182 code to make path relative to its root into a separate function.
48183
48184 * util/i386/pc/grub-install.in: Use newly provided
48185 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48186 pass the result to grub-install --prefix.
48187
48188 2007-06-13 Robert Millan <rmh@aybabtu.com>
48189
48190 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48191 DEFAULT_DEVICE_MAP.
48192 * util/grub-emu.c: Use above definitions from misc.h instead of
48193 defining them.
48194 * util/grub-mkdevicemap.c: Likewise.
48195 * util/i386/pc/grub-setup.c: Likewise.
48196 * util/grub-probe.c: Likewise.
48197 (probe): Abort with grub_util_error() when either
48198 grub_guess_root_device or grub_util_get_grub_dev fails.
48199
48200 2007-06-12 Robert Millan <rmh@aybabtu.com>
48201
48202 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48203 "pager" assignment.
48204 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48205 "pcdata".
48206 * util/grub-probe.c (probe): Likewise for "drive_name".
48207
48208 2007-06-11 Robert Millan <rmh@aybabtu.com>
48209
48210 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48211 not just the cdrom one.
48212
48213 2007-06-11 Robert Millan <rmh@aybabtu.com>
48214
48215 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48216 Add --pkglibdir=DIR option to override pkglibdir.
48217 Mention --image-type=TYPE in help output.
48218 Fix --grub-mkimage (it was a no-op).
48219 Abort gracefully when no parameter is given.
48220
48221 2007-06-11 Robert Millan <rmh@aybabtu.com>
48222
48223 * util/i386/pc/grub-mkrescue.in: New file.
48224 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48225 * Makefile.in: Handle bin_SCRIPTS.
48226
48227 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48228
48229 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48230 list of video modes.
48231
48232 2007-06-06 Robert Millan <rmh@aybabtu.com>
48233
48234 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48235 file doesn't exist, or if it is in a filesystem grub can't read.
48236
48237 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48238 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48239 header comment to fit in 80 columns when the variables are resolved.
48240
48241 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48242 could be identified by update-grub. Remove redundant check for
48243 unifont.pff existence (since convert_system_path_to_grub_path now
48244 handles that).
48245
48246 2007-06-04 Robert Millan <rmh@aybabtu.com>
48247
48248 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48249
48250 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48251
48252 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48253
48254 2007-06-04 Robert Millan <rmh@aybabtu.com>
48255
48256 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48257
48258 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48259 grub_apple_partition_map_fini.
48260
48261 * util/biosdisk.c
48262 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48263 to access >2 TiB disks).
48264
48265 Print disk->total_sectors with %llu instead of %lu, since this
48266 variable is always 64-bit (prevents wrong disk size from being displayed
48267 on either >2 TiB disk or big-endian CPU).
48268
48269 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48270 into a generic case that supports all (sane) partition maps.
48271
48272 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48273 breaks big-endian.
48274
48275 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48276 and grub_apple_partition_map_fini() after that.
48277
48278 2007-06-01 Robert Millan <rmh@aybabtu.com>
48279
48280 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48281
48282 * util/grub.d/00_header.in: Only enable gfxterm when
48283 convert_system_path_to_grub_path() succeeds.
48284
48285 2007-05-20 Robert Millan <rmh@aybabtu.com>
48286
48287 * util/update-grub_lib.in: New file.
48288 * DISTLIST: Add update-grub_lib.in.
48289 * conf/common.rmk: Generate update-grub_lib and install it in
48290 $(lib_DATA).
48291 * Makefile.in: Add install routine for $(lib_DATA).
48292
48293 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48294 function provided by update-grub_lib to support arbitrary paths of
48295 unifont.pff.
48296 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48297 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48298
48299 2007-05-19 Robert Millan <rmh@aybabtu.com>
48300
48301 * commands/i386/cpuid.c: New module.
48302 * DISTLIST: Add it.
48303 * conf/i386-efi.rmk: Enable cpuid.mod.
48304 * conf/i386-pc.rmk: Likewise.
48305
48306 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48307
48308 * kern/disk.c (grub_disk_read): Check return value of
48309 grub_realloc().
48310
48311 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48312
48313 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48314 arrays.
48315 * disk/raid.c (grub_raid_open): Likewise.
48316
48317 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48318
48319 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48320 stack instead of on the heap.
48321
48322 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48323 before doing a read on it.
48324
48325 * configure.ac: Only use -fno-stack-protector for the target
48326 environment.
48327
48328 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48329
48330 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48331 __attribute_ ((unused)) to mode_type argument.
48332
48333 * util/getroot.c (grub_guess_root_device): Fix #endif.
48334
48335 * kern/misc.c (memcmp): Fix prototype.
48336
48337 * include/grub/partition.h [GRUB_UTIL]
48338 (grub_gpt_partition_map_init): Add prototype.
48339 (grub_gpt_partition_map_fini): Likewise.
48340
48341 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48342 at the right place.
48343
48344 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48345 (grub_fat_read_data): Likewise.
48346 (grub_fat_find_dir): Likewise.
48347
48348 * font/manager.c (find_glyph): Make table a const.
48349 (grub_font_get_glyph): Remove bitmap from if statement.
48350
48351 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48352
48353 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48354 code, first search for device in /dev/mapper, then in /dev.
48355 (grub_util_get_grub_dev): New function.
48356 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48357 prototype.
48358 * util/grub-probe.c (probe): Remove check for RAID, call
48359 grub_util_get_grub_dev() instead of
48360 grub_util_biosdisk_get_grub_dev().
48361 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48362 grub_util_biosdisk_get_grub_dev().
48363 * util/i386/pc/grub-setup.c (main): Likewise.
48364
48365 2007-05-16 Robert Millan <rmh@aybabtu.com>
48366
48367 * DISTLIST: Update for the latest changes.
48368 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48369 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48370 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48371 grub/util/biosdisk.h.
48372 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48373 grub/util/biosdisk.h.
48374
48375 2007-05-16 Robert Millan <rmh@aybabtu.com>
48376
48377 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48378
48379 2007-05-16 Robert Millan <rmh@aybabtu.com>
48380
48381 * util/i386/efi/grub-install.in: New.
48382 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48383 newly added grub-install.
48384 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48385 include.
48386 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48387 grub/util/biosdisk.h.
48388 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48389 grub/util/biosdisk.h.
48390
48391 2007-05-16 Robert Millan <rmh@aybabtu.com>
48392
48393 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48394 * include/grub/util/biosdisk.h: ... here.
48395 * util/i386/pc/biosdisk.c: Moved to ...
48396 * util/biosdisk.c: ... here.
48397 * util/i386/pc/getroot.c: Moved to ...
48398 * util/getroot.c: ... here.
48399 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48400 * util/grub-mkdevicemap.c: ... here.
48401 * util/i386/pc/grub-probe.c: Moved to ...
48402 * util/grub-probe.c: ... here.
48403
48404 2007-05-15 Robert Millan <rmh@aybabtu.com>
48405
48406 * util/update-grub.in: Remove duplicated line in grub.cfg header
48407 message.
48408
48409 2007-05-13 Robert Millan <rmh@aybabtu.com>
48410
48411 * util/update-grub.in: Fix a few assumptions about the devices holding
48412 /, /boot and /boot/grub being the same.
48413 * util/grub.d/00_header.in: Likewise.
48414 * util/grub.d/10_hurd.in: Likewise.
48415 * util/grub.d/10_linux.in: Likewise.
48416
48417 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48418 patterns. Use that to define the `.old' suffix as older than `'.
48419
48420 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48421
48422 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48423 the grub.cfg header message.
48424
48425 2007-05-11 Robert Millan <rmh@aybabtu.com>
48426
48427 * util/update-grub.in: Create device.map if it doesn't already exist,
48428 before attempting to run grub-probe.
48429 Check for grub-probe and grub-mkdevicemap with the same code
48430 grub-install is using.
48431 Remove test mode.
48432
48433 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48434
48435 * Makefile.in: Add the datarootdir autoconf variable.
48436
48437 2007-05-09 Robert Millan <rmh@aybabtu.com>
48438
48439 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48440 fail gracefully if dev->disk->partition == NULL.
48441
48442 2007-05-07 Robert Millan <rmh@aybabtu.com>
48443
48444 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48445 determine partition map module.
48446 * util/i386/pc/grub-install.in: Use this feature to decide which
48447 partition module to load, instead of hardcoding pc and gpt.
48448
48449 2007-05-07 Robert Millan <rmh@aybabtu.com>
48450
48451 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48452 source directory differs from build directory.
48453
48454 2007-05-05 Robert Millan <rmh@aybabtu.com>
48455
48456 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48457 initialisation.
48458
48459 2007-05-05 Robert Millan <rmh@aybabtu.com>
48460
48461 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48462
48463 2007-05-05 Robert Millan <rmh@aybabtu.com>
48464
48465 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48466 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48467
48468 2007-05-05 Robert Millan <rmh@aybabtu.com>
48469
48470 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48471 (grub_probe_SOURCES): Likewise.
48472 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48473 GPT and initialize dos_part and bsd_part accordingly.
48474 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48475 install_bsd_part.
48476 (main): Activate gpt module for use during partition identification,
48477 and deactivate it afterwards.
48478 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48479 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48480 partition identification, and deactivate it afterwards.
48481
48482 2007-05-05 Robert Millan <rmh@aybabtu.com>
48483
48484 * term/i386/pc/console.c (grub_console_fini): Call
48485 grub_term_set_current() before grub_term_unregister().
48486
48487 2007-05-04 Robert Millan <rmh@aybabtu.com>
48488
48489 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48490 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48491 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48492 and update-grub_DATA.
48493 * conf/common.rmk: Build and install update-grub components.
48494 * conf/common.mk: Regenerate.
48495 * util/update-grub.in: New. Core of update-grub.
48496 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48497 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48498 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48499 * util/grub.d/README: New. Document grub.d directory layout.
48500
48501 2007-05-01 Robert Millan <rmh@aybabtu.com>
48502
48503 * util/grub-emu.c: Move initialization functions
48504 grub_util_biosdisk_init() and grub_init_all() before
48505 grub_util_biosdisk_get_grub_dev(), which relies on them.
48506
48507 2007-04-19 Robert Millan <rmh@aybabtu.com>
48508
48509 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48510 it is used later.
48511
48512 2007-04-18 Jerone Young <jerone@gmail.com>
48513
48514 * kernel/elf.c: Add missing parenthesis for conditional statement
48515 stanza.
48516
48517 2007-04-10 Jerone Young <jerone@gmail.com>
48518
48519 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48520 continue on and look for device node with real device name.
48521
48522 2007-04-10 Jerone Young <jerone@gmail.com>
48523
48524 * configure.ac: Add argument for autoconf to use transformation
48525 ability.
48526 * Makefile.in: Add autoconf package transformation code.
48527 * util/i386/pc/grub-install.in: Likewise.
48528 * util/powerpc/ieee1275/grub-install.in: Likewise.
48529
48530 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48531
48532 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48533 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48534 (EXT2_REVISION): Likewise.
48535 (EXT2_INODE_SIZE): Likewise.
48536 (struct grub_ext2_block_group): Added a missing member
48537 "used_dirs".
48538 (grub_ext2_read_inode): Divide by the inode size in a superblock
48539 instead of 128 to obtain INODES_PER_BLOCK.
48540 Use the macro EXT2_INODE_SIZE instead of directly using
48541 SBLOCK->INODE_SIZE.
48542
48543 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48544
48545 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48546 superblock instead of the structure size to compute an
48547 offset. This fixes the problem that GRUB could not read a
48548 filesystem when inode size is different from 128-byte.
48549
48550 2007-03-05 Marco Gerards <marco@gnu.org>
48551
48552 * normal/main.c (read_config_file): When "menu" is not set, create
48553 an initial context.
48554
48555 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48556
48557 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48558 (HEAP_LIMIT): New macro.
48559 (grub_claim_heap): Claim memory up to `heaplimit'.
48560
48561 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48562
48563 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48564 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48565 (_start): Likewise.
48566 (grub_arch_modules_addr): Return address after `_end'.
48567 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48568 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48569 (add_segments): Calculate `_end' from phdr size and location.
48570 (ALIGN_UP): Moved to ...
48571 * include/grub/misc.h: here.
48572 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48573 New macro.
48574 (GRUB_IEEE1275_MODULE_BASE): Removed.
48575
48576 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48577
48578 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48579 loop boundary.
48580
48581 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48582
48583 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48584 All users updated.
48585 (grub_elf64_load_hook_t): Likewise.
48586 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48587 debug output.
48588
48589 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48590
48591 * kern/mm.c: Update copyright.
48592 (grub_mm_debug): Correct syntax error.
48593 (grub_mm_dump_free): New function.
48594 (grub_debug_free): Call `grub_free'.
48595 * include/grub/mm.h: Update copyright.
48596 (grub_mm_dump_free): Add declaration.
48597
48598 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48599
48600 * include/grub/ieee1275/ieee1275.h: Update copyright.
48601 * kern/powerpc/ieee1275/init.c: Likewise.
48602 * kern/powerpc/ieee1275/openfw.c: Likewise.
48603
48604 * loader/powerpc/ieee1275/linux.c: Likewise.
48605 * include/grub/elfload.h: Likewise.
48606 * kern/elf.c: Likewise.
48607 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48608 callers.
48609 (grub_elf64_load): Likewise.
48610 (grub_elf32_load_segment): Move to a nested function.
48611 (grub_elf64_load_segment): Likewise.
48612
48613 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48614
48615 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48616 prototype.
48617 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48618 (grub_heap_len): Likewise.
48619 (HEAP_SIZE): New macro.
48620 (grub_claim_heap): New function.
48621 (grub_machine_init): Don't claim heap directly. Call
48622 `grub_claim_heap'.
48623 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48624 (grub_available_iterate): New function.
48625
48626 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48627
48628 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48629 * configure.ac: Use it for testing the HOST and TARGET compilers.
48630
48631 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48632
48633 * Makefile.in (enable_grub_emu): New variable.
48634 * configure.ac (--enable-grub-emu): New option.
48635 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48636 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48637 * conf/i386-pc.rmk: Likewise.
48638 * conf/powerpc-ieee1275.rmk: Likewise.
48639 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48640
48641 2006-12-12 Marco Gerards <marco@gnu.org>
48642
48643 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48644
48645 * kern/env.c (grub_env_unset): Don't free the member `value' when
48646 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48647 pointer.
48648
48649 * normal/main.c (current_menu): Removed.
48650 (free_menu): Unset the `menu' environment variable.
48651 (grub_normal_menu_addentry): Make use of the environment variable
48652 `menu', instead of using the global `current_menu'. Allocate
48653 memory for the sourcecode of this entry.
48654 (read_config_file): New argument `nested', changed all callers.
48655 Only in the case of a new context, initialize a new menu. Set the
48656 `menu' environment variable.
48657 (grub_normal_execute): Don't set and unset the environment
48658 variable `menu' here anymore. Only free the menu when leaving the
48659 context.
48660
48661 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48662 leak.
48663
48664 2006-12-11 Marco Gerards <marco@gnu.org>
48665
48666 * normal/menu_entry.c (run): Fix off by one bug so the last line
48667 is executed. Move the loader check to outside the loop.
48668
48669 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48670
48671 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48672
48673 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48674
48675 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48676 the number of sectors. Reported by Andrey Shuvikov
48677 <mr_hyro@yahoo.com>.
48678
48679 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48680
48681 * kern/disk.c (grub_disk_read): When there is a read error, always
48682 try to read only the necessary data.
48683
48684 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48685 disk/raid.c.
48686 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48687 prototype.
48688 [GRUB_UTIL] (grub_raid_fini): Likewise.
48689 [GRUB_UTIL] (grub_lvm_init): Likewise.
48690 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48691 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48692 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48693 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48694 and grub_raid_fini().
48695
48696 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48697
48698 * include/grub/types.h (__unused): Rename to UNUSED.
48699 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48700 (grub_elf64_size): Likewise.
48701
48702 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48703
48704 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48705 grub_error_push and grub_error_pop in the error-handling path.
48706 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48707 length.
48708
48709 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48710
48711 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48712 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48713 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48714 (kernel_elf_SOURCES): Likewise.
48715 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48716 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48717 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48718 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48719 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48720 (elf_mod_SOURCES): New variable.
48721 (elf_mod_CFLAGS): Likewise.
48722 (elf_mod_LDFLAGS): Likewise.
48723 * include/grub/types.h (__unused): New macro.
48724 * include/grub/elfload.h: New file.
48725 * kern/elf.c: Likewise.
48726 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48727 (ELF32_LOADMASK): New macro.
48728 (ELF64_LOADMASK): Likewise.
48729 (vmlinux): Removed.
48730 (grub_linux_load32): New function.
48731 (grub_linux_load64): Likewise.
48732 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48733 Use grub_elf_t instead of grub_file_t.
48734
48735 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48736
48737 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48738 `catch_result' to struct set_color_args.
48739
48740 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48741
48742 * normal/menu.c: Include grub/script.h.
48743 * normal/menu_entry.c: Likewise.
48744 * include/grub/normal.h: Do not include grub/script.h.
48745
48746 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48747
48748 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48749
48750 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48751
48752 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48753 disk.
48754 (grub_disk_close): Print debug messages when closing a disk.
48755 (grub_disk_read): Print debug messages when disk read fails.
48756 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48757 filesystem type.
48758 * kern/partition.c: Include misc.h.
48759 (grub_partition_iterate): Print debug messages when detecting
48760 partition type.
48761
48762 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48763
48764 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48765 is negative.
48766 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48767
48768 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48769
48770 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48771 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48772
48773 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48774
48775 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48776 instead of sizeof(lv). Patch by Michael Guntsche.
48777
48778 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48779
48780 * disk/lvm.c: Rename VGS to VG_LIST.
48781 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48782 (grub_lvm_open): Likewise.
48783 Thanks to Michael Guntsche for finding this bug.
48784
48785 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48786
48787 * configure.ac (AC_INIT): Bumped to 1.95.
48788
48789 2006-10-14 Robert Millan <rmh@aybabtu.com>
48790
48791 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48792 with "/dev/.static/dev/md".
48793
48794 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48795
48796 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48797 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48798 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48799 DRIVE_NAME are always freed.
48800
48801 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48802 DOS_PART, as a DOS partition is counted from one instead of zero
48803 now. Reported by Robert Millan.
48804
48805 2006-10-14 Robert Millan <rmh@aybabtu.com>
48806
48807 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48808 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48809 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48810 string returned by grub_guess_root_device.
48811 * util/i386/pc/grub-setup.c: Likewise.
48812 * util/i386/pc/grub-probefs.c: Likewise.
48813
48814 * util/i386/pc/grub-probefs.c: Rename to ...
48815 * util/i386/pc/grub-probe.c: ... this.
48816 * DISTLIST: Remove grub-probefs, add grub-probe.
48817 * conf/i386-efi.rmk: Likewise.
48818 * conf/i386-pc.rmk: Likewise.
48819 * util/i386/pc/grub-install.in: Likewise.
48820
48821 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48822 choose which information we want to print.
48823
48824 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48825
48826 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48827 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48828 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48829 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48830 video/readers/tga.c and video/i386/pc/vbeutil.c.
48831
48832 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48833
48834 Added support for RAID and LVM.
48835
48836 * disk/lvm.c: New file.
48837 * disk/raid.c: Likewise.
48838 * include/grub/lvm.h: Likewise.
48839 * include/grub/raid.h: Likewise.
48840 * include/grub/util/lvm.h: Likewise.
48841 * include/grub/util/raid.h: Likewise.
48842 * util/lvm.c: Likewise.
48843 * util/raid.c: Likewise.
48844
48845 * include/grub/disk.h (grub_disk_dev_id): Add
48846 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48847 (grub_disk_get_size): New prototype.
48848 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48849 returns a partition.
48850 (grub_disk_get_size): New function.
48851
48852 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48853 verbatim if grub_install_dos_part is -2.
48854
48855 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48856 and LVM devices.
48857
48858 * util/i386/pc/grub-setup.c (setup): New argument
48859 MUST_EMBED. Force embedding of GRUB when the argument is
48860 true. Close FILE before returning.
48861 (main): Add support for RAID and LVM.
48862
48863 * conf/common.rmk: Add RAID and LVM modules.
48864 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48865 util/lvm.c.
48866 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48867
48868 * kern/misc.c (grub_strstr): New function.
48869 * include/grub/misc.h (grub_strstr): New prototype.
48870
48871 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48872
48873 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48874
48875 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48876
48877 * kern/misc.c (grub_strtoull): Guess the base only if not
48878 specified.
48879
48880 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48881
48882 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48883 PowerMac support.
48884
48885 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48886
48887 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48888
48889 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48890 Remove `flags' argument. All callers changed.
48891 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48892 (IEEE1275_IHANDLE_INVALID): New variable.
48893 (IEEE1275_CELL_INVALID): New variable.
48894 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48895 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48896 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48897 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48898 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48899 codes from Open Firmware. All callers updated.
48900 (grub_ieee1275_next_property): Directly return Open Firmware return
48901 code.
48902 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48903 Standardize error checking from `grub_ieee1275_get_property'.
48904 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48905 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48906
48907 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48908
48909 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48910 `instance_to_package_args' to `instance_to_path_args'.
48911
48912 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48913 `grub_ieee1275_chosen'.
48914
48915 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48916 `grub_ieee1275_interpret'.
48917
48918 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48919
48920 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48921
48922 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48923
48924 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48925 (__cmpdi): Likewise.
48926
48927 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48928 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48929 `grub_ssize_t'.
48930
48931 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48932
48933 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48934 to type `grub_ssize_t'.
48935 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48936
48937 2006-09-22 Marco Gerards <marco@gnu.org>
48938
48939 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48940 newlines.
48941
48942 2006-09-22 Marco Gerards <marco@gnu.org>
48943
48944 * commands/echo.c: New file.
48945
48946 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48947
48948 * conf/common.rmk (echo_mod_SOURCES): New variable.
48949 (echo_mod_CFLAGS): Likewise.
48950 (echo_mod_LDFLAGS): Likewise.
48951
48952 2006-09-22 Marco Gerards <marco@gnu.org>
48953
48954 * normal/main.c (get_line): Malloc memory instead of using
48955 preallocated memory. Removed the arguments `cmdline' and
48956 `max_len'. Updated all callers.
48957
48958 2006-09-22 Marco Gerards <marco@gnu.org>
48959
48960 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48961 (normal_mod_DEPENDENCIES): Likewise.
48962
48963 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48964 (normal_mod_DEPENDENCIES): Likewise.
48965
48966 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48967
48968 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48969
48970 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48971 programs.
48972 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48973 (normal_mod_DEPENDENCIES): Likewise.
48974 * conf/i386-pc.mk: Regenerate.
48975 * conf/i386-efi.mk: Likewise
48976 * conf/common.mk: Likewise.
48977 * conf/powerpc-ieee1275.mk: Likewise.
48978 * conf/sparc64-ieee1275.mk: Likewise.
48979
48980 2006-09-22 Robert Millan <rmh@aybabtu.com>
48981
48982 Sync with i386 version.
48983 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
48984 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
48985
48986 2006-09-21 Robert Millan <rmh@aybabtu.com>
48987
48988 Import from GRUB Legacy (lib/device.c):
48989 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
48990 (init_device_map) [__linux__]: Add support for I2O devices.
48991
48992 2006-09-14 Marco Gerards <marco@gnu.org>
48993
48994 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
48995 `-melf_i386'.
48996
48997 2006-09-14 Robert Millan <rmh@aybabtu.com>
48998
48999 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49000 /boot/grub/*.lst.
49001
49002 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49003
49004 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49005 before adding it to device.map.
49006
49007 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49008
49009 * genmk.rb: Let GCC generate dependencies the first time it
49010 compiles a file; using the -MD option.
49011 * conf/common.mk: Regenerate.
49012 * conf/i386-pc.mk: Likewise.
49013 * conf/i386-efi.mk: Likewise.
49014 * conf/powerpc-ieee1275.mk: Likewise.
49015 * conf/sparc64-ieee1275.mk: Likewise.
49016
49017 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49018
49019 Move the prototypes of grub_setjmp and grub_longjmp to
49020 cpu/setjmp.h, so that each architecture may specify different
49021 attributes.
49022
49023 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49024 (grub_longjmp): Likewise.
49025 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49026 (grub_longjmp): Likewise.
49027 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49028 (grub_longjmp): Likewise.
49029
49030 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49031 [!GRUB_UTIL] (grub_longjmp): Removed.
49032
49033 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49034
49035 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49036 "color!" method does not return any value.
49037
49038 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49039
49040 * include/grub/bitmap.h: New file.
49041
49042 * include/grub/i386/pc/vbeutil.h: Likewise.
49043
49044 * video/bitmap.c: Likewise.
49045
49046 * video/readers/tga.c: Likewise.
49047
49048 * video/i386/pc/vbeutil.c: Likewise.
49049
49050 * commands/videotest.c: Code cleanup and updated to reflect to new
49051 video API.
49052
49053 * term/gfxterm.c: Likewise.
49054
49055 * video/video.c: Likewise.
49056
49057 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49058 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49059 (bitmap_mod_SOURCES): New entry.
49060 (bitmap_mod_CFLAGS): Likewise.
49061 (bitmap_mod_LDFLAGS): Likewise.
49062 (tga_mod_SOURCES): Likewise.
49063 (tga_mod_CFLAGS): Likewise.
49064 (tga_mod_LDFLAGS): Likewise.
49065
49066 * include/grub/video.h (grub_video_blit_operators): New enum type.
49067 (grub_video_render_target): Changed as forward declaration and moved
49068 actual definition to be video driver specific.
49069 (grub_video_adapter.blit_bitmap): Added blitting operator.
49070 (grub_video_adapter.blit_render_target): Likewise.
49071 (grub_video_blit_bitmap): Likewise.
49072 (grub_video_blit_render_target): Likewise.
49073
49074 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49075 driver specific render target definition.
49076 (grub_video_vbe_map_rgba): Added driver internal helper.
49077 (grub_video_vbe_unmap_color): Updated to use
49078 grub_video_i386_vbeblit_info.
49079 (grub_video_vbe_get_video_ptr): Likewise.
49080
49081 * include/grub/i386/pc/vbeblit.h
49082 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49083 grub_video_i386_vbeblit_info.
49084 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49085 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49086 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49087 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49088 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49089 (grub_video_i386_vbeblit_index_index): Likewise.
49090 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49091 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49092 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49093 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49094 operator.
49095 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49096 operator.
49097
49098 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49099 include/grub/i386/pc/vbeblit.h.
49100
49101 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49102 Updated to use grub_video_i386_vbeblit_info.
49103 (grub_video_i386_vbefill_R8G8B8): Likewise.
49104 (grub_video_i386_vbefill_index): Likewise.
49105 (grub_video_i386_vbefill): Added generic filler.
49106
49107 * video/i386/pc/vbefill.c: Updated to reflect changes on
49108 include/grub/i386/pc/vbefill.h.
49109
49110 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49111 grub_video_i386_vbeblit_info.
49112 (grub_video_vbe_unmap_color): Likewise.
49113 (grub_video_vbe_blit_glyph): Likewise.
49114 (grub_video_vbe_scroll): Likewise.
49115 (grub_video_vbe_draw_pixel): Removed function.
49116 (grub_video_vbe_get_pixel): Likewise.
49117 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49118 updated code to use it.
49119 (common_blitter): Added common blitter for render target and bitmap.
49120 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49121 (grub_video_vbe_blit_render_target): Likewise.
49122
49123 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49124
49125 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49126 is in text mode if there is no console control protocol instance
49127 available.
49128
49129 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49130
49131 * include/grub/video.h: Code cleanup.
49132
49133 * include/grub/i386/pc/vbe.h: Likewise.
49134
49135 * video/i386/pc/vbe.c: Likewise.
49136
49137 * video/i386/pc/vbeblit.c: Likewise.
49138
49139 * video/i386/pc/vbefill.c: Likewise.
49140
49141 * video/video.c: Likewise. Also added more comments.
49142
49143 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49144
49145 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49146 (struct grub_biosdisk_dap): Likewise.
49147
49148 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49149 linkage settings for all functions.
49150
49151 2006-07-12 Marco Gerards <marco@gnu.org>
49152
49153 * configure.ac (--enable-mm-debug): Fix typo.
49154
49155 * genkernsyms.sh.in: Use proper quoting for `CC'.
49156
49157 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49158
49159 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49160 (normal_mod_ASFLAGS): Remove "-m32".
49161
49162 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49163
49164 * util/misc.c: Include config.h.
49165 [!HAVE_MEMALIGN]: Do not include malloc.h.
49166 (grub_memalign): Use posix_memalign, if present. Then, use
49167 memalign, if present. Otherwise, emit an error.
49168
49169 * util/grub-emu.c: Do not include malloc.h.
49170
49171 * include/grub/util/misc.h: Include unistd.h. This is required for
49172 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49173 D. Eades III <hde@foobar-qux.org>.
49174
49175 * configure.ac (AC_GNU_SOURCE): Added.
49176 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49177 type.
49178
49179 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49180
49181 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49182 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49183
49184 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49185
49186 * include/grub/types.h (grub_host_addr_t): Rename to
49187 grub_target_addr_t.
49188 (grub_host_off_t): Rename to grub_target_off_t.
49189 (grub_host_size_t): Rename to grub_target_size_t.
49190 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49191 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49192
49193 * include/grub/kernel.h (struct grub_module_header): Change type
49194 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49195 (grub_module_info): Likewise.
49196
49197 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49198
49199 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49200 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49201 Velazquez <jesus.velazquez@gmail.com>.
49202
49203 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49204
49205 Count partitions from 1 instead of 0 in the string representation
49206 of partitions. Still use 0-based internally.
49207
49208 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49209 (sun_partition_map_iterate): Use grub_partition_t instead of
49210 struct grub_partition *. Cast DESC->START_CYLINDER to
49211 grub_uint64_t after converting the endian.
49212 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49213 (sun_partition_map_get_name): Add 1 to P->INDEX.
49214
49215 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49216 PCDATA->DOS_PART.
49217 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49218
49219 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49220 zero instead of one.
49221 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49222 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49223
49224 * partmap/apple.c (apple_partition_map_iterate): Change the type
49225 of POS to unsigned.
49226 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49227 (apple_partition_map_get_name): Add 1 into P->INDEX.
49228
49229 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49230 of POS to unsigned.
49231 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49232 calculate the offset of a partition.
49233 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49234 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49235
49236 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49237 SECTOR to grub_disk_addr_t.
49238 (acorn_partition_map_iterate): Likewise.
49239 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49240 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49241 top.
49242 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49243
49244 * kern/i386/pc/init.c (make_install_device): Add 1 into
49245 GRUB_INSTALL_DOS_PART.
49246
49247 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49248 conditional.
49249
49250 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49251
49252 Clean up the code to support 64-bit addressing in disks and
49253 files. This change is not enough for filesystems yet.
49254
49255 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49256 type of "start" to grub_uint64_t.
49257 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49258 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49259 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49260 convert addresses.
49261
49262 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49263 to grub_disk_addr_t.
49264
49265 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49266 string.
49267
49268 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49269
49270 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49271 to char *.
49272
49273 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49274
49275 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49276
49277 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49278
49279 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49280 to grub_off_t, to detect an error from grub_file_seek.
49281 (grub_multiboot_load_elf32): Likewise.
49282
49283 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49284 maximum unsigned long value when an overflow is detected.
49285 (grub_strtoull): New function.
49286 (grub_divmod64): Likewise.
49287 (grub_lltoa): use grub_divmod64.
49288
49289 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49290 grub_disk_addr_t.
49291 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49292 the pointer to next character. Use grub_strtoull instead of
49293 grub_strtoul.
49294 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49295 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49296 respectively.
49297
49298 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49299 return value is signed.
49300 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49301 test if OFFSET is less than zero, as OFFSET is unsigned now.
49302
49303 * kern/disk.c (struct grub_disk_cache): Change the type of
49304 "sector" to grub_disk_addr_t.
49305 (grub_disk_cache_get_index): Change the type of SECTOR to
49306 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49307 unsigned after shifting.
49308 (grub_disk_cache_invalidate): Change the type of SECTOR to
49309 grub_disk_addr_t.
49310 (grub_disk_cache_unlock): Likewise.
49311 (grub_disk_cache_store): Likewise.
49312 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49313 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49314 grub_disk_addr_t and grub_uint64_t, respectively.
49315 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49316 body, as the value of OFFSET is tweaked by
49317 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49318 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49319 respectively.
49320 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49321 body, as the value of OFFSET is tweaked by
49322 grub_disk_check_range. Change the types of LEN and N to
49323 grub_size_t.
49324
49325 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49326 and "saved_offset" to grub_off_t.
49327 (test_header): Cast BUF to char *.
49328 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49329 to char *.
49330 (grub_gzio_read): Change the types of OFFSET and SIZE to
49331 grub_off_t and grub_size_t, respectively.
49332
49333 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49334 Removed.
49335 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49336 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49337 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49338 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49339 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49340
49341 * include/grub/types.h (grub_off_t): Unconditionally set to
49342 grub_uint64_t.
49343 (grub_disk_addr_t): Changed to grub_uint64_t.
49344
49345 * include/grub/partition.h (struct grub_partition): Change the
49346 types of "start", "len" and "offset" to grub_disk_addr_t,
49347 grub_uint64_t and grub_disk_addr_t, respectively.
49348 (grub_partition_get_start): Return grub_disk_addr_t.
49349 (grub_partition_get_len): Return grub_uint64_t.
49350
49351 * include/grub/misc.h (grub_strtoull): New prototype.
49352 (grub_divmod64): Likewise.
49353
49354 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49355 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49356 grub_off_t, respectively.
49357 All callers and references changed.
49358
49359 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49360 grub_size_t in "read".
49361 All callers and references changed.
49362
49363 * include/grub/file.h (struct grub_file): Change the types of
49364 "offset" and "size" to grub_off_t and grub_off_t,
49365 respectively. Change the type of SECTOR to grub_disk_addr_t in
49366 "read_hook".
49367 (grub_file_read): Change the type of LEN to grub_size_t.
49368 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49369 grub_off_t.
49370 (grub_file_size): Return grub_off_t.
49371 (grub_file_tell): Likewise.
49372 All callers and references changed.
49373
49374 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49375 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49376 "write".
49377 (struct grub_disk): Change the type of "total_sectors" to
49378 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49379 "read_hook".
49380 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49381 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49382 (grub_disk_write): Likewise.
49383 All callers and references changed.
49384
49385 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49386 char * for grub_strncmp to silence gcc.
49387 (grub_iso9660_mount): Likewise.
49388 (grub_iso9660_mount): Likewise.
49389 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49390 return statement.
49391 (grub_iso9660_iterate_dir): Likewise.
49392 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49393
49394 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49395 LEN to grub_disk_addr_t and grub_size_t, respectively.
49396
49397 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49398
49399 * fs/jfs.c (grub_jfs_read_file): Likewise.
49400
49401 * fs/minix.c (grub_jfs_read_file): Likewise.
49402
49403 * fs/sfs.c (grub_jfs_read_file): Likewise.
49404
49405 * fs/ufs.c (grub_jfs_read_file): Likewise.
49406
49407 * fs/xfs.c (grub_jfs_read_file): Likewise.
49408
49409 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49410 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49411 respectively.
49412
49413 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49414 BLKNR to -1 instead of returning GRUB_ERRNO.
49415 (grub_ext2_read_file): Change the types of SECTOR and
49416 LEN to grub_disk_addr_t and grub_size_t, respectively.
49417
49418 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49419 LEN to grub_disk_addr_t and grub_size_t, respectively.
49420
49421 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49422 grub_file_read.
49423
49424 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49425 string. Do not cast SECTOR explicitly.
49426
49427 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49428 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49429 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49430 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49431 over 2TB and LBA mode is not supported, raise an error.
49432 (get_safe_sectors): New function.
49433 (grub_biosdisk_read): Use get_safe_sectors.
49434 (grub_biosdisk_write): Likewise.
49435
49436 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49437 (grub_efidisk_write): Likewise.
49438
49439 * disk/loopback.c (delete_loopback): Cosmetic changes.
49440 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49441 correctly.
49442 (grub_loopback_open): Likewise.
49443 (grub_loopback_read): Likewise. Also, change the type of POS to
49444 grub_off_t, and fix the usage of grub_memset.
49445
49446 * commands/i386/pc/play.c: Include grub/machine/time.h.
49447
49448 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49449 print FILE->SIZE.
49450
49451 * commands/configfile.c: Include grub/env.h.
49452
49453 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49454 GRUB_ERRNO directly instead. Change the type of POS to
49455 grub_off_t. Follow the coding standard.
49456
49457 * commands/blocklist.c: Include grub/partition.h.
49458 (grub_cmd_blocklist): Return an error if the underlying device is
49459 not a disk. Take the starting sector of a partition into account,
49460 if a partition is used.
49461
49462 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49463 a length field.
49464 (lba_mode): Support 64-bit addresses.
49465 (chs_mode): Likewise.
49466 (copy_buffer): Adapted to the new offsets of a length field and a
49467 segment field.
49468 (blocklist_default_start): Allocate 64-bit space.
49469
49470 * boot/i386/pc/boot.S (force_lba): Removed.
49471 (boot_drive): Moved to under KERNEL_SECTOR.
49472 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49473 space.
49474 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49475 is useless.
49476 (lba_mode): Refactored to support a 64-bit address. More size
49477 optimization.
49478 (setup_sectors): Likewise.
49479
49480 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49481
49482 * DISTLIST: Added include/grub/i386/linux.h. Removed
49483 include/grub/i386/pc/linux.h
49484
49485 * configure.ac (AC_INIT): Bumped to 1.94.
49486
49487 * config.guess: Updated from gnulib.
49488 * config.sub: Likewise.
49489 * install-sh: Likewise.
49490 * mkinstalldirs: Likewise.
49491
49492 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49493
49494 * conf/common.rmk (grub_modules_init.lst): Depended on
49495 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49496 MODSRCFILES.
49497
49498 * genmk.rb (PModule::rule): Reverted the previous change.
49499
49500 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49501
49502 * conf/common.rmk (grub_modules_init.lst): Depends on
49503 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49504 that the target does not exist before producing.
49505 (grub_modules_init.h): Remove the target before generating.
49506 (grub_emu_init.c): Likewise.
49507
49508 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49509
49510 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49511
49512 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49513 for the target-specific tests. Make sure that we also have the
49514 up-to-date target variables for those tests.
49515
49516 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49517
49518 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49519 (PModule::rule): Likewise.
49520
49521 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49522
49523 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49524 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49525 target-specific flags should be prefixed.
49526 (PModule::rule): Likewise.
49527
49528 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49529
49530 * configure.ac (CMP): Check if cmp is available explicitly.
49531
49532 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49533
49534 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49535 (target_cpu): New variable.
49536 (pkglibdir): Use target_cpu instead of host_cpu.
49537
49538 * util/i386/pc/grub-install.in (host_cpu): Removed.
49539 (target_cpu): New variable.
49540 (pkglibdir): Use target_cpu instead of host_cpu.
49541
49542 * util/genmoddep.c: Removed.
49543
49544 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49545 instead of GRUB_HOST_SIZEOF_VOID_P.
49546 * kern/dl.c: Likewise.
49547
49548 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49549 ...
49550 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49551 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49552 (GRUB_TARGET_SIZEOF_LONG): ... this.
49553 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49554 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49555 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49556 to ...
49557 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49558 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49559 (GRUB_TARGET_SIZEOF_LONG): ... this.
49560 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49561 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49562 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49563 to ...
49564 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49565 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49566 (GRUB_TARGET_SIZEOF_LONG): ... this.
49567 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49568 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49569
49570 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49571 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49572 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49573 instead of GRUB_HOST_SIZEOF_LONG.
49574 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49575 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49576 GRUB_CPU_WORDS_BIGENDIAN.
49577 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49578 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49579 grub_host_ssize_t.
49580
49581 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49582 (genmoddep_SOURCES): Likewise.
49583 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49584 (genmoddep_SOURCES): Likewise.
49585 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49586 (genmoddep_SOURCES): Likewise.
49587 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49588 Likewise.
49589 (genmoddep_SOURCES): Likewise.
49590
49591 * genmoddep.awk: New file.
49592
49593 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49594 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49595 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49596 (PModule::rule): Likewise.
49597 (Program::rule): Likewise.
49598 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49599 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49600 respectively.
49601
49602 * configure.ac: Rewritten intensively to use host and target
49603 instead of build and host, respectively.
49604
49605 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49606 (host_cpu): Removed.
49607 (target_cpu): New variable.
49608 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49609 (BUILD_CC): Removed.
49610 (BUILD_CFLAGS): Likewise.
49611 (BUILD_CPPFLAGS): Likewise.
49612 (TARGET_CC): New variable.
49613 (TARGET_CFLAGS): Likewise.
49614 (TARGET_CPPFLAGS): Likewise.
49615 (TARGET_LDFLAGS): Likewise.
49616 (AWK): Likewise.
49617 (include): Use target_cpu instead of host_cpu.
49618 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49619
49620 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49621
49622 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49623
49624 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49625 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49626 field 'false' to 'exec_on_false'.
49627 (grub_script_create_cmdif): Renamed argument names to reflect above
49628 changes.
49629
49630 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49631
49632 * normal/script.c (grub_script_create_cmdif): Likewise.
49633
49634 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49635
49636 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49637 top.
49638 (grub_hfsplus_btree_recptr): Likewise.
49639 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49640 FILEBLOCK both to pass a block number and store next block
49641 number.
49642 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49643 overflow file correctly. Specify errors appropriately, because
49644 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49645 grub_hfsplus_btree_recptr to get the pointer to a found key.
49646 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49647 is found.
49648
49649 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49650 linux.mod.
49651 (_linux_mod_SOURCES): New variable.
49652 (_linux_mod_CFLAGS): Likewise.
49653 (_linux_mod_LDFLAGS): Likewise.
49654 (linux_mod_SOURCES): Likewise.
49655 (linux_mod_CFLAGS): Likewise.
49656 (linux_mod_LDFLAGS): Likewise.
49657
49658 * DISTLIST: Added loader/i386/efi/linux.c,
49659 loader/i386/efi/linux_normal.c and
49660 include/grub/i386/efi/loader.h.
49661
49662 * loader/i386/efi/linux.c: New file.
49663 * loader/i386/efi/linux_normal.c: Likewise.
49664 * include/grub/i386/efi/loader.h: Likewise.
49665
49666 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49667
49668 * commands/blocklist.c: New file.
49669
49670 * DISTLIST: Added commands/blocklist.c.
49671
49672 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49673 color for the background, and a darker color for the foreground.
49674 (grub_console_checkkey): Return READ_KEY.
49675 (grub_console_cls): Set the background to
49676 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49677
49678 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49679
49680 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49681 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49682
49683 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49684 prototype.
49685
49686 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49687 BG. The spec is wrong again.
49688
49689 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49690 prototype.
49691 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49692
49693 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49694 commands/blocklist.c.
49695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49696
49697 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49698 (blocklist_mod_SOURCES): New variable.
49699 (blocklist_mod_CFLAGS): Likewise.
49700 (blocklist_mod_LDFLAGS): Likewise.
49701
49702 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49703
49704 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49705 duplication.
49706 (lba_mode): Use %eax more intensively to reduce the code size.
49707
49708 2006-05-20 Marco Gerards <marco@gnu.org>
49709
49710 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49711
49712 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49713 for `menuentry'.
49714 (script): Accept leading newlines.
49715 (newlines): New rule to describe 0 or more newlines.
49716 (commands): Accept `command' with trailing newline. Fixed the
49717 order in which arguments were passed to `grub_script_add_cmd'.
49718 Accept commands separated by newlines.
49719 (function): Changed to accept newlines.
49720 (menuentry) Rewritten.
49721
49722 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49723 front of the list, instead of to the end.
49724
49725 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49726
49727 * util/i386/pc/grub-install.in (bindir): New variable.
49728 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49729 Shaver <lbgwjl@gmail.com>.
49730
49731 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49732
49733 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49734 grub/machine/linux.h
49735 * loader/i386/pc/linux.c: Likewise.
49736
49737 * include/grub/i386/pc/linux.h: Moved to ...
49738 * include/grub/i386/linux.h: ... here.
49739
49740 * include/grub/i386/linux.h (struct linux_kernel_params): New
49741 struct.
49742
49743 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49744
49745 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49746 checking.
49747 (grub_video_vbe_blit_glyph): Likewise.
49748 (grub_video_vbe_blit_bitmap): Likewise.
49749 (grub_video_vbe_blit_render_target): Likewise.
49750
49751 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49752
49753 * configure.ac (--with-platform): Properly quote the square
49754 brackets.
49755
49756 2006-05-08 Marco Gerards <marco@gnu.org>
49757
49758 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49759 this...
49760 (kernel_elf_HEADERS): ...to this. Updated all users.
49761 (grubof_symlist.c): Renamed from this...
49762 (kernel_elf_symlist.c): ...to this. Updated all users.
49763 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49764 (grubof_SOURCES): Renamed from this...
49765 (kernel_elf_SOURCES): ...to this.
49766 (grubof_HEADERS): Renamed from this...
49767 (kernel_elf_HEADERS): ...to this.
49768 (grubof_CFLAGS): Renamed from this...
49769 (kernel_elf_CFLAGS): ...to this.
49770 (grubof_ASFLAGS): Renamed from this...
49771 (kernel_elf_ASFLAGS): ...to this.
49772 (grubof_LDFLAGS): Renamed from this...
49773 (kernel_elf_LDFLAGS): ...to this.
49774
49775 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49776 this...
49777 (kernel_elf_HEADERS): ...to this. Updated all users.
49778 (grubof_symlist.c): Renamed from this...
49779 (kernel_elf_symlist.c): ...to this. Updated all users.
49780 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49781 (grubof_SOURCES): Renamed from this...
49782 (kernel_elf_SOURCES): ...to this.
49783 (grubof_HEADERS): Renamed from this...
49784 (kernel_elf_HEADERS): ...to this.
49785 (grubof_CFLAGS): Renamed from this...
49786 (kernel_elf_CFLAGS): ...to this.
49787 (grubof_ASFLAGS): Renamed from this...
49788 (kernel_elf_ASFLAGS): ...to this.
49789 (grubof_LDFLAGS): Renamed from this...
49790 (kernel_elf_LDFLAGS): ...to this.
49791
49792 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49793 `kernel.elf' instead of `grubof'.
49794
49795 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49796
49797 Add --with-platform to configure. Use pkglibdir instead of
49798 pkgdatadir. This is reported by Roger Leigh.
49799
49800 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49801 (host_vendor): Likewise.
49802 (host_os): Likewise.
49803 (pkgdatadir): Likewise.
49804 (platform): New variable.
49805 (pkglibdir): Likewise.
49806 Use PKGLIBDIR instead of PKGDATADIR.
49807
49808 * util/i386/pc/grub-install.in (datadir): Removed.
49809 (host_vendor): Likewise.
49810 (host_os): Likewise.
49811 (pkgdatadir): Likewise.
49812 (platform): New variable.
49813 (pkglibdir): Likewise.
49814 Use PKGLIBDIR instead of PKGDATADIR.
49815
49816 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49817 instead of GRUB_DATADIR.
49818 (main): Likewise.
49819 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49820 (main): Likewise.
49821 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49822 (main): Likewise.
49823
49824 * configure.ac (--with-platform): New option.
49825 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49826
49827 * Makefile.in: Include a makefile based on PLATFORM instead of
49828 HOST_VENDOR.
49829 (pkgdatadir): Not appended by the machine type.
49830 (pkglibdir): Appended by the machine type.
49831 (host_vendor): Removed.
49832 (platform): New variable.
49833 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49834 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49835 (uninstall): Likewise.
49836
49837 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49838
49839 Use the environment context in the menu. Remove the commands
49840 "default" and "timeout", and use variables instead.
49841
49842 * normal/menu.c: Include grub/env.h.
49843 (print_entry): Cast TITLE to silence gcc.
49844 (get_timeout): New function.
49845 (set_timeout): Likewise.
49846 (get_entry_number): Likewise.
49847 (run_menu): Use a default entry, a fallback entry and a timeout
49848 in the environment variables "default", "fallback" and
49849 "timeout". Also, tweak the default entry if it is not within the
49850 current menu entries.
49851 (grub_menu_run): Use a fallback entry in the environment variable
49852 "fallback".
49853
49854 * normal/main.c (read_config_file): Do not initialize
49855 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49856 NEWMENU->TIMEOUT.
49857 (grub_normal_execute): Use a data slot to store the menu.
49858
49859 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49860 fallback_entry and timeout.
49861 (struct grub_menu_list): Removed.
49862 (grub_menu_list_t): Likewise.
49863 (struct grub_context): Likewise.
49864 (grub_context_t): Likewise.
49865 (grub_context_get): Likewise.
49866 (grub_context_get_current_menu): Likewise.
49867 (grub_context_push_menu): Likewise.
49868 (grub_context_pop_menu): Likewise.
49869 (grub_default_init): Likewise.
49870 (grub_default_fini): Likewise.
49871 (grub_timeout_init): Likewise.
49872 (grub_timeout_fini): Likewise.
49873
49874 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49875 and timeout.mod.
49876 (normal_mod_SOURCES): Removed normal/context.c.
49877
49878 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49879 commands/default.c, commands/timeout.c and normal/context.c.
49880 (normal_mod_SOURCES): Removed normal/context.c.
49881
49882 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49883 commands/timeout.c and normal/context.c.
49884 (normal_mod_SOURCES): Removed normal/context.c.
49885
49886 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49887 commands/default.c, commands/timeout.c and normal/context.c.
49888 (normal_mod_SOURCES): Removed normal/context.c.
49889
49890 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49891 timeout.mod.
49892 (default_mod_SOURCES): Removed.
49893 (default_mod_CFLAGS): Likewise.
49894 (default_mod_LDFLAGS): Likewise.
49895 (timeout_mod_SOURCES): Removed.
49896 (timeout_mod_CFLAGS): Likewise.
49897 (timeout_mod_LDFLAGS): Likewise.
49898
49899 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49900 normal/context.c.
49901
49902 * commands/default.c: Removed.
49903 * commands/timeout.c: Likewise.
49904 * normal/context.c: Likewise.
49905
49906 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49907
49908 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49909
49910 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49911
49912 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49913 "next" to "prev" for readability.
49914 (struct grub_env_sorted_var): New struct.
49915 (grub_env_context): Renamed to ...
49916 (initial_context): ... this.
49917 (grub_env_var_context): Renamed to ...
49918 (current_context): ... this.
49919 (grub_env_find): Look only at CURRENT_CONTEXT.
49920 (grub_env_context_open): Rewritten to copy exported variables from
49921 previous context.
49922 (grub_env_context_close): Rewritten according to the new
49923 scheme. Also, add an assertion to prevent the initial context from
49924 removed.
49925 (grub_env_insert): Removed the code for the sorted list.
49926 (grub_env_remove): Likewise.
49927 (grub_env_export): Simply mark the variable with
49928 GRUB_ENV_VAR_GLOBAL.
49929 (grub_env_set): A cosmetic change for naming consistency.
49930 (grub_env_get): Likewise.
49931 (grub_env_unset): Likewise.
49932 (grub_env_iterate): Rewritten to sort variables within this
49933 function.
49934 (grub_register_variable_hook): Fixed for naming consistency. Call
49935 grub_env_find again, only if NAME is not found at the first time.
49936 (mangle_data_slot_name): New function.
49937 (grub_env_set_data_slot): Likewise.
49938 (grub_env_get_data_slot): Likewise.
49939 (grub_env_unset_data_slot): Likewise.
49940
49941 * include/grub/env.h (grub_env_var_type): New enum.
49942 (GRUB_ENV_VAR_LOCAL): New constant.
49943 (GRUB_ENV_VAR_GLOBAL): Likewise.
49944 (GRUB_ENV_VAR_DATA): Likewise.
49945 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49946 "type".
49947 (grub_env_set): Replace VAR with NAME for consistency.
49948 (grub_register_variable_hook): Likewise.
49949 (grub_env_export): Specify the name of the argument.
49950 (grub_env_set_data_slot): New prototype.
49951 (grub_env_get_data_slot): Likewise.
49952 (grub_env_unset_data_slot): Likewise.
49953
49954 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49955
49956 Extend the loader so that GRUB can accept a loader which comes
49957 back to GRUB when a loaded image exits. Also, this change adds
49958 support for a chainloader on EFI.
49959
49960 * term/efi/console.c: Include grub/misc.h.
49961 (grub_console_checkkey): Display a scan code on the top for
49962 debugging. This will be removed once the EFI port gets stable.
49963 Correct the scan code mapping.
49964
49965 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49966 allocate memory from larger regions, in order to reduce the number
49967 of allocated regions. Otherwise, the MacOSX loader panics.
49968 (filter_memory_map): Avoid less than 1MB for compatibility with
49969 other loaders.
49970 (add_memory_regions): Allocate from the tail of a region, if
49971 possible, to avoid allocating a region near to 1MB, for the MacOSX
49972 loader.
49973
49974 * kern/efi/init.c (grub_efi_set_prefix): Specify
49975 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
49976
49977 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
49978 argument IMAGE_HANDLE and specify it to get a loaded image.
49979 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
49980 grub_efi_get_loaded_image.
49981 (grub_efi_get_filename): Divide the length by the size of
49982 grub_efi_char16_t.
49983 (grub_efi_get_device_path): New function.
49984 (grub_efi_print_device_path): Print End Device Path nodes. Divide
49985 the length by the size of grub_efi_char16_t for a file path device
49986 path node.
49987
49988 * kern/loader.c (grub_loader_noreturn): New variable.
49989 (grub_loader_set): Accept a new argument NORETURN. Set
49990 GRUB_LOADER_NORETURN to NORETURN.
49991 All callers changed.
49992 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
49993 grub_machine_fini.
49994
49995 * include/grub/efi/efi.h (grub_efi_get_device_path): New
49996 prototype.
49997 (grub_efi_get_loaded_image): Take an argument to specify an image
49998 handle.
49999
50000 * include/grub/loader.h (grub_loader_set): Added one more argument
50001 NORETURN.
50002
50003 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50004 instead of grub_efi_open_protocol.
50005 (grub_efidisk_get_device_name): Likewise.
50006 (grub_efidisk_close): Print a newline.
50007 (grub_efidisk_get_device_handle): Fixed to use
50008 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50009 GRUB_EFI_DEVICE_PATH_TYPE.
50010
50011 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50012 * kern/efi/efi.c (device_path_guid): ... here.
50013
50014 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50015 chain.mod.
50016 (kernel_mod_HEADERS): Added efi/disk.h.
50017 (_chain_mod_SOURCES): New variable.
50018 (_chain_mod_CFLAGS): Likewise.
50019 (_chain_mod_LDFLAGS): Likewise.
50020 (chain_mod_SOURCES): Likewise.
50021 (chain_mod_CFLAGS): Likewise.
50022 (chain_mod_LDFLAGS): Likewise.
50023
50024 * DISTLIST: Added include/grub/efi/chainloader.h,
50025 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50026
50027 * include/grub/efi/chainloader.h: New file.
50028 * loader/efi/chainloader.c: Likewise.
50029 * loader/efi/chainloader_normal.c: Likewise.
50030
50031 2006-04-30 Marco Gerards <marco@gnu.org>
50032
50033 * commands/configfile.c (grub_cmd_source): New function.
50034 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50035 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50036
50037 2006-04-30 Marco Gerards <marco@gnu.org>
50038
50039 * normal/execute.c (grub_script_execute_cmd): Change the return
50040 type to `grub_err_t'. Correctly return the error.
50041 (grub_script_execute_cmdline): In case a command line is not a
50042 command or a function, try to interpret it as an assignment.
50043
50044 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50045
50046 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50047 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50048 skip a node whose name is obviously invalid as UTF-16,
50049 i.e. contains a NUL character. Stop the iteration when the last
50050 directory entry is found. Instead of using the return value of
50051 grub_hfsplus_btree_iterate_node, store the value in RET and use
50052 it, because the iterator can be stopped by the last directory
50053 entry.
50054
50055 2006-04-30 Marco Gerards <marco@gnu.org>
50056
50057 * include/grub/env.h (grub_env_export): New prototype. Reported
50058 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50059
50060 2006-04-30 Marco Gerards <marco@gnu.org>
50061
50062 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50063 size of the extents in a catalog file record.
50064
50065 2006-04-29 Marco Gerards <marco@gnu.org>
50066
50067 * commands/configfile.c (grub_cmd_configfile): Execute the
50068 configfile within its own context.
50069
50070 * include/grub/env.h (grub_env_context_open): New prototype.
50071 (grub_env_context_close): Likewise.
50072
50073 * kern/env.c (grub_env): Removed.
50074 (grub_env_sorted): Likewise.
50075 (grub_env_context): New variable.
50076 (grub_env_var_context): Likewise.
50077 (grub_env_find): Search both the active context and the global
50078 context.
50079 (grub_env_context_open): New function.
50080 (grub_env_context_close): Likewise.
50081 (grub_env_insert): Likewise.
50082 (grub_env_remove): Likewise.
50083 (grub_env_export): Likewise.
50084 (grub_env_set): Changed to use helper functions to avoid code
50085 duplication.
50086 (grub_env_iterate): Rewritten so both the current context and the
50087 global context are being used.
50088
50089 * normal/command.c (export_command): New function.
50090 (grub_command_init): Register the `export' function.
50091
50092 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50093
50094 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50095 explicitly to suppress gcc's warnings.
50096 * fs/fat.c (grub_fat_find_dir): Likewise.
50097 (grub_fat_label): Likewise.
50098 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50099 (grub_xfs_mount): Likewise.
50100 (grub_xfs_label): Likewise.
50101 * fs/affs.c (grub_affs_mount): Likewise.
50102 (grub_affs_label): Likewise.
50103 (grub_affs_iterate_dir): Likewise.
50104 * fs/sfs.c (grub_sfs_mount): Likewise.
50105 (grub_sfs_iterate_dir): Likewise.
50106 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50107 * fs/hfs.c (grub_hfs_mount): Likewise.
50108 (grub_hfs_cmp_catkeys): Likewise.
50109 (grub_hfs_find_dir): Likewise.
50110 (grub_hfs_dir): Likewise.
50111 (grub_hfs_label): Likewise.
50112 * fs/jfs.c (grub_jfs_mount): Likewise.
50113 (grub_jfs_opendir): Likewise.
50114 (grub_jfs_getent): Likewise.
50115 (grub_jfs_lookup_symlink): Likewise.
50116 (grub_jfs_label): Likewise.
50117 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50118 (grub_hfsplus_iterate_dir): Likewise.
50119 (grub_hfsplus_btree_iterate_node): Made static.
50120
50121 * util/grub-emu.c (prefix): New variable.
50122 (grub_machine_set_prefix): New function.
50123 (main): Do not set the environment variable "prefix" here. Only
50124 set PREFIX, which is used later by grub_machine_set_prefix.
50125
50126 * include/grub/video.h: Do not include grub/symbol.h.
50127 (grub_video_register): Not exported. This symbol is not defined in
50128 the kernel.
50129 (grub_video_unregister): Likewise.
50130 (grub_video_iterate): Likewise.
50131 (grub_video_setup): Likewise.
50132 (grub_video_restore): Likewise.
50133 (grub_video_get_info): Likewise.
50134 (grub_video_get_blit_format): Likewise.
50135 (grub_video_set_palette): Likewise.
50136 (grub_video_get_palette): Likewise.
50137 (grub_video_set_viewport): Likewise.
50138 (grub_video_get_viewport): Likewise.
50139 (grub_video_map_color): Likewise.
50140 (grub_video_map_rgb): Likewise.
50141 (grub_video_map_rgba): Likewise.
50142 (grub_video_fill_rect): Likewise.
50143 (grub_video_blit_glyph): Likewise.
50144 (grub_video_blit_bitmap): Likewise.
50145 (grub_video_blit_render_target): Likewise.
50146 (grub_video_scroll): Likewise.
50147 (grub_video_swap_buffers): Likewise.
50148 (grub_video_create_render_target): Likewise.
50149 (grub_video_delete_render_target): Likewise.
50150 (grub_video_set_active_render_target): Likewise.
50151
50152 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50153 Undefined.
50154 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50155
50156 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50157 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50158 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50159 instead of $(srcdir)/genkernsyms.sh.
50160
50161 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50162 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50163 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50164 instead of $(srcdir)/genkernsyms.sh.
50165
50166 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50167 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50168 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50169 instead of $(srcdir)/genkernsyms.sh.
50170
50171 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50172 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50173 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50174 instead of $(srcdir)/genkernsyms.sh.
50175
50176 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50177 genkernsyms.sh.
50178
50179 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50180 genkernsyms.sh.
50181 (gensymlist.sh): New target.
50182 (genkernsyms.sh): Likewise.
50183
50184 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50185 genkernsyms.sh.in and gensymlist.sh.in.
50186
50187 * genkernsyms.sh: Removed.
50188 * gensymlist.sh: Likewise.
50189
50190 * genkernsyms.sh.in: New file.
50191 * gensymlist.sh.in: Likewise.
50192
50193 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50194
50195 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50196 clobber "prefix", since we may have already set it manually.
50197
50198 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50199
50200 * kern/misc.c (abort): New alias for grub_abort.
50201
50202 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50203
50204 A new machine-specific function "grub_machine_set_prefix" is
50205 defined. This is called after loading modules, so that a prefix
50206 initialization can use modules. Also, this change adds an
50207 intensive debugging feature for the memory manager via the
50208 configure option "--enable-mm-debug".
50209
50210 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50211 PART.LEN.
50212
50213 * kern/sparc64/ieee1275/init.c (abort): Removed.
50214 (grub_stop): Likewise.
50215 (grub_exit): New function.
50216 (grub_set_prefix): Renamed to ...
50217 (grub_machine_set_prefix): ... this.
50218 (grub_machine_init): Do not call grub_set_prefix.
50219
50220 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50221 (grub_machine_set_prefix): ... this.
50222 (grub_machine_init): Do not call grub_set_prefix.
50223
50224 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50225 (grub_machine_init): Do not set the prefix here.
50226
50227 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50228
50229 * kern/efi/init.c: Include grub/mm.h.
50230 (grub_efi_set_prefix): New function.
50231
50232 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50233 (grub_efi_get_filename): New function.
50234 (grub_print_device_path): Renamed to ...
50235 (grub_efi_print_device_path): ... this.
50236
50237 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50238 [MM_DEBUG] (grub_realloc): Likewise.
50239 [MM_DEBUG] (grub_free): Likewise.
50240 [MM_DEBUG] (grub_memalign): Likewise.
50241 [MM_DEBUG] (grub_mm_debug): New variable.
50242 [MM_DEBUG] (grub_debug_malloc): New function.
50243 [MM_DEBUG] (grub_debug_free): New function.
50244 [MM_DEBUG] (grub_debug_realloc): New function.
50245 [MM_DEBUG] (grub_debug_memalign): New function.
50246
50247 * kern/misc.c (grub_abort): Print a newline to distinguish
50248 the message.
50249
50250 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50251 grub_set_root_dev after loading modules. This is necessary when
50252 setting a prefix depends on modules.
50253
50254 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50255 (grub_efi_print_device_path): ... this.
50256 (grub_efi_get_filename): New prototype.
50257 (grub_efi_set_prefix): Likewise.
50258
50259 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50260 and grub/disk.h.
50261 (grub_efidisk_get_device_handle): New prototype.
50262 (grub_efidisk_get_device_name): Likewise.
50263
50264 * include/grub/mm.h: Include config.h.
50265 (MM_DEBUG): Removed.
50266 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50267 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50268 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50269 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50270 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50271 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50272 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50273 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50274 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50275
50276 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50277
50278 * disk/efi/efidisk.c: Include grub/partition.h.
50279 (iterate_child_devices): New function.
50280 (add_device): First, compare only last device path nodes, so that
50281 devices are sorted by the types.
50282 (grub_efidisk_get_device_handle): New function.
50283 (grub_efidisk_get_device_name): Likewise.
50284
50285 * configure.ac (--enable-mm-debug): New option to enable the
50286 memory manager debugging feature. This makes the binary much
50287 bigger, so is disabled by default.
50288
50289 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50290
50291 Use grub_abort instead of grub_stop, and grub_exit must be
50292 define in each architecture now. Also, this change adds support
50293 for EFI disks.
50294
50295 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50296 (grub_getkey): New function.
50297 (grub_term_get_current): Likewise.
50298
50299 * util/i386/pc/grub-setup.c: Include grub/term.h.
50300 (grub_getkey): New function.
50301 (grub_term_get_current): Likewise.
50302
50303 * util/misc.c (grub_stop): Renamed to ...
50304 (grub_exit): ... this.
50305
50306 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50307 (grub_exit): ... this.
50308 (grub_machine_init): Use grub_abort instead of abort.
50309 (grub_stop): Removed.
50310
50311 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50312 abort.
50313
50314 * kern/i386/pc/startup.S (grub_exit): New function.
50315 (cold_reboot): New label.
50316
50317 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50318 (grub_efi_init): Call grub_efidisk_init.
50319 (grub_efi_fini): Call grub_efidisk_fini.
50320
50321 * kern/efi/efi.c: Include grub/mm.h.
50322 (grub_efi_console_control_guid): Renamed to ...
50323 (console_control_guid): ... this.
50324 (grub_efi_loaded_image_guid): Renamed to ...
50325 (loaded_image_guid): ... this.
50326 (grub_efi_locate_handle): New function.
50327 (grub_efi_open_protocol): Likewise.
50328 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50329 GRUB_EFI_CONSOLE_CONTROL_GUID.
50330 (grub_efi_exit): Removed.
50331 (grub_stop): Likewise.
50332 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50333 (grub_exit): New function.
50334 (grub_print_device_path): Likewise.
50335
50336 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50337 (grub_enter_rescue_mode): Register "exit".
50338
50339 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50340 (grub_abort): New function.
50341
50342 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50343
50344 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50345
50346 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50347
50348 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50349 (grub_print_device_path): New prototype.
50350 (grub_efi_locate_handle): Likewise.
50351 (grub_efi_open_protocol): Likewise.
50352
50353 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50354 * disk/efi/efidisk.c: Likewise.
50355
50356 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50357
50358 * include/grub/efi/console_control.h
50359 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50360
50361 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50362 last 8 bytes as an array.
50363 (GRUB_EFI_DISK_IO_GUID): New macro.
50364 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50365 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50366 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50367 grub_uint8_t.
50368 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50369 (struct grub_efi_device_path): Rename the member "sub_type" to
50370 "subtype".
50371 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50372 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50373 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50374 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50375 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50376 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50377 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50378 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50379 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50380 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50381 (struct grub_efi_pci_device_path): New structure.
50382 (grub_efi_pci_device_path_t): New type.
50383 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50384 (struct grub_efi_pccard_device_path): New structure.
50385 (grub_efi_pccard_device_path_t): New type.
50386 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50387 (struct grub_efi_memory_mapped_device_path): New structure.
50388 (grub_efi_memory_mapped_device_path_t): New type.
50389 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50390 (struct grub_efi_vendor_device_path): New structure.
50391 (grub_efi_vendor_device_path_t): New type.
50392 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50393 (struct grub_efi_controller_device_path): New structure.
50394 (grub_efi_controller_device_path_t): New type.
50395 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50396 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50397 (struct grub_efi_acpi_device_path): New structure.
50398 (grub_efi_acpi_device_path_t): New type.
50399 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50400 (struct grub_efi_expanded_acpi_device_path): New structure.
50401 (grub_efi_expanded_acpi_device_path_t): New type.
50402 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50403 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50404 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50405 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50406 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50407 (struct grub_efi_atapi_device_path): New structure.
50408 (grub_efi_atapi_device_path_t): New type.
50409 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50410 (struct grub_efi_fibre_channel_device_path): New structure.
50411 (grub_efi_fibre_channel_device_path_t): New type.
50412 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50413 (struct grub_efi_1394_device_path): New structure.
50414 (grub_efi_1394_device_path_t): New type.
50415 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50416 (struct grub_efi_usb_device_path): New structure.
50417 (grub_efi_usb_device_path_t): New type.
50418 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50419 (struct grub_efi_usb_class_device_path): New structure.
50420 (grub_efi_usb_class_device_path_t): New type.
50421 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50422 (struct grub_efi_i2o_device_path): New structure.
50423 (grub_efi_i2o_device_path_t): New type.
50424 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50425 (struct grub_efi_mac_address_device_path): New structure.
50426 (grub_efi_mac_address_device_path_t): New type.
50427 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50428 (struct grub_efi_ipv4_device_path): New structure.
50429 (grub_efi_ipv4_device_path_t): New type.
50430 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50431 (struct grub_efi_ipv6_device_path): New structure.
50432 (grub_efi_ipv6_device_path_t): New type.
50433 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50434 (struct grub_efi_infiniband_device_path): New structure.
50435 (grub_efi_infiniband_device_path_t): New type.
50436 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50437 (struct grub_efi_uart_device_path): New structure.
50438 (grub_efi_uart_device_path_t): New type.
50439 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50440 (struct grub_efi_vendor_messaging_device_path): New structure.
50441 (grub_efi_vendor_messaging_device_path_t): New type.
50442 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50443 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50444 (struct grub_efi_hard_drive_device_path): New structure.
50445 (grub_efi_hard_drive_device_path_t): New type.
50446 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50447 (struct grub_efi_cdrom_device_path): New structure.
50448 (grub_efi_cdrom_device_path_t): New type.
50449 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50450 (struct grub_efi_vendor_media_device_path): New structure.
50451 (grub_efi_vendor_media_device_path_t): New type.
50452 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50453 (struct grub_efi_file_path_device_path): New structure.
50454 (grub_efi_file_path_device_path_t): New type.
50455 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50456 (struct grub_efi_protocol_device_path): New structure.
50457 (grub_efi_protocol_device_path_t): New type.
50458 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50459 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50460 (struct grub_efi_bios_device_path): New structure.
50461 (grub_efi_bios_device_path_t): New type.
50462 (struct grub_efi_disk_io): New structure.
50463 (grub_efi_disk_io_t): New type.
50464 (struct grub_efi_block_io_media): New structure.
50465 (grub_efi_block_io_media_t): New type.
50466 (struct grub_efi_block_io): New structure.
50467 (grub_efi_block_io_t): New type.
50468
50469 * include/grub/misc.h (grub_stop): Removed.
50470 (grub_exit): New prototype.
50471 (grub_abort): Likewise.
50472
50473 * include/grub/disk.h (enum grub_disk_dev_id): Added
50474 GRUB_DISK_DEVICE_EFIDISK_ID.
50475
50476 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50477 disk/efi/efidisk.c.
50478 (kernel_syms.lst): Remove the target if an error occurs.
50479
50480 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50481
50482 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50483 as it was simply too buggy.
50484
50485 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50486
50487 * kern/misc.c (grub_lltoa): New function.
50488 (grub_vsprintf): Added support for the long long suffix,
50489 i.e. "ll".
50490
50491 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50492
50493 * Makefile.in (LDFLAGS): Add variable.
50494 (LD): Remove variable.
50495 * configure.ac: Add -m32 to LDFLAGS.
50496 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50497 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50498 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50499 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50500 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50501 variables.
50502 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50503 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50504 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50505
50506 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50507
50508 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50509 length for unknown glyph.
50510
50511 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50512
50513 Add support for pre-loaded modules into the EFI port.
50514
50515 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50516 completely. Accept one more argument DIR. The caller has changed.
50517
50518 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50519
50520 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50521 (grub_efi_loaded_image_guid): New variable.
50522 (grub_efi_get_loaded_image): New function.
50523 (grub_arch_modules_addr): Likewise.
50524
50525 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50526 prototype.
50527
50528 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50529 (struct grub_efi_loaded_image): New structure.
50530 (grub_efi_loaded_image_t): New type.
50531
50532 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50533
50534 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50535 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50536 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50537
50538 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50539
50540 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50541
50542 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50543
50544 * DISTLIST: Added include/grub/efi/console.h,
50545 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50546 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50547
50548 * include/grub/efi/console.h: New file.
50549 * include/grub/efi/time.h: Likewise.
50550 * include/grub/i386/efi/kernel.h: Likewise.
50551 * kern/efi/init.c: Likewise.
50552 * kern/efi/mm.c: Likewise.
50553 * term/efi/console.c: Likewise.
50554
50555 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50556 (grub_stop): Removed.
50557 (grub_get_rtc): Likewise.
50558 (grub_machine_init): Simply call grub_efi_init.
50559 (grub_machine_fini): Call grub_efi_fini.
50560
50561 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50562 (grub_efi_output_string): Removed.
50563 (grub_efi_stall): New function.
50564 (grub_stop): Likewise.
50565 (grub_get_rtc): Likewise.
50566
50567 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50568 (grub_efi_stall): New prototype.
50569 (grub_efi_allocate_pages): Likewise.
50570 (grub_efi_free_pages): Likewise.
50571 (grub_efi_get_memory_map): Likewise.
50572 (grub_efi_mm_init): Likewise.
50573 (grub_efi_mm_fini): Likewise.
50574 (grub_efi_init): Likewise.
50575 (grub_efi_fini): Likewise.
50576
50577 * include/grub/i386/efi/time.h: Do not include
50578 grub/symbol.h. Include grub/efi/time.h.
50579 (GRUB_TICKS_PER_SECOND): Removed.
50580 (grub_get_rtc): Likewise.
50581
50582 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50583 Added padding. The EFI spec is buggy.
50584 (GRUB_EFI_BLACK): New macro.
50585 (GRUB_EFI_BLUE): Likewise.
50586 (GRUB_EFI_GREEN): Likewise.
50587 (GRUB_EFI_CYAN): Likewise.
50588 (GRUB_EFI_RED): Likewise.
50589 (GRUB_EFI_MAGENTA): Likewise.
50590 (GRUB_EFI_BROWN): Likewise.
50591 (GRUB_EFI_LIGHTGRAY): Likewise.
50592 (GRUB_EFI_BRIGHT): Likewise.
50593 (GRUB_EFI_DARKGRAY): Likewise.
50594 (GRUB_EFI_LIGHTBLUE): Likewise.
50595 (GRUB_EFI_LIGHTGREEN): Likewise.
50596 (GRUB_EFI_LIGHTCYAN): Likewise.
50597 (GRUB_EFI_LIGHTRED): Likewise.
50598 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50599 (GRUB_EFI_YELLOW): Likewise.
50600 (GRUB_EFI_WHITE): Likewise.
50601 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50602 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50603 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50604 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50605 (GRUB_EFI_BACKGROUND_RED): Likewise.
50606 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50607 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50608 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50609 (GRUB_EFI_TEXT_ATTR): Likewise.
50610
50611 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50612 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50613 (kernel_mod_HEADERS): Added efi/time.h.
50614
50615 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50616
50617 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50618 include/grub/efi/api.h, include/grub/efi/console_control.h,
50619 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50620 include/grub/i386/efi/time.h, kern/efi/efi.c,
50621 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50622 and util/i386/efi/grub-mkimage.c.
50623
50624 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50625
50626 * genmk.rb (PModule#rule): Do not export symbols if
50627 #{prefix}_EXPORTS is set to "no".
50628
50629 * conf/i386-efi.mk: New file.
50630 * conf/i386-efi.rmk: Likewise.
50631 * include/grub/efi/api.h: Likewise.
50632 * include/grub/efi/console_control.h: Likewise.
50633 * include/grub/efi/efi.h: Likewise.
50634 * include/grub/efi/pe32.h: Likewise.
50635 * include/grub/i386/efi/time.h: Likewise.
50636 * kern/efi/efi.c: Likewise.
50637 * kern/i386/efi/init.c: Likewise.
50638 * kern/i386/efi/startup.S: Likewise.
50639 * util/i386/efi/grub-mkimage.c: Likewise.
50640
50641 2006-04-17 Marco Gerards <marco@gnu.org>
50642
50643 * include/grub/script.h: Include <grub/parser.h> and
50644 "grub_script.tab.h".
50645 (struct grub_lexer_param): New struct.
50646 (struct grub_parser_param): Likewise.
50647 (grub_script_create_arglist): Pass the state in an argument.
50648 (grub_script_add_arglist): Likewise.
50649 (grub_script_create_cmdline): Likewise.
50650 (grub_script_create_cmdblock): Likewise.
50651 (grub_script_create_cmdif): Likewise.
50652 (grub_script_create_cmdmenu): Likewise.
50653 (grub_script_add_cmd): Likewise.
50654 (grub_script_arg_add): Likewise.
50655 (grub_script_lexer_ref): Likewise.
50656 (grub_script_lexer_deref): Likewise.
50657 (grub_script_lexer_record_start): Likewise.
50658 (grub_script_lexer_record_stop): Likewise.
50659 (grub_script_mem_record): Likewise.
50660 (grub_script_mem_record_stop): Likewise.
50661 (grub_script_malloc): Likewise.
50662 (grub_script_yylex): Likewise.
50663 (grub_script_yyparse): Likewise.
50664 (grub_script_yyerror): Likewise.
50665 (grub_script_yylex): Likewise.
50666 (grub_script_lexer_init): Return the state.
50667
50668 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50669 (grub_script_lexer_done): Likewise.
50670 (grub_script_lexer_getline): Likewise.
50671 (grub_script_lexer_refs): Likewise.
50672 (script): Likewise.
50673 (newscript): Likewise.
50674 (record): Likewise.
50675 (recording): Likewise.
50676 (recordpos): Likewise.
50677 (recordlen): Likewise.
50678 (grub_script_lexer_init): Return the state instead of setting
50679 global variables.
50680 (grub_script_lexer_ref): Use the newly added argument for state
50681 instead of globals.
50682 (grub_script_lexer_deref): Likewise.
50683 (grub_script_lexer_record_start): Likewise.
50684 (grub_script_lexer_record_stop): Likewise.
50685 (recordchar): Likewise.
50686 (nextchar): Likewise.
50687 (grub_script_yylex2): Likewise.
50688 (grub_script_yylex): Likewise.
50689 (grub_script_yyerror): Likewise.
50690
50691 * normal/parser.y (func_mem): Removed variable.
50692 (menu_entry): Likewise.
50693 (err): Likewise.
50694 (%lex-param): New parser option.
50695 (%parse-param): Likewise.
50696 (script): Always return the AST.
50697 (argument): Pass the state around.
50698 (arguments): Likewise.
50699 (grubcmd): Likewise.
50700 (commands): Likewise.
50701 (function): Likewise.
50702 (menuentry): Likewise.
50703 (if_statement): Likewise.
50704 (if): Likewise.
50705
50706 * normal/script.c (grub_script_memused): Removed variable.
50707 (grub_script_parsed): Likewise.
50708 (grub_script_malloc): Added a state argument. Use that instead of
50709 global variables.
50710 (grub_script_mem_record): Likewise.
50711 (grub_script_mem_record_stop): Likewise.
50712 (grub_script_arg_add): Likewise.
50713 (grub_script_add_arglist): Likewise.
50714 (grub_script_create_cmdline): Likewise.
50715 (grub_script_create_cmdif): Likewise.
50716 (grub_script_create_cmdmenu): Likewise.
50717 (grub_script_add_cmd): Likewise.
50718 (grub_script_parse): Setup the state before calling the parser.
50719
50720 2006-04-16 Marco Gerards <marco@gnu.org>
50721
50722 * normal/command.c (grub_command_init): Remove the title command.
50723
50724 * normal/lexer.c (grub_script_yylex): Renamed from this...
50725 (grub_script_yylex2): ... to this.
50726 (grub_script_yylex): New function. Temporary
50727 introduced to filter some tokens.
50728 (grub_script_yyerror): Print a newline.
50729
50730 * normal/main.c (read_config_file): Output information about the
50731 lines that contain errors. Wait for a key after all lines have
50732 been processed. Don't return an empty menu.
50733
50734 * normal/parser.y (func_mem): Don't initialize.
50735 (menu_entry): Likewise.
50736 (err): New variable.
50737 (script): Don't return anything when an error was encountered.
50738 (ws, returns): Removed rules.
50739 (argument): Disabled concatenated variable support.
50740 (arguments): Remove explicit separators.
50741 (grubcmd): Likewise.
50742 (function): Likewise.
50743 (menuentry): Likewise.
50744 (if): Likewise.
50745 (commands): Likewise. Add error handling.
50746
50747 * normal/script.c (grub_script_create_cmdline): If
50748 `grub_script_parsed' is 0, assume the parser encountered an error.
50749
50750 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50751
50752 * configure.ac: Add support for EFI. Fix the typo
50753 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50754
50755 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50756
50757 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50758 foreign multibyte characters should be shown correctly.
50759
50760 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50761
50762 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50763 calculation.
50764 (read_config_file): Made it to close file before returning.
50765
50766 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50767
50768 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50769 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50770 video/i386/pc/vbefill.c.
50771
50772 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50773 video/i386/pc/vbefill.c.
50774
50775 * include/grub/video.h (grub_video_blit_format): New enum.
50776 (grub_video_mode_info): Added new member blit_format.
50777 (grub_video_get_blit_format): New function prototype.
50778
50779 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50780 function prototype.
50781 (grub_video_vbe_map_rgb): Likewise.
50782 (grub_video_vbe_unmap_color): Likewise.
50783
50784 * include/grub/i386/pc/vbeblit.h: New file.
50785
50786 * include/grub/i386/pc/vbefill.h: New file.
50787
50788 * video/video.c (grub_video_get_blit_format): New function.
50789 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50790 (grub_video_vbe_map_rgb): Likewise.
50791 (grub_video_vbe_unmap_color): Likewise.
50792
50793 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50794 optimized fills.
50795 (grub_video_vbe_blit_render_target): Changed to use more optimized
50796 blits.
50797 (grub_video_vbe_setup): Added detection for optimized settings.
50798 (grub_video_vbe_create_render_target): Likewise.
50799
50800 * video/i386/pc/vbeblit.c: New file.
50801
50802 * video/i386/pc/vbefill.c: New file.
50803
50804 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50805
50806 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50807 here...
50808
50809 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50810 parsing to support both hex and dec ranges. If filename was missing
50811 show usage information.
50812
50813 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50814
50815 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50816 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50817
50818 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50819 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50820 (video_mod_SOURCES): Added.
50821 (video_mod_CFLAGS): Likewise.
50822 (video_mod_LDFLAGS): Likewise.
50823 (gfxterm_mod_SOURCES): Likewise.
50824 (gfxterm_mod_CFLAGS): Likewise.
50825 (gfxterm_mod_LDFLAGS): Likewise.
50826 (videotest_mod_SOURCES): Likewise.
50827 (videotest_mod_CFLAGS): Likewise.
50828 (videotest_mod_LDFLAGS): Likewise.
50829 (vesafb_mod_SOURCES): Removed.
50830 (vesafb_mod_CFLAGS): Likewise.
50831 (vesafb_mod_LDFLAGS): Likewise.
50832 (vga_mod_SOURCES): Likewise.
50833 (vga_mod_CFLAGS): Likewise.
50834 (vga_mod_LDFLAGS): Likewise.
50835
50836 * commands/videotest.c: New file.
50837
50838 * font/manager.c (fill_with_default_glyph): Modified to use
50839 grub_font_glyph.
50840 (grub_font_get_glyph): Likewise.
50841 (fontmanager): Renamed from this...
50842 (font_manager): ... to this.
50843
50844 * include/grub/font.h (grub_font_glyph): Added new structure.
50845 (grub_font_get_glyph): Modified to use grub_font_glyph.
50846
50847 * include/grub/misc.h (grub_abs): Added as inline function.
50848
50849 * include/grub/video.h: New file.
50850
50851 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50852 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50853 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50854 (grub_vbe_get_controller_info): Renamed from this...
50855 (grub_vbe_bios_get_controller_info): ... to this.
50856 (grub_vbe_get_mode_info): Renamed from this...
50857 (grub_vbe_bios_get_mode_info): ... to this.
50858 (grub_vbe_set_mode): Renamed from this...
50859 (grub_vbe_bios_set_mode): ... to this.
50860 (grub_vbe_get_mode): Renamed from this...
50861 (grub_vbe_bios_get_mode): ... to this.
50862 (grub_vbe_set_memory_window): Renamed from this...
50863 (grub_vbe_bios_set_memory_window): ... to this.
50864 (grub_vbe_get_memory_window): Renamed from this...
50865 (grub_vbe_bios_get_memory_window): ... to this.
50866 (grub_vbe_set_scanline_length): Renamed from this...
50867 (grub_vbe_set_scanline_length): ... to this.
50868 (grub_vbe_get_scanline_length): Renamed from this...
50869 (grub_vbe_bios_get_scanline_length): ... to this.
50870 (grub_vbe_set_display_start): Renamed from this...
50871 (grub_vbe_bios_set_display_start): ... to this.
50872 (grub_vbe_get_display_start): Renamed from this...
50873 (grub_vbe_bios_get_display_start): ... to this.
50874 (grub_vbe_set_palette_data): Renamed from this...
50875 (grub_vbe_bios_set_palette_data): ... to this.
50876 (grub_vbe_set_pixel_rgb): Removed.
50877 (grub_vbe_set_pixel_index): Likewise.
50878
50879 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50880 from this...
50881 (grub_vbe_bios_get_controller_info): ... to this.
50882 (grub_vbe_get_mode_info): Renamed from this...
50883 (grub_vbe_bios_get_mode_info): ... to this.
50884 (grub_vbe_set_mode): Renamed from this...
50885 (grub_vbe_bios_set_mode): ... to this.
50886 (grub_vbe_get_mode): Renamed from this...
50887 (grub_vbe_bios_get_mode): ... to this.
50888 (grub_vbe_set_memory_window): Renamed from this...
50889 (grub_vbe_bios_set_memory_window): ... to this.
50890 (grub_vbe_get_memory_window): Renamed from this...
50891 (grub_vbe_bios_get_memory_window): ... to this.
50892 (grub_vbe_set_scanline_length): Renamed from this...
50893 (grub_vbe_set_scanline_length): ... to this.
50894 (grub_vbe_get_scanline_length): Renamed from this...
50895 (grub_vbe_bios_get_scanline_length): ... to this.
50896 (grub_vbe_set_display_start): Renamed from this...
50897 (grub_vbe_bios_set_display_start): ... to this.
50898 (grub_vbe_get_display_start): Renamed from this...
50899 (grub_vbe_bios_get_display_start): ... to this.
50900 (grub_vbe_set_palette_data): Renamed from this...
50901 (grub_vbe_bios_set_palette_data): ... to this.
50902 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50903 getting corrupted after calling it. Added more pushes and pops.
50904 (grub_vbe_bios_set_mode): Likewise.
50905 (grub_vbe_bios_get_mode): Likewise.
50906 (grub_vbe_bios_get_memory_window): Likewise.
50907 (grub_vbe_bios_set_scanline_length): Likewise.
50908 (grub_vbe_bios_get_scanline_length): Likewise.
50909 (grub_vbe_bios_get_display_start): Likewise.
50910 (grub_vbe_bios_set_palette_data): Likewise.
50911
50912 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50913 (cl_insert): Likewise.
50914 (cl_delete): Likewise.
50915
50916 * term/gfxterm.c: New file.
50917
50918 * term/i386/pc/vesafb.c: Removed file.
50919
50920 * video/video.c: New file.
50921
50922 * video/i386/pc/vbe.c (real2pm): Added new function.
50923 (grub_video_vbe_draw_pixel): Likewise.
50924 (grub_video_vbe_get_video_ptr): Likewise.
50925 (grub_video_vbe_get_pixel): Likewise
50926 (grub_video_vbe_init): Likewise.
50927 (grub_video_vbe_fini): Likewise.
50928 (grub_video_vbe_setup): Likewise.
50929 (grub_video_vbe_get_info): Likewise.
50930 (grub_video_vbe_set_palette): Likewise.
50931 (grub_video_vbe_get_palette): Likewise.
50932 (grub_video_vbe_set_viewport): Likewise.
50933 (grub_video_vbe_get_viewport): Likewise.
50934 (grub_video_vbe_map_color): Likewise.
50935 (grub_video_vbe_map_rgb): Likewise.
50936 (grub_video_vbe_map_rgba): Likewise.
50937 (grub_video_vbe_unmap_color): Likewise.
50938 (grub_video_vbe_fill_rect): Likewise.
50939 (grub_video_vbe_blit_glyph): Likewise.
50940 (grub_video_vbe_blit_bitmap): Likewise.
50941 (grub_video_vbe_blit_render_target): Likewise.
50942 (grub_video_vbe_scroll): Likewise.
50943 (grub_video_vbe_swap_buffers): Likewise.
50944 (grub_video_vbe_create_render_target): Likewise.
50945 (grub_video_vbe_delete_render_target): Likewise.
50946 (grub_video_vbe_set_active_render_target): Likewise.
50947 (grub_vbe_set_pixel_rgb): Remove function.
50948 (grub_vbe_set_pixel_index): Likewise.
50949 (index_color_mode): Remove static variable.
50950 (active_mode): Likewise.
50951 (framebuffer): Likewise.
50952 (bytes_per_scan_line): Likewise.
50953 (grub_video_vbe_adapter): Added new static variable.
50954 (framebuffer): Likewise.
50955 (render_target): Likewise.
50956 (initial_mode): Likewise.
50957 (mode_in_use): Likewise.
50958 (mode_list): Likewise.
50959
50960 2006-03-10 Marco Gerards <marco@gnu.org>
50961
50962 * configure.ac (AC_INIT): Bumped to 1.93.
50963
50964 * DISTLIST: Added `include/grub/hfs.h'.
50965
50966 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50967
50968 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50969 18H, which might help the BIOS falling back to next boot media.
50970
50971 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50972
50973 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50974 Poe Chen <poe.poechen@gmail.com>.
50975
50976 2006-01-17 Marco Gerards <marco@gnu.org>
50977
50978 * include/grub/normal.h: Include <grub/script.h>.
50979 (grub_command_list): Removed struct.
50980 (grub_command_list_t): Removed type.
50981 (grub_menu_entry): Remove members `num' and `command_list'. Add
50982 members `commands' and `sourcecode'.
50983 * include/grub/script.h: Add inclusion guards.
50984 (grub_script_cmd_menuentry): New struct.
50985 (grub_script_execute_menuentry): New prototype.
50986 (grub_script_lexer_record_start): Likewise.
50987 (grub_script_lexer_record_stop): Likewise.
50988 * normal/execute.c (grub_script_execute_menuentry): New function.
50989 * normal/lexer.c (record, recording, recordpos, recordlen): New
50990 variables.
50991 (grub_script_lexer_record_start): New function.
50992 (grub_script_lexer_record_stop): Likewise.
50993 (recordchar): Likewise.
50994 (nextchar): Likewise.
50995 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
50996 2048 as the buffer size. Add the tokens `menuentry' and `@'.
50997 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
50998 (current_menu): New variable.
50999 (free_menu): Mainly rewritten.
51000 (grub_normal_menu_addentry): New function.
51001 (read_config_file): Rewritten.
51002 * normal/menu.c (run_menu_entry): Mainly rewritten.
51003 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51004 the menu entry.
51005 (run): Mainly rewritten.
51006 * normal/parser.y (menu_entry): New variable.
51007 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51008 (menuentry): New rule.
51009 (command): Add `menuentry'.
51010 (if_statement): Allow additional returns before `fi'.
51011 * normal/script.c (grub_script_create_cmdmenu): New function.
51012
51013 2006-01-03 Marco Gerards <marco@gnu.org>
51014
51015 * INSTALL: GNU Bison is required.
51016 * configure.ac: Rewritten the test to detect Bison.
51017 * Makefile.in (YACC): New variable. Reported by Xun Sun
51018 <xun.sun.cn@gmail.com>.
51019
51020 2006-01-03 Marco Gerards <marco@gnu.org>
51021
51022 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51023 the HFS+ filesystem to filesystem blocks.
51024 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51025 GCC warning is silenced.
51026
51027 2006-01-03 Marco Gerards <marco@gnu.org>
51028
51029 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51030 read from disk from big endian to host byte order.
51031
51032 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51033
51034 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51035 documentation.
51036 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51037 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51038 embedded HFS+ filesystem.
51039 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51040 (grub_hfs_sblock): Move from here...
51041 * include/grub/hfs.h: To here... New file.
51042 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51043 documentation.
51044 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51045 New macros.
51046 (grub_hfsplus_volheader): Change type of member `magic' to
51047 `grub_uint16_t'.
51048 (grub_hfsplus_data): Add new member `embedded_offset'.
51049 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51050 returned block.
51051 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51052 Calculate the offset.
51053
51054 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51055
51056 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51057 Removed.
51058 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51059
51060 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51061
51062 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51063 ENV->NAME is NULL after allocating ENV->VALUE.
51064
51065 2005-12-25 Marco Gerards <marco@gnu.org>
51066
51067 * kern/env.c (grub_env_set): Rewritten the error handling code.
51068
51069 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51070
51071 * geninit.sh: Made more robust, and more portable.
51072
51073 2005-12-25 Marco Gerards <marco@gnu.org>
51074
51075 Add support for Apple HFS+ filesystems.
51076
51077 * fs/hfsplus.c: New file.
51078
51079 * DISTLIST: Added `fs/hfsplus.c'.
51080
51081 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51082 (hfsplus_mod_SOURCES): New variable.
51083 (hfsplus_mod_CFLAGS): Likewise.
51084 (hfsplus_mod_LDFLAGS): Likewise.
51085 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51086 (grub_setup_SOURCES): Likewise.
51087 (grub_mkdevicemap_SOURCES): Likewise.
51088 (grub_emu_SOURCES): Likewise.
51089 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51090
51091 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51092
51093 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51094
51095 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51096
51097 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51098 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51099 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51100 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51101 normal/lexer.c, normal/parser.y, normal/script.c, and
51102 partmap/gpt.c.
51103 Removed kern/sparc64/cache.c.
51104
51105 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51106 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51107 grub_emu_init.c.
51108
51109 * configure.ac (AC_INIT): Bumped to 1.92.
51110
51111 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51112
51113 * kern/err.c (grub_error_push): Added new function to support error
51114 stacks.
51115 (grub_error_pop): Likewise.
51116 (grub_error_stack_items): New local variable to support error stacks.
51117 (grub_error_stack_pos): Likewise.
51118 (grub_error_stack_assert): Likewise.
51119 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51120 stack depth.
51121 (grub_print_error): Added support to print errors from error stack.
51122
51123 * include/grub/err.h (grub_error_push): Added function prototype.
51124 (grub_error_pop): Likewise.
51125
51126 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51127
51128 * configure.ac: Accept `powerpc64' as host_cpu.
51129 (amd64): Rename to `biarch32'.
51130
51131 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51132 non-cacheline-aligned addresses.
51133
51134 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51135 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51136 if `size' is non-zero.
51137
51138 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51139
51140 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51141 and `cd' to make sure the filename is not prefixed with a
51142 directory name.
51143 (pkgdata_MODULES): Add `gpt.mod'.
51144 (gpt_mod_SOURCES): New variable.
51145 (gpt_mod_CFLAGS): Likewise.
51146 (gpt_mod_LDFLAGS): Likewise.
51147
51148 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51149
51150 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51151 New macro.
51152
51153 * partmap/gpt.c: New file.
51154
51155 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51156 GPT partition map is detected.
51157
51158 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51159
51160 * commands/i386/pc/play.c: New file.
51161 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51162 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51163 macros.
51164
51165 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51166
51167 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51168 ((unused))' to silence gcc warning.
51169
51170 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51171
51172 * configure.ac: Correct `AC_PROG_YACC' test.
51173
51174 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51175
51176 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51177 check before installing files.
51178
51179 2005-11-22 Mike Small <smallm@panix.com>
51180
51181 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51182 number regex so multidigit numbers are recognized correctly.
51183
51184 2005-11-22 Mike Small <smallm@panix.com>
51185
51186 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51187 debugging message before attempting to claim memory.
51188 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51189 multiple addresses in case of failure.
51190
51191 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51192
51193 * term/tparm.c (get_space): Remove empty `if' statement.
51194
51195 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51196
51197 * kern/parser.c (check_varstate): Rename `state' to 's'.
51198
51199 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51200
51201 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51202 variable definitions to the beginning of each function. Sort stack
51203 variables by size.
51204 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51205 `buf' argument to `char *'.
51206
51207 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51208
51209 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51210 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51211 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51212 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51213 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51214 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51215 configfile.mod, search.mod, gzio.mod and test.mod.
51216 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51217 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51218 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51219 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51220 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51221 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51222 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51223 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51224 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51225 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51226 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51227 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51228 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51229 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51230 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51231 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51232 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51233 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51234 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51235 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51236 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51237 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51238 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51239
51240 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51241 `grep --include'.
51242 (pkgdata_MODULES): Add test.mod.
51243
51244 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51245
51246 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51247 appending to variables with "+=".
51248 (PModule): Use full pathname to generate *.lst filenames.
51249
51250 * Makefile.in: Fixed list rules moved from genmk.rb.
51251 (.DELETE_ON_ERROR): New special target.
51252 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51253
51254 * conf/i386-pc.rmk: Include conf/common.mk.
51255 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51256 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51257 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51258 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51259 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51260 configfile.mod, search.mod, gzio.mod and test.mod.
51261 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51262 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51263 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51264 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51265 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51266 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51267 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51268 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51269 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51270 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51271 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51272 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51273 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51274 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51275 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51276 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51277 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51278 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51279 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51280 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51281 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51282 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51283 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51284 here...
51285 * conf/common.rmk: ... to here. New file.
51286
51287 * conf/common.mk: New file.
51288
51289 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51290
51291 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51292 (grub_script.tab.c): ... here.
51293
51294 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51295 (grub_script.tab.c): ... here.
51296
51297 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51298 (grub_script.tab.c): ... here.
51299
51300 * normal/command.c (grub_command_find): Fixed a memory leak of
51301 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51302
51303 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51304
51305 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51306 "@" which marks the start of a comment on ARM.
51307 (VARIABLE): Likewise.
51308
51309 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51310
51311 Add support for Linux/ADFS partition tables.
51312
51313 * partmap/acorn.c: New file.
51314
51315 * include/grub/acorn_filecore.h: Likewise.
51316
51317 * DISTLIST: Added `partmap/acorn.c' and
51318 `include/grub/acorn_filecore.h'.
51319
51320 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51321 `partmap/acorn.c'.
51322 (pkgdata_MODULES): Add `acorn.mod'.
51323 (acorn_mod_SOURCES): New variable.
51324 (acorn_mod_CFLAGS): Likewise.
51325
51326 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51327 `partmap/acorn.c'.
51328 (pkgdata_MODULES): Add `acorn.mod'.
51329 (acorn_mod_SOURCES): New variable.
51330 (acorn_mod_CFLAGS): Likewise.
51331
51332 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51333 (pkgdata_MODULES): Add `acorn.mod'.
51334 (acorn_mod_SOURCES): New variable.
51335 (acorn_mod_CFLAGS): Likewise.
51336 (acorn_mod_LDFLAGS): Likewise.
51337
51338 * include/types.h (grub_disk_addr_t): New typedef.
51339
51340 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51341
51342 * geninit.sh: New file.
51343
51344 * geninitheader.sh: Likewise.
51345
51346 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51347 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51348 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51349 * commands/configfile.c (grub_configfile_init)
51350 (grub_configfile_fini): Likewise.
51351 * commands/default.c (grub_default_init, grub_default_fini):
51352 Likewise.
51353 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51354 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51355 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51356 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51357 Likewise.
51358 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51359 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51360 Likewise.
51361 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51362 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51363 Likewise.
51364 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51365 Likewise.
51366 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51367 Likewise.
51368 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51369 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51370 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51371 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51372 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51373 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51374 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51375 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51376 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51377 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51378 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51379 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51380 * partmap/amiga.c (grub_amiga_partition_map_init)
51381 (grub_amiga_partition_map_fini): Likewise.
51382 * partmap/apple.c (grub_apple_partition_map_init)
51383 (grub_apple_partition_map_fini): Likewise.
51384 * partmap/pc.c (grub_pc_partition_map_init)
51385 (grub_pc_partition_map_fini): Likewise.
51386 * partmap/sun.c (grub_sun_partition_map_init,
51387 grub_sun_partition_map_fini): Likewise.
51388 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51389 Likewise.
51390
51391 * util/grub-emu.c: Include <grub_modules_init.h>.
51392 (main): Don't initialize and de-initialize any modules directly,
51393 use `grub_init_all' and `grub_fini_all' instead.
51394
51395 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51396 `grub_vesafb_mod_init'.
51397 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51398 all users.
51399 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51400 `grub_vga_mod_init'. Updated all users.
51401 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51402
51403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51404 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51405 rules.
51406
51407 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51408 Generate a function to initialize the module in utilities.
51409 Updated all callers.
51410 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51411 initialize the module in utilities. Updated all callers.
51412
51413 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51414
51415 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51416 escape sequence and a literal ^L to clear the screen.
51417
51418 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51419 when returning from Open Firmware.
51420
51421 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51422
51423 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51424 (grub_ofconsole_height): Likewise.
51425 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51426 manually insert a '\n'.
51427 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51428 `grub_ofconsole_height'. Return early if these are already set.
51429
51430 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51431
51432 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51433 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51434 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51435 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51436 and `normal/script.c'.
51437 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51438 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51439 (test_mod_SOURCES): New variable.
51440 (test_mod_CFLAGS): Likewise.
51441 (test_mod_LDFLAGS): Likewise.
51442 (pkgdata_MODULES): Add `test.mod'.
51443 (grub_script.tab.c): New rule.
51444 (grub_script.tab.h): Likewise.
51445
51446 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51447
51448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51449 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51450 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51451 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51452 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51453 (test_mod_SOURCES): New variable.
51454 (test_mod_CFLAGS): Likewise.
51455 (pkgdata_MODULES): Add `test.mod'.
51456 (grub_script.tab.c): New rule.
51457 (grub_script.tab.h): Likewise.
51458
51459 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51460
51461 Add initial scripting support.
51462
51463 * commands/test.c: New file.
51464 * include/grub/script.h: Likewise.
51465 * normal/execute.c: Likewise.
51466 * normal/function.c: Likewise.
51467 * normal/lexer.c: Likewise.
51468 * normal/parser.y: Likewise.
51469 * normal/script.c: Likewise.
51470
51471 * configure.ac: Add `AC_PROG_YACC' test.
51472
51473 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51474 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51475 `normal/function.c' and `normal/script.c'.
51476 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51477 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51478 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51479 variables.
51480 (pkgdata_MODULES): Add `test.mod'.
51481 (grub_script.tab.c): New rule.
51482 (grub_script.tab.h): Likewise.
51483
51484 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51485
51486 * include/grub/normal.h (grub_test_init): New prototype.
51487 (grub_test_fini): Likewise.
51488
51489 * normal/command.c: Include <grub/script.h>.
51490 (grub_command_execute): Rewritten.
51491
51492 * util/grub-emu.c (main): Call `grub_test_init' and
51493 `grub_test_fini'.
51494
51495 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51496
51497 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51498 to 0.
51499 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51500 there are no pending characters.
51501
51502 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51503
51504 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51505 `grub_strndup' to drop device arguments. Replace unnecessary
51506 `grub_strndup' with `grub_strdup'.
51507
51508 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51509
51510 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51511 `debug' environment variable has been set.
51512
51513 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51514
51515 * Makefile.in (install-local): Use $(DATA).
51516 (uninstall): Likewise.
51517 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51518 (sbin_UTILITIES): ... to here.
51519 (sbin_SCRIPTS): New variable.
51520 (grub_install_SOURCES): New variable.
51521 * util/powerpc/ieee1275/grub-install.in: New file.
51522 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51523 variable.
51524 (add_segments): Call `grub_util_get_path'.
51525
51526 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51527
51528 From Timothy Baldwin:
51529 * commands/ls.c (grub_ls_list_files): Close FILE with
51530 grub_file_close.
51531 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51532
51533 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51534
51535 * include/grub/parser.h: New file.
51536
51537 * kern/parser.c: Likewise.
51538
51539 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51540 (grub_setup_SOURCES): Likewise.
51541 (grub_probefs_SOURCES): Likewise.
51542 (grub_emu_SOURCES): Likewise.
51543 (kernel_img_HEADERS): Add `parser.h'.
51544
51545 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51546 (grub_emu_SOURCES): Add `kern/parser.c'.
51547 (grubof_SOURCES): Likewise.
51548
51549 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51550 (grubof_SOURCES): Add `kern/parser.c'.
51551
51552 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51553
51554 * kern/misc.c (grub_split_cmdline): Removed function.
51555
51556 * kern/rescue.c: Include <grub/parser.h>.
51557 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51558 of `grub_split_cmdline'.
51559
51560 * normal/command.c: Include <grub/parser.h>.
51561 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51562 of `grub_split_cmdline'.
51563
51564 * normal/completion.c: Include <grub/parser.h>.
51565 (cmdline_state): New variable.
51566 (iterate_dir): End the filename with a quote depending on the
51567 command line state.
51568 (get_state): new function.
51569 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51570 split the arguments and determine the current argument. When the
51571 argument string is not quoted, escape all spaces.
51572
51573 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51574
51575 * normal/sparc64/setjmp.S: New file.
51576
51577 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51578
51579 * include/grub/sparc64/libgcc.h: New file.
51580 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51581 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51582 normal/sparc64/setjmp.c.
51583
51584 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51585
51586 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51587 * kern/sparc64/cache.S: New file.
51588 * kern/sparc64/cache.c: Removed.
51589 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51590 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51591 -mtune=ultrasparc.
51592 (COMMON_LDFLAGS): Add -melf64_sparc.
51593 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51594 (grubof_SOURCES): Use cache.S instead of cache.c.
51595 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51596 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51597 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51598 commented though.
51599 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51600 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51601 (linux_mod_CFLAGS): Commented out.
51602 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51603 out because module isn't built.
51604 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51605 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51606 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51607 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51608 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51609 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51610 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51611 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51612 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51613 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51614 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51615 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51616 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51617 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51618
51619 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51620
51621 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51622 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51623 longer, because HFS should not be used on PC.
51624
51625 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51626
51627 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51628 consistently within the loop.
51629
51630 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51631
51632 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51633 directory can not be read.
51634
51635 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51636
51637 * configure.ac (AC_INIT): Increase the version number to 1.91.
51638
51639 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51640 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51641 term/i386/pc/serial.c.
51642
51643 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51644
51645 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51646 file size must be permitted.
51647
51648 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51649 between %ah and %al.
51650
51651 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51652
51653 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51654 grub_uint64_t.
51655 Call the hook with a NUL-terminated filename.
51656 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51657 grub_cpu_to_be32.
51658
51659 * kern/term.c (cursor_state): New variable.
51660 (grub_term_set_current): Reset the cursor state on a new
51661 terminal.
51662 (grub_setcursor): Rewritten to use CURSOR_STATE.
51663 (grub_getcursor): New function.
51664
51665 * include/grub/term.h (grub_getcursor): New prototype.
51666
51667 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51668 integers on ARM. Reported by Timothy Baldwin
51669 <T.E.Baldwin99@members.leeds.ac.uk>.
51670
51671 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51672
51673 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51674 allocated.
51675 (grub_sfs_dir): Likewise.
51676
51677 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51678
51679 Add support for the SFS filesystem.
51680
51681 * fs/sfs.c: New file.
51682
51683 * DISTLIST: Added `fs/sfs.c'.
51684
51685 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51686 (grub_probefs_SOURCES): Likewise.
51687 (grub_emu_SOURCES): Likewise.
51688 (pkgdata_MODULES): Add `sfs.mod'.
51689 (sfs_mod_SOURCES): New variable.
51690 (sfs_mod_CFLAGS): Likewise.
51691 (sfs_mod_LDFLAGS): Likewise.
51692
51693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51694 (pkgdata_MODULES): Add `sfs.mod'.
51695 (sfs_mod_SOURCES): New variable.
51696 (sfs_mod_CFLAGS): Likewise.
51697
51698 * util/grub-emu.c (main): Call `grub_sfs_init' and
51699 `grub_sfs_fini'.
51700
51701 * include/grub/fs.h (grub_sfs_init): New prototype.
51702 (grub_sfs_fini): Likewise.
51703
51704 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51705
51706 Add support for the AFFS filesystem.
51707
51708 * fs/affs.c: New file.
51709
51710 * DISTLIST: Added `fs/affs.c'.
51711
51712 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51713 (grub_probefs_SOURCES): Likewise.
51714 (grub_emu_SOURCES): Likewise.
51715 (pkgdata_MODULES): Add `affs.mod'.
51716 (affs_mod_SOURCES): New variable.
51717 (affs_mod_CFLAGS): Likewise.
51718 (affs_mod_LDFLAGS): Likewise.
51719
51720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51721 (pkgdata_MODULES): Add `affs.mod'.
51722 (affs_mod_SOURCES): New variable.
51723 (affs_mod_CFLAGS): Likewise.
51724
51725 * util/grub-emu.c (main): Call `grub_affs_init' and
51726 `grub_affs_fini'.
51727
51728 * include/grub/fs.h (grub_affs_init): New prototype.
51729 (grub_affs_fini): Likewise.
51730
51731 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51732
51733 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51734
51735 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51736
51737 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51738 `-m32' to CFLAGS.
51739
51740 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51741 linking.
51742
51743 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51744 (COMMON_LDFLAGS): New variable.
51745 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51746 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51747 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51748 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51749 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51750 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51751 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51752 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51753 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51754 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51755 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51756 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51757 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51758 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51759 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51760 variables.
51761 (normal_mod_ASFLAGS): Add `-m32'.
51762
51763 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51764 (grub_host_size_t, grub_host_ssize_t): New types.
51765 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51766 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51767 `GRUB_HOST_SIZEOF_VOID_P'.
51768
51769 * include/grub/kernel.h (struct grub_module_header): Type of
51770 member offset changed to `grub_host_off_t'. Type of member size
51771 changed to `grub_host_size_t'.
51772 (struct grub_module_info): Type of member offset changed to
51773 `grub_host_off_t'. Type of member size changed to
51774 `grub_host_size_t'.
51775
51776 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51777
51778 Make GRUB's kernel compliant to Multiboot Specification.
51779
51780 * kern/i386/pc/startup.S (multiboot_header): New label.
51781 (multiboot_entry): Likewise.
51782 (multiboot_trampoline): Likewise.
51783
51784 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51785 Increased to 0x4A0.
51786
51787 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51788 put parentheses after a question mark.
51789 [!GRUB_UTIL] (my_mod): New variable.
51790
51791 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51792
51793 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51794
51795 Adds support for the XFS filesystem. Btrees are not supported
51796 yet.
51797
51798 * fs/xfs.c: New file.
51799
51800 * DISTLIST: Added `fs/xfs.c'.
51801
51802 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51803 (grub_probefs_SOURCES): Likewise.
51804 (grub_emu_SOURCES): Likewise.
51805 (pkgdata_MODULES): Add `xfs.mod'.
51806 (xfs_mod_SOURCES): New variable.
51807 (xfs_mod_CFLAGS): Likewise.
51808
51809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51810 (pkgdata_MODULES): Add `xfs.mod'.
51811 (xfs_mod_SOURCES): New variable.
51812 (xfs_mod_CFLAGS): Likewise.
51813
51814 * util/grub-emu.c (main): Call `grub_xfs_init' and
51815 `grub_xfs_fini'.
51816
51817 * include/grub/fs.h (grub_xfs_init): New prototype.
51818 (grub_xfs_fini): Likewise.
51819
51820
51821 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51822
51823 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51824 color modes, allow greater than 16 colors to be configured as
51825 a default palette.
51826
51827 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51828
51829 * normal/completion.c (complete_arguments): Add the qualifier
51830 const into OPTIONS.
51831
51832 From Omniflux <omniflux+lists@omniflux.com>:
51833 * include/grub/terminfo.h: New file.
51834 * include/grub/tparm.h: Likewise.
51835 * include/grub/i386/pc/serial.h: Likewise.
51836 * term/terminfo.c: Likewise.
51837 * term/tparm.c: Likewise.
51838 * term/i386/pc/serial.c: Likewise.
51839 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51840 serial.mod.
51841 (terminfo_mod_SOURCES): New variable.
51842 (terminfo_mod_CFLAGS): Likewise.
51843 (serial_mod_SOURCES): Likewise.
51844 (serial_mod_CFLAGS): Likewise.
51845
51846 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51847
51848 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51849 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51850 and kern/powerpc/ieee1275/cmain.c, respectively.
51851
51852 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51853 * kern/powerpc/ieee1275/crt0.S: ... here.
51854
51855 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51856 * kern/powerpc/ieee1275/cmain.c: ... here.
51857
51858 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51859 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51860 instead of boot/powerpc/ieee1275/crt0.S and
51861 boot/powerpc/ieee1275/cmain.c, respectively.
51862
51863 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51864 sectors. It was not used anyway.
51865
51866 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51867
51868 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51869 `unused parameter' warning.
51870
51871 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51872
51873 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51874 function.
51875 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51876 getcharwidth.
51877
51878 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51879
51880 * include/grub/normal.h (enum grub_completion_type): Added
51881 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51882
51883 * normal/cmdline.c (print_completion): Handle
51884 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51885 * normal/menu_entry.c (store_completion): Likewise.
51886
51887 * normal/completion.c (complete_arguments): New function.
51888 (grub_normal_do_completion): Call `complete_arguments' when the
51889 current words start with a dash.
51890
51891 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51892
51893 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51894 `gzio.mod' instead of `io.mod').
51895
51896 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51897
51898 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51899 (DISTDIRS): Added io and video.
51900 Rewrite the search routine to make an output consistently.
51901
51902 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51903 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51904 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51905 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51906 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51907 util/powerpc/ieee1275/misc.c.
51908
51909 * include/grub/gzio.h: New file.
51910 * io/gzio.c: Likewise.
51911
51912 * kern/file.c (grub_file_close): Call grub_device_close only if
51913 FILE->DEVICE is not NULL.
51914
51915 * include/grub/mm.h [!NULL] (NULL): New macro.
51916
51917 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51918
51919 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51920 (pkgdata_MODULES): Added gzio.mod.
51921 (gzio_mod_SOURCES): New variable.
51922 (gzio_mod_CFLAGS): Likewise.
51923
51924 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51925 (pkgdata_MODULES): Added gzio.mod.
51926 (gzio_mod_SOURCES): New variable.
51927 (gzio_mod_CFLAGS): Likewise.
51928
51929 * commands/cat.c: Include grub/gzio.h.
51930 (grub_cmd_cat): Use grub_gzfile_open instead of
51931 grub_file_open.
51932
51933 * commands/cmp.c: Include grub/gzio.h.
51934 (grub_cmd_cmp): Use grub_gzfile_open instead of
51935 grub_file_open.
51936
51937 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51938 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51939 grub_file_open.
51940 (grub_rescue_cmd_module): Likewise.
51941
51942 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51943
51944 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51945 kern/sparc64/ieee1275/init.c because it contains _start.
51946 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51947
51948 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51949
51950 * configure.ac: Add support for sparc64 host with ieee1275
51951 firmware.
51952 * configure: Generated from configure.ac.
51953 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51954 instead of int.
51955 (grub_ofdisk_read): Likewise.
51956 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51957 pointers as (void *) to remove a warning.
51958 (grub_ofdisk_close): Likewise.
51959 (grub_ofdisk_read): Likewise.
51960 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51961 returns, so make it return void to remove a warning.
51962 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51963 Corresponding prototype change.
51964 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51965 values, and cast the pointers as (void *) to remove a warning.
51966 (grub_mm_dump): Likewise.
51967 * conf/sparc64-ieee1275.mk: New file.
51968 * conf/sparc64-ieee1275.rmk: Likewise.
51969 * include/grub/sparc64/setjmp.h: Likewise.
51970 * include/grub/sparc64/types.h: Likewise.
51971 * include/grub/sparc64/ieee1275/console.h: Likewise.
51972 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51973 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51974 * include/grub/sparc64/ieee1275/time.h: Likewise.
51975 * kern/sparc64/cache.c: Likewise.
51976 * kern/sparc64/dl.c: Likewise.
51977 * kern/sparc64/ieee1275/init.c: Likewise.
51978 * kern/sparc64/ieee1275/openfw.c: Likewise.
51979
51980 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51981
51982 * util/console.c (grub_ncurses_putchar): If C is greater than
51983 0x7f, set C to a question mark.
51984 (grub_ncurses_getcharwidth): New function.
51985 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
51986 getcharwidth.
51987
51988 * normal/menu.c (print_entry): Made aware of Unicode. First,
51989 convert TITLE to UCS-4, and predict the cursor position by
51990 grub_getcharwidth.
51991
51992 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
51993 const to SRC.
51994 * kern/misc.c (grub_utf16_to_utf8): Likewise.
51995
51996 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
51997
51998 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
51999 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52000 grub_strcat.
52001
52002 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52003 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52004 grub_strcpy and grub_strlen. Take it into account that a space
52005 character is inserted as a delimiter.
52006
52007 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52008
52009 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52010 invalid magic in the error.
52011
52012 * commands/search.c: New file.
52013
52014 * util/grub-emu.c (main): Call grub_search_init and
52015 grub_search_fini.
52016
52017 * kern/rescue.c (grub_rescue_print_disks): Removed.
52018 (grub_rescue_print_devices): New function.
52019 (grub_rescue_cmd_ls): Use grub_device_iterate with
52020 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52021 grub_rescue_print_disks.
52022
52023 * kern/partition.c (grub_partition_iterate): Return the result of
52024 PARTMAP->ITERATE instead of GRUB_ERRNO.
52025
52026 * kern/device.c: Include grub/partition.h.
52027 (grub_device_iterate): New function.
52028
52029 * include/grub/partition.h (grub_partition_iterate): Return int
52030 instead of grub_err_t.
52031
52032 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52033 prototype.
52034 [GRUB_UTIL] (grub_search_fini): Likewise.
52035
52036 * include/grub/device.h (grub_device_iterate): New prototype.
52037
52038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52039 commands/search.c.
52040 (pkgdata_MODULES): Added search.mod.
52041 (search_mod_SOURCES): New variable.
52042 (search_mod_CFLAGS): Likewise.
52043
52044 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52045 (pkgdata_MODULES): Added search.mod.
52046 (search_mod_SOURCES): New variable.
52047 (search_mod_CFLAGS): Likewise.
52048
52049 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52050 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52051 All callers changed.
52052
52053 * DISTLIST: Added commands/search.c.
52054
52055 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52056
52057 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52058 conversion.
52059 (grub_getcharwidth): New function.
52060
52061 * kern/misc.c (grub_utf8_to_ucs4): New function.
52062
52063 * include/grub/term.h (struct grub_term): Added a new member
52064 "getcharwidth".
52065 (grub_getcharwidth): New prototype.
52066
52067 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52068
52069 * term/i386/pc/console.c (map_char): New function. Segregated from
52070 grub_console_putchar.
52071 (grub_console_putchar): Use map_char.
52072 (grub_console_getcharwidth): New function.
52073 (grub_console_term): Specified grub_console_getcharwidth as
52074 getcharwidth.
52075
52076 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52077 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52078
52079 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52080 GRUB_ERRNO.
52081 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52082 on grub_strtoul completely.
52083 (write_char): Declare local variables in the beginning of the
52084 function.
52085 (grub_vesafb_getcharwidth): New function.
52086 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52087 getcharwidth.
52088
52089 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52090
52091 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52092 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52093 commands/i386/pc/vbetest.c.
52094
52095 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52096 call grub_vbe_get_controller_info again, because the returned
52097 information is volatile.
52098 (grub_vbe_set_video_mode): Mostly rewritten.
52099 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52100 grub_vbe_status_t correctly.
52101 (grub_vbe_get_video_mode_info): Likewise.
52102 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52103 several if statements.
52104
52105 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52106 * commands/i386/pc/vbeinfo.c: ... this.
52107
52108 * commands/i386/pc/vbe_test.c: Renamed to ...
52109 * commands/i386/pc/vbetest.c: ... this.
52110
52111 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52112 ...
52113 (grub_cmd_vbeinfo): ... this. Save video modes before
52114 iterating. Skip a video mode, if it is not available, not enough
52115 information is given or it is monochrome. Show the memory
52116 model. Leave the interpretation of MODEVAR to grub_strtoul
52117 completely.
52118 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52119 (GRUB_MOD_FINI): Likewise.
52120
52121 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52122 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52123 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52124 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52125 grub_strtoul completely.
52126 (real2pm): Removed.
52127 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52128 (GRUB_MOD_FINI): Likewise.
52129
52130 * normal/misc.c: Include grub/mm.h.
52131
52132 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52133 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52134 (vbe_list_modes_mod_SOURCES): Removed.
52135 (vbe_list_modes_mod_CFLAGS): Likewise.
52136 (vbe_test_mod_SOURCES): Likewise.
52137 (vbe_test_mod_CFLAGS): Likewise.
52138 (vbeinfo_mod_SOURCES): New variable.
52139 (vbeinfo_mod_CFLAGS): Likewise.
52140 (vbetest_mod_SOURCES): Likewise.
52141 (vbetest_mod_CFLAGS): Likewise.
52142
52143 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52144
52145 * normal/misc.c: New file.
52146
52147 * DISTLIST: Added normal/misc.c.
52148
52149 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52150 DISK to HOOK. Call HOOK with DISK.
52151 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52152 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52153 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52154
52155 * normal/menu_entry.c (struct screen): Added a new member
52156 "completion_shown".
52157 (completion_buffer): New global variable.
52158 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52159 (store_completion): New function.
52160 (complete): Likewise.
52161 (clear_completions): Likewise.
52162 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52163 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52164 a tab, call complete.
52165
52166 * normal/completion.c (disk_dev): Removed.
52167 (print_simple_completion): Likewise.
52168 (print_partition_completion): Likewise.
52169 (print_func): New global variable.
52170 (add_completion): Do not take the arguments WHAT or PRINT any
52171 longer. Added a new argument TYPE. Instead of printing directly,
52172 call PRINT_FUNC if not NULL.
52173 All callers changed.
52174 (complete_device): Use a local variable DEV instead of
52175 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52176 (grub_normal_do_completion): Take a new argument HOOK. Do not
52177 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52178 empty string, return NULL instead.
52179 All callers changed.
52180
52181 * normal/cmdline.c (print_completion): New function.
52182
52183 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52184 to HOOK.
52185 All callers changed.
52186
52187 * kern/disk.c (grub_print_partinfo): Removed.
52188
52189 * include/grub/partition.h (struct grub_partition_map): Add a new
52190 argument DISK into HOOK of ITERATE.
52191 (grub_partition_iterate): Add a new argument DISK to HOOK.
52192
52193 * include/grub/normal.h (enum grub_completion_type): New enum.
52194 (grub_completion_type_t): New type.
52195 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52196 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52197 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52198 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52199 (grub_normal_do_completion): Added a new argument HOOK.
52200 (grub_normal_print_device_info): New prototype.
52201
52202 * include/grub/disk.h (grub_print_partinfo): Removed.
52203
52204 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52205 (normal_mod_SOURCES): Likewise.
52206 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52207 (normal_mod_SOURCES): Likewise.
52208
52209 * commands/ls.c (grub_ls_list_disks): Use
52210 grub_normal_print_device_info instead of grub_print_partinfo. Free
52211 PNAME.
52212 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52213 duplicating the code.
52214
52215 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52216
52217 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52218 follow GCS more precisely.
52219 * commands/i386/pc/vbe_test.c: Likewise.
52220 * include/grub/i386/pc/vbe.h: Likewise.
52221 * term/i386/pc/vesafb.c: Likewise.
52222 * video/i386/pc/vbe.c: Likewise.
52223
52224 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52225
52226 * DISTLIST: Added term/i386/pc/vesafb.c
52227 DISTLIST: Added video/i386/pc/vbe.c
52228 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52229 DISTLIST: Added commands/i386/pc/vbe_test.c.
52230 * commands/i386/pc/vbe_list_modes.c: New file.
52231 * commands/i386/pc/vbe_test.c: Likewise.
52232 * term/i386/pc/vesafb.c: Likewise.
52233 * video/i386/pc/vbe.c: Likewise.
52234 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52235 (grub_vbe_probe) Added prototype.
52236 (grub_vbe_set_video_mode) Likewise.
52237 (grub_vbe_get_video_mode) Likewise.
52238 (grub_vbe_get_video_mode_info) Likewise.
52239 (grub_vbe_set_pixel_rgb) Likewise.
52240 (grub_vbe_set_pixel_index) Likewise.
52241 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52242 (pkgdata_MODULES): Added vesafb.mod.
52243 (pkgdata_MODULES): Added vbe_list_modes.mod.
52244 (pkgdata_MODULES): Added vbe_test.mod.
52245 (vbe_mod_SOURCES): Added.
52246 (vbe_mod_CFLAGS): Likewise.
52247 (vesafb_mod_SOURCES): Likewise.
52248 (vesafb_mod_CFLAGS): Likewise.
52249 (vbe_list_modes_mod_SOURCES): Likewise.
52250 (vbe_list_modes_mod_CFLAGS): Likewise.
52251 (vbe_test_mod_SOURCES): Likewise.
52252 (vbe_test_mod_CFLAGS): Likewise.
52253
52254 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52255
52256 * normal/command.c (grub_command_execute): If INTERACTIVE is
52257 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52258 CMDLINE. Disable the pager if INTERACTIVE is true.
52259 All callers are changed.
52260
52261 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52262 before reading a config file.
52263 * normal/main.c (read_config_file): Even if a command is not
52264 found, register it if it is within an entry.
52265
52266 * util/grub-emu.c: Include sys/types.h and unistd.h.
52267 (options): Added --hold.
52268 (struct arguments): Added a new member "hold".
52269 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52270 missing.
52271 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52272 cleared by a debugger, if it is not zero.
52273
52274 * include/grub/normal.h (grub_command_execute): Add an argument
52275 INTERACTIVE.
52276
52277 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52278
52279 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52280
52281 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52282
52283 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52284 program with another one, because the old one didn't detect a bug
52285 in gcc-3.4. Always use regparm 2, because the new test is still
52286 not enough for gcc-4.0. Someone must investigate a simple test
52287 case which detects a bug in gcc-4.0.
52288
52289 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52290
52291 * DISTLIST: Added normal/completion.c.
52292
52293 * normal/completion.c: New file.
52294
52295 * term/i386/pc/console.c (grub_console_getwh): New function.
52296 (grub_console_term): Assign grub_console_getwh to getwh.
52297
52298 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52299 function is defined in normal/completion.c as
52300 grub_normal_do_completion.
52301 (grub_cmdline_get): Use grub_normal_do_completion instead of
52302 grub_tab_complete.
52303
52304 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52305 returns non-zero, otherwise return 0.
52306 (grub_partition_iterate): First, probe the partition map. Then,
52307 call ITERATE only for this partition map.
52308
52309 * kern/misc.c (grub_strncmp): Rewritten.
52310
52311 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52312 returns non-zero. Otherwise return 0.
52313
52314 * include/grub/partition.h (grub_partition_map_iterate): Return
52315 int instead of void.
52316
52317 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52318
52319 * include/grub/misc.h (grub_strncmp): Change the type of N to
52320 grub_size_t.
52321
52322 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52323 of void.
52324
52325 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52326 unsigned explicitly before comparing it with I.
52327
52328 * kern/main.c (grub_env_write_root): Add the attribute unused into
52329 VAR.
52330
52331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52332 normal/completion.c.
52333 (normal_mod_SOURCES): Likewise.
52334 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52335 (normal_mod_SOURCES): Likewise.
52336
52337 * normal/command.c (grub_iterate_commands): If ITERATE returns
52338 non-zero, return one immediately.
52339
52340 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52341
52342 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52343 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52344 descriptions.
52345 (grub_vbe_get_controller_info): New function.
52346 (grub_vbe_get_mode_info): Likewise.
52347 (grub_vbe_set_mode): Likewise.
52348 (grub_vbe_get_mode): Likewise.
52349 (grub_vbe_set_memory_window): Likewise.
52350 (grub_vbe_get_memory_window): Likewise.
52351 (grub_vbe_set_scanline_length): Likewise.
52352 (grub_vbe_get_scanline_length): Likewise.
52353 (grub_vbe_set_display_start): Likewise.
52354 (grub_vbe_get_display_start): Likewise.
52355 (grub_vbe_set_palette_data): Likewise.
52356 * include/grub/i386/pc/vbe.h: New file.
52357
52358 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52359
52360 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52361 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52362 * DISTLIST: Likewise.
52363 * kern/ieee1275/of.c: Moved to ...
52364 * kern/ieee1275/ieee1275.c: ... here.
52365
52366 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52367
52368 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52369 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52370 Pass 0 as `end' parameter to grub_strtoul().
52371
52372 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52373
52374 * include/grub/powerpc/ieee1275/console.h: Do not include
52375 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52376 ifdef.
52377 (grub_console_cur_color): Remove i386-specific prototype.
52378 (grub_console_real_putchar): Likewise.
52379 (grub_console_checkkey): Likewise.
52380 (grub_console_getkey): Likewise.
52381 (grub_console_getxy): Likewise.
52382 (grub_console_gotoxy): Likewise.
52383 (grub_console_cls): Likewise.
52384 (grub_console_setcursor): Likewise.
52385 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52386 Include <grub/machine/console.h>.
52387 * term/ieee1275/ofconsole.c: Likewise.
52388
52389 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52390
52391 * Makefile.in (LIBLZO): New variable.
52392
52393 * configure.ac: Check for LZO version 2.
52394
52395 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52396 lzo/lzo1x.h instead of lzo1x.h.
52397
52398 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52399 of -llzo.
52400
52401 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52402 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52403
52404 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52405 copying the data from PARTITION to P.
52406
52407 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52408
52409 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52410 negative, unload the module.
52411
52412 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52413 map is "pc_partition_map" but not "pc".
52414 (usage): Fix the description. The options are --boot-image and
52415 --core-image but not --boot-file or --core-file.
52416 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52417 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52418 DEFAULT_DIRECTORY.
52419
52420 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52421 --core-file. Specify INSTALL_DEVICE as an argument.
52422
52423 * util/console.c: Include config.h.
52424 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52425 [HAVE_NCURSES_H]: Include ncurses.h.
52426 [HAVE_CURSES_H]: Include curses.h.
52427 [!A_NORMAL] (A_NORMAL): Defined as zero.
52428 [!A_STANDOUT] (A_STANDOUT): Likewise.
52429
52430 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52431 -lncurses.
52432 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52433
52434 * configure.ac: Check for curses libraries and headers.
52435
52436 * Makefile.in (LIBCURSES): New variable.
52437
52438 * genmk.rb (Script::rule): Set the executable bits.
52439
52440 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52441 name of the PC partition map is "pc_partition_map" but not "pc".
52442
52443 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52444
52445 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52446 (modules): Likewise.
52447 (usage): Added descriptions for --modules and --grub-probefs.
52448 Handle --modules and --grub-probefs. Save the arguments in MODULES
52449 and GRUB_PROBEFS, respectively.
52450 Auto-detect a filesystem module against GRUBDIR. If the result is
52451 empty and modules are not specified explicitly, abort the
52452 installation. Add the result to MODULES.
52453
52454 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52455 disk/powerpc/ieee1275/ofdisk.c,
52456 include/grub/powerpc/ieee1275/init.h and
52457 term/powerpc/ieee1275/ofconsole.c.
52458 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52459 term/ieee1275/ofconsole.c.
52460
52461 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52462
52463 * COPYING: Upgraded to the latest version. Only the address of the
52464 FSF office has changed.
52465
52466 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52467
52468 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52469 kern/ieee1275.c with kern/ieee1275/of.c.
52470
52471 * kern/ieee1275.c: Moved to ...
52472 * kern/ieee1275/of.c: ... here.
52473
52474 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52475
52476 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52477 readability.
52478
52479 * config.guess: Updated to the latest version from gnulib.
52480 * config.sub: Likewise.
52481 * install.sh: Likewise.
52482 * mkinstalldirs: Likewise.
52483
52484 * include/grub/console.h: Removed. This file is arch-specific. Do
52485 not put this in include/grub.
52486
52487 * include/grub/i386/pc/console.h: Resurrected.
52488
52489 * util/console.c: Include grub/machine/console.h instead of
52490 grub/console.h.
52491 * util/grub-emu.c: Likewise.
52492
52493 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52494
52495 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52496 hardcoded value.
52497
52498 From Vincent Pelletier <subdino2004@yahoo.fr>
52499 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52500 Redefined to use grub_getwh.
52501 (grub_term): New member named getwh.
52502 (grub_getwh): New prototype.
52503 * kern/term.c (grub_getwh): New function.
52504 * term/i386/pc/console.c (grub_console_getwh): New function.
52505 (grub_console_term): New member `getwh'.
52506 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52507 (grub_vga_term): New member `getwh'.
52508 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52509 grub_ssize_t.
52510 (grub_ofconsole_getw): New function.
52511 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52512 (grub_ofconsole_term): New field named getwh and new initial
52513 value.
52514
52515 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52516
52517 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52518 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52519 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52520 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52521 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52522 of <grub/machine/ieee1275.h>.
52523 * commands/ieee1275/reboot.c: Likewise.
52524 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52525 * kern/ieee1275.c: ... to here. All users updated. Change all
52526 parameter structs to use new type `grub_ieee1275_cell_t'.
52527 * term/powerpc/ieee1275/ofconsole.c: Move ...
52528 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52529 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52530 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52531 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52532 to return int.
52533 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52534 Remove unused prototypes. All users updated.
52535 * include/grub/powerpc/ieee1275/console.h: Removed.
52536 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52537 `grub_ieee1275_cell_t'.
52538 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52539 Cast comparisons with -1 to the correct type.
52540 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52541 type to match `grub_ieee1275_entry_fn'.
52542
52543 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52544
52545 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52546
52547 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52548 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52549 partmap/sun.c.
52550 (grub_probefs_SOURCES): New variable.
52551
52552 * util/i386/pc/grub-probefs.c: New file.
52553
52554 * util/i386/pc/grub-setup.c (main): Call
52555 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52556 grub_hfs_init and grub_jfs_init to initialize the system. Call
52557 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52558 grub_pc_partition_map_fini to finish the system.
52559
52560 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52561
52562 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52563 function.
52564 (grub_multiboot_load_elf32): Likewise.
52565 (grub_multiboot_is_elf64): Likewise.
52566 (grub_multiboot_load_elf64): Likewise.
52567 (grub_multiboot_load_elf): Likewise.
52568 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52569 an ELF32 or ELF64 file.
52570 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52571
52572 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52573 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52574 NULL before calling FS->LABEL.
52575 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52576 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52577 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52578 before calling FS->LABEL.
52579
52580 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52581
52582 * util/i386/pc/grub-install.in (datadir): New variable.
52583 (libdir): Removed.
52584 (pkgdatadir): New variable.
52585 (pkglibdir): Removed.
52586
52587 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52588
52589 * DISTLIST: Added util/i386/pc/grub-install.in.
52590
52591 * util/i386/pc/grub-install.in: New file.
52592
52593 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52594 (grub_install_SOURCES): Likewise.
52595
52596 * genmk.rb: Added support for scripts.
52597 (Script): New class.
52598 (scripts): New variable.
52599
52600 * Makefile.in (install-local): Install sbin_SCRIPTS by
52601 INSTALL_SCRIPT.
52602 (uninstall): Remove sbin_SCRIPTS.
52603
52604 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52605 device, try to get a GRUB device by
52606 grub_util_biosdisk_get_grub_dev.
52607 Free DEST_DEV.
52608
52609 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52610 description for --device-map.
52611
52612 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52613
52614 Change the semantics of variable hooks. They now return strings
52615 instead of error values.
52616
52617 * util/i386/pc/grub-setup.c: Include grub/env.h.
52618 (setup): Use grub_device_set_root instead of grub_env_set.
52619
52620 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52621 grub_env_get instead of grub_device_set_root and
52622 grub_device_get_root, respectively.
52623
52624 * kern/main.c (grub_env_write_root): New function.
52625 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52626 grub_env_set instead of grub_device_set_root.
52627
52628 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52629 many variables.
52630 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52631 rather than calling ENV->WRITE_HOOK afterwards.
52632 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52633 passing a pointer of a pointer.
52634 (grub_register_variable_hook): Change the types of "read_hook" and
52635 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52636 respectively.
52637 Allocate the default empty string on the heap, because this string
52638 may be freed later.
52639
52640 * kern/device.c: Include grub/env.h.
52641 (grub_device_set_root): Removed.
52642 (grub_device_get_root): Likewise.
52643 (grub_device_open): Use grub_env_get instead of
52644 grub_device_get_root.
52645
52646 * include/grub/env.h (grub_env_read_hook_t): New type.
52647 (grub_env_write_hook_t): Likewise.
52648 (grub_env_var): Change the types of "read_hook" and "write_hook"
52649 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52650 (grub_register_variable_hook): Likewise.
52651
52652 * include/grub/device.h (grub_device_set_root): Removed.
52653 (grub_device_set_root): Likewise.
52654
52655 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52656 make sure that DIRNAME terminates with '/', so that
52657 grub_fat_find_dir will fail if PATH is not a directory.
52658
52659 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52660 from DIRNAME.
52661 Use the qualifier auto for print_files and print_files_long.
52662 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52663 as a regular file.
52664 Put a newline only if there is no error.
52665 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52666 used.
52667
52668 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52669
52670 * kern/partition.c (grub_partition_probe): Initialize PART to
52671 NULL. Otherwise, when no partition map is registered, this returns
52672 a garbage.
52673
52674 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52675
52676 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52677 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52678 valid.
52679
52680 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52681
52682 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52683 information on each device, if it does not have partitions. Print
52684 "Device" instead of "Disk", because this function is not specific
52685 to disk devices.
52686
52687 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52688 static to ensure that it is put on the memory rather than a
52689 register.
52690
52691 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52692
52693 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52694 (grub_cat_init): Likewise.
52695 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52696 (options): Likewise.
52697 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52698 (grub_configfile_init): Likewise.
52699 * font/manager.c (GRUB_MOD_INIT): Likewise.
52700 * commands/help.c (GRUB_MOD_INIT): Likewise.
52701 (grub_help_init): Likewise.
52702 * normal/command.c (grub_command_init): Likewise.
52703 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52704 * disk/loopback.c (grub_loop_init): Likewise.
52705 (GRUB_MOD_INIT): Likewise.
52706 * commands/ls.c (grub_ls_init): Likewise.
52707 (GRUB_MOD_INIT): Likewise.
52708 (options): Likewise.
52709 * commands/boot.c (grub_boot_init): Likewise.
52710 (GRUB_MOD_INIT): Likewise.
52711 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52712 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52713 (GRUB_MOD_INIT): Likewise.
52714 * commands/cmp.c (grub_cmp_init): Likewise.
52715 (GRUB_MOD_INIT): Likewise.
52716
52717 * normal/arg.c: Use <> instead of "" to include header files.
52718 (SHORT_ARG_HELP): New macro.
52719 (SHORT_ARG_USAGE): Likewise.
52720 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52721 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52722 descriptions.
52723 (find_short): Check if C is 'h' or 'u' explicitly.
52724 (grub_arg_show_help): Use space characters instead of tabs. Treat
52725 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52726 are shown with --help and --usage only if they are not used for
52727 the command itself.
52728 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52729 'h' and 'u'.
52730
52731 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52732 const into "longarg". Change the type of "shortarg" to int.
52733
52734 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52735
52736 * boot/i386/pc/boot.S (boot_drive_check): New label.
52737
52738 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52739 macro.
52740
52741 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52742 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52743
52744 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52745
52746 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52747 When turning off Gate A20, skip the check and return immediately,
52748 because this is not fatal usually.
52749
52750 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52751
52752 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52753 be 0x7C00 instead of 0x8000.
52754
52755 * boot/i386/pc/pxeboot.S: Rewritten.
52756
52757 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52758 EXT_C.
52759 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52760 result.
52761
52762 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52763
52764 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52765 robustness. This routine now supports a BIOS call and System
52766 Control Port A to modify the gate A20.
52767
52768 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52769 Increased to 0x440.
52770
52771 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52772
52773 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52774 device path and resulting ihandle.
52775 (grub_ofdisk_close): dprintf the ihandle being closed.
52776 (grub_ofdisk_read): dprintf function parameters.
52777 * kern/mm.c (grub_mm_init_region): Likewise.
52778 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52779 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52780 size, and boot arguments.
52781 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52782 before loading into memory.
52783 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52784 before loading into memory.
52785
52786 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52787
52788 * kern/mm.c: Added much documentation.
52789 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52790 8, set to 5 instead of 8.
52791
52792 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52793
52794 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52795
52796 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52797 (grub_mkdevicemap_SOURCES): New variable.
52798
52799 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52800 lib/device.c of GRUB Legacy.
52801
52802 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52803
52804 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52805 instead of PATH is NULL.
52806
52807 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52808
52809 * commands/cmp.c (BUFFER_SIZE): New macro.
52810 (grub_cmd_cmp): Close the right file at the right time. Compare
52811 only data just read. Don't report files of different size as
52812 identical. Dynamically allocate buffers. Move variable
52813 declarations at the beginning of function.
52814
52815 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52816
52817 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52818 reverse.
52819
52820 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52821
52822 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52823 when backspace is pressed at beginning of line.
52824
52825 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52826
52827 * DISTLIST: Added genfslist.sh.
52828
52829 * normal/main.c (fs_module_list): New variable.
52830 (autoload_fs_module): New function.
52831 (read_fs_list): Likewise.
52832 (grub_normal_execute): Call read_fs_list.
52833
52834 * kern/fs.c (grub_fs_autoload_hook): New variable.
52835 (grub_fs_probe): Added support for auto-loading.
52836
52837 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52838 (grub_fs_module_list_t): New type.
52839
52840 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52841 (grub_fs_autoload_hook): New prototype.
52842
52843 * genfslist.sh: New file.
52844
52845 * genmk.rb: Added a rule to generate a filesystem list.
52846
52847 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52848
52849 * configure.ac: Fix the test for cross-compiling.
52850
52851 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52852 define GRUB_UTIL anymore.
52853
52854 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52855 so this function works on other systems than just big endian.
52856 (load_modules): Likewise.
52857 (add_segments): Likewise.
52858
52859 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52860
52861 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52862 contains `l' modifier, get a long from va_arg().
52863
52864 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52865
52866 * kern/mm.c (grub_free): If the next free block which is being
52867 merged is the first free block, set the first block to the block
52868 being freed.
52869 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52870
52871 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52872
52873 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52874 `grub_ieee1275_chosen'.
52875
52876 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52877
52878 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52879 (grub_ieee1275_chosen): New variable.
52880 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52881 `chosen'.
52882 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52883 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52884 Rename first argument to `phandle' for consistency.
52885 (grub_ieee1275_get_property_length): Likewise.
52886 (grub_ieee1275_next_property): Likewise. Change type of first argument
52887 to grub_ieee1275_phandle_t.
52888 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52889 Move export next to declaration.
52890 (grub_ieee1275_chosen): New variable.
52891 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52892 Correct cosmetic typo.
52893 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52894 `grub_ieee1275_chosen'.
52895 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52896 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52897 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52898 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52899 `grub_ieee1275_chosen'.
52900
52901 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52902
52903 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52904 /chosen/bootargs.
52905 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52906 /chosen/bootargs as "variable=value" pairs.
52907
52908 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52909
52910 * include/grub/misc.h (grub_dprintf): New macro.
52911 (grub_real_dprintf): New prototype.
52912 (grub_strword): Likewise.
52913 (grub_iswordseparator): Likewise.
52914 * kern/misc.c (grub_real_dprintf): New function.
52915 (grub_strword): Likewise.
52916 (grub_iswordseparator): Likewise.
52917
52918 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52919
52920 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52921 (roundup): Remove macro.
52922 (grub_ieee1275_flags): Make static.
52923 (grub_ieee1275_realmode): Remove.
52924 (grub_ieee1275_test_flag): New function.
52925 (grub_ieee1275_set_flag): Likewise.
52926 (find_options): Rename to `grub_ieee1275_find_options'; update
52927 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52928 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52929 (cmain): New prototype.
52930 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52931 `grub_ieee1275_flags' directly.
52932 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52933 machine/biosdisk.h.
52934 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52935 Don't include grub/machine/init.h.
52936 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52937 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52938 Remove prototype.
52939 (grub_ieee1275_realmode): Likewise.
52940 (grub_ieee1275_flag): New enum.
52941 (grub_ieee1275_test_flag): New prototype.
52942 (grub_ieee1275_set_flag): New prototype.
52943 * include/grub/powerpc/ieee1275/init.h: Remove file.
52944 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52945 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52946 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52947 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52948 comment.
52949 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52950 `grub_ieee1275_test_flag'.
52951 (grub_ieee1275_encode_devname): Likewise.
52952
52953 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52954
52955 * include/grub/powerpc/ieee1275/ieee1275.h
52956 (grub_ieee1275_encode_devname): New prototype.
52957 (grub_ieee1275_get_filename): Likewise.
52958 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52959 function.
52960 (grub_set_prefix): Likewise.
52961 (grub_machine_init): Call grub_set_prefix.
52962 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52963 (grub_parse_type): New enum.
52964 (grub_ieee1275_get_devargs): New function.
52965 (grub_ieee1275_get_devname): Likewise.
52966 (grub_ieee1275_parse_args): Likewise.
52967 (grub_ieee1275_get_filename): Likewise.
52968 (grub_ieee1275_encode_devname): Likewise.
52969
52970 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52971
52972 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52973 `grub_loader_unset'.
52974
52975 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
52976
52977 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
52978 instead of grub_ieee1275_interpret.
52979 (grub_halt_init): New function.
52980 (grub_halt_fini): Likewise.
52981 (GRUB_MOD_INIT): Correct message grammar.
52982 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
52983 instead of grub_ieee1275_interpret.
52984 (grub_reboot_init): New function.
52985 (grub_reboot_fini): Likewise.
52986 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
52987 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
52988 util/i386/pc/misc.c with commands/ieee1275/halt.c,
52989 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
52990 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
52991 function.
52992 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
52993 Add prototype.
52994 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
52995 prototype.
52996 (grub_halt): Likewise.
52997 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
52998 (cmain): Remove __attribute__((unused)).
52999 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53000 (grub_heap_len): Likewise.
53001 (grub_machine_fini): New function.
53002 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53003 (grub_halt): Likewise.
53004 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53005 function.
53006 * util/powerpc/ieee1275/misc.c: New file.
53007
53008 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53009
53010 * DISTLIST: New file.
53011 * gendistlist.sh: Likewise.
53012
53013 * Makefile.in (COMMON_DISTFILES): Removed.
53014 (BOOT_DISTFILES): Likewise.
53015 (CONF_DISTFILES): Likewise.
53016 (DISK_DISTFILES): Likewise.
53017 (FS_DISTFILES): Likewise.
53018 (INCLUDE_DISTFILES): Likewise.
53019 (KERN_DISTFILES): Likewise.
53020 (LOADER_DISTFILES): Likewise.
53021 (TERM_DISTFILES): Likewise.
53022 (UTIL_DISTFILES): Likewise.
53023 (DISTFILES): Likewise.
53024 (uninstall): Uninstall files in $(pkgdata_DATA).
53025 (DISTLIST): New target.
53026 (distdir): Use the contents of the file DISTLIST to get a list of
53027 distributed files.
53028
53029 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53030
53031 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53032 descriptor. This is ported from GRUB Legacy.
53033
53034 * gencmdlist.sh: Added an extra semicolon to make it work with
53035 old sed versions. Reported by Robert Bihlmeyer
53036 <robbe@orcus.priv.at>.
53037
53038 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53039
53040 Automatic loading of commands is supported.
53041
53042 * normal/main.c (read_command_list): New function.
53043 (grub_normal_execute): Call read_command_list.
53044
53045 * normal/command.c (grub_register_command): Return zero or CMD.
53046 Allocate CMD->NAME from the heap.
53047 Initialize CMD->MODULE_NAME to zero.
53048 Find the same name as well. If the same command is found and it is
53049 a dummy command, overwrite members. If it is not a dummy command,
53050 return zero.
53051 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53052 (grub_command_find): If a dummy command is found, load a module
53053 and retry to find a command only once.
53054
53055 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53056 make sure that each command is loaded.
53057
53058 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53059 macro.
53060 (struct grub_command): Remove const from the member `name'.
53061 Add a new member `module_name'.
53062 (grub_register_command): Return grub_command_t.
53063
53064 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53065 sure that each command is loaded.
53066
53067 * genmk.rb (PModule::rule): Specify a module name without the
53068 suffix ".mod" to gencmdlist.sh.
53069
53070 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53071
53072 * gencmdlist.sh: New file.
53073
53074 * genmk.rb (PModule::rule): Generate a rule for a command list.
53075 Clean command.lst.
53076 Generate command.lst from $(COMMANDFILES).
53077
53078 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53079 (DATA): Added $(pkgdata_DATA).
53080 (install-local): Install files in $(pkgdata_DATA).
53081
53082 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53083
53084 * term/i386/pc/vga.c (debug_command): Removed.
53085 (GRUB_MOD_INIT): Do not register the command "debug".
53086
53087 From Hollis Blanchard:
53088 * commands/configfile.c: New file.
53089 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53090 commands/configfile.c.
53091 (pkgdata_MODULES): Added configfile.mod.
53092 (configfile_mod_SOURCES): New variable.
53093 (configfile_mod_CFLAGS): Likewise.
53094 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53095 commands/configfile.c.
53096 (pkgdata_MODULES): Added configfile.mod.
53097 (configfile_mod_SOURCES): New variable.
53098 (configfile_mod_CFLAGS): Likewise.
53099 * util/grub-emu.c (main): Call grub_configfile_init and
53100 grub_configfile_fini.
53101 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53102 prototype.
53103 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53104
53105 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53106
53107 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53108 address.
53109
53110 * commands/help.c (grub_cmd_help): Do not print newlines after
53111 the last command in print_command_help.
53112
53113 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53114
53115 * commands/default.h: New file.
53116 * commands/timeout.h: Likewise.
53117 * normal/context.c: Likewise.
53118
53119 * util/misc.c: Do not include sys/times.h.
53120 Include sys/time.h and grub/machine/time.h.
53121 (grub_get_rtc): Rewritten with gettimeofday.
53122
53123 * util/grub-emu.c (main): Call grub_default_init and
53124 grub_timeout_init before grub_normal_init, and call
53125 grub_timeout_fini and grub_default_fini after grub_main.
53126
53127 * util/console.c (grub_ncurses_checkkey): Return the read
53128 character or -1.
53129
53130 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53131 timeouts.
53132
53133 * normal/main.c (read_config_file): Push MENU. If this fails,
53134 print an error and wait for a user input.
53135 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53136 If a menu is empty or an error occurs, pop MENU.
53137 (grub_normal_execute): Pop and free MENU after grub_menu_run
53138 returns.
53139
53140 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53141
53142 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53143 include time.h.
53144 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53145 without GRUB_UTIL.
53146 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53147 time.h.
53148 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53149 without GRUB_UTIL.
53150
53151 * include/grub/normal.h (struct grub_menu_list): New struct.
53152 (grub_menu_list_t): New type.
53153 (struct grub_context): New struct.
53154 (grub_context_t): New type.
53155 (grub_register_command): Got rid of EXPORT_FUNC.
53156 (grub_unregister_command): Likewise.
53157 (grub_context_get): New prototype.
53158 (grub_context_get_current_menu): Likewise.
53159 (grub_context_push_menu): Likewise.
53160 (grub_context_pop_menu): Likewise.
53161 [GRUB_UTIL] (grub_default_init): Likewise.
53162 [GRUB_UTIL] (grub_default_fini): Likewise.
53163 [GRUB_UTIL] (grub_timeout_init): Likewise.
53164 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53165
53166 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53167 commands/timeout.c and normal/context.c.
53168 (pkgdata_MODULES): Added default.mod and timeout.mod.
53169 (normal_mod_SOURCES): Added normal/context.c.
53170 (default_mod_SOURCES): New variable.
53171 (default_mod_CFLAGS): Likewise.
53172 (timeout_mod_SOURCES): Likewise.
53173 (timeout_mod_CFLAGS): Likewise.
53174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53175 conf/i386-pc.rmk.
53176 (pkgdata_MODULES): Added default.mod and timeout.mod.
53177 (normal_mod_SOURCES): Added normal/context.c.
53178 (default_mod_SOURCES): New variable.
53179 (default_mod_CFLAGS): Likewise.
53180 (timeout_mod_SOURCES): Likewise.
53181 (timeout_mod_CFLAGS): Likewise.
53182
53183 * Makefile.in (all-local): Added $(MKFILES).
53184
53185 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53186
53187 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53188 (grub_emu_SOURCES): Likewise.
53189 (pkgdata_MODULES): Add `sun.mod'.
53190 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53191 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53192 `partmap/sun.c'.
53193 (pkgdata_MODULES): Add `sun.mod'.
53194 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53195 * include/grub/partition.h (grub_sun_partition_map_init): New
53196 prototype.
53197 (grub_sun_partition_map_fini): Likewise.
53198 * partmap/sun.c: New file.
53199 * util/grub-emu.c (main): Initialize and de-initialize the sun
53200 partitionmap support.
53201
53202 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53203
53204 This implements an Emacs-like menu entry editor.
53205
53206 * normal/menu_entry.c: New file.
53207
53208 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53209 characters to ASCII.
53210 (saved_char): New variable.
53211 (grub_ncurses_checkkey): Rewritten completely.
53212 (grub_ncurses_getkey): Likewise.
53213 (grub_ncurses_init): Call raw instead of cbreak.
53214
53215 * normal/menu.c (print_entry): Do not put a space.
53216 (init_page): Renamed to ...
53217 (grub_menu_init_page): ... this. All callers changed.
53218 (edit_menu_entry): Removed.
53219 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53220
53221 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53222
53223 * kern/misc.c (grub_vprintf): Call grub_refresh.
53224
53225 * normal/menu.c (DISP_LEFT): Renamed to ...
53226 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53227 * normal/menu.c (DISP_UP): Renamed to ...
53228 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53229 * normal/menu.c (DISP_RIGHT): Renamed to ...
53230 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53231 * normal/menu.c (DISP_DOWN): Renamed to ...
53232 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53233 * normal/menu.c (DISP_HLINE): Renamed to ...
53234 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53235 * normal/menu.c (DISP_VLINE): Renamed to ...
53236 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53237 * normal/menu.c (DISP_UL): Renamed to ...
53238 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53239 * normal/menu.c (DISP_UR): Renamed to ...
53240 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53241 * normal/menu.c (DISP_LL): Renamed to ...
53242 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53243 * normal/menu.c (DISP_LR): Renamed to ...
53244 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53245 * normal/menu.c (TERM_WIDTH): Renamed to ...
53246 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53247 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53248 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53249 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53250 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53251 * normal/menu.c (TERM_MARGIN): Renamed to ...
53252 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53253 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53254 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53255 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53256 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53257 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53258 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53259 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53260 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53261 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53262 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53263 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53264 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53265 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53266 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53267 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53268 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53269 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53270 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53271 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53272 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53273 All callers changed.
53274
53275 * include/grub/normal.h: New prototype.
53276
53277 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53278 normal/menu_entry.c.
53279 (normal_mod_SOURCES): Likewise.
53280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53281 (normal_mod_SOURCES): Likewise.
53282
53283 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53284
53285 * include/grub/normal.h (grub_halt_init): New prototype.
53286 (grub_halt_fini): Likewise.
53287 (grub_reboot_init): Likewise.
53288 (grub_reboot_fini): Likewise.
53289
53290 * util/grub-emu.c: Include signal.h.
53291 (main_env): New global variable.
53292 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53293 catch C-c.
53294 (grub_machine_fini): New function.
53295 (main): Call grub_halt_init and grub_reboot_init before
53296 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53297 Call setjmp with MAIN_ENV to go back afterwards.
53298 Call grub_machine_fini right before return.
53299
53300 * include/grub/util/misc.h: Include setjmp.h.
53301 (main_env): New prototype.
53302
53303 * include/grub/kernel.h (grub_machine_fini): New prototype.
53304 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53305 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53306
53307 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53308 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53309 * term/i386/pc/console.c (grub_console_fini): Likewise.
53310
53311 * util/i386/pc/misc.c: New file.
53312
53313 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53314 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53315 commands/i386/pc/reboot.c.
53316
53317 2005-02-14 Guillem Jover <guillem@hadrons.org>
53318
53319 * include/grub/dl.h (grub_dl_check_header): New prototype.
53320 (grub_arch_dl_check_header): Change return type to grub_err_t,
53321 remove size parameter and export function. Update all callers.
53322 * kern/dl.c (grub_dl_check_header): New function.
53323 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53324 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53325 are inside the core.
53326 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53327 independent ELF header checks.
53328 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53329 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53330 `grub_dl_check_header' instead of explicit checks. Check for the
53331 ELF type.
53332 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53333 `grub_dl_check_header' instead of explicit checks. Remove arch
53334 specific ELF header checks.
53335
53336 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53337 argument SIZE.
53338
53339 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53340
53341 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53342 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53343
53344 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53345
53346 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53347 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53348 (part_map_iterate): Clear `grub_errno' and return 0 if
53349 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53350 * partmap/amiga.c (amiga_partition_map_iterate): Return
53351 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53352 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53353
53354 2005-02-01 Guillem Jover <guillem@hadrons.org>
53355
53356 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53357 help info.
53358
53359 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53360
53361 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53362 Removed prototype.
53363 (grub_rescue_cmd_linux): New prototype.
53364 (grub_rescue_cmd_initrd): Likewise.
53365 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53366 `bi_rec'.
53367 (grub_linux_release_mem): Release the memory for the initrd.
53368 (grub_load_linux): Renamed from this...
53369 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53370 Changed `entry' not to be static. Loop over memory regions to
53371 find another one when the default fails.
53372 (grub_rescue_cmd_initrd): New function.
53373 (grub_linux_init): Remove function.
53374 (grub_linux_fini): Likewise.
53375 (GRUB_MOD_INIT): Register `initrd'.
53376 (GRUB_MOD_FINI): Unregister `initrd'.
53377 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53378 Function removed.
53379 (grub_linux_normal_fini): Likewise.
53380 (GRUB_MOD_INIT): Register `initrd'.
53381 (GRUB_MOD_FINI): Unregister `initrd'.
53382
53383 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53384
53385 * commands/help.c: New file.
53386 * normal/arg.c (show_help): Renamed to...
53387 (grub_arg_show_help): ... this.
53388 * commands/i386/pc/halt.c: New file.
53389 * commands/i386/pc/reboot.c: Likewise.
53390 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53391 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53392 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53393 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53394 variables.
53395 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53396 `commands/help.c'.
53397 (pkgdata_MODULES): Add `help.mod'.
53398 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53399 * grub/i386/pc/init.h (grub_reboot): New prototype.
53400 (grub_halt): Likewise.
53401 * include/grub/normal.h (grub_arg_show_help): New prototype.
53402 (grub_help_init): Likewise.
53403 (grub_help_fini): Likewise.
53404 * util/grub-emu.c (main): Initialize and deinitialize the help
53405 command.
53406
53407 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53408
53409 * normal/command.c (grub_command_init): Fixed the description of
53410 the `set' and `unset' commands.
53411
53412 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53413
53414 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53415 function.
53416 * commands/ieee1275/halt.c: New file.
53417 * commands/ieee1275/reboot.c: Likewise.
53418 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53419 `__attribute__ ((unused))'. Some GCS related fixed.
53420 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53421 (grub_suspend_fini): Likewise.
53422 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53423 and `halt.mod'.
53424 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53425 (halt_mod_CFLAGS): New variables.
53426 * include/grub/powerpc/ieee1275/ieee1275.h
53427 (grub_ieee1275_interpret): New prototype.
53428
53429 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53430
53431 * include/grub/misc.h (memmove): New prototype.
53432 (memcpy): Likewise.
53433
53434 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53435
53436 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53437 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53438
53439 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53440
53441 * kern/misc.c (grub_strndup): Function rewritten.
53442
53443 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53444
53445 * normal/menu.c (TERM_WIDTH): Macro redefined.
53446 (TERM_TOP_BORDER_Y): Likewise.
53447 (draw_border): Replaced while-loop by a for-loop. Make the number
53448 of lines consistent with the number of lines displayed in
53449 print_entries. Added a margin below the rectangle.
53450 (print_entry): Make the entry fit in the rectangle.
53451 (print_entries): Display the scroll arrows next to the right
53452 border.
53453
53454 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53455
53456 * fs/minix.c (grub_minix_find_file): Reserve more space for
53457 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53458 `grub_strncpy' to copy `path' into it.
53459
53460 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53461
53462 Add the loopback device, a device via which files can be accessed
53463 as devices.
53464
53465 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53466 (pkgdata_MODULES): Add loopback.mod.
53467 (loopback_mod_SOURCES): New variable.
53468 (loopback_mod_CFLAGS): Likewise.
53469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53470 `disk/loopback.c'.
53471 (pkgdata_MODULES): Add loopback.mod.
53472 (loopback_mod_SOURCES): New variable.
53473 (loopback_mod_CFLAGS): Likewise.
53474 * disk/loopback.c: new file.
53475 * include/grub/normal.h (grub_loop_init): New prototype.
53476 (grub_loop_fini): New prototype.
53477 * util/grub-emu.c (main): Initialize and de-initialize loopback
53478 support.
53479 * include/grub/disk.h (grub_disk_dev_id): Add
53480 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53481
53482 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53483
53484 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53485 function.
53486 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53487 (suspend_mod_SOURCES): New variable.
53488 (suspend_mod_CFLAGS): Likewise.
53489 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53490 New prototype.
53491 * commands/ieee1275/suspend.c: New file.
53492
53493 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53494
53495 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53496 ((unused))' to `__attribute__ ((used))'.
53497 (GRUB_MOD_FINI): Likewise.
53498 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53499 * genmk.rb (PModule): Assign space to common symbols when linking
53500 modules.
53501
53502 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53503
53504 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53505 `unsigned' arguments to `grub_size_t'.
53506 (grub_malloc): Likewise.
53507 (grub_realloc): Likewise.
53508 (grub_memalign): Likewise.
53509 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53510 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53511 * util/misc.c (grub_malloc): Likewise.
53512 (grub_realloc): Likewise.
53513 * kern/mm.c (get_header_from_pointer): Change the casts to
53514 `unsigned' into a cast to `grub_size_t'.
53515
53516 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53517 point to `currnode' when `currnode' is changed.
53518
53519 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53520 Schottelius <nico-linux@schottelius.org>.
53521
53522 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53523
53524 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53525 (note_path): Remove variable.
53526 (GRUB_IEEE1275_NOTE_NAME): New macro.
53527 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53528 (grub_ieee1275_note_hdr): New structure.
53529 (grub_ieee1275_note_desc): Likewise.
53530 (grub_ieee1275_note): Likewise.
53531 (load_note): Remove `dir' argument. All callers updated. Remove
53532 `note_img' and `path'. Do not load a file from `note_path'.
53533 Initialize a struct grub_ieee1275_note and write that to `out'.
53534 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53535
53536 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53537
53538 * util/misc.c (grub_util_read_image): Revert last change. It
53539 called `grub_util_read_at', which seeks from the beginning of the
53540 file.
53541
53542 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53543
53544 * TODO: Add note about endianness in grub-mkimage.
53545 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53546 section.
53547 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53548 (grub_mkimage_SOURCES): New target.
53549 * include/grub/kernel.h (grub_start_addr): Remove variable.
53550 (grub_end_addr): Likewise.
53551 (grub_total_module_size): Likewise.
53552 (grub_kernel_image_size): Likewise.
53553 (GRUB_MODULE_MAGIC): New constant.
53554 (grub_module_info): New structure.
53555 (grub_arch_modules_addr): New prototype.
53556 (grub_get_end_addr): Remove prototype.
53557 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53558 * include/grub/powerpc/ieee1275/kernel.h: New file.
53559 * include/grub/util/misc.h (grub_util_get_fp_size): New
53560 prototype.
53561 (grub_util_read_at): Likewise.
53562 (grub_util_write_image_at): Likewise.
53563 * kern/main.c (grub_get_end_addr): Remove function.
53564 (grub_load_modules): Call grub_arch_modules_addr instead of using
53565 grub_end_addr. Look for a grub_module_info struct in memory. Use
53566 the grub_module_info fields instead of calling grub_get_end_addr
53567 as loop conditions. Move grub_add_unused_region code here.
53568 (grub_add_unused_region): Remove function.
53569 * kern/i386/pc/init.c: Include grub/cache.h.
53570 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53571 one call to add_mem_region.
53572 (grub_arch_modules_addr): New function.
53573 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53574 (grub_total_module_size): Likewise.
53575 Include grub/machine/kernel.h.
53576 (grub_arch_modules_addr): New function.
53577 * util/grub-emu.c (grub_end_addr): Remove variable.
53578 (grub_total_module_size): Likewise.
53579 (grub_arch_modules_addr): New function.
53580 * util/misc.c: Include unistd.h.
53581 (grub_util_get_fp_size): New function.
53582 (grub_util_read_at): Likewise.
53583 (grub_util_write_image_at): Likewise.
53584 (grub_util_read_image): Call grub_util_read_at.
53585 (grub_util_write_image): Call grub_util_write_image_at.
53586 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53587 additional memory in kernel_img for a struct grub_module_info.
53588 Fill in that grub_module_info.
53589 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53590
53591 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53592
53593 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53594 New function.
53595 * include/grub/powerpc/ieee1275/ieee1275.h
53596 (grub_ieee1275_milliseconds): New prototype.
53597 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53598 Change to 1000.
53599 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53600 grub_ieee1275_milliseconds.
53601
53602 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53603
53604 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53605 variable.
53606 (find_options): New function.
53607 (cmain): Call find_options.
53608 * include/grub/powerpc/ieee1275/ieee1275.h
53609 (grub_ieee1275_realmode): New extern variable.
53610 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53611 grub_map if grub_ieee1275_realmode is false.
53612
53613 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53614
53615 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53616 lines are inserted and make it work like readline. Reported by
53617 Vincent Pelletier <subdino2004@yahoo.fr>.
53618
53619 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53620
53621 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53622
53623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53624 `kern/powerpc/cache.S'.
53625
53626 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53627
53628 * genmk.rb: Handle the `Program' class in the main loop. Written
53629 by Johan Rydberg <jrydberg@gnu.org>.
53630 (Program): New class.
53631 (programs): New variable.
53632 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53633 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53634 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53635 (help_arch): Function removed.
53636 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53637 `powerpc/libgcc.h' and `loader.h'.
53638 (pkgdata_PROGRAMS): New variable.
53639 (sbin_UTILITIES): Variable removed.
53640 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53641 (grubof_SOURCES): Variable re-defined so it only includes the
53642 core functionality.
53643 (grubof_CFLAGS): Remove `-DGRUBOF'.
53644 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53645 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53646 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53647 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53648 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53649 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53650 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53651 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53652 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53653 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53654 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53655 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53656 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53657 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53658 (pc_mod_CFLAGS): New variables.
53659 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53660 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53661 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53662 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53663 Moved from here...
53664 * include/grub/i386/pc/init.h (grub_os_area_addr)
53665 (rub_os_area_size): ... to here.
53666 * include/grub/powerpc/ieee1275/ieee1275.h
53667 (grub_ieee1275_entry_fn): Export symbol.
53668 * include/grub/powerpc/ieee1275/init.h: New file.
53669 * include/grub/powerpc/libgcc.h: Likewise.
53670 * include/grub/cache.h: Likewise.
53671 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53672 <hollis@penguinppc.org>.
53673 * kern/dl.c: Include <grub/cache.h>.
53674 (grub_dl_flush_cache): New function.
53675 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53676 for this module.
53677 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53678 (grub_console_init): Removed prototypes.
53679 (grub_machine_init): Don't initialize the modules anymore.
53680 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53681 static.
53682 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53683 Macro undef removed.
53684 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53685 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53686 relocation `R_PPC_REL32'. Return an error when the relocation is
53687 unknown.
53688 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53689 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53690 * util/misc.c (grub_arch_sync_caches): Likewise.
53691
53692 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53693
53694 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53695 `symlist.c', add `grubof_symlist.c'.
53696 (symlist.c): Variable removed.
53697 (grubof_HEADERS): Variable added.
53698 (grubof_symlist.c): New target.
53699 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53700 `kernel_img_HEADERS'.
53701 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53702 * kern/powerpc/dl.c: New file.
53703 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53704 Function removed.
53705 (grub_arch_dl_relocate_symbols): Likewise.
53706 (grub_register_exported_symbols): Likewise.
53707
53708 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53709
53710 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53711 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53712 to fail instead. Reported by Vincent Pelletier
53713 <subdino2004@yahoo.fr>.
53714
53715 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53716 it is not allocated. Reported by Vincent Pelletier
53717 <subdino2004@yahoo.fr>.
53718
53719 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53720 output so the output looks better.
53721
53722 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53723
53724 Modulize the partition map support and add support for the amiga
53725 partition map.
53726
53727 * commands/ls.c: Include <grub/partition.h> instead of
53728 <grub/machine/partition.h>.
53729 * kern/disk.c: Likewise.
53730 * kern/rescue.c: Likewise.
53731 * loader/i386/pc/chainloader.c: Likewise.
53732 * normal/cmdline.c: Likewise.
53733 * kern/powerpc/ieee1275/init.c: Likewise.
53734 (grub_machine_init): Call `grub_pc_partition_map_init',
53735 `grub_amiga_partition_map_init' and
53736 `grub_apple_partition_map_init'.
53737 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53738 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53739 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53740 `partition.h' and `pc_partition.h'.
53741 (grub_setup_SOURCES): Remove
53742 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53743 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53744 (grub_emu_SOURCES): Likewise.
53745 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53746 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53747 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53749 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53750 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53751 (grubof_SOURCES): Likewise.
53752 * disk/i386/pc/partition.c: File removed.
53753 * disk/powerpc/ieee1275/partition.c: Likewise.
53754 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53755 * include/grub/i386/pc/partition.h: Likewise.
53756 * kern/partition.c: New file.
53757 * partmap/amiga.c: Likewise.
53758 * partmap/apple.c: Likewise.
53759 * partmap/pc.c: Likewise.
53760 * include/grub/partition.h: Likewise..
53761 * include/grub/pc_partition.h: Likewise.
53762 * util/grub-emu.c: Include <grub/partition.h> instead of
53763 <grub/machine/partition.h>.
53764 (main): Call `grub_pc_partition_map_init',
53765 `grub_amiga_partition_map_init' and
53766 `grub_apple_partition_map_init' and deinitialize afterwards.
53767 * util/i386/pc/biosdisk.c: Include `#include
53768 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53769 `<grub/machine/partition.h>'.
53770 * util/i386/pc/grub-setup.c: Likewise.
53771 * util/i386/pc/biosdisk.c: Likewise.
53772 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53773 partition information in case of a PC partition.
53774 * util/i386/pc/grub-setup.c: Include `#include
53775 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53776 `<grub/machine/partition.h>'.
53777 (setup): Only access the PC specific partition information in case
53778 of a PC partition.
53779
53780 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53781
53782 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53783 (grub_longjmp): Likewise.
53784 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53785 20.
53786 * normal/powerpc/setjmp.S: New file.
53787 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53788 `normal/powerpc/setjmp.S'.
53789 (grubof_CFLAGS): Add `-DGRUBOF'.
53790 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53791 [GRUB_UTIL && !GRUBOF].
53792
53793 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53794
53795 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53796 property named `name'. Correctly handle the error returned by
53797 `grub_ieee1275_finddevice' if a device can not be opened.
53798
53799 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53800
53801 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53802 `actual' for negativity.
53803 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53804 kern/fshelp.c.
53805
53806 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53807
53808 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53809 (PAGE_OFFSET): New macro.
53810 (CRTC_ADDR_PORT): Likewise.
53811 (CRTC_DATA_PORT): Likewise.
53812 (START_ADDR_HIGH_REGISTER): Likewise.
53813 (START_ADDR_LOW_REGISTER): Likewise.
53814 (GRAPHICS_ADDR_PORT): Likewise.
53815 (GRAPHICS_DATA_PORT): Likewise.
53816 (READ_MAP_REGISTER): Likewise.
53817 (INPUT_STATUS1_REGISTER): Likewise.
53818 (INPUT_STATUS1_VERTR_BIT): Likewise.
53819 (page): New variable.
53820 (wait_vretrace): New function.
53821 (set_read_map): Likewise.
53822 (set_start_address): Likewise.
53823 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53824 the right page.
53825 (check_vga_mem): Take the page into account.
53826 (write_char): Likewise.
53827 (write_cursor): Likewise.
53828 (scroll_up): Likewise. Copy the page to the page that is not
53829 shown and switch between both pages.
53830 (grub_vga_putchar): Fix off by one error.
53831 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53832 account.
53833
53834 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53835
53836 Add support for iso9660 (including rockridge).
53837
53838 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53839 (iso9660_mod_SOURCES): New variable.
53840 (iso9660_mod_CFLAGS): Likewise.
53841 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53842 * include/grub/fs.h (grub_iso9660_init): New prototype.
53843 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53844 * fs/iso9660.c: New file.
53845
53846 * include/grub/misc.h (grub_strncat): New prototype.
53847 * kern/misc.c (grub_strncat): New function.
53848
53849 * fs/hfs.c (grub_hfs_mount): Translate the error
53850 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53851 * fs/jfs.c (grub_jfs_mount): Likewise.
53852 * fs/ufs.c (grub_ufs_mount): Likewise.
53853
53854 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53855
53856 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53857 which initialized BAT registers.
53858 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53859 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53860 Move from here...
53861 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53862 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53863 ... to here.
53864 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53865 (grub_mapclaim): Likewise.
53866 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53867 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53868 hand.
53869
53870 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53871
53872 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53873 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53874 -ffreestanding and -msoft-float.
53875
53876 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53877
53878 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53879 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53880 set in grub_ieee1275_flags.
53881
53882 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53883
53884 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53885 prototype.
53886 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53887 grub_console_init first.
53888 Change the memory range used for grub_ieee1275_claim and
53889 grub_mm_init_region.
53890 Print an error message if the claim fails.
53891 Include <grub/misc.h>.
53892
53893 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53894
53895 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53896 Call grub_children_iterate for device nodes of type `scsi',
53897 `ide', or `ata'.
53898 (grub_ofdisk_open): Remove manual device alias resolution.
53899 Fix memory leak when device cannot be opened.
53900 * include/grub/powerpc/ieee1275/ieee1275.h
53901 (grub_children_iterate): New prototype.
53902 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53903 New function.
53904 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53905 Return -1 if args.size was -1.
53906
53907 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53908
53909 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53910 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53911 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53912 Open Firmware's memory for it; claim memory from _start to _end.
53913 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53914 (_end): New extern.
53915 (_start): Zero BSS from __bss_start to _end.
53916 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53917 New extern.
53918 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53919
53920 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53921
53922 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53923 -1 if args.base was -1.
53924
53925 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53926
53927 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53928 escape sequence instead of a literal ^L. Also call
53929 grub_ofconsole_gotoxy.
53930
53931 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53932
53933 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53934 void * arguments to grub_addr_t. All callers updated. Also make
53935 the `result' argument optional.
53936 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53937 All callers updated.
53938
53939 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53940
53941 * commands/ls.c (grub_ls_list_files): Use the string following the
53942 initial ')', if present, as the filesystem path.
53943 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53944
53945 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53946
53947 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53948
53949 Make the source code of the menu interface more readable.
53950
53951 * normal/menu.c: Include grub/mm.h.
53952 (TERM_WIDTH): New macro.
53953 (TERM_HEIGHT): Likewise.
53954 (TERM_INFO_HEIGHT): Likewise.
53955 (TERM_MARGIN): Likewise.
53956 (TERM_SCROLL_WIDTH): Likewise.
53957 (TERM_TOP_BORDER_Y): Likewise.
53958 (TERM_LEFT_BORDER_X): Likewise.
53959 (TERM_BORDER_WIDTH): Likewise.
53960 (TERM_MESSAGE_HEIGHT): Likewise.
53961 (TERM_BORDER_HEIGHT): Likewise.
53962 (TERM_NUM_ENTRIES): Likewise.
53963 (TERM_FIRST_ENTRY_Y): Likewise.
53964 (TERM_ENTRY_WIDTH): Likewise.
53965 (TERM_CURSOR_X): Likewise.
53966 (draw_border): Use macros instead of magic numbers.
53967 (print_entry): Likewise.
53968 (print_entries): Likewise.
53969 (run_menu): Likewise. Also, handle the key 'e'.
53970 (run_menu_entry): Ignore empty command lines.
53971 (print_message): Added a new argument EDIT. If EDIT is true,
53972 print a different message.
53973 (init_page): Likewise.
53974 (edit_menu_entry): New function. Not implemented yet.
53975
53976 2004-09-17 Marco Gerards <metgerards@student.han.nl>
53977
53978 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
53979 can be loaded from normal mode.
53980
53981 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
53982 `multiboot.mod'.
53983 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
53984 (multiboot_mod_CFLAGS): New variables.
53985 * loader/i386/pc/linux_normal.c: New file.
53986 * loader/i386/pc/multiboot_normal.c: Likewise.
53987
53988 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
53989 attribute `unused'.
53990
53991 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
53992 `fdiro' to read the mode information from instead of `diro'.
53993
53994 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
53995 looking up a symlink.
53996
53997 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
53998 macro.
53999 * normal/command.c (grub_command_execute): Don't parse the
54000 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54001 flags of the command.
54002
54003 * normal/menu.c (grub_menu_run): Fix typo.
54004
54005 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54006
54007 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54008
54009 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54010 `y + 1' instead of `y - 1'.
54011
54012 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54013
54014 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54015
54016 From Hollis Blanchard <hollis@penguinppc.org>:
54017 * kern/misc.c (memmove): New alias for grub_memmove.
54018 (memcmp): New alias for grub_memcmp.
54019 (memset): New alias for grub_memset.
54020 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54021 Change "int handle" to "grub_ieee1275_phandle_t handle".
54022 * include/grub/powerpc/ieee1275/ieee1275.h
54023 (grub_ieee1275_get_property): Likewise.
54024
54025 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54026
54027 Added normal mode command `chainloader' as module chain.mod, which
54028 depends on normal.mod and _chain.mod.
54029
54030 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54031 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54032 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54033 Deleted prototype.
54034 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54035 but arguments parsing moved to ...
54036 (grub_chainloader_cmd): ... here. New function.
54037 * include/grub/i386/pc/chainloader.h: New file.
54038 * loader/i386/pc/chainloader_normal.c: Likewise.
54039
54040 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54041
54042 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54043 (grub_mkimage_LDFLAGS): Likewise.
54044 (grub_emu_SOURCES): Likewise.
54045 (kernel_img_HEADERS): Added fshelp.h.
54046 * fs/ext2.c: Include <grub/fshelp.h>.
54047 (FILETYPE_REG): New macro.
54048 (FILETYPE_INO_REG): Likewise.
54049 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54050 Changed all users.
54051 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54052 all users.
54053 (grub_fshelp_node): New struct.
54054 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54055 to a pointer.
54056 (grub_ext2_get_file_block): Removed function.
54057 (grub_ext2_read_block): New function.
54058 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54059 This function was written.
54060 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54061 (grub_ext2_find_file): Removed function.
54062 (grub_ext2_read_symlink): New function.
54063 (grub_ext2_iterate_dir): Likewise.
54064 (grub_ext2_open): Rewritten.
54065 (grub_ext2_dir): Rewritten.
54066 * include/grub/fshelp.h: New file.
54067 * fs/fshelp.c: Likewise.
54068
54069 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54070
54071 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54072 (print_message): Add a missing newline.
54073 (run_menu): Added timeout support.
54074 (run_menu_entry): New local function.
54075 (grub_menu_run): Added support for booting.
54076
54077 * kern/loader.c (grub_loader_is_loaded): New function.
54078
54079 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54080 (grub_get_rtc): Exported.
54081
54082 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54083 (grub_get_rtc): Exported.
54084
54085 * include/grub/normal.h (struct grub_command_list): Remove
54086 constant from the member `command'.
54087
54088 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54089
54090 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54091
54092 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54093
54094 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54095
54096 Add support for the JFS filesystem.
54097
54098 * fs/jfs.c: New file.
54099 * include/grub/fs.h (grub_jfs_init): New prototype.
54100 (grub_jfs_fini): New prototype.
54101 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54102 (grub_emu_SOURCES): Likewise.
54103 (pkgdata_MODULES): Add jfs.mod.
54104 (jfs_mod_SOURCES): New variable.
54105 (jfs_mod_CFLAGS): Likewise.
54106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54107 (grubof_SOURCES): Likewise.
54108 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54109
54110 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54111 endian to the host endian.
54112 (grub_fat_utf16_to_utf8): Move function from there...
54113 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54114 the endianness of the source string anymore.
54115 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54116
54117 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54118
54119 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54120 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54121 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54122 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54123
54124 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54125 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54126 for `node_found' and `it_dir'.
54127 (grub_hfs_dir): Add prototype for `dir_hook'.
54128
54129 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54130 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54131 and `indir32' to silence a gcc warning.
54132
54133 * include/grub/fs.h (grub_hfs_init): New prototype.
54134 (grub_hfs_fini): Likewise.
54135
54136
54137 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54138
54139 Each disk device has its own id now. This is useful to make use
54140 of multiple disk devices.
54141
54142 * include/grub/disk.h (grub_disk_dev_id): New enum.
54143 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54144 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54145
54146 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54147 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54148
54149 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54150 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54151
54152 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54153 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54154
54155 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54156 "id" which is used by the cache manager.
54157
54158 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54159 of just "GRUB".
54160
54161 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54162
54163 * fs/hfs.c: New file.
54164 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54165 (grub_emu_SOURCES): Likewise.
54166 (pkgdata_MODULES): Add hfs.mod.
54167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54168 (grubof_SOURCES): Likewise.
54169 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54170
54171 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54172 * kern/misc.c (grub_strncasecmp): Add function.
54173
54174 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54175
54176 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54177 with parentheses.
54178
54179 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54180 (grub_ext2_dir): In case the directory entry type is unknown, read
54181 it from the inode.
54182
54183 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54184
54185 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54186 grub_load_linux instead of grub_rescue_cmd_linux as second
54187 argument of grub_rescue_register_command.
54188
54189 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54190
54191 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54192
54193 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54194 function.
54195 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54196 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54197 `loader/powerpc/ieee1275/linux.c',
54198 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54199 * include/grub/powerpc/ieee1275/ieee1275.h
54200 (grub_ieee1275_release): New prototype.
54201 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54202 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54203 normal, boot, linux and linux_normal.
54204 * loader/powerpc/ieee1275/linux.c: New file.
54205 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54206
54207 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54208
54209 * normal/arg.c (grub_arg_parse): Correct error handling after
54210 reallocating the argumentlist (check if `argl' is not null instead
54211 of checking if `args' is not null).
54212 * kern/mm.c (grub_realloc): Return the same pointer when using the
54213 same region, instead of returning the header address.
54214
54215 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54216
54217 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54218 one block instead of two when looking for the initial partition.
54219 (grub_partition_probe): Initialize the local variable `p' with 0.
54220 Use base 10 for the grub_strtoul call.
54221 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54222 need for one local variable.
54223 (grub_strtoul): Don't add the new value to `num', instead of that
54224 just assign it.
54225
54226 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54227
54228 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54229 (pxeboot_img_SOURCES): New variable.
54230 (pxeboot_img_ASFLAGS): Likewise.
54231 (pxeboot_img_LDFLAGS): Likewise.
54232 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54233 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54234 <lode_leroy@hotmail.com>.
54235
54236 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54237
54238 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54239 there was no input.
54240
54241 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54242
54243 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54244 the history buffer logic.
54245
54246 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54247
54248 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54249 (FILETYPE_INO_SYMLINK): New macros.
54250 (grub_ext2_find_file): Check if the node is a directory using the
54251 inode stat information instead of using the filetype in the
54252 dirent. Exclude the first character of an absolute symlink.
54253 (grub_ext2_dir): Mask out the filetype part of the mode member of
54254 the inode.
54255
54256 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54257
54258 Add support for UFS version 1 and 2. Add support for the minix
54259 filesystem version 1 and 2, both the variants with 14 and 30 long
54260 filenames.
54261
54262 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54263 fs/minix.c.
54264 (grub_emu_SOURCES): Likewise.
54265 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54266 (ufs_mod_SOURCES): New variable.
54267 (ufs_mod_CFLAGS): Likewise.
54268 (minix_mod_SOURCES): Likewise.
54269 (minix_mod_CFLAGS): Likewise.
54270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54271 fs/minix.c.
54272 (grubof_SOURCES): Likewise.
54273 * fs/ufs.c: New file.
54274 * fs/minix.c: New file.
54275 * include/grub/fs.h (grub_ufs_init): New prototype.
54276 (grub_ufs_fini): Likewise.
54277 (grub_minix_init): Likewise.
54278 (grub_minix_fini): Likewise.
54279 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54280 minix fs.
54281
54282 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54283
54284 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54285 commands/ls.c, commands/terminal.c, commands/boot.c,
54286 commands/cmp.c and commands/cat.c.
54287 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54288
54289 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54290 "env.h"
54291
54292 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54293
54294 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54295 and grub_, respectively. Because the conversion is trivial and
54296 mechanical, I omit the details here. Please refer to the CVS
54297 if you need more information.
54298
54299 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54300
54301 * include/pupa: Renamed to ...
54302 * include/grub: ... this.
54303 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54304 * util/i386/pc/grub-mkimage.c: ... this.
54305 * util/i386/pc/pupa-setup.c: Renamed to ...
54306 * util/i386/pc/grub-setup.c: ... this.
54307 * util/pupa-emu.c: Renamed to ...
54308 * util/grub-emu.c: ... this.
54309
54310 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54311
54312 Add support for the newworld apple macintosh (PPC). This has been
54313 tested on the powerbook 2000 only. It only adds support for
54314 generic ieee1275 functions, console and disk support. This should
54315 be easy to port to other architectures with support for Open
54316 Firmware.
54317
54318 * configure.ac: Accept the powerpc as host_cpu. In the case of
54319 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54320 specific tests are only executed while building for the i386.
54321 Inverse test for crosscompile.
54322 * genmk.rb (Utility): Allow assembler files.
54323 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54324 * conf/powerpc-ieee1275.rmk: New file.
54325 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54326 * disk/powerpc/ieee1275/partition.c: Likewise.
54327 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54328 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54329 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54330 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54331 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54332 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54333 * include/pupa/powerpc/ieee1275/loader.h
54334 * include/pupa/powerpc/setjmp.h: Likewise.
54335 * include/pupa/powerpc/types.h: Likewise.
54336 * kern/powerpc/ieee1275/init.c: Likewise.
54337 * kern/powerpc/ieee1275/openfw.c: Likewise.
54338 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54339
54340 These files were written by Johan Rydberg
54341 (jrydberg@night.trouble.net) and I only modified them slightly.
54342
54343 * boot/powerpc/ieee1275/cmain.c: New file.
54344 * boot/powerpc/ieee1275/crt0.S: Likewise.
54345 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54346 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54347
54348 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54349
54350 * Makefile.in: Update copyright.
54351 * genmodsrc.sh: Likewise.
54352 * gensymlist.sh: Likewise.
54353 * term/i386/pc/vga.c: Indent correctly.
54354
54355 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54356 bugreporting address.
54357 * util/i386/pc/pupa-setup.c (usage): Likewise,
54358 (main): Call pupa_ext2_init and pupa_ext2_fini.
54359
54360 * fs/fat.c (log2): Renamed to ...
54361 (fat_log2): ... this.
54362 All callers changed.
54363 * kern/misc.c (memcpy): Alias to pupa_memmove.
54364 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54365 lvalue cast.
54366 * util/console.c (pupa_ncurses_fini): Return 0.
54367
54368 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54369 Move fail label here.
54370 [__GNU__]: Don't warn when using stat.
54371 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54372 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54373 long int. Use strtol instead of strtoul.
54374
54375 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54376
54377 * commands/boot.c: New file.
54378 * commands/cat.c: Likewise.
54379 * commands/cmp.c: Likewise.
54380 * commands/ls.c: Likewise.
54381 * commands/terminal.c: Likewise.
54382 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54383 (pupa_register_command): Changed interface to match the new
54384 argument parser.
54385 (pupa_command_execute): Changed (almost rewritten) so it uses
54386 pupa_split_command. Added support for setting variables using the
54387 syntax `foo=bar'.
54388 (rescue_command): Changed to work with the new argument parser.
54389 (terminal_command): Moved from here to commands/terminal.c.
54390 (set_command): New function.
54391 (unset_command): New function.
54392 (insmod_command): New function.
54393 (rmmod_command): New function.
54394 (lsmod_command): New function.
54395 (pupa_command_init): Don't initialize the command terminal
54396 anymore. Initialize the commands set, unset, insmod, rmmod and
54397 lsmod.
54398 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54399 (kernel_img_HEADERS): Add arg.h and env.h.
54400 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54401 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54402 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54403 normal/arg.c.
54404 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54405 terminal.mod.
54406 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54407 (boot_mod_SOURCES): New variable.
54408 (terminal_mod_SOURCES): Likewise.
54409 (ls_mod_SOURCES): Likewise.
54410 (cmp_mod_SOURCES): Likewise.
54411 (cat_mod_SOURCES): Likewise.
54412
54413 * normal/arg.c: New file.
54414 * kern/env.c: Likewise.
54415 * include/pupa/arg.h: Likewise.
54416 * include/pupa/env.h: Likewise.
54417 * font/manager.c (font_command): Changed to match argument parsing
54418 interface changes.
54419 (PUPA_MOD_INIT): Likewise.
54420 * hello/hello.c (pupa_cmd_hello): Likewise.
54421 (PUPA_MOD_INIT): Likewise.
54422 * include/pupa/disk.h: Include <pupa/device.h>.
54423 (pupa_print_partinfo): New prototype.
54424 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54425 (pupa_dl_get_prefix): Likewise.
54426 * include/pupa/misc.h: Include <pupa/err.h>.
54427 (pupa_isgraph): New prototype.
54428 (pupa_isdigit): Likewise.
54429 (pupa_split_cmdline): Likewise.
54430 * include/pupa/normal.h: Include <pupa/arg.h>.
54431 (pupa_command): Changed the prototype of the member `func' to
54432 match the argument parsing interface. Added member `options'.
54433 (pupa_register_command): Updated to match function.
54434 (pupa_arg_parse): New prototype.
54435 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54436 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54437 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54438 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54439 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54440 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54441 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54442 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54443 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54444 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54445 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54446 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54447 * kern/disk.c: Include <pupa/file.h>.
54448 (pupa_print_partinfo): New function.
54449 * kern/dl.c: Include <pupa/env.h>.
54450 (pupa_dl_dir): Variable removed.
54451 (pupa_dl_load): Use the environment variable `prefix' instead of
54452 the variable pupa_dl_dir.
54453 (pupa_dl_set_prefix): Function removed.
54454 (pupa_dl_get_prefix): Likewise.
54455 * kern/i386/pc/init.c: Include <pupa/env.h>.
54456 (pupa_machine_init): Use the environment variable `prefix' instead of
54457 using pupa_dl_set_prefix to set the prefix.
54458 * kern/main.c: Include <pupa/env.h>.
54459 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54460 using pupa_dl_get_prefix to get the prefix.
54461 * kern/misc.c: Include <pupa/env.h>.
54462 (pupa_isdigit): New function.
54463 (pupa_isgraph): Likewise.
54464 (pupa_ftoa): Likewise.
54465 (pupa_vsprintf): Added support for printing values of the type
54466 `double'. Make it possible to format variable output when using
54467 formatting like `%1.2%f'.
54468 (pupa_split_cmdline): New function.
54469 * kern/rescue.c: Include <pupa/env.h>.
54470 (next_word): Removed function.
54471 (pupa_rescue_cmd_prefix): Likewise.
54472 (pupa_rescue_cmd_set): New function.
54473 (pupa_rescue_cmd_unset): New function.
54474 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54475 split the command line instead of splitting it here. Added
54476 support for setting variables using the syntax `foo=bar'. Don't
54477 initialize the prefix command anymore. Initialized the set and
54478 unset commands.
54479 * normal/cmdline.c: Include <pupa/env.h>.
54480 (pupa_tab_complete): Added prototypes for print_simple_completion,
54481 print_partition_completion, add_completion, iterate_commands,
54482 iterate_dev, iterate_part and iterate_dir. Moved code to print
54483 partition information from here to kern/disk.c.
54484 (pupa_cmdline_run): Don't check if the function exists anymore.
54485 * normal/main.c: Include <pupa/env.h>.
54486 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54487 instead of using pupa_dl_get_prefix to get the prefix.
54488 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54489 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54490 warning.
54491 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54492 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54493 ((unused))' to silence a gcc warning.
54494 (pupa_vga_setcolor): Likewise.
54495 (debug_command): Changed to match argument parsing
54496 interface changes.
54497 * util/pupa-emu.c: Include <pupa/env.h>.
54498 (options): Added 0's for unused fields to silence a gcc warning.
54499 (argp): Likewise.
54500 (main): Use the environment variable `prefix' instead of using
54501 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54502 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54503 and terminal.
54504
54505 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54506 * util/misc.c: Include <malloc.h>.
54507 (pupa_malloc): Rewritten so errors are correctly reported.
54508 (pupa_realloc): Likewise.
54509 (pupa_memalign): Likewise.
54510 (pupa_mm_init_region): Declare unused variables with
54511 `__attribute__ ((unused))' to silence a gcc warning.
54512 * normal/i386/setjmp.S: Remove tab at the end of the file to
54513 silence a gcc warning.
54514 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54515 variables with `__attribute__ ((unused))' to silence a gcc
54516 warning.
54517 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54518 local variable i unsigned to silence a gcc warning.
54519
54520 * kern/term.c: Include <pupa/misc.h>.
54521 (pupa_more_lines): New variable.
54522 (pupa_more): Likewise.
54523 (pupa_putcode): When the pager is active pause at the end of every
54524 screen.
54525 (pupa_set_more): New function.
54526 * include/pupa/term.h (pupa_set_more): New prototype.
54527
54528
54529 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54530
54531 Now this project is GRUB 2 rather than PUPA. The location of
54532 the CVS repository was moved to GRUB's.
54533
54534 * configure.ac: Use bug-grub as the reporting address.
54535 Use GRUB instead of PUPA.
54536 Change the version number to 1.90.
54537
54538 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54539
54540 * genkernsyms.sh: Updated copyright information.
54541 * genmk.rb: Likewise.
54542 * genmodsrc.sh: Likewise.
54543 * gensymlist.sh: Likewise.
54544 * boot/i386/pc/boot.S: Likewise.
54545 * boot/i386/pc/diskboot.S: Likewise.
54546 * disk/i386/pc/biosdisk.c: Likewise.
54547 * disk/i386/pc/partition.c: Likewise.
54548 * font/manager.c: Likewise.
54549 * fs/ext2.c: Likewise.
54550 * fs/fat.c: Likewise.
54551 * include/pupa/boot.h: Likewise.
54552 * include/pupa/device.h: Likewise.
54553 * include/pupa/disk.h: Likewise.
54554 * include/pupa/dl.h: Likewise.
54555 * include/pupa/elf.h: Likewise.
54556 * include/pupa/err.h: Likewise.
54557 * include/pupa/file.h: Likewise.
54558 * include/pupa/font.h: Likewise.
54559 * include/pupa/fs.h: Likewise.
54560 * include/pupa/kernel.h: Likewise.
54561 * include/pupa/loader.h: Likewise.
54562 * include/pupa/misc.h: Likewise.
54563 * include/pupa/mm.h: Likewise.
54564 * include/pupa/net.h: Likewise.
54565 * include/pupa/normal.h: Likewise.
54566 * include/pupa/rescue.h: Likewise.
54567 * include/pupa/setjmp.h: Likewise.
54568 * include/pupa/symbol.h: Likewise.
54569 * include/pupa/term.h: Likewise.
54570 * include/pupa/types.h: Likewise.
54571 * include/pupa/i386/setjmp.h: Likewise.
54572 * include/pupa/i386/types.h: Likewise.
54573 * include/pupa/i386/pc/biosdisk.h: Likewise.
54574 * include/pupa/i386/pc/boot.h: Likewise.
54575 * include/pupa/i386/pc/console.h: Likewise.
54576 * include/pupa/i386/pc/init.h: Likewise.
54577 * include/pupa/i386/pc/kernel.h: Likewise.
54578 * include/pupa/i386/pc/linux.h: Likewise.
54579 * include/pupa/i386/pc/loader.h: Likewise.
54580 * include/pupa/i386/pc/memory.h: Likewise.
54581 * include/pupa/i386/pc/multiboot.h: Likewise.
54582 * include/pupa/i386/pc/partition.h: Likewise.
54583 * include/pupa/i386/pc/time.h: Likewise.
54584 * include/pupa/i386/pc/vga.h: Likewise.
54585 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54586 * include/pupa/util/getroot.h: Likewise.
54587 * include/pupa/util/misc.h: Likewise.
54588 * include/pupa/util/resolve.h: Likewise.
54589 * kern/device.c: Likewise.
54590 * kern/disk.c: Likewise.
54591 * kern/dl.c: Likewise.
54592 * kern/err.c: Likewise.
54593 * kern/file.c: Likewise.
54594 * kern/fs.c: Likewise.
54595 * kern/loader.c: Likewise.
54596 * kern/main.c: Likewise.
54597 * kern/misc.c: Likewise.
54598 * kern/mm.c: Likewise.
54599 * kern/rescue.c: Likewise.
54600 * kern/term.c: Likewise.
54601 * kern/i386/dl.c: Likewise.
54602 * kern/i386/pc/init.c: Likewise.
54603 * kern/i386/pc/lzo1x.S: Likewise.
54604 * kern/i386/pc/startup.S: Likewise.
54605 * loader/i386/pc/chainloader.c: Likewise.
54606 * loader/i386/pc/linux.c: Likewise.
54607 * loader/i386/pc/multiboot.c: Likewise.
54608 * normal/cmdline.c: Likewise.
54609 * normal/command.c: Likewise.
54610 * normal/main.c: Likewise.
54611 * normal/menu.c: Likewise.
54612 * normal/i386/setjmp.S: Likewise.
54613 * term/i386/pc/console.c: Likewise.
54614 * term/i386/pc/vga.c: Likewise.
54615 * util/console.c: Likewise.
54616 * util/genmoddep.c: Likewise.
54617 * util/misc.c: Likewise.
54618 * util/pupa-emu.c: Likewise.
54619 * util/resolve.c: Likewise.
54620 * util/unifont2pff.rb: Likewise.
54621 * util/i386/pc/biosdisk.c: Likewise.
54622 * util/i386/pc/getroot.c: Likewise.
54623 * util/i386/pc/pupa-mkimage.c: Likewise.
54624 * util/i386/pc/pupa-setup.c: Likewise.
54625
54626 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54627
54628 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54629 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54630 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54631 reading and reset it after reading.
54632 (pupa_ext2_close): Return PUPA_ERR_NONE.
54633
54634 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54635 Correct value.
54636 (struct linux_kernel_header): Add kernel_version and
54637 initrd_addr_max.
54638 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54639 pupa_file_read succeeds.
54640 (pupa_rescue_cmd_initrd): Implement.
54641
54642 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54643
54644 * fs/ext2.c (pupa_ext2_label): New function.
54645 (pupa_ext2_fs): Added label.
54646 * fs/fat.c (pupa_fat_label): New function.
54647 (pupa_fat_fs): Added label.
54648 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54649
54650 * kern/misc.c (pupa_strndup): New function.
54651 * include/pupa/misc.h (pupa_strndup): New prototype.
54652
54653 * include/pupa/normal.h: Include <pupa/err.h>.
54654 (pupa_set_history): New prototype.
54655 (pupa_iterate_commands): New prototype.
54656 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54657 <pupa/disk.h>, <pupa/file.h>.
54658 (hist_size): New variable.
54659 (hist_lines): Likewise.
54660 (hist_end): Likewise.
54661 (hist_used): Likewise.
54662 (pupa_set_history): New function.
54663 (pupa_history_get): Likewise.
54664 (pupa_history_add): Likewise.
54665 (pupa_history_replace): Likewise.
54666 (pupa_tab_complete): Likewise.
54667 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54668 completion shows partitionnames while completing partitions, this
54669 feature was suggested by Jeff Bailey.
54670 * normal/command.c (pupa_iterate_commands): New function.
54671 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54672 (pupa_normal_init): Initialize history buffer.
54673 (PUPA_MOD_INIT): Likewise.
54674 (pupa_normal_fini): Free the history buffer.
54675 (PUPA_MOD_FINI): Likewise.
54676
54677 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54678 key.
54679
54680 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54681 * configure.ac [i386]: Check for regparam bug.
54682 (NESTED_FUNC_ATTR) [! i386]: Defined.
54683
54684 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54685
54686 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54687 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54688 (pupa_emu_SOURCES): New variable.
54689 (pupa_emu_LDFLAGS): Likewise.
54690 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54691 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54692 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54693 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54694 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54695 (pupa_jmp_buf): New typedef.
54696 (pupa_setjmp) [PUPA_UTIL]: New macro.
54697 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54698 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54699 (pupa_refresh): New prototype.
54700 * include/pupa/util/getroot.h: New file.
54701 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54702 it.
54703 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54704 (pupa_rescue_cmd_cat): Likewise.
54705 (pupa_rescue_cmd_ls): Likewise.
54706 (pupa_rescue_cmd_testload): Likewise.
54707 (pupa_rescue_cmd_lsmod): Likewise.
54708 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54709 * normal/menu.c (run_menu): Likewise.
54710 * kern/term.c (pupa_cls): Likewise.
54711 (pupa_refresh): New function.
54712 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54713 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54714 * util/console.c: New file.
54715
54716 * util/i386/pc/getroot.c: New file.
54717 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54718 (pupa_putchar): New function.
54719 (pupa_refresh): Likewise.
54720 (xgetcwd): Function moved to ...
54721 (strip_extra_slashes): Likewise.
54722 (get_prefix): Likewise.
54723 * util/i386/pc/getroot.c: ... here.
54724 (find_root_device): Function moved and renamed to...
54725 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54726 Changed all callers.
54727 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54728 and renamed to...
54729 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54730 Changed all callers.
54731 * util/misc.c (pupa_memalign): New function.
54732 (pupa_mm_init_region): Likewise.
54733 (pupa_register_exported_symbols): Likewise.
54734 (pupa_putchar): Function removed.
54735 * util/pupa-emu.c: New file.
54736
54737 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54738
54739 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54740 (_multiboot_mod_SOURCES): New variable.
54741 (_multiboot_mod_CFLAGS): Likewise.
54742 * loader/i386/pc/multiboot.c: New file.
54743 * include/pupa/i386/pc/multiboot.h: Likewise.
54744 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54745 (pupa_multiboot_real_boot): New function.
54746 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54747 (pupa_multiboot_real_boot): New prototype.
54748 (pupa_rescue_cmd_multiboot): Likewise
54749 (pupa_rescue_cmd_module): Likewise.
54750
54751 * kern/loader.c (pupa_loader_set): Continue when
54752 pupa_loader_unload_func() fails.
54753 (pupa_loader_unset): New function.
54754 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54755
54756 * kern/misc.c (pupa_stpcpy): New function.
54757 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54758
54759 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54760
54761 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54762 for available extensions.
54763
54764 * include/pupa/i386/pc/time.h: New file.
54765 * kern/disk.c: Include <pupa/machine/time.h>.
54766 (PUPA_CACHE_TIMEOUT): New macro.
54767 (pupa_last_time): New variable.
54768 (pupa_disk_open): Flush the cache when there was a timeout.
54769 (pupa_disk_close): Reset the timer.
54770 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54771 pupa_currticks.
54772 * util/misc.c: Include <sys/times.h>
54773 (pupa_get_rtc): New function.
54774
54775 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54776
54777 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54778 as blocks.
54779 (pupa_ext2_get_file_block): Use blocks member.
54780
54781 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54782 first block. Return -1 instead of pupa_errno on error.
54783
54784 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54785
54786 * README: In the pupa-mkimage example use _chain instead of chain
54787 and ext2 instead of fat.
54788 * TODO: Replace ext2fs with jfs as an example. Add an item for
54789 adding journal playback for ext2fs.
54790 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54791 (pkgdata_MODULES): Added ext2.mod.
54792 (ext2_mod_SOURCES): New variable.
54793 (ext2_mod_CFLAGS): Likewise.
54794 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54795 * include/pupa/misc.h (pupa_strncpy): New prototype.
54796 (pupa_strcat): Likewise.
54797 (pupa_strncmp): Likewise.
54798 * kern/misc.c (pupa_strcat): Enable function.
54799 (pupa_strncpy): New function.
54800 (pupa_strncmp): Likewise.
54801 * fs/ext2.c: New file.
54802
54803 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54804 when the read failed before retrying.
54805 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54806 (_FILE_OFFSET_BITS): Likewise.
54807 * configure.ac: Added AC_SYS_LARGEFILE.
54808
54809 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54810
54811 * genmk.rb (PModule#rule): Make sure to get only symbol names
54812 from the output of nm.
54813 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54814
54815 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54816
54817 I forgot to check in these changes for a long time. This adds
54818 incomplete support for VGA console, and this is still very
54819 buggy. Also, a lot of consideration is required for I18N,
54820 UNICODE, and VGA font issues. Therefore, assume that this is
54821 such that "better than nothing".
54822
54823 * font/manager.c: New file.
54824 * include/pupa/font.h: Likewise.
54825 * include/pupa/i386/pc/vga.h: Likewise.
54826 * term/i386/pc/vga.c: Likewise.
54827 * util/unifont2pff.rb: Likewise.
54828
54829 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54830 (pkgdata_MODULES): Added vga.mod and font.mod.
54831 (vga_mod_SOURCES): New variables.
54832 (vga_mod_CFLAGS): Likewise.
54833 (font_mod_SOURCES): Likewise.
54834 (font_mod_CFLAGS): Likewise.
54835
54836 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54837
54838 * include/pupa/term.h: Include pupa/err.h.
54839 (struct pupa_term): Added init and fini.
54840 Changed the argument of putchar to pupa_uint32_t.
54841
54842 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54843 (pupa_console_real_putchar): New prototype.
54844 (pupa_console_putchar): Removed.
54845 (pupa_console_checkkey): Exported.
54846 (pupa_console_getkey): Likewise.
54847
54848 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54849 characters.
54850
54851 * kern/term.c (pupa_term_set_current): Rewritten.
54852 (pupa_putchar): Likewise.
54853 (pupa_putcode): New function.
54854
54855 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54856 (pupa_console_real_putchar): ... this.
54857 (pupa_vga_set_mode): New function.
54858 (pupa_vga_get_font): Likewise.
54859
54860 * normal/command.c: Include pupa/term.h.
54861 (terminal_command): New function.
54862 (pupa_command_init): Register the command "terminal".
54863
54864 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54865 (DISP_UP): Likewise.
54866 (DISP_RIGHT): Likewise.
54867 (DISP_DOWN): Likewise.
54868 (DISP_HLINE): Likewise.
54869 (DISP_VLINE): Likewise.
54870 (DISP_UL): Likewise.
54871 (DISP_UR): Likewise.
54872 (DISP_LL): Likewise.
54873 (DISP_LR): Likewise.
54874
54875 * term/i386/pc/console.c (pupa_console_putchar): New function.
54876
54877 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54878
54879 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54880 FIX. Reverse the path_list.
54881
54882 * include/pupa/normal.h: Export pupa_register_command and
54883 pupa_unregister_command.
54884
54885 * hello/hello.c (pupa_cmd_hello): New module.
54886 * conf/i386-pc.rmk: Added hello.mod.
54887
54888 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54889
54890 * kern/i386/pc/lzo1x.S: New file.
54891
54892 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54893 (compress_kernel): New variable.
54894 (generate_image): Heavily modified to support compressing a
54895 large part of the core image.
54896
54897 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54898 leak.
54899 (pupa_util_load_image): New function.
54900
54901 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54902 (pupa_compressed_size): New variable.
54903 (codestart): Enable Gate A20 here.
54904 Decompress the compressed part of the core image.
54905 Rearrange the code to put functions and variables which are
54906 required for initialization in the non-compressed part.
54907 Include lzo1x.S.
54908
54909 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54910 here.
54911
54912 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54913
54914 * include/pupa/i386/pc/kernel.h
54915 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54916 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54917 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54918 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54919 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54920
54921 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54922
54923 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54924 (Utility#rule): Likewise.
54925
54926 * configure.ac: Check if LZO is available.
54927
54928 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54929
54930 * include/pupa/normal.h: New file.
54931 * include/pupa/setjmp.h: Likewise.
54932 * include/pupa/i386/setjmp.h: Likewise.
54933 * normal/cmdline.c: Likewise.
54934 * normal/command.c: Likewise.
54935 * normal/main.c: Likewise.
54936 * normal/menu.c: Likewise.
54937 * normal/i386/setjmp.S: Likewise.
54938
54939 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54940 (pupa_rescue_cmd_initrd): Likewise.
54941
54942 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54943 Likewise.
54944
54945 * kern/i386/pc/startup.S (translation_table): New variable.
54946 (translate_keycode): New function.
54947 (pupa_console_getkey): Call translate_keycode.
54948
54949 * kern/rescue.c (attempt_normal_mode): New function.
54950 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54951 it failed, print a message.
54952
54953 * kern/mm.c (pupa_real_malloc): Print more information when a
54954 free magic is broken.
54955 (pupa_free): If the first free header is not free actually, set
54956 it to P.
54957
54958 * kern/main.c (pupa_load_normal_mode): Just load the module
54959 "normal".
54960 (pupa_main): Don't print the message
54961 "Entering into rescue mode..." here.
54962
54963 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54964 Declared.
54965 (pupa_rescue_cmd_initrd): Likewise.
54966 (pupa_rescue_cmd_initrd): Likewise.
54967
54968 * include/pupa/symbol.h (FUNCTION): Specify the type.
54969 (VARIABLE): Likewise.
54970
54971 * include/pupa/err.h (pupa_err_t): Added
54972 PUPA_ERR_UNKNOWN_COMMAND.
54973
54974 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
54975 (pupa_dl_get_prefix): Likewise.
54976
54977 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
54978 Added _chain.mod and _linux.mod instead of chain.mod and
54979 linux.mod.
54980 (chain_mod_SOURCES): Renamed to ...
54981 (_chain_mod_SOURCES): ... this.
54982 (chain_mod_CFLAGS): Renamed to ...
54983 (_chain_mod_CFLAGS): ... this.
54984 (linux_mod_SOURCES): Renamed to ...
54985 (_linux_mod_SOURCES): ... this.
54986 (linux_mod_CFLAGS): Renamed to ...
54987 (_linux_mod_CFLAGS): ... this.
54988 (normal_mod_SOURCES): New variable.
54989 (normal_mod_CFLAGS): Likewise.
54990 (normal_mod_ASFLAGS): Likewise.
54991
54992 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
54993
54994 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
54995 possible.
54996
54997 * kern/dl.c (pupa_dl_ref): Refer depending modules
54998 recursively.
54999 (pupa_dl_unref): Unrefer depending modules recursively.
55000 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55001 a module is unloaded before one depending on that module is
55002 unloaded.
55003 (pupa_dl_unload): Unload depending modules explicitly,
55004 if possible.
55005
55006 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55007
55008 * include/pupa/i386/pc/linux.h: New file.
55009 * loader/i386/pc/linux.c: Likewise.
55010
55011 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55012 Removed.
55013 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55014 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55015 of PUPA_CHAINLOADER_BOOT_SECTOR.
55016
55017 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55018 (pupa_linux_prot_size): New variable.
55019 (pupa_linux_tmp_addr): Likewise.
55020 (pupa_linux_real_addr): Likewise.
55021 (pupa_linux_boot_zimage): New function.
55022 (pupa_linux_boot_bzimage): Likewise.
55023
55024 * kern/i386/pc/init.c (struct mem_region): New structure.
55025 (MAX_REGIONS): New macro.
55026 (mem_regions): New variable.
55027 (num_regions): Likewise.
55028 (pupa_os_area_addr): Likewise.
55029 (pupa_os_area_size): Likewise.
55030 (pupa_lower_mem): Likewise.
55031 (pupa_upper_mem): Likewise.
55032 (add_mem_region): New function.
55033 (compact_mem_regions): Likewise.
55034 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55035 the size of the conventional memory and that of so-called upper
55036 memory (before the first memory hole).
55037 Instead of adding each found region to free memory, use
55038 add_mem_region and add them after removing overlaps.
55039 Also, add only 1/4 of the upper memory to free memory. The rest
55040 is used for loading OS images. Maybe this is ad hoc, but this
55041 makes it much easier to relocate OS images when booting.
55042
55043 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55044 (pupa_enter_rescue_mode): Don't register initrd and module.
55045
55046 * kern/mm.c: Include pupa/dl.h.
55047
55048 * kern/main.c: Include pupa/file.h and pupa/device.h.
55049
55050 * kern/loader.c (pupa_loader_load_module_func): Removed.
55051 (pupa_loader_load_module): Likewise.
55052
55053 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55054 ``.o''.
55055
55056 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55057 (pupa_linux_tmp_addr): Likewise.
55058 (pupa_linux_real_addr): Likewise.
55059 (pupa_linux_boot_zimage): Likewise.
55060 (pupa_linux_boot_bzimage): Likewise.
55061
55062 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55063 (pupa_upper_mem): Likewise.
55064 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55065 module is too dangerous.
55066
55067 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55068 (pupa_os_area_size): Likewise.
55069 (pupa_loader_set): Remove the first argument. Loader doesn't
55070 manage modules or initrd any longer.
55071 (pupa_loader_load_module): Removed.
55072
55073 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55074 (linux_mod_SOURCES): New variable.
55075 (linux_mod_CFLAGS): Likewise.
55076
55077 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55078
55079 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55080 the length of a blocklist correctly.
55081
55082 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55083 Use ioctl only if the OS file is a block device.
55084 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55085 not very useful for normal files.
55086
55087 * kern/main.c (pupa_set_root_dev): New function.
55088 (pupa_load_normal_mode): Likewise.
55089 (pupa_main): Call those above.
55090
55091 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55092 pupa_uint16_t.
55093
55094 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55095
55096 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55097
55098 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55099 (setup): Configure the installed partition information and the
55100 dl prefix.
55101
55102 * loader/i386/pc/chainloader.c (my_mod): New variable.
55103 (pupa_chainloader_unload): New function.
55104 (pupa_rescue_cmd_chainloader): Refer itself.
55105 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55106
55107 * kern/i386/pc/startup.S (install_partition): Removed.
55108 (version_string): Likewise.
55109 (config_file): Likewise.
55110 (pupa_install_dos_part): New variable.
55111 (pupa_install_bsd_part): Likewise.
55112 (pupa_prefix): Likewise.
55113 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55114
55115 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55116 and pupa/misc.h.
55117 (make_install_device): New function.
55118 (pupa_machine_init): Set the dl prefix.
55119
55120 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55121 (buf): Renamed to ...
55122 (linebuf): ... this.
55123 (pupa_rescue_cmd_prefix): New function.
55124 (pupa_rescue_cmd_insmod): Likewise.
55125 (pupa_rescue_cmd_rmmod): Likewise.
55126 (pupa_rescue_cmd_lsmod): Likewise.
55127 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55128 rmmod and lsmod.
55129
55130 * kern/mm.c (pupa_memalign): If failed even after invalidating
55131 disk caches, unload unneeded modules and retry.
55132
55133 * kern/misc.c (pupa_memmove): New function.
55134 (pupa_memcpy): Removed.
55135 (pupa_strcpy): New function.
55136 (pupa_itoa): Made static.
55137
55138 * kern/dl.c (pupa_dl_iterate): New function.
55139 (pupa_dl_ref): Likewise.
55140 (pupa_dl_unref): Likewise.
55141 (pupa_dl_unload): Return if succeeded or not.
55142 (pupa_dl_unload_unneeded): New function.
55143 (pupa_dl_unload_all): Likewise.
55144 (pupa_dl_init): Renamed to ...
55145 (pupa_dl_set_prefix): ... this.
55146 (pupa_dl_get_prefix): New function.
55147
55148 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55149 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55150 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55151 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55152 (pupa_install_dos_part): Declared.
55153 (pupa_install_bsd_part): Likewise.
55154 (pupa_prefix): Likewise.
55155 (pupa_boot_drive): Likewise.
55156
55157 * include/pupa/types.h: Fix a typo.
55158
55159 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55160 pupa_memmove.
55161 (pupa_memmove): Declared.
55162 (pupa_strcpy): Likewise.
55163
55164 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55165 pupa_mod_init takes one argument, its own module.
55166 (pupa_dl_unload_unneeded): Declared.
55167 (pupa_dl_unload_all): Likewise.
55168 (pupa_dl_ref): Likewise.
55169 (pupa_dl_unref): Likewise.
55170 (pupa_dl_iterate): Likewise.
55171 (pupa_dl_init): Renamed to ...
55172 (pupa_dl_set_prefix): ... this.
55173 (pupa_dl_get_prefix): Declared.
55174
55175 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55176 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55177 unloaded.
55178 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55179 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55180
55181 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55182 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55183
55184 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55185
55186 * util/i386/pc/pupa-setup.c (setup): Define the internal
55187 function find_first_partition_start at the top level, because GCC
55188 3.0.x cannot compile internal functions in deeper scopes
55189 correctly.
55190 (find_root_device): Use lstat instead of stat.
55191 Don't follow symbolic links.
55192 Fix the path-constructing code.
55193
55194 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55195 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55196 by a BLKGETSIZE ioctl first, because block devices don't fill
55197 the member st_mode of the structure stat on Linux.
55198 [__linux__] (linux_find_partition): Use a temporary buffer
55199 REAL_DEV for the working space. Copy it to DEV before returning.
55200 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55201 buffer cache consistent.
55202 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55203 strncmp. The previous value was merely wrong.
55204 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55205
55206 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55207 FAT size is 12. The previous value was merely wrong.
55208
55209 * kern/main.c (pupa_main): Don't split the starting message from
55210 newlines.
55211
55212 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55213 LF, because BIOS goes crazy about character attributes in this
55214 case.
55215
55216 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55217
55218 * include/i386/pc/util/biosdisk.h: New file.
55219 * util/i386/pc/biosdisk.c: Likewise.
55220 * util/i386/pc/pupa-setup.c: Likewise.
55221
55222 * Makefile.in (INCLUDE_DISTFILES): Added
55223 include/pupa/i386/pc/util/biosdisk.h.
55224 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55225 directory util/i386/pc.
55226 (install-local): Added a rule for sbin_UTILITIES.
55227 (uninstall): Likewise.
55228
55229 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55230
55231 * util/misc.c (xrealloc): New function.
55232 (pupa_malloc): Likewise.
55233 (pupa_free): Likewise.
55234 (pupa_realloc): Likewise.
55235 (pupa_stop): Likewise.
55236 (pupa_putchar): Likewise.
55237
55238 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55239
55240 * include/pupa/util/misc.h (xrealloc): Declared.
55241
55242 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55243 macro.
55244 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55245 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55246
55247 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55248 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55249
55250 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55251 way should be implemented.
55252 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55253
55254 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55255 the size of NAME for safety.
55256 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55257 0x88.
55258
55259 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55260 (pupa_setup_SOURCES): Likewise.
55261
55262 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55263
55264 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55265
55266 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55267 bunch of pushl's from pusha, because this destroys the return
55268 value.
55269
55270 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55271
55272 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55273 This means that any missing prototypes could be fatal. Also, you
55274 must take care when writing assembly code. See the comments at
55275 the beginning of startup.S, for more details.
55276
55277 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55278 compilation mechanism.
55279 (pupa_chainloader_real_boot): Likewise.
55280 (pupa_biosdisk_rw_int13_extensions): Likewise.
55281 (pupa_biosdisk_rw_standard): Likewise.
55282 (pupa_biosdisk_check_int13_extensions): Likewise.
55283 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55284 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55285 (pupa_get_memsize): Likewise.
55286 (pupa_get_mmap_entry): Likewise.
55287 (pupa_console_putchar): Likewise.
55288 (pupa_console_setcursor): Likewise.
55289 (pupa_getrtsecs): Use pushl instead of push.
55290
55291 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55292 memory instead of the stack for a mmap entry, because some
55293 BIOSes may ignore the maximum size and overflow.
55294
55295 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55296
55297 * genmk.rb (PModule#rule): Compile automatically generated
55298 sources with module-specific CFLAGS as well as other sources.
55299
55300 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55301
55302 * configure.ac: Check ld.
55303 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55304 respectively, before checking endianness and sizes.
55305
55306 * Makefile.in (LD): New variable.
55307
55308 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55309
55310 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55311
55312 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55313
55314 * Changelog: New file.
55315