]> git.proxmox.com Git - grub2.git/blob - ChangeLog
grub_cmd_play: Avoid division by zero.
[grub2.git] / ChangeLog
1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
4 division by zero.
5
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
9 potentially returning 0.
10
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
14 the end of file.
15
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
19 past the end of file.
20
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
24 synchronously with line.
25
26 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27
28 Replace explicit sizeof divisions by ARRAY_SIZE.
29
30 2015-01-19 Kris Moore <kris@pcbsd.org>
31
32 * grub-core/disk/geli.c: Support GELI v6 and v7.
33
34 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
35
36 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
37 option processing.
38
39 2014-12-07 David Kozub <zub.272@gmail.com>
40
41 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
42 in __aeabi_uidivmod
43 Fixes Savannah bug #43632.
44
45 2014-12-07 Peter Nelson <peterdn>
46
47 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
48 chunks.
49
50 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
51
52 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
53 non-portable '-n' echo option.
54 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
55 non-portable 'echo -n.
56 * util/grub.d/10_linux.in: Likewise (closes 43668).
57 * util/grub.d/20_linux_xen.in: Likewise.
58 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
59 non-portable 'echo -n'.
60
61 2014-12-07 Curtis Larsen <larsen@dixie.edu>
62
63 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
64 free when multiple empty segments were received (closes 42765).
65
66 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
67
68 * tests/util/grub-shell.in: Support --files also for netboot.
69 * tests/file_filter_test.in: New file with file filters tests.
70 * Makefile.util.def: Add file_filter_test.
71 * conf/Makefile.extra-dist: ... and here.
72 * tests/file_filter/file.gz: Test file for file_filter_test.
73 * tests/file_filter/file.gz.sig: Likewise.
74 * tests/file_filter/file.lzop: Likewise.
75 * tests/file_filter/file.lzop.sig: Likewise.
76 * tests/file_filter/file.xz: Likewise.
77 * tests/file_filter/file.xz.sig: Likewise.
78 * tests/file_filter/keys: Likewise.
79 * tests/file_filter/keys.pub: Likewise.
80 * tests/file_filter/test.cfg: Likewise.
81 * grub-core/commands/verify.c: Fix memory corruption doing
82 signature check for network files (closes 43601).
83
84 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
85
86 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
87 memory leak (CID 73645, 73782).
88 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
89 (CID 73635).
90
91 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
92
93 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
94 inline array (CID 73610).
95
96 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
97
98 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
99 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
100 (Coverity CID 73813, 73710)
101 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
102 and use after free (Coverity CID 73813, 73710, 73730)
103 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
104 CID 73854)
105 * util/grub-install-common.c (grub_install_get_target): Check return
106 value of grub_util_fd_read (Coverity CID 73819).
107 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
108 to hd.magic (Coverity CID 73587, 73888, bug 43690).
109
110 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
111
112 * tests/util/grub-fs-tester.in: Consistently print output
113 of grub ls if test fails.
114
115 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
116
117 * grub-core/kern/efi/init.c: check value of *path before
118 dereferencing.
119
120 2014-11-03 Michael Chang <mchang@suse.com>
121
122 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
123 of neighbor solicitation packet in grub_netbuff_pull.
124
125 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
126
127 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
128 avoid fatal warnings with older gcc (probably before 4.7).
129 * grub-core/loader/arm64/linux.c: Likewise.
130 * grub-core/loader/i386/linux.c: Likewise.
131 * grub-core/loader/i386/pc/linux.c: Likewise.
132 * grub-core/loader/ia64/efi/linux.c: Likewise.
133 * grub-core/loader/mips/linux.c: Likewise.
134 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
135 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
136
137 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
138
139 Fix in-tree --platform=none
140
141 * configure.ac: Only remove include/grub/cpu and
142 include/grub/machine in the --platform=none case, not all of
143 include/grub.
144
145 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
146
147 Add a new "none" platform that only builds utilities
148
149 * configure.ac: Add "none" platform. Default to it for unsupported
150 CPUs rather than stopping with a fatal error. Don't downgrade
151 x86_64-none to i386. Define COND_real_platform Automake conditional
152 if the platform is anything other than "none". Don't do any include
153 directory linking for "none".
154 * Makefile.am: Skip building grub-core and all bootcheck targets if
155 !COND_real_platform.
156 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
157 is defined.
158
159 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
160
161 Use grub_cpu_to_XXX_compile_time for constants.
162
163 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
164
165 The AML parser implements only a small subset of possible AML
166 opcodes. On the Fujitsu Lifebook E744 this and another bug in
167 the parser (incorrect handling of TermArg data types) would lead
168 to the laptop not turning off (_S5 not found).
169
170 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
171 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
172 aren't always simply strings!); Add function to skip TermArgs
173 * include/grub/acpi.h: Add new opcodes
174
175 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * grub-core/normal/main.c: Don't drop to rescue console in
178 case of password-protected prompt and no menu entries.
179
180 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/commands/keylayouts.c: Ignore unknown keys.
183
184 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
185
186 * grub-core/gmodule.pl.in: Accept newer binutils which output
187 empty column rather than 0x0.
188
189 2014-09-21 Michael Chang <mchang@suse.com>
190
191 * grub-core/osdep/unix/config.c: Remove extraneous comma.
192
193 2014-09-21 Peter Jones <pjones@redhat.com>
194
195 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
196 we don't free a random pointer from the stack.
197 * grub-core/loader/arm64/linux.c: Likewise.
198 * grub-core/loader/i386/linux.c: Likewise.
199 * grub-core/loader/i386/pc/linux.c: Likewise.
200 * grub-core/loader/ia64/efi/linux.c: Likewise.
201 * grub-core/loader/mips/linux.c: Likewise.
202 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
203 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
204
205 2014-09-15 Khem Raj <raj.khem@gmail.com>
206
207 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
208 _BSD_SOURCE to avoid warnings under glibc 2.20+.
209
210 2014-09-08 Michael Chang <mchang@suse.com>
211
212 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
213 check; comparing &data->extent against addresses in the region it
214 points to is unpredictable.
215
216 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
217
218 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
219
220 * configure.ac: Remove -m64 from checks for -mcmodel=large and
221 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
222 already in TARGET_CFLAGS at this point, and they produce incorrect
223 results when building for x32.
224 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
225 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
226 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
227 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
228
229 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
230
231 * configure.ac: Remove several unnecessary semicolons.
232
233 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
234
235 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
236 Initialise pend to pacify GCC.
237
238 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
239
240 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
241 gettext_printf).
242
243 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
244
245 * grub-core/term/at_keyboard.c: Retry probing keyboard if
246 scancode setup failed.
247
248 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
251
252 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
253
254 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
255 safety to avoid triggerring VirtualBox bug.
256
257 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
260
261 Fixes hang on virtualbox.
262
263 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
264
265 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
266 kernels whose paths contain regex metacharacters.
267 * util/grub.d/10_kfreebsd.in: Likewise.
268 * util/grub.d/10_linux.in: Likewise.
269 * util/grub.d/20_linux_xen.in: Likewise.
270
271 Reported by: Heimo Stranner.
272
273 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
274
275 * docs/grub-dev.texi (Finding your way around): The build system no
276 longer uses AutoGen directly.
277
278 2014-06-21 Роман Пехов <roman_pekhov>
279
280 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
281
282 2014-06-21 Glenn Washburn <development@efficientek.com>
283
284 * util/grub-install.c: Fix handling of --disk-module.
285
286 2014-06-21 Stephane Rochoy <sheda>
287
288 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
289 EFI system table.
290
291 2014-06-21 Stephane Rochoy <sheda>
292
293 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
294 EFI system table physical address.
295
296 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
297
298 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
299
300 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
301
302 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
303
304 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
307 check.
308
309 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
312
313 Reported by: Yves Blusseau <blusseau@zetam.org>.
314
315 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
316
317 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
318 GDT in conventional memory.
319
320 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
321
322 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
323 UUID. Other parts of grub-mkconfig tolerate these, they were
324 previously allowed here up to commit
325 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
326 practice when the system has active LVM snapshots.
327 Fixes Ubuntu bug #1287436.
328
329 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
330
331 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
332 "logical_volumes" block a little more accurately.
333
334 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
337
338 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
341 pulled from libgcc.
342
343 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
344
345 Replace few instances of memcmp/memcpy in the code that should be
346 grub_memcmp/grub_memcpy.
347
348 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
351 device names.
352
353 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
354
355 btrfs: fix get_root key comparison failures due to endianness
356
357 * grub-core/fs/btrfs.c (get_root): Convert
358 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
359
360 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
361
362 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
363
364 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
365 no longer to be forgiving of trailing spaces on grub-probe output
366 lines, which among other things means that util/grub.d/10_linux.in
367 no longer detects LVM. To fix this, make grub-probe's output
368 delimiting more consistent. As a bonus, this improves the coverage
369 of the -0 option.
370
371 Fixes Debian bug #735935.
372
373 * grub-core/disk/cryptodisk.c
374 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
375 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
376 Likewise.
377 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
378 Update prototype.
379 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
380 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
381 probe_mods): Adjust for extra user-data arguments.
382 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
383 probe_abstraction): Use configured delimiter. Update callers.
384
385 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
386
387 * util/grub-probe,c (options): Make -0 work again (broken by
388 conversion to argp).
389 (main): Simplify logic.
390
391 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
394
395 2014-03-26 Fu Wei <fu.wei@linaro.org>
396
397 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
398
399 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
400
401 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
402 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
403
404 Suggested by: Markus Müller.
405
406 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
409 if E820 failed to return any regions.
410
411 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
412
413 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
414 tables for low memory calculations.
415
416 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
417
418 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
419 location to 640K.
420
421 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
422
423 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
424 region.
425
426 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
427
428 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
429 exclusively.
430
431 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
432
433 Add bootpath parser for open firmware.
434
435 It enables net boot even when there is no bootp/dhcp server.
436
437 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
438 and call it at grub_ieee1275_net_config_real.
439 * grub-core/kern/ieee1275/init.c: Add bootpath to
440 grub_ieee1275_net_config.
441 * include/grub/ieee1275/ieee1275.h: Likewise.
442
443
444 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
445
446 Add grub_env_set_net_property function.
447
448 * grub-core/net/bootp.c: Remove set_env_limn_ro.
449 * grub-core/net/net.c: Add grub_env_set_net_property.
450 * include/grub/net.h: Likewise.
451
452 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
455
456 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
459
460 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
463 7 seconds to recover if last poweroff was bad.
464
465 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * grub-core/disk/ahci.c: Properly handle transactions with no
468 transferred data.
469
470 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
471
472 * grub-core/disk/ahci.c: Add safety cleanups.
473
474 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
475
476 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
477 slots to avoid pointing to uninited area.
478
479 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
480
481 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
482 enabling busmaster for the end.
483
484 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * util/grub-mkfont.c: Downgrade warnings about unhandled features
487 to debug.
488
489 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
492
493 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
494
495 * .gitignore: add missing files and .exe variants.
496
497 2014-01-26 Mike Gilbert <floppym@gentoo.org>
498
499 grub-install: support for partitioned partx loop devices.
500
501 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
502 /dev/loopX as being the parent of /dev/loopXpY.
503
504 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
505
506 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
507 Ensure that pointers are inited to NULL and that pointers are not
508 accessed after free.
509
510 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
511
512 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
513 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
514 * include/grub/emu/misc.h: ... and here.
515 * include/grub/err.h: ... and here.
516 * util/import_gcry.py: ... and here (in files g10lib.h).
517
518 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
519
520 * util/grub-mkimage.c: Make prefix argument mandatory.
521
522 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
523
524 Fix several translatable strings.
525
526 Suggested by: D. Prévot.
527
528 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * util/grub-install.c: List available targets.
531
532 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
533
534 * util/grub-install.c (write_to_disk): Add an info message.
535
536 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
537
538 * Makefile.am: Allow adding extra files to generated Windows ZIP
539 archive by setting GRUB_WINDOWS_EXTRA_DIST.
540
541 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
542
543 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
544 Show detected font path in summary.
545
546 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
547
548 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
549 interval gradually.
550 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
551 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
552 * grub-core/net/tftp.c (tftp_open): Likewise.
553 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
554
555 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
556
557 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
558 infinite loops.
559
560 In net/net.c there is a while (1) that only exits if there is a stop
561 condition and more then 10 packages or if there is no package received.
562
563 If GRUB is idle and enter in this loop, the only condition to leave is
564 if it doesn't have incoming packages. In a network with heavy traffic
565 this never happens.
566
567 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
568
569 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
570 EPERM when modifying kern.geom.debugflags. It is only a problem for
571 such things as installing GRUB to the MBR, in which case there'll be
572 an error later anyway, not for opening files during tests.
573
574 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
575
576 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
577 instead of MOD_FILES.
578 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
579 both with and without .exe.
580 * grub-core/genemuinitheader.sh: Same.
581
582 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
583
584 * util/grub-install.c: Fix a typo.
585
586 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
587
588 * grub-core/normal/main.c (read_config_file): Buffer config file.
589 Reduces boot time.
590
591 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
592
593 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
594 symbolic link to directory. It fails in Msys shell on Windows 2003.
595
596 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * Makefile.am (default_payload.elf): Add modules
599 multiboot cbmemc linux16 gzio echo help.
600
601 2014-01-18 Mike Gilbert <floppym@gentoo.org>
602
603 * Makefile.util.def: Link grub-ofpathname with zfs libs.
604
605 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
608 conflicts.
609
610 Reported by: Andrey Borzenkov.
611
612 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
613
614 * include/grub/misc.h: Move macros for compiler features to ...
615 * include/grub/compiler.h: ... new file.
616 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
617 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
618 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
619 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
620 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
621 * grub-core/video/capture.c: Include <grub/misc.h>.
622 * include/grub/command.h: Include <grub/misc.h>.
623 * include/grub/dl.h: Include <grub/misc.h>.
624 * include/grub/procfs.h: Include <grub/misc.h>.
625
626 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
627
628 * configure.ac: Add support for BUILD_EXEEXT and use it ...
629 * Makefile.am: ... here.
630 * Makefile.util.def: ... and here.
631 * grub-core/Makefile.am: ... and here.
632
633 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
634
635 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
636 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
637
638 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
639
640 * grub-core/term/terminfo.c: Recognize keys F1-F12.
641
642 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
643
644 * configure.ac: Add support for BUILD_LDFLAGS.
645 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
646 * grub-core/Makefile.am: ... and here.
647 * INSTALL: Mention BUILD_LDFLAGS.
648
649 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
652
653 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
656 and has no //.
657
658 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
659
660 * NEWS: Add few missing entries.
661
662 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
663
664 * util/grub.d/00_header.in (make_timeout): Use && rather than test
665 -a.
666 * util/grub.d/10_windows.in: Likewise.
667 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
668 than test -o.
669 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
670 rather than test -o.
671
672 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
673
674 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
675 redundant preprocessor conditional.
676
677 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
678
679 * Makefile.util.def (grub-macbless): Change mansection to 8.
680
681 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
682
683 * grub-core/loader/arm64/linux.c: correctly set device path end length.
684
685 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
686
687 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
688 arm64 to comply with EFI specification. Also use grubaa64.efi for
689 consistency.
690 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
691
692 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
693
694 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
695 on MinGW-64 when compiling for 32 bits.
696
697 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
698
699 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
700
701 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * NEWS: Add few missing entries. Correct existing ones.
704
705 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
706
707 Don't abort() on unavailable coreboot tables if not running on coreboot.
708
709 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
710
711 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
712 on mingw.
713
714 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
715
716 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
717 mention of it from 2.02.
718
719 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
722
723 As these functions are used on pre-ARMv6 CPUs as well we don't want
724 to make assembler assume that architecture is higher than default one.
725
726 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
727
728 * NEWS: First draft of 2.02 entry.
729
730 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
731
732 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
733 * docs/grub.texi (Getting the source code): Likewise.
734
735 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
736
737 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
738 detection.
739
740 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * configure.ac: Set version to 2.02~beta2.
743
744 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
745
746 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
747
748 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
749
750 * util/grub-probe.c: Improve help message and simplify list handling.
751
752 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
753
754 Fix buffer overflow in grub_efi_print_device_path.
755
756 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
757
758 Show SATA device path.
759
760 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
761
762 Revert grub-file usage in grub-mkconfig.
763
764 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
765
766 Make newly-created files other than grub.cfg world-readable.
767
768 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
769
770 * util/grub.d/00_header.in: Improve compatibility with old config.
771
772 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
773
774 Make rijndael.c respect aliasing rules.
775
776 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
777
778 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
779
780 Make grub_util_device_is_mapped_stat available in grub-emu core.
781
782 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
783
784 Add -Qn to TARGET_CFLAGS if it's supported.
785 Fixes compilation on cygwin.
786
787 Reported by: Andrey Borzenkov.
788 Suggested by: Andrey Borzenkov.
789
790 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
791
792 Save TARGET_CC version in modinfo.sh.
793
794 Suggested by: Andrey Borzenkov.
795
796 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
797
798 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
799 follow the same algorithm to avoid method mismatch. Don't assume
800 DMRAID- UUID to mean full disk but instead check that mapping is linear.
801
802 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
803
804 Declare GRUB_EFI_VENDOR_APPLE_GUID.
805
806 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
807
808 Dump type and vendor specific data when printing device path.
809
810 2013-12-23 Colin Watson <cjwatson@debian.org>
811
812 Update some documentation to refer to Git rather than Bazaar.
813
814 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
815 than Bazaar.
816 * po/README: Likewise. Fix spelling mistake.
817
818 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
819
820 Don't distribute config.h.
821
822 * Makefile.am (platform_HEADERS): Move to ...
823 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
824 failure when building from a distributed tarball.
825
826 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
827
828 * configure.ac: Fix spelling.
829 * grub-core/commands/parttool.c: Fix grammar.
830 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
831 Embedding Partition".
832
833 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
834
835 ARM64 support for grub-mkrescue.
836
837 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
838
839 Install modinfo.sh to keep build information around.
840
841 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * grub-core/modinfo.sh.in: Add build config information.
844
845 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
846
847 ARM64 grub-file and grub-mkconfig support.
848
849 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
850
851 Remove leftover options defines.
852
853 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
856
857 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/loader/arm64/linux.c: Add missing bracket.
860
861 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
862
863 Add arm64-efi recognition to grub-file.
864
865 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
866
867 Fix ia64-efi recognition in grub-file.
868
869 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
870
871 Recognize raspberry pi kernel in grub-file.
872
873 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
874
875 Enable cache on ARM U-Boot port.
876
877 Without it the port is reidiculously slow.
878
879 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
880
881 Fix ARM cache maintainance.
882
883 More code was converted from ASM to C for easier handling.
884
885 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
888 algorithm on v5.
889
890 Suggested by: Leif Lindholm.
891
892 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
893
894 * util/grub-mkconfig.in: Fix Xen platform conditions.
895
896 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
897
898 * util/grub-mkrescue.c: Split single help message string in several
899 strings used in previous shell version.
900
901 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
902
903 Add arm64 Linux loader.
904
905 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
906
907 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
908
909 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
910
911 Add module loading and parsing boot time checkpoints.
912
913 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
916 platforms.
917
918 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
919
920 * util/grub-mkconfig.in: Skip non-executable files.
921
922 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
923
924 Workaround buggy timer in raspberry pie by using our own timer
925 implementation.
926
927 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
928
929 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
930 Increase to 16 MiB to allow loading the whole memdisk.
931
932 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
933
934 Fix ARM Linux Loader on non-FDT platforms.
935
936 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * configure.ac: Choose link format based on host_os on emu.
939
940 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
941
942 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
943
944 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/kern/emu/main.c: Build fix for emu.
947
948 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
949
950 Build fixes for argp.h with older gcc.
951
952 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
953
954 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
955 in strings.
956
957 Suggested by: David Prévot.
958
959 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
960
961 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
962
963 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
964
965 Enable -Wformat=2 if it's supported.
966
967 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
970 -Wmissing-declarations if supported.
971
972 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
973
974 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
975 u32 as both HFS and HFS+ have 32-bit inodes.
976
977 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * include/grub/misc.h (grub_strtol): Fix overflow.
980
981 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
984 as return type in both conditionals.
985
986 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
989 to use uint8_t for color.
990
991 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
992
993 * util/misc.c (grub_util_get_image_size): Check for overflow.
994
995 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
998 for size.
999
1000 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1001
1002 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1003 for pointer difference.
1004
1005 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * util/import_gcry.py: Skip sample keys.
1008
1009 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1012
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 * configure.ac: Remove duplicate warning arguments.
1016
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Add missing static qualifiers.
1020
1021 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 Add missing includes.
1024
1025 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1026
1027 Inline printf templates when possible to enable format checking.
1028
1029 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1030
1031 * include/grub/crypto.h: Don't discard const attribute.
1032
1033 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1036 was intended.
1037
1038 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * grub-core/lib/crypto.c: Don't discard const attribute.
1041
1042 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * grub-core/lib/disk.c: Fix potential overflow.
1045
1046 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * grub-core/lib/arg.c: Don't discard const attribute.
1049
1050 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/kern/dl.c: Don't discard const attribute.
1053
1054 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * grub-core/kern/disk.c: Fix potential overflow.
1057
1058 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 * conf/Makefile.common: Don't include non-existing directory
1061 grub-core/lib/libgcrypt-grub/include.
1062
1063 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 Clarify several translatable messages.
1066
1067 2013-12-21 David Prévot <david@tilapin.org>
1068
1069 Correct some translatable strings.
1070
1071 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1072
1073 * util/grub-mkrescue.c: Rephrase mkrescue description.
1074
1075 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1076 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1077
1078 Clarify several translatable messages.
1079
1080 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1081
1082 Be more verbose about some configure failures.
1083
1084 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1085
1086 Fix various build problems on GNU/Hurd.
1087
1088 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1089 !defined (__GNU__).
1090 (xgetcwd): Likewise.
1091 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1092 [__GNU__]: Add prototype.
1093 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1094 long int using %ld rather than %d.
1095
1096 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * util/grub-install.c: Inform user about install platform.
1099
1100 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * configure.ac: Set version to 2.02~beta1.
1103
1104 2013-12-18 Allen Pais <allen.pais@oracle.com>
1105 2013-12-18 Bob Picco <bob.picco@oracle.com>
1106
1107 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1108
1109 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1110
1111 Make grub_zlib_decompress handle incomplete chunks.
1112
1113 Fixes squash4.
1114
1115 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1118 on i386-multiboot.
1119
1120 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1121
1122 * grub-core/disk/usbms.c: Retry on unknown errors.
1123 Reuse the same tag on retries.
1124
1125 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1126
1127 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1128
1129 Avoid confusing them with already completed transfers.
1130
1131 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 Remove xen VFB.
1134
1135 Due to XEN bug it prevents Linux boot. Remove it at least, until
1136 workaround is found.
1137
1138 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * po/exclude.pot: Add 2 missing excludes.
1141
1142 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Add missing license section in macbless.mod and macho.mod.
1145
1146 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1147
1148 Allow compilation without thumb-interwork as long as no thumb is
1149 involved or only thumb2 is used.
1150
1151 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1154
1155 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1156
1157 Add __attribute__ ((sysv_abi)) only if it's really needed.
1158
1159 Some compilers don't support it.
1160
1161 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1162
1163 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1164
1165 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 Remove -Wold-style-definition.
1168
1169 Not very useful and interaction of it with regexp depends on GCC
1170 version.
1171
1172 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 Make grub_util_get_windows_path_real static.
1175
1176 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * grub-core/commands/fileXX.c: Silence cast-align.
1179 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1180
1181 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1182
1183 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1184 rather than LL suffix.
1185
1186 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1189
1190 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 * grub-core/loader/arm/linux.c: Use common initrd functions.
1193
1194 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 Decrease number of strings to translate.
1197
1198 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1201
1202 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 Mark strings for translation and add remaining ones to exclude list.
1205
1206 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * util/grub-file.c (main): Fix sizeof usage.
1209
1210 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Silence spurious warning.
1213
1214 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 Remove check_nt_hiberfil as it's been superseeded by file command.
1217
1218 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1221
1222 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 Implement syslinux parser.
1225
1226 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1227
1228 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1229
1230 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 Support cpuid --pae.
1233
1234 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1235
1236 Use AT keyboard on Yeeloong 3A.
1237
1238 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1239
1240 Add Yeeloong 3A reboot and halt.
1241
1242 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 Add Radeon Yeeloong 3A support.
1245
1246 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 Add bonito 3A support.
1249
1250 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1253
1254 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1257
1258 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * grub-core/loader/macho.c: Fix compilation on non-i386.
1261
1262 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 Add missing format_arg attribute to check that printf with translated
1265 messages has proper arguments.
1266
1267 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 Use grub_xasprintf to format translated error messages containing
1270 64-bit quantity.
1271
1272 2013-12-17 Jon McCune <jonmccune@google.com>
1273
1274 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1275
1276 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1277
1278 Unify message for unsupported relocation.
1279
1280 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 Mark miscompile error for translation.
1283
1284 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 Use %I64 and not %ll when using OS printf if compiling for windows.
1287
1288 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 Update Mac code to match new register_efi prototype.
1291
1292 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 Implement better integration with Mac firmware.
1295
1296 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1299 load_addr.
1300
1301 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302
1303 Include serial module in default_payload.elf.
1304
1305 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 Add explicit thumb interwork bx in asm files.
1308
1309 Shouldn't matter for armv >= 5 but let's be safe.
1310
1311 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 Implement Truecrypt ISO loader.
1314
1315 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1318
1319 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 Implement grub_file tool and use it to implement generating of config
1322 in separate root.
1323
1324 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 Change to v1 xen grants.
1327
1328 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1331
1332 GRUB relied on %ebx being preserved across hypercall which isn't true.
1333
1334 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1337
1338 GRUB relied on %rdi being preserved across hypercall which isn't true.
1339
1340 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 Implement XEN VFB support.
1343
1344 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Remove grub_bios_interrupt on coreboot.
1347
1348 It's not used currently and cannot be used safely currently.
1349
1350 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1351
1352 Update exclude.pot and mark few strings for translation.
1353
1354 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1357
1358 Reported by: Jon McCune
1359
1360 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1361
1362 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1363 Add verbose information which firmware directories were tried.
1364
1365 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1366
1367 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1368 function to optionally redirect all three standard descriptors.
1369 Redefine grub_util_exec, grub_util_exec_redirect and
1370 grub_util_exec_redirect_null to use it.
1371 * include/grub/emu/exec.h: Define it.
1372 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1373 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1374 Use grub_util_exec_redirect_all to redirect error to NULL.
1375
1376 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * grub-core/tests/sleep_test.c: Silence spurious warning.
1379
1380 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1381
1382 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1383 linker trying to "fixup" the code.
1384
1385 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1388
1389 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 Add support for converting PE+ to Elf64.
1392
1393 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1396
1397 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 Remove practice of assigning random const pointers to device id.
1400
1401 This is not required as cache code already checks driver id as well.
1402
1403 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1404
1405 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1406 with mingw.
1407
1408 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1409
1410 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1411 mingw or cygwin as API already matches.
1412
1413 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1416
1417 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1420 not on long.
1421
1422 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 Handle X86_64_PC64 relocation.
1425
1426 Those are generated by some cygwin compilers.
1427
1428 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1429
1430 Determine the need for mingw-related stubs at compile time rather than
1431 using not very significant $target_os.
1432
1433 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1434
1435 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1436 may not work with ELF.
1437
1438 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 Use unix functions for temporary files and special files on cygwin.
1441
1442 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1443
1444 Define functions explicitly rather than using --defsym in tests
1445 whenever possible. Respect locality in remaining cases.
1446
1447 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1448
1449 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1450
1451 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1452
1453 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1454 unlikely errors when getting EFI variables and make exhaustive search
1455 for all BootNNNN variables to find matching one.
1456
1457 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1458
1459 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1460
1461 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1462
1463 New functional test for sleep function.
1464
1465 This test allows to check sleep without qemu. Keep qemu version as
1466 well as functional test won't notice if all clocks are going too fast
1467 or too slow.
1468
1469 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 Add explicit sysv_abi on amd64 asm routines.
1472
1473 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1476 num_table_entries.
1477
1478 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1479
1480 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1481 functions.
1482
1483 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1484
1485 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1486 appropriate.
1487
1488 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1489
1490 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1491
1492 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1495 appropriate.
1496
1497 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1500
1501 In case of quick removal of loopback and adding another one it may
1502 get same ID, confusing the cache system.
1503
1504 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1507 appropriate.
1508
1509 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1512 than converting to long.
1513
1514 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1515
1516 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1517
1518 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1521 than almost useless pointer.
1522
1523 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 Add gcc_struct to all packed structures when compiling with mingw.
1526
1527 Just "packed" doesn't always pack the way we expect.
1528
1529 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1530
1531 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1532
1533 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * util/grub-pe2elf.c: Fix handling of .bss.
1536
1537 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 Implement windows flavour of EFI install routines.
1540
1541 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1544
1545 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1546
1547 Change grub_install_register_efi interface to pass GRUB device.
1548
1549 This allows grub_install_register_efi to request partition info
1550 directly.
1551
1552 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1553
1554 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1555
1556 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 Do not use TCHAR string functions as they are not available on cygwin.
1559
1560 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 Workaround windows bug when querying EFI system partition parameters.
1563
1564 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1565
1566 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1567 by using bitfields.
1568
1569 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1572
1573 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 Make i386-* other than i386-pc compileable under cygwin.
1576
1577 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1578
1579 Fix definition of grub_efi_hard_drive_device_path. Take care that
1580 existing code would work even if by some reason bogus definition is
1581 used by EFI implementations.
1582
1583 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1586
1587 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1590 invocation.
1591
1592 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * util/config.c: Remove trailing newline from distributor in simple
1595 parsing.
1596
1597 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 * include/grub/efi/api.h: Rename protocol and interface to avoid
1600 conflict.
1601
1602 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * .gitignore: add .exe variants. add missing files. remove few outdated
1605 entries.
1606
1607 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * grub-core/osdep/exec.c: Use unix version on cygwin.
1610
1611 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1612
1613 Implement multiboot2 EFI BS specification.
1614
1615 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1618 Crash happened only in some cases like a string starting at the
1619 half of the screen of same length.
1620
1621 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1624 with EFI counterpart.
1625
1626 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1627
1628 Propagate the EFI commits to x86-efi specific parts.
1629
1630 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1631
1632 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1633
1634 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 Introduce grub_efi_packed_guid and use it where alignment is not
1637 guaranteed.
1638
1639 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1642 unaligned u16 rather than u8[2].
1643
1644 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1645
1646 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1647 for relocation range.
1648
1649 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1652 non-function pcrel21b relocation. It happens with .text.unlikely
1653 section.
1654
1655 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1656
1657 * make MAX_USABLE_ADDRESS platform-specific
1658 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1659
1660 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1661
1662 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1663
1664 2013-12-09 Jon McCune <jonmccune@google.com>
1665
1666 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1667 in grub-install and grub-bios-setup for x86 BIOS targets.
1668
1669 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 Add missing compile and link options for sparc64-emu.
1672
1673 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 Implement sparc64 trampolines (needed for sparc64-emu).
1676
1677 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1680 range of R_SPARC_HI22.
1681 Implement R_SPARC_LM22.
1682
1683 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1684
1685 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1686 Do not explicitly check for symbol table as it's already checked in
1687 platform-independent layer.
1688
1689 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1692 on ia64 as __clear_cache is a dummy on ia64.
1693
1694 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1697 Do not explicitly check for symbol table as it's already checked in
1698 platform-independent layer.
1699
1700 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1701
1702 * util/grub-mkconfig.in: Add missing newline to output.
1703
1704 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1707 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1708
1709 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1712 compilation with GCC <= 4.2.
1713 * grub-core/kern/emu/argp_common.c: Likewise.
1714
1715 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1718 right platform rather than leaking to sparc64-emu.
1719
1720 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1721
1722 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1723 But ensure that the variables in question are indeed unsigned.
1724
1725 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1726
1727 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1728
1729 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 Remove grub_memalign on emu.
1732
1733 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1734
1735 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1736 truncate incomplete lines but instead flushes them.
1737
1738 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1739
1740 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1741 and implement windows variant.
1742
1743 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 Fix mips-emu compilation.
1746
1747 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * configure.ac: Check for freetype library usability.
1750
1751 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Make arm-emu work.
1754
1755 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1758
1759 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1760
1761 * docs/grub.texi (Environment): Update color_normal and color_highlight
1762 defaults (light-gray instead of white).
1763
1764 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1765
1766 * grub-core/normal/main.c (INIT): Set default color to light-gray
1767 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1768 and apparently BIOS defaults.
1769
1770 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 Transform -C option to grub-mkstandalone to --core-compress available
1773 in all grub-install flavours.
1774
1775 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1776
1777 Merge GRUBFS and GRUB_FS variables.
1778
1779 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1780
1781 Revert commit 69ca97c820, it caused failures when using OS device name
1782 in grub-install. Instead just strip off parenthesis in grub-install
1783 if (hdX) was passed.
1784
1785 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1786
1787 * util/grub-install.c (push_partmap_module): Add helper to convert
1788 partmap names to module names and use it in probe_mods(). Fixes
1789 failure to find partmap modules in diskfilter case.
1790
1791 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * configure.ac: Make unifont mandatory on coreboot.
1794
1795 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1796
1797 * configure.ac: Skip unifont 6.3 pcf and bdf.
1798
1799 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 * Makefile.am: Remove partial font files if generation failed.
1802
1803 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1804
1805 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1806 strings.
1807 * include/grub/util/misc.h: Define it ...
1808 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1809
1810 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1811
1812 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1813 ${grub_probe}.
1814
1815 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 Don't add -mlong-calls when compiling with clang.
1818
1819 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 * configure.ac: Fix a typo.
1822
1823 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 Revamp relocation handling.
1826
1827 Move more code to common dl.c. Add missing veneers for arm and arm64.
1828 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1829
1830 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1831
1832 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1833
1834 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1835
1836 * INSTALL: Raise minimum python version to 2.6.
1837 * gentpl.py: Use python3-style print function.
1838
1839 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * util/grub-install.c: Mention Boot* variable.
1842
1843 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1844
1845 * grub-core/osdep/linux/hostdisk.c
1846 (grub_util_find_partition_start_os): Initialise start to avoid
1847 spurious compiler warning.
1848
1849 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1850
1851 On Linux, read partition start offsets from sysfs if possible, to
1852 cope with block device drivers that don't implement HDIO_GETGEO.
1853 Fixes Ubuntu bug #1237519.
1854
1855 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1856 function.
1857 (sysfs_partition_start): Likewise.
1858 (grub_util_find_partition_start_os): Try sysfs_partition_start
1859 before HDIO_GETGEO.
1860
1861 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1862
1863 * grub-core/kern/fdt.c: Update struct size when adding node.
1864
1865 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 Handle unaligned .bss on sparc64.
1868
1869 Current code improperly assumes that both __bss_start and _end are
1870 aligned to 8-bytes. Eliminating this assumption and explicitly align
1871 modules.
1872
1873 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1874
1875 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1876 so it doesn't land in the middle of loaded image.
1877
1878 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * configure.ac: Move all warning options that may be absent in
1881 gcc >= 3.1 to optional.
1882
1883 Note: while this allows to compile with older GCC, official requirements
1884 remain the same and no support for older GCC.
1885
1886 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1887
1888 Copying the themes directory in grub-shell isn't
1889 parallel-test-friendly and breaks on the second test when the source
1890 directory is read-only (as in "make distcheck"). Instead, add a
1891 hidden --themes-directory option to grub-mkrescue et al, and use it
1892 in grub-shell.
1893
1894 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1897 as it's no longer necessarry.
1898
1899 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * configure.ac: Allow compilation with older GCC for ARM.
1902
1903 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1906 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1907 ppc.
1908
1909 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1912
1913 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 Pass font config to config.h and not by TARGET_CFLAGS as adding
1916 arguments doesn't work if TARGET_CFLAGS is specified on command
1917 line.
1918
1919 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * configure.ac: Add -Wvla if compiler supports it.
1922
1923 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1926 Remove variable length arrays.
1927 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1928
1929 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1932
1933 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 * include/grub/types.h: Declare all byteswaps as inline functions
1936 except compile-time ones.
1937
1938 Solves variable shadowing in constructions like
1939 cpu_to_le (le_to_cpu(x) + 1).
1940
1941 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1944
1945 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1948 minutes.
1949
1950 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1953 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1954
1955 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1956
1957 * grub-core/Makefile.core.def (setjmp): Distribute
1958 lib/arm64/setjmp.S.
1959
1960 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1961
1962 Add a new timeout_style environment variable and a corresponding
1963 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
1964 controls hidden-timeout handling more simply than the previous
1965 arrangements, and pressing any hotkeys associated with menu entries
1966 during the hidden timeout will now boot the corresponding menu entry
1967 immediately.
1968
1969 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
1970 generates a warning, and if it shows the menu it will do so as if
1971 the second timeout were not present. Other combinations are
1972 translated into reasonable equivalents.
1973
1974 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
1975
1976 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * util/config.c: Add missing pointer adjustment.
1979 Reported by: qwertial
1980
1981 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1982
1983 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
1984 directly, not via `cpu' link, to fix libgrub.pp generation.
1985
1986 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
1987
1988 New port arm64-efi.
1989
1990 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
1991
1992 * docs/grub.texi (sleep): Document exit codes.
1993
1994 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 Ensure that -mno-unaligned-access or some equivalent option is used.
1997
1998 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1999
2000 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2001 -march=armv3.
2002
2003 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2006
2007 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2008
2009 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2010 builds, since we don't have an EPS version of font_char_metrics.png.
2011 Add leading dot to image extension per the Texinfo documentation.
2012
2013 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2014
2015 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2016 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2017 * util/grub-gen-widthspec.c: Likewise.
2018 * util/grub-mkfont.c: Likewise.
2019
2020 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2021
2022 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2023 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2024 failed to install on (hdX).
2025 * util/grub-setup.c (get_device_name): Remove, not needed after
2026 above change.
2027
2028 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2031
2032 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2033
2034 * util/grub-fstest.c: Remove variable length arrays.
2035
2036 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2039
2040 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2043 computing crc32 rather than handling with md fundtions directly.
2044
2045 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2046
2047 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2048 checking fwstart.img rather than md fundtions directly.
2049
2050 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * util/grub-mkrescue.c (main): Check that fread succeeded.
2053
2054 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2055
2056 * conf/Makefile.common: Remove -mexplicit-relocs and
2057 -DUSE_ASCII_FALLBACK on yeeloong.
2058
2059 -DUSE_ASCII_FALLBACK is already added by font snippets.
2060 -mexplicit-relocs isn't needed is compiler/assemblera are
2061 configured properly.
2062 If they're not we shouldn't attempt to fix it by ourselves.
2063 Binary compare between before and after shows no difference.
2064
2065 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2066
2067 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2068 sources in dependencies directly.
2069
2070 This was the only instance of "library" in core config. A bug was
2071 reported that -fno-stack-protector wasn't passed to it. Instead of
2072 figuring out why it failed just remove this construction used
2073 needlessly.
2074
2075 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2076
2077 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2078 fgets succeeded.
2079
2080 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2081
2082 * docs/grub.texi (ls): Fix command description in case of a device name
2083 passed as argument.
2084
2085 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2086
2087 Eliminate variable length arrays in grub_vsnprintf_real.
2088
2089 A bit tricky because this function has to continue to work without
2090 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2091 but make all stack references use 32-bit offset rather than 8-bit one.
2092 So split va_args preparsing to separate function and put the prealloc
2093 into the caller.
2094
2095 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2098 Fixes build for windows.
2099
2100 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * gentpl.py: Don't generate platform-dependent conditionals for
2103 platform-independent targets.
2104
2105 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2106
2107 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2108 references to mdadm from otherwise generic code.
2109 (grub_util_exec_pipe): Likewise.
2110 (grub_util_exec_pipe_stderr): Likewise.
2111 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2112 This function calls vgs, not mdadm; adjust variable names
2113 accordingly.
2114
2115 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2116
2117 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2118 of Autogen. The Autogen definitions files remain intact as they
2119 offer a useful abstraction.
2120
2121 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2122
2123 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2124 into no-ops, and use it in programs that copy files but do not need
2125 to take special care to sync writes (grub-mknetdir, grub-rescue,
2126 grub-mkstandalone).
2127
2128 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2129
2130 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2131 than hardcoding /usr/local/bin/xorriso.
2132
2133 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2134
2135 Add PCI command activation to all PCI drivers as required for coreboot
2136 and maybe some other firmwares.
2137
2138 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2141 and non-Apple variants of efiemu compile.
2142
2143 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2144
2145 * configure.ac: Add explicit check for linking format of
2146 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2147 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2148 hardcoding linking format.
2149
2150 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2151
2152 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2153 and not pkgdatadir.
2154
2155 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2156 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2157
2158 Add a --locale-directory option to grub-install and related tools.
2159
2160 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2161 --locale-directory option.
2162 (enum grub_install_options): Add
2163 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2164 * util/grub-install-common.c (grub_install_help_filter): Handle
2165 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2166 (grub_install_parse): Likewise.
2167 (get_localedir): New function to check for a user-provided option
2168 before trying grub_util_get_localedir.
2169 (copy_locales): Use get_localedir rather than
2170 grub_util_get_localedir. Handle differing locale directory layouts.
2171 (grub_install_copy_files): Likewise.
2172
2173 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2176 Don't rely on PATH_MAX.
2177
2178 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 * grub-core/genmoddep.awk: Use more portable && rather than and.
2181
2182 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2183
2184 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2185 an object after data. While it doesn't seem right solution, it
2186 works well enough and OSX isn't main compilation platform.
2187
2188 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2191 While it doesn't seem right solution, it works well enough and
2192 OSX isn't main compilation platform.
2193
2194 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * configure.ac: Add -static to LDFLAGS when using apple linker to
2197 prevent it from pulling in dynamic linker.
2198
2199 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 Apple assembly doesn't handle symbol arithmetic well. So define an
2202 offset symbol in boot.S and use it.
2203
2204 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 Apple assembly doesn't handle symbol arithmetic well. So instead
2207 of getting addres of kernel_sector + 4 define kernel_sector_high.
2208 It also makes code more readable.
2209
2210 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2211
2212 With Apple assembly in .macro environvemnt you have to use $$ instead
2213 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2214 to $$x on Apple and to $x on everything else.
2215
2216 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2219 OBJCONV.
2220
2221 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2224 and non-Apple. This instruction is shorter and faster,
2225 so no reason not to use it on both.
2226
2227 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2230 .text when compiling for Apple.
2231
2232 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2233
2234 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2235
2236 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2239 %dx restore the probe worked on non-existant drive. Reorganize the
2240 code a little bit to free 2 bytes necessary for push/pop.
2241
2242 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2245 Add missing cast to silence warning.
2246
2247 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2248
2249 * util/grub-install.c (update_nvram): Support --no-nvram flag
2250 for EFI targets.
2251
2252 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2255
2256 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2257
2258 * util/garbage-gen.c: Add missing include of sys/time.h.
2259
2260 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2261
2262 Don't add -mflush-func if it's not supported by compiler.
2263
2264 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 Move common BIOS/coreboot memory map declarations to
2267 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2268
2269 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2270
2271 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2272
2273 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * INSTALL: Document why older clang versions aren't appropriate.
2276
2277 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * INSTALL: Document about clang for mips.
2280
2281 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2284 clang.
2285
2286 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2287
2288 Add *-xen to the list of grub-install-common platforms.
2289
2290 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2291
2292 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2293 3 last commits.
2294
2295 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2296
2297 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2298
2299 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2300
2301 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2302 with -mcmodel=large.
2303
2304 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2305
2306 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2307 range-checking for 32-bit quantities.
2308
2309 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 * configure.ac: Compile with -fPIC when compiling with clang on
2312 mips.
2313
2314 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2317 when compiling with clang.
2318
2319 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 clang emits calls to abort () under some unknown conditions.
2322 Export abort () when compiling with clang.
2323
2324 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 * docs/grub-dev.texi: Document stack and heap sizes.
2327
2328 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2329
2330 * include/grub/i386/pc/memory.h: Decrease
2331 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2332 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2333 The binary doesn't change (checked). It's more to better reflect actual
2334 usage.
2335
2336 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2337
2338 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2339 at compile time that enough of scratch size is available.
2340
2341 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2344 Previously we misaligned stack by 8 in startup.S and compensated
2345 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2346 right behaviour is to align stack in startup.S and keep it aligned
2347 in callwrap.S. startup.S part was committed few commits before. This
2348 takes care of callwrap.S.
2349 Reported by: Gary Lin.
2350
2351 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2354 .data and .bss. May happen if compiler and assembly use different
2355 alignment.
2356
2357 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2360 way.
2361
2362 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 Add support for a new magic symbol _gp_disp on mips to handle PIC
2365 binaries.
2366
2367 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2370
2371 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2372
2373 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2374 when rest of GRUB is compiled for hisher stepping. Instead use
2375 .set mips3/.set mips1 around cache and sync opcodes.
2376
2377 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2378
2379 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2380 do essentially the same thing, do it in similar way.
2381
2382 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2383
2384 * util/grub-mkrescue.c (main): If a source directory is not
2385 specified, read platform-specific files from subdirectories of
2386 pkglibdir, not pkgdatadir.
2387
2388 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2389
2390 * grub-core/normal/progress.c: Remove unused file.
2391
2392 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2395 array.
2396
2397 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2400 than grub.cfg.
2401
2402 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * coreboot.cfg: Add missing file.
2405
2406 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2409
2410 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2411
2412 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2413 selectively skipping systems.
2414
2415 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2416
2417 * Makefile.util.def (grub-mkimage): Add
2418 grub-core/osdep/aros/config.c to extra_dist.
2419 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2420 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2421 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2422 grub-core/gnulib-no-gets.diff.
2423
2424 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2425
2426 Add automated filesystem checking based on scripts I've used now for
2427 quite some time locally. Most of the test require root so they are
2428 skipped when run without necessarry privelegies.
2429
2430 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2431
2432 * util/grub-install.c (main): Adjust info messages to match
2433 installed paths of grub-bios-setup and grub-sparc64-setup.
2434
2435 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2436
2437 * util/grub-install-common.c (copy_locales): Consistently use
2438 grub_util_get_localedir () rather than LOCALEDIR.
2439 (grub_install_copy_files): Likewise.
2440
2441 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2442
2443 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2444 16-byte boundary, as required by the x86-64 ABI, before calling
2445 grub_main. In some cases, GCC emits code that assumes this
2446 alignment, which crashes if not aligned. The EFI firmware is also
2447 entitled to assume that stack alignment without checking.
2448
2449 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2450
2451 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2452 4k page boundaries as expected by firmware rather than 1k
2453 boundaries.
2454 (grub_mmap_malign_and_register): Likewise.
2455
2456 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2459 fragmentation 512M is enough.
2460
2461 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2464 pointer to 32K. This is the size of cache element which is the most
2465 common allocation >1K. This way the pointer is always around blocks
2466 of 32K and so we keep performance while decreasing fragmentation.
2467
2468 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2471 current memory when allocating large chunks. This significantly
2472 decreases memory fragmentation.
2473
2474 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2475
2476 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2477 but for symmetry).
2478 * tests/lzocompress_test.in: Skip if lzop is not installed.
2479 * tests/xzcompress_test.in: Skip if xz is not installed.
2480
2481 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2482
2483 * util/grub-mkrescue.c (main): Fix typo.
2484
2485 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2488 clock frequency to 200 MHz,
2489
2490 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2493
2494 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2495
2496 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2497 Load config file from (cbfsdisk)/etc/grub.cfg.
2498
2499 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * util/grub-install-common.c (grub_install_copy_files): Fix module
2502 destination directory.
2503
2504 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2505
2506 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2507 files have not been built.
2508
2509 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2510
2511 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2512 Handle errors from mkstemp.
2513 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2514
2515 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2516
2517 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2518 on primary master on pseries.
2519
2520 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2521
2522 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2523 already loaded. This saves memory needed for tests,
2524
2525 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2526
2527 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2528 work again.
2529
2530 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2531
2532 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2533 work again.
2534
2535 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2536
2537 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2538 master since with some combinations of qemu and firmware only primary
2539 IDE channel is available.
2540
2541 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2544 low-memory platforms where we don't have enough memory for them.
2545 * grub-core/tests/videotest_checksum.c: Likewise.
2546
2547 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2550 already loaded. This saves memory needed for tests,
2551
2552 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 Fix handling of install lists.
2555
2556 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2559
2560 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2561
2562 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2563 the devices before accessing them.
2564
2565 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2566
2567 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2568 as file argument.
2569
2570 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2571
2572 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2573
2574 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2577 (grub_file_close): Free file->name.
2578
2579 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2580
2581 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2582 (grub_load_public_key): Likewise.
2583 (grub_verify_signature_real): Likewise.
2584 (grub_cmd_verify_signature): Likewise.
2585
2586 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2587
2588 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2589 memory leak.
2590
2591 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2594 (grub_longjmp): Restore r31.
2595 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2596
2597 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2600 modules to be in line with make_image_abs.
2601
2602 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2603
2604 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2605
2606 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2607
2608 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2609
2610 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2611
2612 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2613
2614 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2615 to leave some memory to firmware.
2616
2617 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2620 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2621 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2622 Load gfxmenu.
2623
2624 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2625
2626 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2627 now needs full arguments.
2628
2629 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * util/grub-mkrescue.c (main): Add trailing \n in
2632 .disk_label.contentDetails to be in line with previous shell script.
2633
2634 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2637
2638 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2639
2640 * util/grub-install-common.c (grub_install_parse): Recognize
2641 --compress=none like shell script did.
2642
2643 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2644
2645 * include/grub/misc.h: Replace check for __sparc64__ with one for
2646 __sparc__ as __sparc64__ isn't actually defined.
2647
2648 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2649
2650 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2651 counterpart of fixing the naming of escc ports.
2652
2653 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * util/grub-install-common.c (platforms): Fix the order of entries and
2656 remove useless field val.
2657
2658 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2659
2660 * util/grub-install.c: Add new option --no-bootsector to skip
2661 installing of bootsector. Accept --grub-setup=/bin/true as
2662 backwards-compatible synonym.
2663
2664 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2665
2666 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2667 order of qsort arguments (number of elements vs. element size).
2668
2669 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2672 the function of these files exceeds what can be sanely handled in shell
2673 in posix-comaptible way. Also writing it in C extends the functionality
2674 to non-UNIX-like OS and minimal environments.
2675
2676 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2677
2678 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2679 compiling to thumb2.
2680 * grub-core/kern/arm/cache_armv7.S: Likewise.
2681 * grub-core/lib/arm/setjmp.S: Likewise.
2682
2683 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2684
2685 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2686 in grub_uboot_syscall
2687
2688 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2689
2690 Decrease stack usage in lexer.
2691
2692 We have only 92K of stack and using over 4K per frame is wasteful
2693
2694 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2695 as macros so that compiler would remove useless structure on stack.
2696 Better solution would be to fix flex not to put this structure on
2697 the stack but flex is external program.
2698
2699 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2700
2701 Decrease stack usage in signature verification.
2702
2703 We have only 92K of stack and using over 4K per frame is wasteful
2704
2705 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2706 rather than stack.
2707 (grub_verify_signature_real): Likewise.
2708
2709 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 Decrease stack usage in mdraid 0.9x.
2712
2713 We have only 92K of stack and using over 4K per frame is wasteful
2714
2715 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2716 rather than stack.
2717
2718 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 Decrease stack usage in BtrFS.
2721
2722 We have only 92K of stack and using over 4K per frame is wasteful
2723
2724 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2725 rather than stack.
2726
2727 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 Decrease stack usage in JFS.
2730
2731 We have only 92K of stack and using over 4K per frame is wasteful
2732
2733 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2734 stack. Note: this function is recursive.
2735 (grub_jfs_read_inode): Read only part we care about.
2736
2737 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2738
2739 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2740 handling
2741
2742 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2743
2744 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2745
2746 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2747
2748 * docs/grub.texi (Environment): Document cmdpath.
2749
2750 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2751
2752 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2753 Remove "unused" attribute from arguments, they are used.
2754
2755 2013-11-15 Colin Watson <cjwatson@debian.org>
2756
2757 * .gitignore: Only ignore grub-mk* at the top level.
2758
2759 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2760
2761 * util/grub-reboot.in (usage): Fix a typo.
2762
2763 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 Replace libgcc version of ctz with our own.
2766
2767 On upcoming arm64 port libgcc ctz* are not usable in standalone
2768 environment. Since we need ctz* for this case and implementation is
2769 in C we may as well use it on all concerned platforms.
2770
2771 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * configure.ac: Probe for linking format rather than guessing it based
2774 on target_os.
2775
2776 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2779 "1" prior to handoff.
2780
2781 Reported by: M A Young.
2782
2783 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2784
2785 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2786 \0 to all files.
2787
2788 Reported by: M A Young.
2789
2790 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2793 compilation on NetBSD.
2794
2795 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * acinclude.m4: Don't add -P on initial nm test.
2798
2799 Note: even though this patch postdates Andrey's it bears 14 Nov as
2800 date due to timezone difference.
2801
2802 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2803
2804 * grub-core/Makefile.core.def (signature_test): Add missing
2805 tests/signatures.h.
2806
2807 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2808
2809 * util/grub-install_header: Set localedir here, since this file is
2810 where it's used.
2811 * util/grub-install.in: Remove setting of localedir.
2812 * util/grub-mkrescue.in: Likewise.
2813
2814 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2817
2818 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * configure.ac: Move nm checks to the end.
2821 Call grub_PROG_NM_WORKS.
2822 * acinclude.m4: New check grub_PROG_NM_WORKS.
2823 Use $TARGET_CFLAGS -c when compiling test binary.
2824
2825 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2826
2827 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2828 unused variables.
2829
2830 2013-11-14 Matthew Garrett <mjg@redhat.com>
2831
2832 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2833 cmdpath to firmware directory.
2834
2835 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2838 at the start of second iteration.
2839
2840 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2841
2842 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2843
2844 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * Makefile.am (default_payload.elf): New target for easier coreboot
2847 build.
2848
2849 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2852 clang (not necessarry with -no-integrated-as).
2853 * include/grub/symbol.h [__arm__]: Likewise.
2854
2855 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * configure.ac: Use -no-integrated-as on arm with clang.
2858 * INSTALL: Mention ARM compilation with clang.
2859
2860 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2863 -mthumb-interwork.
2864
2865 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2866
2867 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2868 code for indirect block handling.
2869
2870 Saves 185 bytes on compressed image.
2871
2872 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2873
2874 Fix make clean.
2875
2876 * Makefile.am: Remove build-grub-* in make clean.
2877
2878 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2879
2880 New files to gitignore.
2881
2882 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2883 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2884
2885 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2886
2887 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2888
2889 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2890
2891 * .gitignore: fix rules for .dep* and add *.a post git migration
2892
2893 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2894
2895 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2896 to match INSTALL.
2897
2898 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2899
2900 * grub-core/kern/misc.c: Don't redirect divisions in the
2901 GRUB_UTIL case.
2902 * include/grub/misc.h: Likewise.
2903
2904 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2905
2906 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2907 systems that require checking the return value of write.
2908
2909 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2910
2911 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2912 efibootmgr quiet when --debug is not used, rather than when it is.
2913
2914 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2915
2916 * gentpl.py (define_macro_for_platform_dependencies): Remove
2917 first (and thus unused) of two definitions for this function.
2918 (platform_dependencies): Likewise.
2919
2920 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2921
2922 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2923 functions, we only need to check this for the target, not the host.
2924 * configure.ac (grub_apple_cc): Likewise.
2925
2926 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2927
2928 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2929 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2930 asm to stay in arm even if surrounding is thumb.
2931
2932 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2933
2934 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2935 helper functions are needed for thumb.
2936
2937 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2938
2939 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2940 level / 3 division explicitly unsigned. Saves few bytes.
2941
2942 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2943
2944 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2945
2946 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2949 division.
2950
2951 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2954 grub_uboot_boot_data to asm part.
2955
2956 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2959 literal load.
2960 (grub_uboot_syscall): Save/restore r9 and align stack.
2961
2962 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
2965
2966 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
2969 occurencies with END.
2970
2971 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2972
2973 * util/grub-editenv.c (help_filter, argp): Document how to delete
2974 the whole environment block.
2975 Reported by Dan Jacobson. Fixes Debian bug #726265.
2976
2977 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2978
2979 * docs/grub.texi (Internationalisation, Supported kernels): Fix
2980 sectioning.
2981
2982 2013-11-13 Josh Triplett <josh@joshtriplett.org>
2983
2984 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
2985 increment/decrement.
2986
2987 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
2990 compiling with clang.
2991
2992 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
2995 ".".
2996
2997 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2998
2999 Redirect all divisions to grub_divmod64.
3000
3001 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3004
3005 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 Add missing includes of loader.h.
3008
3009 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * configure.ac: Allow disabling themes.
3012
3013 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3014
3015 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3016
3017 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3020 until it becomes operational.
3021
3022 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 * grub-core/Makefile.core.def (legacy_password_test): Disable
3025 on platforms where no legacycfg is compiled.
3026 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3027 load legacy_password_test.
3028
3029 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3032
3033 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3036
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3038
3039 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3040 strict-aliasing warning.
3041 (fsync): Silence cast warning.
3042
3043 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 * grub-core/commands/verify.c: Remove variable length arrays.
3046 Load gcry_dsa/gcry_rsa automatically.
3047
3048 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3049
3050 * grub-core/tests/signature_test.c: New test.
3051
3052 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3053
3054 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3055 API.
3056
3057 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3060 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3061
3062 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3065
3066 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3067
3068 * grub-core/fs/proc.c: Allow \0 in proc files.
3069
3070 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3073
3074 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3077
3078 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/fs/ext2.c: Remove variable length arrays.
3081
3082 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3083
3084 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3085 length arrays.
3086
3087 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3090 * grub-core/disk/cryptodisk.c: Likewise.
3091 * grub-core/disk/geli.c: Likewise.
3092 * grub-core/disk/luks.c: Likewise.
3093
3094 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3095
3096 * grub-core/tests/legacy_password_test.c: New test.
3097 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3098
3099 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100
3101 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3102
3103 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/tests/pbkdf2_test.c: New test.
3106
3107 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3110
3111 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/io/lzopio.c: Remove variable length arrays.
3114
3115 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * include/grub/crypto.h: Add maximums on hash size and cipher block
3118 size.
3119
3120 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3121
3122 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3123
3124 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125
3126 * grub-core/tests/xnu_uuid_test.c: New test.
3127
3128 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3129
3130 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3131 covers it).
3132
3133 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/commands/hashsum.c: Remove variable length arrays.
3136
3137 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3138
3139 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3140 condition.
3141 * tests/grub_func_test.in: Increase memory allocation.
3142
3143 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3144
3145 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3146 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3147 sys/mount.h.
3148
3149 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3150
3151 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3152 (grub_util_get_fd_size_os): ...this.
3153 (grub_hostdisk_flush_initial_buffer): New empty function.
3154
3155 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3156
3157 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3158 without --defined-only.
3159
3160 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3163 rip-relative addressing in prologue.
3164
3165 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3168 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3169
3170 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3171
3172 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3173 Add missing semicolon.
3174
3175 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3178
3179 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * configure.ac: Check for lzma.h for enabling liblzma and allow
3182 manual disabling.
3183
3184 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3185
3186 Add missing includes of loader.h.
3187
3188 2013-11-11 Fam Zheng <famcool@gmail.com>
3189
3190 * util/grub.d/30_os-prober.in: Add minix entry.
3191
3192 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3195 right buffer for temporary load.
3196
3197 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3200
3201 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3204 payload.
3205
3206 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3209 not Types.h.
3210 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3211 environment.
3212 (LzmaDec_InitDicAndState): Make static.
3213
3214 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3217
3218 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3221
3222 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3223
3224 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * docs/grub-dev.texi: Replace bzr references with git ones.
3227
3228 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3229
3230 * docs/grub.texi (Simple configuration): Remove reference to
3231 grub-reboot from saved default entry description - grub-default
3232 does not use it anymore.
3233
3234 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3237 compiled with.
3238
3239 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3240
3241 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3242
3243 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 Fix grub_machine_fini bitrot.
3246
3247 Reported by: Glenn Washburn.
3248
3249 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3250
3251 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3252
3253 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3254
3255 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3256 -DELF.
3257 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3258 instead of ELF*.
3259
3260 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3263 Add -march=core2 when testing compile of efiemu64.
3264
3265 Thanks Andrey Borzenkov for spotting this.
3266
3267 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3270 XEN PV environment and load kernels.
3271
3272 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3273
3274 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3275 * grub-core/loader/multiboot_mbi2.c: Likewise.
3276
3277 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3280 handling.
3281
3282 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3283
3284 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3285
3286 Tested by: Denis 'GNUtoo' Carikli.
3287
3288 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3291
3292 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3293
3294 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3295 Use to get rounded angle rather than truncated.
3296
3297 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3298
3299 * grub-core/term/serial.c: Add option for enabling/disabling
3300 RTS/CTS flow control.
3301
3302 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3305 divisions.
3306
3307 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3308
3309 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3310 Use grub_fatal rather than divide by zero.
3311 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3312
3313 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3316 truncate.
3317 (grub_fixed_fsf_divide): Likewise.
3318
3319 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3320
3321 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3322 division by-zero and senseless negative divisions.
3323
3324 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3325
3326 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3327 division by-zero and senseless negative divisions.
3328 (circprog_set_property): Don't accept negative num_ticks.
3329
3330 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3331
3332 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3333 division by-zero and senseless negative divisions.
3334
3335 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 * configure.ac: Use elf_*_fbsd on kfreebsd.
3338
3339 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 * grub-core/tests/div_test.c: New test.
3342
3343 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3344
3345 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3346 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3347 * grub-core/gfxmenu/view.c: Likewise.
3348 * grub-core/video/fb/video_fb.c: Introduce new functions:
3349 grub_video_set_area_status, grub_video_get_area_status,
3350 grub_video_set_region, grub_video_get_region.
3351 * grub-core/video/bochs.c: Likewise.
3352 * grub-core/video/capture.c: Likewise.
3353 * grub-core/video/video.c: Likewise.
3354 * grub-core/video/cirrus.c: Likewise.
3355 * grub-core/video/efi_gop.c: Likewise.
3356 * grub-core/video/efi_uga.c: Likewise.
3357 * grub-core/video/emu/sdl.c: Likewise.
3358 * grub-core/video/radeon_fuloong2e.c: Likewise.
3359 * grub-core/video/sis315pro.c: Likewise.
3360 * grub-core/video/sm712.c: Likewise.
3361 * grub-core/video/i386/pc/vbe.c: Likewise.
3362 * grub-core/video/i386/pc/vga.c: Likewise.
3363 * grub-core/video/ieee1275.c: Likewise.
3364 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3365 * include/grub/video.h: Likewise.
3366 * include/grub/video_fb.h: Likewise.
3367 * include/grub/fbfill.h: Updated render_target structure.
3368 grub_video_rect_t viewport, region, area
3369 int area_offset_x, area_offset_y, area_enabled
3370 * include/grub/gui.h: New helper function
3371 grub_video_bounds_inside_region.
3372 * docs/grub-dev.texi: Added information about new functions.
3373
3374 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3377 for alignment.
3378
3379 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3382 missing attribute.
3383 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3384
3385 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3388 simple division on arm and ia64.
3389
3390 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3393 link with libgcc.
3394
3395 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3398
3399 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3402 prefix symbol, not @.
3403
3404 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * INSTALL: Add note about older gcc and clang.
3407
3408 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3411
3412 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3415 NULL pointer dereference.
3416
3417 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3418
3419 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3420 clang.
3421
3422 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3425 warnings.
3426
3427 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3430 function.
3431 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3432 * grub-core/disk/geli.c (ascii2hex): Likewise.
3433
3434 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3435
3436 * configure.ac: Run linker tests without -Werror.
3437 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3438 Change all occurences of -static-libgcc resp -lgcc to
3439 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3440
3441 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3444
3445 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 Allow compiling with clang (not really supported though).
3448
3449 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3450 unconditionally.
3451 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3452 Add -mrtd -mregparm=3 on i386 when not using clang.
3453 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3454
3455 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3458 bindings.
3459 * grub-core/lib/reed_solomon.c: Likewise.
3460 * include/grub/i386/gdb.h: Likewise.
3461 * include/grub/i386/pc/int.h: Likewise.
3462 * include/grub/i386/pc/pxe.h: Likewise.
3463 * include/grub/ieee1275/ieee1275.h: Likewise.
3464
3465 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 Import libgcrypt 1.5.3.
3468
3469 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 * configure.ac: Don't add -Wcast-align on x86.
3472
3473 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3474
3475 * configure.ac: Add -freg-struct-return on all platforms that
3476 support it.
3477
3478 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 * acinclude.m4: Use -Werror on parameter tests.
3481 * configure.ac: Likewise.
3482
3483 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3486
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3488
3489 * configure.ac: Check that -malign-loops works rather than assuming that
3490 either -falign-loops or -malign-loops work.
3491
3492 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3495
3496 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * configure.ac: Prevent cflags leaking to subsequent tests by always
3499 resetting cflags to target_cflags in target tests.
3500
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3502
3503 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3504 function.
3505
3506 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507
3508 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3509
3510 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3513
3514 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3515
3516 * grub-core/normal/cmdline.c (grub_cmdline_get):
3517 Remove nested functions.
3518
3519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3520
3521 * tests/test_sha512sum.in: Make it work on emu.
3522
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3526 functions.
3527 (grub_bidi_line_logical_to_visual): Likewise.
3528
3529 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 Remove vestiges of -Wunsafe-loop-optimisations.
3532
3533 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3534 -Wno-unsafe-loop-optimisations.
3535 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3536 pragma.
3537 * grub-core/io/gzio.c: Likewise.
3538 * grub-core/script/parser.y: Likewise.
3539 * grub-core/script/yylex.l: Likewise.
3540 * util/grub-mkfont.c: Likewise.
3541
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 * util/grub-mkfont.c (process_cursive): Remove nested function.
3545
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3549 (grub_boot_time): Likewise.
3550
3551 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * include/grub/symbol.h (FUNCTION): Use @function rather than
3554 "function".
3555 (VARIABLE): Likewise.
3556
3557 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3560
3561 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3564 (parse_dhcp_vendor): Likewise.
3565
3566 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3569
3570 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3573 Define after defining type and not before.
3574
3575 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3578 type.
3579 (grub_gcm_decrypt): Likewise.
3580 (algo_decrypt): Likewise.
3581 (grub_zfs_decrypt_real): Transform error type.
3582
3583 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3586
3587 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3590 (grub_usbms_cbi_reset): Likewise.
3591 (grub_usbms_bo_reset): Likewise.
3592 (grub_usbms_reset): Likewise.
3593 (grub_usbms_attach): Likewise.
3594 (grub_usbms_transfer_cbi): Likewise.
3595
3596 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3597
3598 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3599 "checksum = checksum;".
3600
3601 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3604 entry_type.
3605
3606 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3607
3608 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3609 BIOS disk check.
3610
3611 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3614 type.
3615 (grub_ehci_fini_hw): Likewise.
3616 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3617
3618 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3621 return grub_usb_err_t for cosistency. All users updated.
3622
3623 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3626 assigning to itself.
3627
3628 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3629 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3630
3631 Issue separate DNS queries for ipv4 and ipv6
3632
3633 Adding multiple questions on a single DNS query is not supportted by
3634 most DNS servers. This patch issues two separate DNS queries
3635 sequentially for ipv4 and then for ipv6.
3636
3637 Fixes: https://savannah.gnu.org/bugs/?39710
3638
3639 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3640 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3641 * (grub_net_dns_lookup): Now using separated dns packages.
3642 * (grub_cmd_nslookup): Add error condition.
3643 * (grub_cmd_list_dns): Print DNS option.
3644 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3645 --prefer-ipv4, and --prefer-ipv6.
3646 * include/grub/net.h (grub_dns_option_t): New enum.
3647 * (grub_net_network_level_address): option added.
3648
3649 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3650
3651 * grub-core/video/fb/video_fb.c: Merge two blit functions
3652 into one.
3653
3654 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/term/terminfo.c: Add sequences for home and end.
3657
3658 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3661 graphics console.
3662
3663 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3666 add mode 0x12.
3667
3668 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3671 e-mail by Per Öberg.
3672
3673 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3676 name.
3677
3678 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3679
3680 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3681 emu platforms.
3682 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3683
3684 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3685
3686 * docs/grub.texi: Document usage of menuentry id.
3687
3688 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3691
3692 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3693
3694 * grub-core/commands/i386/nthibr.c: New command.
3695
3696 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3697
3698 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3699
3700 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3703 coordinate.
3704
3705 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 Support GRUB_DISABLE_SUBMENU config.
3708
3709 Inspired by patch from Prarit Bhargava.
3710
3711 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 * docs/grub.texi: Mention RSA support.
3714
3715 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3716
3717 * grub-core/commands/verify.c: Add RSA support.
3718
3719 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3722 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3723 device is known to be ATAPI.
3724
3725 2013-11-03 Mike Frysinger <vapier>
3726
3727 * configure.ac: Don't add target-prefix.
3728
3729 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3730
3731 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3732 variables.
3733
3734 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3737 if language is English.
3738
3739 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3742
3743 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 * configure.ac: Don't add -m32/-m64 on emu.
3746
3747 2013-11-02 neil
3748
3749 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3750 broken linux headers.
3751
3752 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3755
3756 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3759 Reed-Solomon recovery if more than half of redundancy info is 0.
3760
3761 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * util/grub-mount.c: Handle symlinks to directories.
3764
3765 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3768 find_file recursively for symlink.
3769
3770 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 * tests/util/grub-shell.in: Copy themes.
3773
3774 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3777
3778 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * configure.ac: Use 0x8000 for address instead of 8000.
3781
3782 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3785 signature.
3786
3787 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3790 variable.
3791
3792 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3793
3794 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3795
3796 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3797
3798 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3799 file_progress_read_hook.
3800 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3801
3802 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3803
3804 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3805 and double.
3806
3807 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3808
3809 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3810
3811 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3812
3813 Rewrite blocklist functions in order to get progress when
3814 reading large extents and decrease amount of blocklist hook calls.
3815
3816 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3817
3818 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3819 of SI suffixes.
3820
3821 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3822
3823 Support --base-clock for serial command to handle weird cards with
3824 non-standard base clock.
3825
3826 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3827
3828 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3829 strncpy.
3830 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3831 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3832 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3833 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3834 + strcpy rather than strncpy.
3835
3836 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3839 (check_pool_label): Likewise. Fixes overflow.
3840 (nvlist_find_value): Fix comparison.
3841
3842 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3845 more appropriate functions.
3846
3847 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3848
3849 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3850 realloc.
3851
3852 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3853
3854 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3855
3856 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3859 on core size.
3860
3861 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3864
3865 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3868 (initialize_tables): reset tl and td to NULL after freeing.
3869
3870 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3873
3874 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3877 of supported tags.
3878
3879 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3882
3883 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3884
3885 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3886 quirks.
3887
3888 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3889
3890 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3891 a page in protected space.
3892
3893 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3896 allocate space for zero-sized modules.
3897
3898 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3901
3902 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3903
3904 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3905
3906 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3909 safeguards. Fixes a crash with i386/pc/console.c.
3910
3911 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3914 and grub_hostfs_init.
3915
3916 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3919 windows method on other platforms without good stat as well.
3920
3921 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3924
3925 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3926
3927 Make / in btrfs refer to real root, not the default volume.
3928 Modify mkrelpath to work even if device is mounted with subvolid option.
3929
3930 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3931
3932 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3933 extra_dist.
3934 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3935 extra_dist.
3936
3937 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3938
3939 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3940 fails.
3941
3942 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3943
3944 * docs/autoiso.cfg: New file.
3945
3946 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3947
3948 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3949 COND_GRUB_PE2ELF conditions.
3950
3951 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3954 "vnd", "rd" and "fd" disks.
3955
3956 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 Move grub_disk_write out of kernel into disk.mod.
3959
3960 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
3963 handling.
3964
3965 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * grub-core/kern/misc.c (grub_abort): Make static
3968
3969 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3970
3971 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
3972 transform invalid unicode codepoints.
3973
3974 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
3977 \0 checking.
3978
3979 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
3982
3983 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 Consolidate cpuid code.
3986
3987 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 Move cpuid code to cpuid.h and TSC code to tsc.c.
3990
3991 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3992
3993 * util/grub.d/00_header.in: Don't use LANG if it's not set.
3994
3995 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
3996
3997 * util/grub-mkconfig.in: Replace $0 with $self.
3998 * util/grub-reboot.in: Likewise.
3999 * util/grub-set-default.in: Likewise.
4000
4001 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4002
4003 * docs/osdetect.cfg: New file.
4004
4005 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4006
4007 * tests/util/grub-shell.in: Add new --debug option.
4008
4009 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4010
4011 * tests/test_unset.in: New test.
4012
4013 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4014
4015 * tests/test_sha512sum.in: New test.
4016
4017 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4020 * include/grub/misc.h: Remove strncat.
4021 * grub-core/lib/posix_wrap/string.h: Likewise.
4022
4023 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4024
4025 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4026 Try to handle more than 0xFFFF packets.
4027 Reported by: Bernhard Übelacker <bernhardu>.
4028 He also spotted few overflows in first version of this patch.
4029
4030 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * tests/date_unit_test.c: New test.
4033
4034 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4037 of first three years after start of validity of unixtime.
4038
4039 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4040
4041 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4042 division as the one making more sense.
4043 (update_screen): Likewise.
4044 (complete): Likewise.
4045
4046 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4049
4050 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4051
4052 Make char and string width grub_size_t rather than grub_ssize_t.
4053
4054 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4055
4056 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4057 unsigned.
4058 (grub_history_replace): Likewise.
4059
4060 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4061
4062 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4063 appropriate.
4064
4065 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4068 appropriate.
4069
4070 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4073 Use unsigned divisions rather than signed variants.
4074
4075 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4076
4077 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4078 unsigned arithmetics.
4079 Add missing break.
4080
4081 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4082
4083 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4084
4085 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4086
4087 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4088 rather than signed one.
4089 (recovery): Likewise.
4090
4091 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4094
4095 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4098 than signed.
4099
4100 2013-10-25 Jon McCune <jonmccune@google.com>
4101
4102 * docs/grub.texi: Cleanup security documentation around signatures.
4103
4104 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4105
4106 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4107
4108 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4111 than int.
4112
4113 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4114
4115 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4116 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4117 functions when compiling for kernel.
4118
4119 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4122 unsigned long long when using %llu.
4123
4124 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4125
4126 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4127 terminal after updating progress.
4128
4129 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4132 argument. We don't disable Gate A20 in this code.
4133
4134 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4137 Conceptually based on change in branch "vbe-on-coreboot".
4138
4139 2013-10-24 Robert Millan <rmh@gnu.org>
4140
4141 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4142 numeric constants with their symbolic equivalent.
4143 Taken from branch "vbe-on-coreboot".
4144
4145 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4146
4147 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4148
4149 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4152 divmod64 for offset division.
4153
4154 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4155
4156 Rename .bzrignore to .gitignore. Add "*.o" rule.
4157
4158 * .bzrignore: Renamed to...
4159 * .gitignore: ...this.
4160
4161 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4162
4163 Add new progress module that displays the load progress of files.
4164
4165 * grub-core/lib/progress.c: New file.
4166 * grub-core/Makefile.core.def (progress): New module.
4167 * grub-core/kern/file.c (grub_file_open): File name added.
4168 * (grub_file_read): Progress hook added.
4169 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4170 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4171 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4172 * include/grub/file.h (struct grub_file): Add progress module members.
4173 * include/grub/term.h (struct grub_term_output): Likewise.
4174 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4175 Terminal velocity added.
4176 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4177 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4178 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4179 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4180 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4181 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4182 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4183 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4184 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4185 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4186 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4187 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4188
4189 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 Verify signatures of signatures unless --skip-sig is specified.
4192
4193 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4194
4195 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4196 \0 checking.
4197
4198 Saves 70 bytes on compressed image.
4199
4200 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4203 check.
4204
4205 Saves 10 bytes on compressed image.
4206
4207 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * grub-core/kern/misc.c (grub_isprint): Move to ...
4210 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4211
4212 Saves 20 bytes on compressed image due to remving exporting.
4213
4214 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4217
4218 Saves 5 bytes on compressed image.
4219
4220 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4221
4222 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4223 function get_utf8.
4224
4225 Saves 379 bytes on compressed image.
4226
4227 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4230
4231 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4232
4233 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4234
4235 Saves 40 bytes on compressed image.
4236
4237 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4240 mask rather than 64-bit type.
4241
4242 Saves 20 bytes on compressed image.
4243
4244 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4247 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4248
4249 Saves 273 bytes on compressed image.
4250
4251 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4254 variable length arrays.
4255
4256 Saves 50 bytes on compressed image.
4257
4258 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4259
4260 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4261
4262 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4263
4264 * grub-core/fs/ufs.c: Remove variable length arrays.
4265
4266 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4267
4268 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4269
4270 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/fs/zfs.c: Remove variable length arrays.
4273 Reduces zfs.mod by 160 bytes (208 compressed).
4274
4275 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4278
4279 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4280
4281 * grub-core/net/arp.c: Remove variable length arrays.
4282 * grub-core/net/bootp.c: Likewise.
4283 * grub-core/net/dns.c: Likewise.
4284 * grub-core/net/icmp6.c: Likewise.
4285 * grub-core/net/net.c: Likewise.
4286
4287 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * grub-core/fs/ntfs.c: Remove variable length arrays.
4290 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4291 compressed).
4292
4293 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4294
4295 * grub-core/fs/hfs.c: Remove variable length arrays.
4296 Reduces hfs.mod by 8 bytes (52 compressed).
4297
4298 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/fs/udf.c: Remove variable length arrays.
4301 Increases udf.mod by 128 bytes (but decreases by 13 when
4302 compressed).
4303
4304 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/fs/iso9660.c: Remove variable length arrays.
4307 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4308 compressed).
4309
4310 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4311
4312 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4313 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4314 compressed).
4315
4316 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * grub-core/fs/xfs.c: Remove variable length arrays.
4319 Reduces xfs.mod by 40 bytes (43 compressed).
4320
4321 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4322
4323 * grub-core/fs/fshelp.c: Remove variable length arrays.
4324 Reduces fshelp.mod by 116 bytes (23 compressed).
4325
4326 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4327
4328 * grub-core/normal/completion.c: Remove variable length arrays.
4329 * grub-core/normal/menu_entry.c: Likewise.
4330
4331 Reduces normal.mod by 496 bytes.
4332
4333 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4336 by 356 bytes (158 compressed).
4337
4338 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4341 by 364 bytes (169 compressed).
4342
4343 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4346 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4347 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4348
4349 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4352 bitmasks to small structures of size chosen to fit in registers.
4353
4354 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * conf/Makefile.common: Use -freg-struct-return on i386. This
4357 decreases code size and improves performance.
4358
4359 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4360
4361 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4362
4363 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4366 "(null)" string.
4367 Simplify expressions to save around 256 bytes in kernel.img.
4368 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4369
4370 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4371
4372 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4373 Use GRUB_UTIL_FD_O_* rather than O_*.
4374
4375 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4376
4377 Add haiku-specific functions.
4378
4379 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4380
4381 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4382
4383 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4384
4385 Move stat () and device mode checking into OS-dependent files as
4386 long as performance doesn't suffer.
4387
4388 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4389
4390 Split make_system_path_relative_to_its_root into separate file
4391 relpath.c from getroot.c as it's common between unix and haiku
4392 but otherwise haiku doesn't use any functions from unix getroot.c.
4393
4394 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4397 New function.
4398 (grub_util_is_special_file): Likewise.
4399
4400 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4403 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4404
4405 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4408 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4409
4410 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4413 (load_image): Likewise.
4414
4415 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4416
4417 * util/grub-render-label.c: Move backend part to ...
4418 * util/render-label.c: ... here.
4419
4420 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4423 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4424
4425 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4428
4429 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4432 CD-ROM in case when it's declared as having subpartitions.
4433
4434 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 Don't add -lm on haiku.
4437
4438 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4439 and empty on haiku.
4440 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4441 -lm.
4442
4443 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4444
4445 * configure.ac: Use -melf_*_haiku as target on haiku.
4446
4447 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * Makefile.util.def: Add util/setup.c to extra_dist.
4450
4451 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4452
4453 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4454 unknown types through.
4455
4456 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4459 (grub_util_check_char_device): Likewise.
4460 * include/grub/emu/getroot.h: Likewise.
4461
4462 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4465 memset rather than inline static function.
4466
4467 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4470 not doing embedded decompressor.
4471
4472 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4475 shadowing.
4476 * grub-core/kern/disk.c: Likewise.
4477 * grub-core/kern/misc.c: Likewise.
4478 * include/grub/parser.h: Likewise.
4479 * include/grub/script_sh.h: Likewise.
4480 * include/grub/zfs/zfs.h: Likewise.
4481
4482 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4485
4486 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4489 defined before trying to use it.
4490
4491 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4494 warning.
4495
4496 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4499 Use __unused__ rather than __used__ on gcc < 3.2.
4500
4501 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4504 gcc < 4.0.
4505 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4506
4507 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4508
4509 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4510
4511 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4512
4513 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4514 * include/grub/emu/misc.h: Likewise.
4515
4516 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4519 cur_color.
4520
4521 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4522
4523 * grub-core/tests/checksums.h: Regenerated due to progress bar
4524 get_minimal_size changes.
4525
4526 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4527
4528 Added `tr' command support.
4529
4530 * grub-core/commands/tr.c: New file.
4531 * grub-core/Makefile.core.def: Build rules for new module.
4532
4533 * tests/grub_cmd_tr.in: New test.
4534 * Makefile.util.def: Build rules for new test.
4535
4536 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4537
4538 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4539
4540 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4541
4542 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4543 * docs/gurb.texi: Likewise.
4544
4545 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4546
4547 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4548 Pixmap highlighted section with east and west slices was displayed
4549 incorrectly due to negative width of the central slice.
4550
4551 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4552
4553 * docs/grub.texi: Graphical options information update.
4554 Removed outdated. Updated current. Inserted missed.
4555
4556 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4557
4558 * docs/grub.texi: Mention few new platform-specific commands.
4559
4560 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4561
4562 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4563 currently used so this doesn't really have any effect.
4564 Reported by: Douglas Ray <dougray>
4565
4566 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4567
4568 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4569 compilation but prevents gcc from displaying messages in non-Latin
4570 alphabets.
4571 * conf/Makefile.common: Likewise.
4572
4573 2013-10-16 Hiroyuki YAMAMORI
4574
4575 Handle Japanese special keys.
4576 Reported by: Hiroyuki YAMAMORI.
4577 Codes supplied by: Hiroyuki YAMAMORI.
4578
4579 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4580
4581 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4582
4583 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4584
4585 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4586 * docs/grub.texi: Likewise.
4587
4588 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4591 value in case of incomplete read.
4592 (grub_util_fd_write): Likewise.
4593
4594 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4595
4596 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4597
4598 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * util/grub-editenv.c (create_envblk_file): More from here ...
4601 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4602
4603 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4606 canonicalize file name before doing the rest.
4607
4608 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4611 mingw32.
4612
4613 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 Define grub_util_is_directory/regular/special_file and
4616 use OS-dependent versions rather than to rely on stat().
4617
4618 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * util/grub-mkimage.c: Move backend part to ...
4621 * util/mkimage.c: ... here.
4622
4623 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 Allow compilation with mingw64 albeit with warnings due to lack of
4626 %llx/%llu.
4627
4628 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4629 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4630 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4631 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4632 on mingw64.
4633 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4634
4635 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636
4637 Remove leftover references to some of the system headers.
4638
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4642 read.
4643
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4647 of strerror.
4648
4649 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 Split out blocklist retrieving from setup.c to
4652 grub-core/osdep/blocklist.c and add windows implementation since
4653 generic version doesn't work on NTFS on Windows due to aggressive
4654 unflushable cache.
4655
4656 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4657
4658 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4659 files.
4660
4661 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4662
4663 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4664 Cut tailing newline. Remove arbitrary limitation. Always use
4665 grub_util_tchar_to_utf8.
4666
4667 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4668
4669 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4670 * tests/printf_unit_test.c (printf_test): Add %% tests.
4671 Reported by: Paulo Flabiano Smorigo.
4672
4673 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4674
4675 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4676 implement fsync.
4677
4678 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4679
4680 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4681 use nvlist_lookup_string and don't use nvlist_print.
4682
4683 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4686 closedir to handle filename charset translation.
4687
4688 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4689
4690 * include/grub/emu/hostdisk.h: Move file operations to
4691 * include/grub/emu/hostfile.h: ... here.
4692
4693 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4694
4695 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4696 unicode path.
4697
4698 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4699
4700 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4701
4702 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4705 and remove export.h.
4706
4707 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/kern/emu/error.c: Removed.
4710 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4711 explicitly as it's already in libgnu.a.
4712
4713 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4716 config-util.h include.
4717
4718 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 Split emunet into platform-dependent and GRUB-binding parts. Keep
4721 platform-dependent part in kernel for easy access to OS functions.
4722
4723 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4726 open/read/write.
4727
4728 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4729
4730 * grub-core/osdep/windows/emuconsole.c: New file.
4731
4732 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4733
4734 * conf/Makefile.extra-dist: Add osdep/*/init.c
4735
4736 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4737
4738 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4739
4740 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * util/grub-probe.c (probe): Separate different drives in hint-str
4743 by spaces and not newlines.
4744 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4745
4746 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4747
4748 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4749 Handle CD-ROMs.
4750
4751 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4752
4753 Pass-through unknown E820 types. It required reorganisation of mmap
4754 module.
4755
4756 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4757
4758 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4759
4760 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4763 fseeko.
4764
4765 2013-10-14 qwertial <qwertial>
4766
4767 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4768
4769 2013-10-14 Jon McCune <jonmccune@google.com>
4770
4771 * docs/grub.texi: Document new signatures possibility.
4772
4773 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4776
4777 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4780 missing prototype.
4781 (grub_util_tchar_to_utf8): Likewise.
4782
4783 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4786 * grub-core/kern/emu/main.c: Add missing include.
4787 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4788 Don't call grub_util_init_nls.
4789 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4790 Likewise.
4791
4792 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4793
4794 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4795 stat.
4796
4797 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4798
4799 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4800
4801 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4802
4803 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4804
4805 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 Add a wrapper for fopen. On unix-like systems just pass-through. On
4808 windows use unicode version.
4809
4810 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 Move set_program_name and init_nls to host_init. On windows
4813 fix in this fuction console and argument charset as well.
4814
4815 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4816
4817 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4818 GRUB_ENABLE_CRYPTODISK.
4819
4820 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4821 GRUB_ENABLE_CRYPTODISK.
4822 * util/grub-mkconfig_lib.in: Likewise.
4823
4824 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4825
4826 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4827
4828 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4829
4830 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4831 error when enabling debug.
4832
4833 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4834
4835 * configure.ac: Use -melf_*_obsd on openbsd.
4836
4837 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4840
4841 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 * include/grub/misc.h: Use gnu_printf rather than printf as format
4844 template since our functions are independent of libc.
4845
4846 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4847
4848 * util/grub-setup.c (setup): Move copying of partition table as
4849 futher up as possible to avoid possible overwrite by floppy routines.
4850
4851 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4852
4853 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4854
4855 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4856
4857 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4858 * docs/grub.texi: Likewise.
4859
4860 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4861
4862 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4863 it's mostly unused. Move vestiges to the callers.
4864
4865 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4868 version of salt and hash. Use grub_snprintf rather than snprintf.
4869
4870 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * docs/grub.texi: Fix problem with braces.
4873
4874 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 * conf/Makefile.extra-dist: Fix extra-dist list.
4877 * grub-core/Makefile.core.def: Likewise.
4878
4879 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4880
4881 * docs/grub.texi: Document disk names used on Windows and AROS.
4882
4883 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4884
4885 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4886 with AROS devs.
4887 * grub-core/osdep/aros/hostdisk.c: Likewise.
4888
4889 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4890
4891 Avoid including hostfile.h when not necessarry as it pulls
4892 in OS-specific headers which may redefine generic names
4893 like "far".
4894
4895 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4896
4897 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4898 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4899 scrollbar_bottom_pad
4900 * docs/grub.texi: Likewise.
4901
4902 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4903
4904 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4905
4906 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4909
4910 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4911
4912 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4913 Removed.
4914 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4915 Made static.
4916
4917 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4920 leftover.
4921
4922 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 Move OS-specific driver configuration to grub_util_fd_open. This
4925 moves OS-dependent parts from kern/emu/hostdisk.c to
4926 grub-core/osdep/*/hostdisk.c.
4927
4928 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4929
4930 * util/grub-mkimage.c (generate_image): Use size_t instead of
4931 grub_size_t.
4932 * util/grub-mkimagexx.c (locate_sections): Likewise.
4933 (load_image): Likewise.
4934
4935 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4938 size_t.
4939 (grub_util_write_image): Likewise.
4940
4941 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4942
4943 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4944 get random when no RNG is available.
4945 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4946
4947 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4948
4949 * include/grub/util/lvm.h: Removed.
4950
4951 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4954 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4955
4956 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4957
4958 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4959
4960 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4961
4962 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
4963
4964 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4965
4966 * grub-core/net/drivers/emu/emunet.c: Move to ..
4967 * grub-core/osdep/linux/emunet.c: ..here.
4968
4969 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * util/ieee1275/ofpath.c: Move to ...
4972 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
4973 * grub-core/osdep/basic/ofpath.c: ..here.
4974
4975 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4976
4977 Move password-querying (util-version) routines to grub-core/osdep.
4978
4979 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 Move sleep routines to grub-core/osdep.
4982
4983 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4984
4985 Move OS-dependent files to grub-core/osdep and document it.
4986
4987 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
4990 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
4991
4992 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4993
4994 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
4995
4996 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 * util/misc.c: Remove leftover inclusion of malloc.h.
4999
5000 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5001
5002 * include/grub/setjmp.h: Remove leftover GRUBOF.
5003
5004 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5005
5006 * util/raid.c: Fold into ...
5007 * util/getroot_linux.c: ... here. Make all functions static.
5008
5009 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5012 macros to GRUB ones.
5013
5014 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5015
5016 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5017 occasional bug. If there are too many boot entries or too low
5018 scrollbar height then we need to use another formula to calculate
5019 the position and size of the scrollbar thumb.
5020
5021 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5022
5023 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5024
5025 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5026
5027 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5028 * docs/grub.texi: Likewise.
5029
5030 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5031
5032 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5033 viewport.
5034
5035 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5036
5037 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5038 minimal width calculations.
5039
5040 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * docs/grub.texi: Update note on colors on emu console.
5043
5044 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5047 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5048 it's FS and not GRUB limitation.
5049
5050 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5051
5052 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5053
5054 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5055
5056 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5057
5058 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5059
5060 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5061 kernels by version order.
5062
5063 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5066
5067 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5068
5069 Add AROS hostdisk and getroot routines.
5070
5071 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5072
5073 Make cryptodisk and diskfilter probe data retrievable programmatically
5074 and not just printable.
5075
5076 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5077
5078 Split random retrieving code into separate files.
5079
5080 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5083 R_ARM_V4BX.
5084
5085 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5088 condition.
5089 * grub-core/tests/fake_input.c: Likewise.
5090 * grub-core/tests/cmdline_cat_test.c: Likewise.
5091
5092 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * grub-core/video/capture.c: Do not do finalization when .fini
5095 is called as there is explicit capture_end.
5096
5097 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5100 changing windows to avoid crash.
5101
5102 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5105
5106 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5107
5108 * po/exclude.pot: Add several strings to exclude.
5109
5110 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5111
5112 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5113
5114 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5115
5116 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5117 ./util/grub-gen-asciih.c to exclude list.
5118
5119 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5120
5121 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5122 and don't mark error strings for translation.
5123
5124 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5125
5126 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5127 properly in case of missing block size.
5128
5129 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5130
5131 * grub-core/lib/arm/setjmp.S: Add missing license section.
5132
5133 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * po/swiss.sed: Add replacement for key names and for term computer.
5136
5137 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5138
5139 * grub-core/gfxmenu/theme_loader.c: New global options for the
5140 theme background image handling. desktop-image-scale-method,
5141 desktop-image-h-align, desktop-image-v-align.
5142 * grub-core/gfxmenu/view.c: Likewise.
5143 * include/gfxmenu_view.h: Likewise.
5144 * include/bitmap_scale.h: Proportional scale functions introduced.
5145 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5146 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5147 cases of unexpected input variables for scale functions.
5148 * docs/grub.texi: Updated documentation for new options.
5149
5150 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5153
5154 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5155
5156 * grub-core/tests/checksums.h: Corrected due to changes in
5157 bilinear interpolation function.
5158
5159 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5160
5161 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5162 to eliminate artefacts in bilinear interpolation.
5163
5164 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/video/readers/tga.c: Support paletted tga.
5167
5168 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5169
5170 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5171 incorrect cbcr setting when in color mode.
5172
5173 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * grub-core/video/readers/png.c: Support paletted images and clean up
5176 greyscale support.
5177
5178 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5181 usage of wrong table which resulted in mishandling of 4-byte
5182 sequences.
5183
5184 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5185
5186 * grub-core/term/terminfo.c: Add Home and End key sequences.
5187
5188 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5189
5190 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5191 Fix formula for computing total number of bytes.
5192
5193 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5194
5195 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5196 image processing, fix big-endian and support grayscale.
5197
5198 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5199
5200 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5201 Correctly will with maximum transparency when using index color.
5202
5203 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * grub-core/video/readers/png.c: Support grayscale
5206
5207 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 * grub-core/video/readers/jpeg.c: Support grayscale.
5210
5211 2013-09-26 Jon McCune <jonmccune@google.com>
5212
5213 * grub-core/commands/loadenv.c: Support skipping signature check
5214 and variable names filtering.
5215
5216 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5219 * grub-core/kern/emu/hostfs.c: Likewise.
5220 * util/getroot_unix.c: Likewise.
5221
5222 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5225 Migrate all explicit defines to this new one.
5226
5227 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5228
5229 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5230 grub_util_fd_strerror when using grub_util_fd_*.
5231 (grub_util_fd_open_device): Likewise.
5232 (grub_util_biosdisk_read): Likewise.
5233 (grub_util_biosdisk_write): Likewise.
5234 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5235 (grub_util_fd_strerror): Likewise.
5236 (grub_util_fd_sync): Likewise.
5237 (grub_util_fd_close): Likewise.
5238 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5239 (grub_util_fd_close): Likewise.
5240 (grub_util_fd_strerror): Likewise.
5241 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5242 function proto rather than macro.
5243 (grub_util_fd_sync): Likewise.
5244 (grub_util_fd_open): Likewise.
5245 (grub_util_fd_strerror): New proto.
5246
5247 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5248
5249 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5250 platforms on which it doesn't work.
5251
5252 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5255 stat immediately to where it's used.
5256
5257 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5258
5259 * util/getroot.c (grub_util_check_block_device): Move to ...
5260 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5261 * util/getroot.c (grub_util_check_char_device): Move to ...
5262 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5263
5264 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5265
5266 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5267 disk closing logic.
5268
5269 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5270
5271 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5272
5273 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5274
5275 * docs/grub.texi (File name syntax): Document ZFS filenames
5276 (/volume@snapshot/...).
5277
5278 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5281 Always return full path. Fixes a problem with mkrelpath.
5282
5283 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5284
5285 * util/grub-install.in: Add GPT PReP support.
5286 * util/grub-probe.c (probe): Support GPT partition type.
5287 (main): Support -t gpt_parttype.
5288
5289 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5290
5291 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5292
5293 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5294
5295 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5296
5297 2013-09-23 Tim Hardeck <thardeck>
5298
5299 * util/grub.d/10_hurd.in: Filter out character for the class.
5300 * util/grub.d/10_kfreebsd.in: Likewise.
5301 * util/grub.d/10_linux.in: Likewise.
5302 * util/grub.d/20_linux_xen.in: Likewise.
5303
5304 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5305
5306 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5307 "changed".
5308
5309 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5310
5311 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5312 boot partition.
5313
5314 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5315
5316 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5317 doesn't use posix_wrap. Keep literal -fno-builtin however.
5318
5319 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5320
5321 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5322
5323 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5324 2013-09-23 neil
5325
5326 * configure.ac: Do not enable -Wmissing-noreturn as its
5327 usefulness is limited and creates problems on some OS notably with
5328 code generated by bison.
5329
5330 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5331 2013-09-23 neil
5332
5333 * configure.ac: Do not explicitly enable -Waddress as it's not
5334 supported by all gcc and when it is, it's already enabled by -Wall.
5335
5336 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5337
5338 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5339 desactivated use of EDID at all.
5340
5341 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5342 2013-09-23 neil
5343
5344 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5345 video if no text is available.
5346
5347 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5348 2013-09-23 neil
5349
5350 * configure.ac: Substitute TARGET_RANLIB.
5351
5352 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5353 2013-09-23 neil
5354
5355 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5356
5357 Based on patches from AROS.
5358
5359 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5360 2013-09-23 neil
5361
5362 * grub-core/Makefile.am: Override STRIP and RANLIB.
5363 * configure.ac: compute TARGET_RANLIB.
5364 * INSTALL: Document TARGET_RANLIB
5365
5366 Based on patches from AROS.
5367
5368 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5371 that floppies are unpartitioned.
5372
5373 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5376 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5377
5378 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5379
5380 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5381 less nice but more portable.
5382 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5383
5384 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5387 for cheat_fd.
5388 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5389 functions.
5390 (grub_cryptodisk_cheat_insert): Likewise.
5391 (grub_cryptodisk_close): Likewise.
5392
5393 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5394
5395 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5396 Use windows path for DEFAULT_DIRECTORY.
5397
5398 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5401 difference was likely just gcc version, not anything mingw-related.
5402
5403 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 Use Winapi on both cygwin and mingw32 to share more code between both.
5406
5407 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5408
5409 * util/grub-install.in: Add --grub-editenv option.
5410 * util/grub-install_header (grub_compress_file): Explicitly check for
5411 plain file to avoid cp error.
5412
5413 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5414
5415 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5416 names; fix LVM driver name (lvm, not lv).
5417 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5418 names.
5419
5420 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5423 files rather than one file with loads of #if's.
5424 * util/getroot.c: Likewise.
5425
5426 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5427
5428 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5429
5430 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5433 GNU/Hurd to the list of checked PRNG.
5434
5435 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5436
5437 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5438
5439 2013-09-21 Ales Nesrsta <starous@volny.cz>
5440
5441 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5442
5443 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5446 * grub-core/disk/lvm.c: Add LVM UUIDs.
5447 * util/getroot.c: Use LVM UUIDs whenever possible.
5448
5449 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5450
5451 * docs/grub.texi (Networking commands): Add documentation for
5452 network related commands.
5453
5454 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5455
5456 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5457 to determine if device is handled by devmapper.
5458 (convert_system_partition_to_system_disk): Likewise.
5459 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5460 already done in grub_util_open_dm.
5461
5462 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5463
5464 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5465 Clean up stack manipulation (sync_caches_armv*)
5466
5467 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5468
5469 * util/lvm.c: Remove since unused. Remove remaining references.
5470
5471 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 Handle the case of partitioned LVM properly.
5474
5475 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5476 Stop on meeting LVM, mpath or DMRAID.
5477 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5478 (read_device_map): Likewise.
5479 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5480 device is full disk rather than erroring out on LVM and similar cases.
5481
5482 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5483
5484 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5485
5486 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5489 4K before the end.
5490 Reported by: Leif Lindholm
5491
5492 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5493 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5494
5495 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5496 codes.
5497
5498 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5499
5500 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5501 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5502
5503 2013-09-18 Douglas Ray <dougray@cpan.org>
5504
5505 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5506 as secure.
5507
5508 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5509
5510 * docs/grub.texi: Fix broken link.
5511
5512 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5513
5514 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5515 to break endless loop.
5516
5517 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5518
5519 * util/grub-fstest.c: Fix several printf formats.
5520 * util/grub-mkimage.c: Likewise.
5521 * util/grub-mkimagexx.c: Likewise.
5522 * util/grub-script-check.c: Likewise.
5523
5524 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5525
5526 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5527 error.
5528
5529 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5530
5531 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5532
5533 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5536 removed in current versions cygwin_conv_*.
5537
5538 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 * configure.ac: Disable efiemu runtime on cygwin.
5541
5542 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5543
5544 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5545 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5546
5547 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5548
5549 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5550 error message.
5551
5552 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5553
5554 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5555 windows variant.
5556 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5557 data.
5558
5559 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5562 when on x86 and not cygwin.
5563 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5564 -Wl,-melf_x86_64.
5565
5566 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * configure.ac: Set CPP to build one when checkoing for freetype for
5569 build.
5570
5571 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5572
5573 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5574 [!GRUB_BUILD]: Remove has_argument.
5575
5576 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5579 Replace with a dummy.
5580
5581 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 * configure.ac: Don't change host_os from mingw to cygwin.
5584
5585 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5586
5587 * configure.ac: Change target_os from windows to cygwin.
5588
5589 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5592
5593 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5594 (build-grub-gen-asciih): Likewise.
5595 (build-grub-gen-widthspec): Likewise.
5596 * Makefile.util.def (grub-pe2elf): Remove.
5597 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5598 * configure.ac: Separate tests for build.
5599 Move ./build-grub-pe2elf to grub-core.
5600 Fix typo.
5601 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5602 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5603 defined.
5604 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5605 constants.
5606 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5607 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5608 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5609
5610 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5613 mingw32 as well based on grub_util_get_disk_size.
5614 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5615 grub_util_get_fd_size.
5616 (sync): Removed.
5617 (fsync): Moved to ...
5618 * grub-core/kern/emu/misc.c (fsync): ... here.
5619
5620 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * include/grub/mm.h (grub_extend_alloc): Remove.
5623 * grub-core/loader/i386/pc/plan9.c: Use own version of
5624 grub_extend_alloc with appropriate types.
5625
5626 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5627
5628 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5629
5630 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5633
5634 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 Fix dependencies on cygwin.
5637
5638 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5639 dependencies when used and defined.
5640 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5641
5642 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5643
5644 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5645 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5646
5647 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5650 implementation available to cause compile-time rather than runtime
5651 error.
5652
5653 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * util/grub-fstest.c: Don't check for symlinks on windows.
5656
5657 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 * INSTALL: Mention unavailability of man pages when cross-compiling.
5660
5661 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5664 and gcry_log_bug.
5665 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5666
5667 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * INSTALL: Document cross-compilation.
5670 * acinclude.m4: Determine whether nm support -P and --defined-only.
5671 * configure.ac: Add TARGET_ to all variables pertaining to target
5672 that don't have it yet.
5673 * gentpl.py: Likewise.
5674 * grub-core/Makefile.am: Likewise.
5675 * grub-core/genmod.sh.in: Likewise.
5676 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5677 as well.
5678
5679 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5680
5681 * configure.ac: Remove -Wempty-body. It's not essential and needs
5682 recent gcc.
5683
5684 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5685
5686 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5687 * util/getroot.c: Likewise.
5688
5689 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 * grub-core/disk/ahci.c: Add needed explicit cast.
5692 * grub-core/lib/backtrace.c: Likewise.
5693 * grub-core/net/ip.c: Likewise.
5694 * grub-core/net/tcp.c: Likewise.
5695 * grub-core/net/udp.c: Likewise.
5696
5697 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5700
5701 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * util/import_gcry.py: Add final newline in visibility.h.
5704
5705 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * conf/Makefile.common: Fix typo.
5708
5709 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5710
5711 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5712
5713 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5714
5715 * Makefile.am (widthspec.h): Fix typo.
5716 * util/grub-gen-widthspec.c: Likewise.
5717
5718 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 Move ascii.h and widthspec.h generation to a separate build-time-only
5721 tool.
5722
5723 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5724
5725 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5726 Always fill bootdisk info and improve check for NetBSD disklabel.
5727
5728 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * conf/Makefile.extra-dist: Add util/bin2h.c.
5731 Reported by: floppym.
5732
5733 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5734
5735 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5736
5737 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5738
5739 * configure.ac: Disable unifont and starfield if no freetype was found.
5740
5741 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5742
5743 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5744 on NetBSD and OpenBSD.
5745
5746 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5747
5748 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5749
5750 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5751
5752 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5753 reduced. Inheritant options are processed during the theme loading.
5754
5755 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5756
5757 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5758
5759 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5760
5761 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5762
5763 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5764
5765 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5766 using qemu.
5767
5768 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5769
5770 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5771 remove-potcdate.sed.
5772
5773 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5774
5775 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5776 unused attribute from pull argument.
5777
5778 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5779
5780 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5781 memory leak.
5782
5783 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5784
5785 * util/getroot.c (pull_lvm_by_command): add --separator option
5786 to vgs call to disable padding of output to 10 characters.
5787
5788 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5791 here ...
5792 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5793 here.
5794
5795 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5798 length.
5799
5800 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5803 full Canadian cross. Tested with build=x86_64, host=arm,
5804 target=ppc-ieee1275.
5805
5806 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * configure.ac: Error if no $BUILD_CC could be found.
5809 Reported by: DevHC.
5810
5811 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5812
5813 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5814 i386-multiboot.
5815
5816 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5819 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5820
5821 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5822
5823 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5824 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5825 falling back to the partition device, otherwise a later call to this
5826 function may fail spuriously.
5827 Reported by Axel Beckert. Fixes Debian bug #708614.
5828
5829 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5830
5831 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5832
5833 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5834
5835 Prevent shadowing of stdlib's devname(3) on BSD.
5836
5837 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5838 and devlast to diskname and disklast, respectively.
5839
5840 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5841
5842 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5843
5844 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5845
5846 * docs/grub.texi: Introduce terminal window position options:
5847 terminal-left: terminal window's left position
5848 terminal-top: terminal window's top position
5849 terminal-width: terminal window's width
5850 terminal-height: terminal window's height
5851 terminal-border: terminal window's border width
5852 * grub-core/gfxmenu/theme-loader.c: Likewise.
5853 * include/grub/gfxmenu_view.h: Likewise.
5854 * po/exlude.pot: Likewise.
5855 * grub-core/gfxmenu/view.c: Likewise.
5856 Also updated minimal window size.
5857 Also terminal_sanity_check function has been introduced.
5858 * grub-core/tests/checksums.h: Update (terminal window height
5859 is adjusted now for low resolution screen)
5860
5861 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5864 position).
5865
5866 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5867
5868 * po/exclude.pot: Add few recent exceptions.
5869
5870 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 * tests/grub_func_test.in: Add unicode.pf2.
5873
5874 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5875
5876 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5877 standard rather than noral color, in line with other terminals.
5878
5879 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5882 analysis.
5883
5884 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5887
5888 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5891 inappropriate printf.
5892
5893 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5894
5895 * .bzrignore: Remove grub-core/lib/dtc-grub,
5896 grub-core/Makefile.libfdt.def
5897 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5898
5899 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5900
5901 * include/grub/video.h (grub_video_register): Keep double-linked as
5902 well as single-linked invariants.
5903 Reported by: qwertial.
5904
5905 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5906
5907 * grub-core/commands/nativedisk.c (get_uuid): Handle
5908 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5909
5910 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5911
5912 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5913 maximum of NW, N, NE heights instead of N's height and maximum of
5914 NW, W, SW widths instead of W's width. (So the box will be always
5915 correctly drawn)
5916
5917 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5918
5919 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5920 Fix misuse of variable count.
5921
5922 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5923 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5924 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5925
5926 New ports to arm-uboot and arm-efi.
5927 Mostly by Leif Lindholm with some additions from
5928 Francesco Lavra and cleanup by Vladimir Serbinenko.
5929
5930 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5931
5932 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5933 and not before.
5934 Reported by: Leon Drugi.
5935
5936 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5939 Reported by: Paulo Flabiano Smorigo.
5940
5941 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5942
5943 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5944
5945 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5946
5947 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5948
5949 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5952
5953 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5956
5957 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5958
5959 * grub-core/net/bootp.c: Export net_* variables.
5960 * grub-core/net/net.c: Likewise.
5961
5962 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
5965
5966 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
5969
5970 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
5973
5974 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
5977
5978 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5979
5980 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
5981 <= 0.
5982
5983 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5984
5985 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
5986 functions.
5987
5988 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5989
5990 * grub-core/fs/zfs/zfs_lz4.c: New file.
5991 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
5992
5993 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5994
5995 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
5996
5997 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
5998
5999 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6000 (check_pool_label): Likewise.
6001 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6002
6003 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6004
6005 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6006
6007 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6008
6009 * docs/grub.texi (Commands): Document postition parameters
6010 for menuentry command.
6011
6012 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6013
6014 * util/grub-mknetdir.in: Remove stray line from help output.
6015
6016 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 Remove early sm712 init as there is no reason for it (the "watchdog"
6019 effect was due to wrong GPIO map).
6020
6021 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6022
6023 * grub-core/commands/pcidump.c: Remove static variables.
6024
6025 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6026
6027 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6028
6029 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6030
6031 * configure.ac: Move delimiter after the infos.
6032
6033 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6036
6037 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6040 not filling whole 8x16 space.
6041
6042 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6045
6046 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * configure.ac: Indicate which liblzma is used if any.
6049
6050 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6051 2013-06-21 Craig Sanders <savannah@taz.net.au>
6052
6053 * util/grub-reboot.in: Document submenu usage.
6054
6055 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6056
6057 * .bzrignore: Update with a number of new test-related files.
6058
6059 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6060
6061 * util/grub-script-check.c: Fail on scripts containing no
6062 commands, to guard against corrupted grub-mkconfig setups that
6063 produce no useful output.
6064 * tests/grub_script_no_commands.in: New test.
6065 * Makefile.util.def (grub_script_no_commands): Add.
6066 Reported by Hans Putter. Fixes Debian bug #713886.
6067
6068 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6069
6070 * grub-core/disk/diskfilter.c: Forgot to remove comment
6071 from previous commit.
6072
6073 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6074
6075 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6076 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6077
6078 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6079
6080 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6081
6082 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6083
6084 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6085 rescan diskfilter devices until nothing new is found.
6086
6087 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6088
6089 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6090
6091 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 Don't try to detect cbfs on *-emu.
6094
6095 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6098
6099 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 Add support for processed coreboot payload chainloading.
6102
6103 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 Enable coreboot information commands even when not loaded as
6106 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6107
6108 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Support for cbfs. Also factor out the part which is common
6111 for all archives to a separate module. This splits tar from cpio
6112 as they are very different but keeps cpio, cpio_be, odc and newc
6113 together since they're very similar.
6114
6115 2013-06-15 David Michael <fedora.dm0@gmail.com>
6116
6117 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6118 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6119
6120 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6121
6122 * tests/grub_script_eval.in: Really add the eval test.
6123
6124 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6125
6126 Move flavour-specific parts out of common cpio.c file and
6127 rename remaining to cpio_common.c
6128
6129 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6130
6131 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6132 off new function grub_script_execute_new_scope. Change callers to use
6133 either of them as appropriate.
6134 * grub-core/commands/eval.c: New command eval.
6135 * docs/grub.texi (Commands): Document it.
6136
6137 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6138
6139 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6140 to fetch values when listing.
6141
6142 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6143
6144 Fix make dist on non-pc.
6145
6146 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6147
6148 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6149 without a device name.
6150
6151 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6152
6153 Remove enable_executable_check as it's not needed anymore.
6154 Reported by: dougray.
6155
6156 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6157
6158 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6159 ambigouos RAID before discovering RAIDs on top of it.
6160 Reported by: bodom.
6161
6162 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6163
6164 Fix typo (failback vs fallback).
6165
6166 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6167
6168 * util/grub.d/30_os-prober.in: Add support for probing EFI
6169 System Partition (as of os-prober 1.58).
6170
6171 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * configure.ac: Add yet another path to unifont. For parabola.
6174
6175 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6176
6177 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6178 handling to copy the killed characters to the kill buffer as
6179 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6180 stored as char. Eliminates UCS4 truncation and corruption
6181 observed when killing characters with Ctrl-u and yanking them
6182 back with Ctrl-y.
6183
6184 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 Detach optional parts of gfxterm and integrate in with coreboot init.
6187
6188 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 Move blit and fill dispatcher to appropriate files to decrease export
6191 and relocation overhead.
6192
6193 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6194
6195 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6196 functions.
6197
6198 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 * grub-core/Makefile.am: Fix compilation problem with some
6201 automake versions.
6202
6203 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6206
6207 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6210 automake versions.
6211
6212 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6213
6214 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6215 SSDT.
6216
6217 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6218
6219 * grub-core/partmap/dfly.c: New partition map.
6220
6221 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6224 checking.
6225 Reported by: Francesco Lavra.
6226
6227 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6228
6229 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6230 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6231 false conditions.
6232 * conf/Makefile.common: define dist_grubconf_DATA
6233
6234 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6235
6236 Progressively skip menu elements on small terminals rather
6237 than crashing.
6238
6239 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6242 to avoid losing last column.
6243
6244 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 * po/exclude.pot: Add missing string "%C".
6247
6248 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6249
6250 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6251 after the test.
6252
6253 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 * util/grub-install.in: Gettextize "Not found" message.
6256
6257 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 Fix distfiles list.
6260 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6261
6262 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6263
6264 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6265 present.
6266 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6267
6268 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6271
6272 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6273
6274 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6275 attribute since structure is not necessarily aligned.
6276
6277 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6278
6279 * docs/grub.texi (Device syntax): Clarify description of network
6280 drives.
6281
6282 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6285 for vasprintf presence.
6286
6287 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * util/grub-install.in: Handle efibootmgr presence check.
6290 Reported by: Leif Lindholm.
6291
6292 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6293
6294 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6295 new strings to translate.
6296
6297 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6300 yet another string (pun intended) to translate.
6301
6302 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * po/POTFILES-shell.in: Autogenerate it.
6305
6306 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6309
6310 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6311
6312 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6313 misnomer.
6314
6315 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6316
6317 * docs/grub.texi (Network): Add description of net_default_interface,
6318 net_default_ip and net_default_mac. Rewrite variables description
6319 to emphasize that they are per-interface.
6320
6321 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 New test: cmdline and cat.
6324
6325 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6326
6327 * grub-core/commands/cat.c: Show UTF-8 characters.
6328
6329 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6330
6331 * conf/Makefile.common: Poison float and double on non-emu.
6332
6333 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 * configure.ac: Don't disable extended registers on emu.
6336
6337 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 * configure.ac: Don't use extended registers on x86_64.
6340 Reported by: Peter Jones.
6341
6342 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * grub-core/term/efi/console.c: Fix compile error.
6345
6346 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6347
6348 Compressed HFS+ support.
6349
6350 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6353 pixel".
6354
6355 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6356
6357 Menu color test.
6358
6359 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 * grub-core/tests/setjmp_test.c: New test.
6362
6363 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 New variables 'net_default_*' to determine MAC/IP of default interface.
6366
6367 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6368
6369 * tests/gettext_strings_test.in: A test to check for strings not
6370 marked for translation.
6371
6372 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6373
6374 * autogen.sh: Exclude unused libgcrypt files from translation.
6375
6376 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 Simplify few strings.
6379
6380 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 Mark few forgotten strings for translation.
6383
6384 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6387 rather than printf.
6388
6389 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6392 rather than printf.
6393 * grub-core/video/readers/tga.c: Likewise.
6394
6395 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6396
6397 * tests/priority_queue_unit_test.cc: New test.
6398
6399 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6402 than printf.
6403
6404 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6405
6406 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6407 variable for one time boot menu entry.
6408
6409 2013-05-05 Bean <bean123ch@gmail.com>
6410
6411 * grub-core/commands/testspeed.c: New command testspeed.
6412
6413 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6414
6415 Factor-out human-size printing.
6416
6417 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6418
6419 Agglomerate more mallocs to speed-up gfxterm.
6420
6421 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6422
6423 Speed-up gfxterm by slightly agglomerating mallocs.
6424
6425 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 More video checks.
6428
6429 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 Speed-up gfxterm by saving intermediate results in index+alpha
6432 format.
6433
6434 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6435
6436 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6437 test.
6438
6439 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6440
6441 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6442 line of timeout as it may contain the rest of long line.
6443
6444 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 * grub-core/normal/main.c: Fix freed memory dereference.
6447
6448 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 Fix several memory leaks.
6451
6452 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6455
6456 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6457
6458 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6459
6460 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 Fix test -a and -o precedence.
6463 Reported by: adrian15.
6464
6465 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6466
6467 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6468
6469 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6470
6471 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6472 and add it as source to functional_test module.
6473
6474 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6475
6476 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6477
6478 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6479
6480 New series of tests for gfxterm and gfxmenu.
6481
6482 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6485 the theme path relative to $prefix/themes.
6486
6487 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6488
6489 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6490 Fix order bug.
6491 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6492
6493 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6496 descriptor.
6497
6498 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6501 grub_gfxmenu_timeout_notifications.
6502 (grub_gfxmenu_view_destroy): Likewise.
6503
6504 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6507
6508 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 Several fixes to ieee1275 and big-endian video.
6511
6512 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 Add missing exports on mips.
6515
6516 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6517
6518 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6519 if no unifont is found.
6520 Restore original keyboard.
6521
6522 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6525 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6526
6527 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 First automated video test (running videotest and comparing results)
6530
6531 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6532
6533 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6534 instead of 2 to have full RGB/CMY test pattern.
6535
6536 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6537
6538 Add few more tests.
6539
6540 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6541
6542 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6543 ARCS. All users updated.
6544
6545 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6546
6547 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6548
6549 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6550
6551 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6552
6553 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6554
6555 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6556 Reported by: qwertial.
6557
6558 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6559
6560 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6561 with syntax "XXX deg"/"XXX °".
6562
6563 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 Make PCI init in i386-qemu port more robust.
6566
6567 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6568
6569 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6570 cached view is reused.
6571 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6572 open boot menus.
6573
6574 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 Unify more code in grub-install_header.
6577
6578 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6579
6580 Add few new tests.
6581
6582 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 Enforce disabling of firmware disk drivers when native drivers kick in.
6585
6586 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * grub-core/commands/nativedisk.c: Customize the list of modules on
6589 platform. Don't try to search for disks already using native drivers.
6590
6591 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6592
6593 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6594 platforms.
6595
6596 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6597
6598 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6599 handling of variables containing backslash.
6600
6601 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6602
6603 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6604 dereference.
6605 Reported by: qwertial.
6606
6607 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6610
6611 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6612
6613 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6614 dereference.
6615 Reported by: qwertial.
6616
6617 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6620
6621 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6622
6623 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6624
6625 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 New command `nativedisk'.
6628
6629 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6630
6631 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6632 * grub-core/loader/i386/bsd.c: Likewise.
6633
6634 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6637
6638 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6641 grub_get_unaligned16 rather than shifts.
6642
6643 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * grub-core/kern/file.c: Use const char * rather than casting to
6646 non-const.
6647
6648 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/commands/probe.c: Add missing grub_device_close.
6651
6652 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 * INSTALL: Document linguas.sh.
6655
6656 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 Remove POTFILES.in and regenerate it in autogen.sh.
6659
6660 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6661
6662 Move --directory/--override-directorry to grub-install_header and unify.
6663
6664 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * grub-core/term/morse.c: Macroify dih and dah.
6667
6668 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6669
6670 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6671
6672 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6673
6674 * grub-core/term/ns8250.c: Systematically probe ports by writing
6675 to SR before using them.
6676
6677 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6678
6679 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6680 disks.
6681 (check_sas): Get sas_adress info.
6682
6683 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6684
6685 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6686 ports.
6687
6688 2013-04-27 Leon Drugi <eyak>
6689
6690 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6691 BSS clearing.
6692
6693 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 Core compression test.
6696
6697 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 Implement grub_machine_get_bootlocation for ARC.
6700
6701 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 Improve AHCI detection and command issuing.
6704
6705 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 Fix pseries test.
6708
6709 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6710
6711 Make 'make check' work on emu.
6712
6713 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 Replace libcurses with our own vt100 handling for the ease of testing
6716 and decreasing prerequisites.
6717
6718 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6721
6722 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6723
6724 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6725 compile when not needed.
6726
6727 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * tests/pseries_test.in: New test.
6730
6731 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 Add test to check that different boot mediums work.
6734
6735 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6738 ofw limited ISO support.
6739
6740 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6741
6742 * configure.ac: Fix loongson conditional.
6743
6744 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 Enable mipsel-arc.
6747
6748 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 Add serial on ARC platform.
6751
6752 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6755 commit.
6756
6757 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6758
6759 * tests/partmap_test.in: Add missing double semicolon.
6760
6761 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6762
6763 * util/grub-mkrescue.in: Fix loongson filename.
6764
6765 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6766
6767 * util/grub-mkrescue.in: Move all files that don't have a location
6768 set in stone under /boot/grub. Use ISO hard links rather than copies
6769 to save some space.
6770
6771 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6772
6773 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6774 bogus SLOF values.
6775
6776 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6777
6778 Make check work on mips-arc.
6779
6780 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * util/grub-mkrescue.in: Alias sashARCS as sash.
6783
6784 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6785
6786 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6787 it's serial.
6788
6789 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * util/grub-install.in: Fix target fo qemu_mips.
6792 Fix extension on EFI.
6793
6794 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6797 in front of chosen entry to mark it even if highlighting is lost.
6798
6799 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6802 gfxpayload=keep if cbfb is active.
6803
6804 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6807
6808 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 Add missing video ids to coreboot and ieee1275 video.
6811
6812 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * util/grub-mkrescue.in: Add mips-arc support.
6815
6816 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6817
6818 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6819
6820 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6821
6822 Move mips-arc link address. Previous link address was chosen
6823 in belief that RAM on SGI platforms grows down while in fact it
6824 grows up from an unusual base.
6825
6826 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6829 Fix a type which prevented CD-ROM and floppy boot.
6830
6831 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 Support coreboot framebuffer.
6834
6835 * grub-core/video/i386/coreboot/cbfb.c: New file.
6836
6837 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6838
6839 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6840 detecting too small regions.
6841
6842 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6843
6844 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6845
6846 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6849 Remove dprintf.
6850 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6851
6852 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6855 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6856 * grub-core/loader/powerpc/ieee1275/linux.c
6857 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6858
6859 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6862 Look for /boot-rom as well as /rom/boot-rom.
6863
6864 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6867 handling when creating text_layer failed.
6868 * grub-core/video/video.c (grub_video_create_render_target):
6869 Set result to 0 on error.
6870 (grub_video_delete_render_target): Do not dereference NULL.
6871
6872 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6875 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6876 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6877 (grub_linux_load64): Mask out 2 high bits.
6878
6879 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6880
6881 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6882 more place.
6883
6884 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 Add support for pseries and other bootinfo machines to grub-mkrescue.
6887
6888 Tested by: Paulo Flabiano Smorigo.
6889
6890 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6891
6892 * util/grub-mkrescue.in: Add GPT for EFI boot.
6893
6894 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6897 It improves performance in qemu.
6898
6899 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * build-aux/snippet: Add missing gnulib files.
6902
6903 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6904
6905 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6906
6907 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6908
6909 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6910
6911 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6912 2013-04-15 Peter Jones <pjones@redhat.com>
6913
6914 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6915 sectors.
6916 Based on patch by Peter Jones.
6917
6918 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6919
6920 Fix DMRAID partition handling.
6921
6922 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * tests/grub_cmd_date.in: Skip on sparc64.
6925
6926 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6927
6928 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6929 firmware error messages.
6930
6931 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6932
6933 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6934 source and destination differ.
6935
6936 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6937
6938 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6939 detection.
6940
6941 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6944 match config-util.h to avoid warnings and increase compatibility.
6945
6946 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6947 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 Add option to compress files on install/image creation.
6950
6951 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * docs/grub-dev.texi: Rearrange menu to match the section order.
6954 Reported by: Bryan Hundven.
6955
6956 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6959
6960 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 Move GRUB out of system area when using xorriso 1.2.9 or later.
6963
6964 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * tests/grub_cmd_date.in: Add missing exit 1.
6967
6968 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * tests/partmap_test.in: Skip on sparc64.
6971
6972 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 Support grub-shell on sparc64.
6975
6976 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6977
6978 Support mkrescue on sparc64.
6979
6980 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 Allow IEEE1275 ports on path even if it wasn't detected automatically.
6983 Needed on OpenBIOS due to incomplete device tree.
6984
6985 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
6988 would be otherwise excluded.
6989
6990 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6991
6992 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6993 Inline name defines used only once.
6994
6995 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 Fix memory leaks in ofnet.
6998 Reported by: Francesco Lavra.
6999
7000 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * docs/man/grub-glue-efi.h2m: Add missing file.
7003
7004 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7007
7008 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7009
7010 Better support Apple Intel Macs on CD.
7011
7012 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7013
7014 Replace stpcpy with grub_stpcpy in tools.
7015
7016 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 Handle Japanese special keys.
7019 Reported by: Hiroyuki YAMAMORI.
7020 Codes supplied by: Hiroyuki YAMAMORI.
7021
7022 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * util/grub-mkimage.c: Document memdisk implying --prefix.
7025
7026 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7027
7028 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7029 much we can do about it anyway.
7030
7031 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7032
7033 Fix handling of split transfers.
7034
7035 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * grub-core/net/http.c: Fix bad free.
7038
7039 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7040
7041 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7042 than buffer size.
7043
7044 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7047
7048 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * tests/util/grub-shell.in: Fix it on powerpc.
7051
7052 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Turn off QEMU ACPI-way since new releases don't have shutdown port
7055 anymore.
7056
7057 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7058
7059 * docs/grub.texi: Update coreboot status info.
7060
7061 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7062
7063 * tests/grub_cmd_date.in: New test for datetime.
7064
7065 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * tests/partmap_test.in: Fix missing qemudisk setting.
7068
7069 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 Support i386-ieee1275 grub-mkrescue and make check on it.
7072
7073 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7076 feature for it.
7077
7078 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7081 GRUB_CMDLINE_XEN_DEFAULT.
7082 Reported by: Marc Warne (GigaTux) <gigatux>
7083
7084 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7085
7086 Import new gnulib.
7087
7088 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 Use ACPI shutdown intests as traditional port was removed.
7091
7092 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7093
7094 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7095 distinction.
7096
7097 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7098
7099 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7100 Fix few warining messages and leaks while on it.
7101
7102 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7103
7104 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7105 links under grub-core/lib/libgcrypt-grub/mpi.
7106
7107 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7108
7109 Fix ia64-efi image generation on big-endian machines. Deduplicate
7110 some code while on it.
7111 Reported by: Leif Lindholm.
7112
7113 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7114
7115 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7116 as extra_dist.
7117
7118 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7119
7120 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7121
7122 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7123
7124 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7125 texinfo-5.1.
7126
7127 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * grub-core/normal/term.c: Few more fixes for menu entry editor
7130 rendering.
7131 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7132
7133 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * grub-core/normal/term.c: Few more fixes for menu entry editor
7136 rendering.
7137 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7138
7139 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7140
7141 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7142 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7143
7144 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7145
7146 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7147 instead of hardcoding grub.mo.
7148
7149 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7150
7151 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7152
7153 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7156 grub-core/disk/geli.c.
7157
7158 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7159
7160 * util/grub-mkfont.c: Prefer enum to #define.
7161
7162 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7163
7164 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7165
7166 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7167
7168 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7169
7170 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7173
7174 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7177
7178 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * include/grub/bsdlabel.h: Use enums.
7181
7182 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 Move GRUB_CHAR_BIT to types.h.
7185
7186 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7187
7188 * docs/grub.texi: Document more user commands.
7189
7190 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7191
7192 * docs/grub.texi: Document menuentry --id option.
7193
7194 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7195
7196 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7197
7198 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7199
7200 Unify file copying setup across different install scripts. Add
7201 options for performing partial install.
7202
7203 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7204 2013-04-04 Peter Jones <pjones@redhat.com>
7205
7206 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7207
7208 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7209
7210 Use TSC as a possible time source on i386-ieee1275.
7211
7212 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7215 Init err.
7216
7217 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * util/grub-setup.c (setup): Handle some corner cases.
7220
7221 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7222
7223 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7224
7225 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 * grub-core/commands/verify.c: Save verified file to avoid it being
7228 tampered with after verification was done.
7229
7230 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7233 reported width by one to compensate for curesor algorithm problem.
7234
7235 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 Fix screen corruption in menu entry editor and simplify the code
7238 flow while on it.
7239
7240 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7241
7242 * util/grub-mount.c (fuse_init): Return error if fuse_main
7243 failed.
7244
7245 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7246
7247 * include/grub/elf.h: Add missing ARM relocation codes and fix
7248 existing ones.
7249
7250 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7251
7252 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7253
7254 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7255 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7256
7257 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7258 into account when calculating radius.
7259
7260 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7261
7262 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7263
7264 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7265
7266 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7267
7268 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7269
7270 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7271 missing closing bracket.
7272
7273 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7274
7275 * INSTALL: Mention xorriso requirement.
7276
7277 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7278
7279 * grub-core/commands/verify.c: Fix hash algorithms values for
7280 the first three hashes - they start with 1, not with 0.
7281
7282 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7285 Try terminating EFI services several times due to quirks in some
7286 implementations.
7287
7288 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7289
7290 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7291 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7292 BankField extended opcodes.
7293 (get_sleep_type): Add minimal scope handling (just enough to
7294 handle setting the scope to the root path).
7295 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7296 * include/grub/acpi.h: Add enumeration values for Event, Device,
7297 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7298
7299 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7300
7301 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7302 memory leak.
7303
7304 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/disk/ahci.c: Give more time for AHCI request.
7307
7308 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7311 command.
7312
7313 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 Replace the region at 0 from coreboot tables to available in BSD
7316 memory map.
7317
7318 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7319
7320 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7321 non-BIOS platforms.
7322
7323 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7326 platforms.
7327
7328 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7331 handling of multi-device filesystems.
7332
7333 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7336 platforms.
7337
7338 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7339
7340 Add new 'proc' filesystem framework and put luks_script into it.
7341
7342 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7343
7344 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7345 and qemu.
7346
7347 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7348
7349 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7350
7351 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7352
7353 Add ability to generate newc additions on runtime.
7354
7355 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7358 description.
7359
7360 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * po/POTFILES.in: Regenerate.
7363
7364 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7365
7366 * grub-core/commands/verify.c (hashes): Add several hashes
7367 from the spec.
7368
7369 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 Slight improve in USB-related boot-time checkpoints.
7372
7373 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/commands/boottime.c: Fix copyright header.
7376
7377 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7380 coreboot tables content. Support for cbmemc.
7381
7382 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7383
7384 Fix a conflict between ports structures with 2 controllers of
7385 same kind.
7386
7387 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * include/grub/boottime.h: Add missing file.
7390
7391 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7392
7393 Initialize USB ports in parallel to speed-up boot.
7394
7395 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7396
7397 Fix USB devices not being detected when requested
7398 due to delayed attach.
7399
7400 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 Implement boot time analysis framework.
7403
7404 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 Remove get_endpoint_descriptor and change all functions needing
7407 descriptor to just receive it as argument rather than endpoint
7408 address.
7409
7410 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7411
7412 Better estimate the maximum USB transfer size.
7413
7414 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7415
7416 Resend a packet if we got the wrong buffer in status.
7417
7418 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7421 multiplication rather than division.
7422
7423 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7426 than divisions.
7427
7428 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7431 operations to have intended shifts and not divisions.
7432
7433 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7434
7435 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7436 intended shifts rather than division.
7437
7438 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7441 computation for some years before epoch. Avode confusing division
7442 while on it.
7443
7444 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/video/i386/pc/vbe.c
7447 (grub_video_vbe_print_adapter_specific_info): Replace division by
7448 shifts.
7449
7450 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 Adjust types in gdb module to have intended unsigned shifts rather than
7453 signed divisions.
7454
7455 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7458 maximum size is 4G - 1 on hfs
7459
7460 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7463
7464 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7467 function.
7468
7469 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7470
7471 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7472 causing gcc error with gcc 4.7.1.
7473
7474 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7475
7476 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7477 dereference null pointer. While the code is technically correct, gcc
7478 may eliminate a null check if pointer is already dereferenced.
7479
7480 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7481
7482 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7483 OOM check.
7484 * grub-core/normal/term.c (read_terminal_list): Likewise.
7485
7486 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7487
7488 Lift up core size limits on some platforms. Fix potential memory
7489 corruption with big core on small memory systems. Document remaining
7490 limits.
7491
7492 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7493
7494 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7495 gotoxy to 0,0.
7496
7497 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 Remove all trampoline support. Add -Wtrampolines when
7500 present. Remove symbols used for trampolines to make
7501 link fail if trampolines are present.
7502
7503 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7504
7505 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7506 append out of its parent.
7507
7508 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7511 parent.
7512
7513 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7516 all vars to a macro. All users updated.
7517
7518 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7521 i386-ieee1275.
7522
7523 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7524
7525 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7526
7527 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7528
7529 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7530
7531 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7532
7533 Move to more hookless approach in IEEE1275 devices handling.
7534
7535 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7536
7537 * grub-core/kern/term.c (grub_term_normal_color),
7538 (grub_term_highlight_color): Add back lost defaults.
7539
7540 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7541
7542 Make elfload not use hooks. Opt for flags and iterators instead.
7543
7544 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7545
7546 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7547 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7548
7549 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7550
7551 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7552
7553 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7556 hook pass-through parameter. All users updated and unnested.
7557
7558 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7561 out of its parent.
7562
7563 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7564
7565 * grub-core/fs/hfs.c: Remove nested functions.
7566
7567 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7568
7569 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7570 the context through.
7571 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7572
7573 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7574
7575 * util/grub-editenv.c (list_variables): Move print_var out of its
7576 parent.
7577
7578 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7581 function.
7582
7583 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7584
7585 * grub-core/gentrigtables.c: Make tables const.
7586
7587 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7588
7589 Remove nested functions from videoinfo iterators.
7590
7591 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7594 for 64-bit platforms.
7595
7596 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7599 a FOR_CHILDREN macro.
7600
7601 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7602
7603 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7604 platform from firmware path.
7605
7606 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 Enable linux16 on non-BIOS systems for i.a. memtest.
7609
7610 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7611 correctly.
7612 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7613
7614 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7617 Fix end of table condition.
7618
7619 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7622 out of its parent.
7623
7624 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7625
7626 * grub-core/fs/jfs.c: Remove nested functions.
7627
7628 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7629
7630 * grub-core/fs/minix.c: Remove nested functions.
7631
7632 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7633
7634 * grub-core/fs/iso9660.c: Remove nested functions.
7635
7636 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7639 of parent function.
7640
7641 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7642
7643 * util/grub-fstest.c: Remove nested functions.
7644
7645 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * grub-core/loader/machoXX.c: Remove nested functions.
7648
7649 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7650
7651 Remove nested functions from disk and file read hooks.
7652
7653 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7654 (struct grub_disk): Add read_hook_data member.
7655 * include/grub/file.h (struct grub_file): Likewise.
7656 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7657 argument.
7658
7659 Update all callers.
7660
7661 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7662
7663 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7664 Fix off by one error in enumerating extended partitions.
7665
7666 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7667
7668 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7669 memory leak if device name is not found.
7670
7671 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7672
7673 * grub-core/normal/menu_entry.c (update_screen): remove
7674 unused variable `off' which caused scroll down arrow to be always shown.
7675
7676 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7677
7678 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7679 access to unallocated memory.
7680
7681 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7682
7683 * Makefile.util.def: Add partmap/msdos.c to common library.
7684 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7685 * grub-core/disk/ldm.c: Check for existence of
7686 GRUB_PC_PARTITION_TYPE_LDM.
7687
7688 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7689
7690 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7691 sizes and display sector size.
7692
7693 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 Implement new command cmosdump.
7696
7697 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7698
7699 Support Openfirmware disks with non-512B sectors.
7700
7701 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7702 size of the disk.
7703 * (grub_ofdisk_get_block_size): New function.
7704 * (grub_ofdisk_prepare): Use the correct block size.
7705 * (grub_ofdisk_read): Likewise.
7706 * (grub_ofdisk_write): Likewise.
7707 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7708 New proto.
7709
7710 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7711
7712 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7713
7714 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7717 on first error.
7718
7719 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7722 freeing it.
7723
7724 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7725
7726 Implement USBDebug (full USB stack variant).
7727
7728 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7731 unless they have unexpected values.
7732
7733 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7736 grub_print_error.
7737
7738 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7741 zero-out of port structure.
7742
7743 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7746 of extended attributes.
7747
7748 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7749
7750 * util/grub-install.in: change misleading comment about
7751 device.map creation
7752
7753 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7756 when menu highlight color isn't set.
7757
7758 2013-01-27 C. Masloch <pushbx@38.de>
7759
7760 Improve FreeDOS direct loading support compatibility.
7761
7762 * include/grub/i386/relocator.h (grub_relocator16_state):
7763 New member ebp.
7764 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7765 variable.
7766 (grub_relocator16_boot): Handle %ebp.
7767 * grub-core/lib/i386/relocator16.S: Likewise.
7768 * grub-core/loader/i386/pc/freedos.c:
7769 Load BPB to pass kernel which partition to load from.
7770 Check that kernel file is not too large.
7771 Set register dl to BIOS unit number as well.
7772
7773 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7774
7775 * util/grub-reboot.in (usage): Document the need for
7776 GRUB_DEFAULT=saved.
7777 * util/grub-set-default.in (usage): Likewise.
7778 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7779
7780 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7783 than defining WORDS_BIGENDIAN manually.
7784
7785 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7788 invariants.
7789
7790 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7791
7792 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7793 nested.
7794 (blit_comb: add_device_width): Likewise.
7795
7796 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7797
7798 Remove nested functions from USB iterators.
7799
7800 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7801 (grub_usb_controller_iterate_hook_t): Likewise.
7802 (grub_usb_iterate): Add hook_data argument.
7803 (grub_usb_controller_iterate): Likewise.
7804 (struct grub_usb_controller_dev.iterate): Likewise.
7805
7806 Update all implementations and callers.
7807
7808 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7809
7810 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7811 margin when not needed.
7812
7813 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 Make color variables global instead of it being per-terminal.
7816
7817 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7820 asterisk.
7821
7822 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7823
7824 Fix powerpc and sparc64 build failures caused by un-nesting memory
7825 map iterators.
7826
7827 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7828
7829 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7830 parameter declarations.
7831
7832 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7835
7836 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7837
7838 Improve spkmomdem reliability by adding a separator between bytes.
7839
7840 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7841
7842 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7843 an Acer registration utility with several sightings in the wild.
7844 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7845
7846 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7847
7848 Remove nested functions from filesystem directory iterators.
7849
7850 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7851 (struct grub_fs.dir): Add hook_data argument.
7852
7853 Update all implementations and callers.
7854
7855 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7856
7857 * docs/grub.texi (Multi-boot manual config): Fix typo for
7858 "recommended".
7859
7860 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7861
7862 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7863 until after its use in generate_image.
7864
7865 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7866
7867 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7868 initrd size to addr_min, since the initrd will be allocated after
7869 this address.
7870
7871 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7872
7873 * conf/Makefile.common: Fix autogen rules to pass definition
7874 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7875
7876 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7877
7878 * include/grub/elf.h: Update ARM definitions based on binutils.
7879
7880 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7881
7882 Split long USB transfers into short ones.
7883
7884 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7885
7886 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7887 is interrupted by ESC.
7888
7889 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7890
7891 * util/grub-script-check.c (main): Uniform the error message.
7892
7893 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7894
7895 Remove nested functions from ELF iterators.
7896
7897 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7898
7899 Remove nested functions from device iterators.
7900
7901 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7902 (grub_arc_iterate_devs): Add hook_data argument.
7903 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7904 (struct grub_ata_dev.iterate): Add hook_data argument.
7905 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7906 (grub_device_iterate): Add hook_data argument.
7907 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7908 (struct grub_disk_dev.iterate): Add hook_data argument.
7909 (grub_disk_dev_iterate): Likewise.
7910 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7911 Likewise.
7912 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7913 Likewise.
7914 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7915 type.
7916 (struct grub_partition_map.iterate): Add hook_data argument.
7917 (grub_partition_iterate): Likewise.
7918 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7919 (struct grub_scsi_dev.iterate): Add hook_data argument.
7920
7921 Update all callers.
7922
7923 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7924
7925 Fix typos for "developer" and "development".
7926
7927 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7928
7929 Add license header to spkmodem-recv.c.
7930
7931 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7932
7933 Rewrite spkmodem to use PIT for timing. Double the speed.
7934
7935 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 Add new command pcidump.
7938
7939 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 New terminal outputs using serial: morse and spkmodem.
7942
7943 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7944
7945 Improve bidi handling in entry editor.
7946
7947 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7948
7949 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7950 argument to prevent name collision.
7951
7952 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7953
7954 Remove nested functions from script reading and parsing.
7955
7956 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7957 getline_data argument, passed to getline.
7958 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7959 getline_data argument, passed to grub_parser_split_cmdline.
7960 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7961 lexerstate->getline_data to lexerstate->getline.
7962 (grub_script_lexer_init): Add getline_data argument, saved in
7963 lexerstate->getline_data.
7964 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
7965 argument, passed to grub_script_parse.
7966 * grub-core/script/script.c (grub_script_parse): Add getline_data
7967 argument, passed to grub_script_lexer_init.
7968 * include/grub/parser.h (grub_parser_split_cmdline): Update
7969 prototype. Update all callers to pass appropriate getline data.
7970 (struct grub_parser.parse_line): Likewise.
7971 (grub_rescue_parse_line): Likewise.
7972 * include/grub/reader.h (grub_reader_getline_t): Add void *
7973 argument.
7974 * include/grub/script_sh.h (struct grub_lexer_param): Add
7975 getline_data member.
7976 (grub_script_parse): Update prototype. Update all callers to pass
7977 appropriate getline data.
7978 (grub_script_lexer_init): Likewise.
7979 (grub_normal_parse_line): Likewise.
7980
7981 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
7982 data argument.
7983 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
7984 static instead of nested. Rename to ...
7985 (grub_parser_execute_getline): ... this.
7986 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
7987 data argument.
7988 * grub-core/normal/main.c (read_config_file: getline): Make static
7989 instead of nested. Rename to ...
7990 (read_config_file_getline): ... this.
7991 (grub_normal_read_line): Add unused data argument.
7992 * grub-core/script/execute.c (grub_script_execute_sourcecode:
7993 getline): Make static instead of nested. Rename to ...
7994 (grub_script_execute_sourcecode_getline): ... this.
7995 * util/grub-script-check.c (main: get_config_line): Make static
7996 instead of nested.
7997
7998 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7999
8000 Remove nested functions from memory map iterators.
8001
8002 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8003 argument, passed to hook.
8004 * grub-core/kern/i386/coreboot/mmap.c
8005 (grub_linuxbios_table_iterate): Likewise.
8006 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8007 instead of nested.
8008 (grub_machine_mmap_iterate): Add hook_data argument.
8009 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8010 Add hook_data argument, passed to hook.
8011 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8012 Likewise.
8013 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8014 Likewise.
8015 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8016 Likewise.
8017 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8018 Likewise.
8019 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8020 Likewise.
8021 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8022 Likewise.
8023 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8024 (grub_machine_mmap_iterate): Likewise.
8025 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8026 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8027 prototype.
8028 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8029 Remove NESTED_FUNC_ATTR from here and from all users.
8030 (grub_mmap_iterate): Update prototype.
8031 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8032 pass appropriate hook data.
8033 (grub_machine_mmap_iterate): Likewise.
8034
8035 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8036 static instead of nested.
8037 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8038 Rename to ...
8039 (lsmmap_hook): ... this.
8040 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8041 Likewise.
8042 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8043 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8044 heap_init): Likewise.
8045 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8046 Rename to ...
8047 (mmap_iterate_hook): ... this.
8048 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8049 Likewise.
8050 * grub-core/lib/ieee1275/relocator.c
8051 (grub_relocator_firmware_get_max_events: count): Likewise.
8052 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8053 to ...
8054 (grub_relocator_firmware_fill_events_iter): ... this.
8055 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8056 hook): Likewise. Rename to ...
8057 (grub_relocator_alloc_chunk_align_iter): ... this.
8058 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8059 Rename to ...
8060 (generate_e820_mmap_iter): ... this.
8061 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8062 Rename to ...
8063 (count_hook): ... this.
8064 (grub_linux_boot: hook): Likewise. Rename to ...
8065 (grub_linux_boot_mmap_find): ... this.
8066 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8067 (grub_linux_boot_mmap_fill): ... this.
8068 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8069 hook): Likewise. Rename to ...
8070 (grub_fill_multiboot_mmap_iter): ... this.
8071 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8072 hook): Likewise. Rename to ...
8073 (count_hook): ... this.
8074 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8075 hook): Likewise. Rename to ...
8076 (grub_fill_multiboot_mmap_iter): ... this.
8077 * grub-core/loader/powerpc/ieee1275/linux.c
8078 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8079 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8080 Likewise. Rename to ...
8081 (alloc_phys_choose): ... this.
8082 (determine_phys_base: get_physbase): Likewise.
8083 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8084 find_hook): Likewise.
8085 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8086 (malloc_hook: count_hook): Likewise.
8087 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8088 Likewise. Rename to ...
8089 (lower_hook): ... this.
8090 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8091 (upper_hook): ... this.
8092 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8093 (post64_hook): ... this.
8094 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8095 Likewise. Rename to ...
8096 (lower_hook): ... this.
8097 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8098 (upper_hook): ... this.
8099 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8100 (grub_mmap_iterate: fill_hook): Likewise.
8101 (fill_mask): Pass addr and mask within a single struct.
8102 (grub_cmd_badram: hook): Make static instead of nested. Rename
8103 to ...
8104 (badram_iter): ... this.
8105 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8106 (cutmem_iter): ... this.
8107
8108 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8111 delimit path in strings using quotes.
8112 * util/getroot.c (grub_guess_root_devices): Likewise.
8113 (grub_make_system_path_relative_to_its_root): Likewise.
8114 * util/grub-probe.c (probe): Likewise.
8115 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8116 (xrealpath): Likewise.
8117
8118 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8119
8120 Fix compilation with older compilers.
8121
8122 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8123 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8124 declarations.
8125 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8126 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8127 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8128 identifier with b.
8129 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8130 * include/grub/crypto.h: Add type defines.
8131 * util/import_gcrypth.sed: Remove duplicate type defines.
8132
8133 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 New command list_trusted.
8136
8137 * grub-core/commands/verify.c (grub_cmd_list): New function.
8138
8139 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8140
8141 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8142 info message.
8143
8144 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8145
8146 Remove nested functions from PCI iterators.
8147
8148 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8149 passed to hook. Update all callers to pass appropriate hook data.
8150 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8151 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8152 Remove NESTED_FUNC_ATTR from here and from all users.
8153 (grub_pci_iterate): Update prototype.
8154 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8155 instead of nested. Rename to ...
8156 (grub_cs5536_find_iter): ... this.
8157 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8158 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8159 Likewise.
8160 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8161 Likewise.
8162 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8163 Likewise.
8164 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8165 Likewise.
8166 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8167 * grub-core/video/radeon_fuloong2e.c
8168 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8169 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8170 find_card): Likewise.
8171 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8172 Likewise.
8173
8174 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * grub-core/commands/verify.c: Mark messages for translating.
8177
8178 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8181 fatal.
8182
8183 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8186 fatal.
8187
8188 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 * autogen.sh: Do not try to delete nonexistant files.
8191 * util/import_gcrypth.sed: Add some missing header removals.
8192
8193 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8194
8195 Clean up dangling references to grub-setup.
8196 Fixes Ubuntu bug #1082045.
8197
8198 * docs/grub.texi (Images): Refer generally to grub-install rather
8199 than directly to grub-setup.
8200 (Installing GRUB using grub-install): Remove direct reference to
8201 grub-setup.
8202 (Device map) Likewise.
8203 (Invoking grub-install): Likewise.
8204 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8205 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8206 * util/grub-install.in (usage): Likewise.
8207
8208 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8209 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8210 grub-setup.
8211 * configure.ac: Remove grub_setup output variable.
8212
8213 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8214 to grub-bios-setup.
8215 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8216 grub-setup to grub-sparc64-setup.
8217
8218 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8219
8220 Import gcrypt public-key cryptography and implement signature checking.
8221
8222 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8223
8224 * grub-core/fs/ntfs.c: Ue more appropriate types.
8225 * grub-core/fs/ntfscomp.c: Likewise.
8226 * include/grub/ntfs.h: Likewise.
8227
8228 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 Support Apple FAT binaries on non-Apple platforms.
8231
8232 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8233 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8234 Likewise.
8235 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8236 Apple FAT binaries.
8237
8238 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8241 sector devices.
8242
8243 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8244
8245 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8246 explicitly zeroing elements.
8247 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8248 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8249 of elements in a structure already allocated using grub_zalloc.
8250 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8251
8252 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8253
8254 * docs/grub.texi (grub_cpu): New subsection.
8255 (grub_platform): Likewise.
8256
8257 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8260
8261 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8264 divisions.
8265
8266 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8267
8268 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8269 * grub-core/fs/ntfscomp.c: Likewise.
8270 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8271 (grub_ntfs_comp): Likewise.
8272
8273 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8274
8275 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8276 Rename to ...
8277 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8278 of groups_per_block. All users updated.
8279
8280 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8283 grub_error properly.
8284 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8285 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8286
8287 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8290 always in /boot/zfs.
8291 Reported by: Yuta Satoh.
8292
8293 2013-01-03 Yuta Satoh <nigoro>
8294
8295 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8296 ${grub_probe}
8297
8298 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 * configure.ac: Extend -Wno-trampolines to host.
8301
8302 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8305 entry->len = 0.
8306
8307 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8308
8309 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8310 (Invoking grub-script-check): Likewise.
8311
8312 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8313
8314 * docs/grub.texi (Invoking grub-mount): New section.
8315 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8316
8317 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8318
8319 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8320 test failures, so that a failing unit test correctly causes 'make
8321 check' to fail.
8322
8323 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8324
8325 Fix failing printf test.
8326
8327 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8328 '$' in the correct order when collecting type information.
8329
8330 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8331
8332 * docs/grub.texi (configfile): Explain environment variable
8333 handling.
8334 (source): New section.
8335 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8336
8337 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8338
8339 Remove several trivially-unnecessary uses of nested functions.
8340
8341 * grub-core/commands/i386/pc/sendkey.c
8342 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8343 instead of nested.
8344 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8345 Rename to ...
8346 (legacy_file_getline): ... this.
8347 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8348 Likewise.
8349 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8350 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8351 to ...
8352 (probe_dummy_iter): ... this.
8353 * grub-core/kern/i386/coreboot/mmap.c
8354 (grub_linuxbios_table_iterate: check_signature): Likewise.
8355 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8356 check_varstate): Likewise. Mark inline.
8357 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8358 an additional parameter.
8359 (find_long: fnd_long): Likewise. Pass two additional parameters.
8360 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8361 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8362 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8363 Likewise. Rename to ...
8364 (grub_cmos_find_port_iter): ... this.
8365 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8366 Rename to ...
8367 (find_rtc_iter): ... this.
8368
8369 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8370 function directly into the function body, since it is only called
8371 once.
8372
8373 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8374
8375 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8376 __attribute__ ((unused)).
8377 * grub-core/video/bochs.c (find_card): Likewise.
8378 * grub-core/video/cirrus.c (find_card): Likewise.
8379 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8380 * grub-core/video/sis315pro.c (find_card): Likewise.
8381 * grub-core/video/sm712.c (find_card): Likewise.
8382
8383 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8384
8385 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8386 Fixes Savannah bug #37821.
8387
8388 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8389
8390 Apply program name transformations at build-time rather than at
8391 run-time. Fixes Debian bug #696465.
8392
8393 * acinclude.m4 (grub_TRANSFORM): New macro.
8394 * configure.ac: Create output variables with transformed names for
8395 most programs.
8396 * util/bash-completion.d/grub-completion.bash.in: Use
8397 pre-transformed variables for program names.
8398 * util/grub-install.in: Likewise.
8399 * util/grub-kbdcomp.in: Likewise.
8400 * util/grub-mkconfig.in: Likewise.
8401 * util/grub-mkconfig_lib.in: Likewise.
8402 * util/grub-mknetdir.in: Likewise.
8403 * util/grub-mkrescue.in: Likewise.
8404 * util/grub-mkstandalone.in: Likewise.
8405 * util/grub-reboot.in: Likewise.
8406 * util/grub-set-default.in: Likewise.
8407 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8408 * tests/util/grub-shell-tester.in: Remove unused assignment.
8409 * tests/util/grub-shell.in: Likewise.
8410 * util/grub.d/00_header.in: Likewise.
8411
8412 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8413
8414 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8415
8416 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8417 HAVE_RAW_DECL_GETS.
8418 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8419
8420 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8421
8422 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8423 Reported by: Eriks Latosheks <foresterlv>.
8424
8425 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8426
8427 * docs/grub.texi (Network): Update instructions on generating netboot
8428 image.
8429
8430 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8433 around device name if necessarry.
8434
8435 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8436
8437 * util/grub-install.in: Follow the symbolic link parameter added
8438 to the file command.
8439
8440 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8441
8442 * util/grub-install.in: Remove stale TODO.
8443
8444 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8445
8446 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8447 dynamic allocation for the bootpath buffer.
8448
8449 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8450
8451 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8452 window too small.
8453
8454 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8455
8456 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8457 argument rather than font name. All users updated.
8458 (grub_gfxterm_set_window): Likewise.
8459
8460 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8461
8462 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8463 from working.
8464
8465 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * util/getroot.c (convert_system_partition_to_system_disk): Support
8468 nbd disks.
8469
8470 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8471
8472 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8473 infinite loop on corrupted FS.
8474
8475 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 Fix big-endian mtime.
8478
8479 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8480 together sec and usec.
8481 (grub_ufs_dir): Use correct byteswapping for UFS time.
8482
8483 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 Support big-endian UFS1.
8486
8487 * Makefile.util.def (libgrubmods): Add ufs_be.c
8488 * grub-core/Makefile.core.def (ufs1_be): New module.
8489 * grub-core/fs/ufs_be.c: New file.
8490 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8491 the file.
8492
8493 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8494
8495 * include/grub/types.h: Fix functionality unaffecting typo in
8496 GRUB_TARGET_WORDSIZE conditional macro.
8497
8498 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8499
8500 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8501
8502 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8503
8504 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8505 that /netbsd appears first (when it exists).
8506
8507 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8508
8509 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8510 Fixes Savannah bug #37558.
8511
8512 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8513
8514 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8515 description of extract_entries_configfile.
8516
8517 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8518
8519 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8520 preferred_address.
8521 (grub_cmd_linux): Likewise.
8522 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8523 preferred_lifetime. Update all users.
8524
8525 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8526
8527 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8528 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8529
8530 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8531
8532 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8533 errors from grub-probe to /dev/null, not stdout.
8534
8535 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8538 sector 1.
8539
8540 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8541
8542 * util/grub-install.in: Make the error message if $source_dir
8543 doesn't exist more useful.
8544
8545 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8546
8547 Fix grub-emu build on FreeBSD.
8548
8549 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8550 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8551 headers on Linux.
8552 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8553 implementation is currently Linux-specific.
8554 * util/getroot.c (exec_pipe): Define only on Linux or when either
8555 libzfs or libnvpair is unavailable.
8556 (find_root_devices_from_poolname): Remove unused path variable.
8557
8558 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8559
8560 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8561 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8562 should fit before end == 63.
8563
8564 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8565
8566 * util/grub-setup.c (write_rootdev): Remove unused core_img
8567 parameter. Update all callers.
8568 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8569 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8570 GRUB_SETUP_BIOS.
8571
8572 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8575 (grub_add_tab): New function.
8576 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8577 * util/grub.d/10_illumos.in: Likewise.
8578 * util/grub.d/10_kfreebsd.in: Likewise.
8579 * util/grub.d/10_linux.in: Likewise.
8580 * util/grub.d/10_netbsd.in: Likewise.
8581 * util/grub.d/10_windows.in: Likewise.
8582 * util/grub.d/10_xnu.in: Likewise.
8583 * util/grub.d/20_linux_xen.in: Likewise.
8584 * util/grub.d/30_os-prober.in: Likewise.
8585
8586 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8589 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8590 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8591 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8592 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8593 ieee1275-nocursor.
8594 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8595 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8596
8597 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8600 le-conversion.
8601 Reported by: BURETTE, Bernard.
8602
8603 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8604
8605 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8606 from comment.
8607
8608 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8609
8610 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8611 IEEE1275 machines. Fixes powerpc-emu compilation.
8612 * include/grub/terminfo.h: Likewise.
8613
8614 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8615
8616 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8617 a const pointer.
8618 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8619 const pointer.
8620 (efiemu_set_variable): Make vendor_guid a const pointer.
8621
8622 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8623
8624 Don't require grub-mkconfig_lib to generate manpages for programs.
8625
8626 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8627 dependencies, don't add grub-mkconfig_lib.
8628 (program): Pass empty adddeps.
8629 (script): Pass grub-mkconfig_lib as adddeps.
8630
8631 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8632
8633 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8634 * util/getroot.c (grub_find_device): Likewise.
8635 (get_mdadm_uuid): Likewise.
8636 (grub_util_is_imsm): Likewise.
8637 (grub_util_pull_device): Likewise.
8638 * util/grub-probe.c (probe): Likewise.
8639
8640 2012-09-10 Benoit Gschwind <gschwind>
8641
8642 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8643 (devs): Add devpath_8.
8644
8645 2012-09-08 Peter Jones <pjones@redhat.com>
8646
8647 * grub-core/Makefile.core.def (efifwsetup): New module.
8648 * grub-core/commands/efi/efifwsetup.c: New file.
8649 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8650 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8651 New define.
8652 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8653
8654 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8655
8656 * configure.ac: Add SuSe path.
8657
8658 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8659
8660 * NEWS: Fix typo.
8661
8662 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8663
8664 * util/import_gcry.py: Sort cipher_files, to make build system
8665 generation more deterministic.
8666
8667 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8670 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8671 (grub_set_datetime): Likewise.
8672
8673 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8676 warnings.
8677
8678 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8681
8682 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8683
8684 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8685
8686 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8687
8688 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8689 required for checkouts from bzr, but it may be useful for users or
8690 distributors wishing to update translations against a tarball
8691 distribution, and it can be helpful for the tarball to be a superset
8692 of what's in bzr.
8693
8694 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8695
8696 * Makefile.am (EXTRA_DIST): Add
8697 grub-core/tests/boot/linux.init-mips.S,
8698 grub-core/tests/boot/linux.init-ppc.S, and
8699 grub-core/tests/boot/linux-ppc.cfg.
8700
8701 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8702
8703 * grub-core/mmap/mips/loongson: Remove empty directory.
8704
8705 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8706
8707 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8708 gone.
8709
8710 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8711
8712 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8713 grub-sparc64-setup.
8714
8715 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8716
8717 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8718
8719 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8720
8721 * po/POTFILES.in: Regenerated.
8722
8723 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8724
8725 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8726 (NetBSD): New subsection.
8727
8728 2012-07-22 Ales Nesrsta <starous@volny.cz>
8729
8730 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8731 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8732
8733 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8734
8735 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8736 * util/grub.d/10_hurd.in: Add missing quoting.
8737 * util/grub.d/10_illumos.in: Likewise.
8738 * util/grub.d/10_kfreebsd.in: Likewise.
8739 * util/grub.d/10_linux.in: Likewise.
8740 * util/grub.d/20_linux_xen.in: Likewise.
8741
8742 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 New command `lsefi'.
8745
8746 * grub-core/Makefile.core.def (lsefi): New module.
8747 * grub-core/commands/efi/lsefi.c: New file.
8748 * include/grub/efi/api.h: Add more GUIDs.
8749
8750 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8751
8752 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8753 (grub_bsd_elf32_hook): Likewise.
8754 (grub_bsd_elf64_size_hook): Likewise.
8755 (grub_bsd_elf64_hook): Likewise.
8756 (grub_bsd_load_elf): Likewise.
8757
8758 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8761 if hash function is unavailable.
8762 (dec_stream_header): Likewise.
8763
8764 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8767 filter state.
8768
8769 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8770
8771 Fix coreboot compilation.
8772
8773 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8774 (grub_vga_text_init_real): ... this.
8775 (grub_vga_text_fini): Rename to ...
8776 (grub_vga_text_fini_real): ... this.
8777
8778 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8781
8782 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/lib/legacy_parse.c: Support clear and testload.
8785
8786 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8789
8790 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8793
8794 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 * grub-core/net/tftp.c (ack): Fix endianness problem.
8797 (tftp_receive): Likewise.
8798 Reported by: Michael Davidsaver.
8799
8800 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8803
8804 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8807 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8808 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8809
8810 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8813 efi_mmap_size.
8814 Reported by: Stuart Hayes.
8815
8816 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8819
8820 * grub-core/Makefile.core.def (mda_text): New module.
8821 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8822 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8823 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8824 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8825 here.
8826 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8827 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8828 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8829 here.
8830 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8831 to ..
8832 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8833 ... here
8834 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8835 here.
8836 * grub-core/term/i386/vga_common.c: Removed.
8837 * include/grub/i386/vga_common.h: Likewise.
8838 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8839 (grub_vga_cr_bw_read): Likewise.
8840 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8841 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8842 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8843 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8844 grub_vga_cr_read/grub_vga_cr_write.
8845 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8846
8847 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8848
8849 * configure.ac: Bump version to 2.00.
8850 * grub-core/normal/main.c (features): Add feature_200_final.
8851
8852 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8853 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8854
8855 * NEWS: Fix unclarity and language mistakes.
8856
8857 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8860 additional size to 3 pages.
8861 Reported by: Stuart Hayes.
8862
8863 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * NEWS: Add 2.00 entry.
8866
8867 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8868
8869 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8870 put explicit "/" for empty path.
8871 (wildcard_expand): Improve dprintf.
8872
8873 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8876 it's equal to currnode. This can happen with "" symlink.
8877
8878 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8879
8880 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8881 echo shell command by printf command.
8882
8883 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8886 the value returned by firmware is the maximal position, not diumension.
8887 (grub_terminfo_output_state): Use a more sane fallback.
8888
8889 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8892
8893 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8894
8895 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8896 frequency to 150 MHz.
8897
8898 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8899
8900 Apple fixes.
8901
8902 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8903 __APPLE_
8904 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8905 definition.
8906 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8907
8908 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8909
8910 Handle slash in HFS label.
8911
8912 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8913 (grub_hfs_dir): Tanslate slash.
8914 (grub_hfs_label): Don't translate slash.
8915
8916 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8919 network protocol listing since it introduces problematic dependency on
8920 net module.
8921
8922 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8925
8926 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 Init video early on yeeloong to avoid being rebooted by watchdog.
8929
8930 * grub-core/Makefile.am (gensm712): New target.
8931 (sm712_start.S): Likewise.
8932 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8933 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8934 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8935 description.
8936 * include/grub/vga.h: Move registry definitions to...
8937 * include/grub/vgaregs.h: ... here.
8938
8939 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8942 signedness.
8943
8944 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8947 platforms with firmware disk drivers in the core.
8948
8949 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8952 informative verbose message.
8953 (read_lv): Handle 64-bit segment size.
8954
8955 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8958
8959 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8960
8961 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8962 character but still remove trainling spaces.
8963 (grub_fat_label): Ignore archive flag.
8964
8965 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
8968 cast between linux_kernel_header and linux_kernel_params.
8969
8970 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
8973 type for size.
8974 (grub_raid6_recover_func_t): Likewise.
8975 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
8976 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
8977
8978 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8979
8980 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
8981
8982 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
8983
8984 Fix overflow.
8985
8986 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
8987 [__NetBSD__]: Add explicit cast before bitshift.
8988
8989 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * configure.ac: Bump to 2.00~rc1.
8992
8993 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
8996 half of $a0.
8997
8998 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
8999 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9000
9001 * docs/grub.texi: Fix search syntax.
9002 (Multi-boot manual config): Put msdos rather than GPT example.
9003 Grammar corrections.
9004
9005 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9008
9009 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9010
9011 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9012
9013 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9016 message on double free. Put the value of magic in case of mismatch.
9017
9018 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 Speed-up video on yeeloong.
9021
9022 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9023 add cached_ptr.
9024 (grub_video_sm712_video_fini): Unmap cached_ptr.
9025 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9026 (grub_video_sm712_set_active_render_target): Removed.
9027 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9028 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9029 sync caches.
9030
9031 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9032
9033 Avoid flushing the same line multiple times on loongson.
9034
9035 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9036 Step in 32 bytes and not 1 byte.
9037 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9038 Likewise.
9039
9040 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9041
9042 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9043 subvolumes.
9044
9045 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 Implement flow control for http.
9048
9049 * grub-core/net/http.c (parse_line): Handle response 206.
9050 (http_receive): Stall if too many packets are in the queue.
9051 (http_establish): Fix range header.
9052 (http_seek): Fix double free.
9053 (http_close): Likewise.
9054 (http_packets_pulled): New function.
9055 (grub_http_protocol): Set http_seek
9056 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9057 (ack_real): Set window depending on i_stall.
9058 (grub_net_send_tcp_packet): Likewise.
9059 (grub_net_tcp_stall): New function.
9060 (grub_net_tcp_unstall): Likewise.
9061 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9062 (grub_net_tcp_unstall): Likewise.
9063
9064 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9065
9066 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9067
9068 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9071
9072 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * tests/util/grub-shell.in: Fix a typo.
9075
9076 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 Implement flow control for tftp.
9079
9080 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9081 packets but stop only if stop condition is satisfied.
9082 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9083 `stall' instead of `eof' as stop condition.
9084 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9085 (http_err): Likewise.
9086 * grub-core/net/tftp.c (ack): Replace the first argument with data
9087 instead of socket.
9088 (tftp_receive): Stall if too many packets are in wait queue.
9089 (tftp_packets_pulled): New function.
9090 (grub_tftp_protocol): Set packets_pulled.
9091 * include/grub/net.h (grub_net_packets): New field count.
9092 (grub_net_put_packet): Increment count.
9093 (grub_net_remove_packet): Likewise.
9094 (grub_net_app_protocol): New field `packets_pulled'.
9095 (grub_net): New field `stall'.
9096
9097 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9098
9099 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9100 sync part to handle them.
9101
9102 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9105 * grub-core/net/drivers/ieee1275/ofnet.c
9106 (grub_ieee1275_net_config_real): Likewise.
9107
9108 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9109
9110 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9111 the direct route for server/gateway.
9112
9113 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9114
9115 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9116 IP address to server name since we may not hame the DNS.
9117
9118 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9119
9120 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9121 freeing random buffer on failure.
9122 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9123
9124 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9125
9126 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9127
9128 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9131 reserved bytes.
9132 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9133 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9134 Handle malloc error correctly.
9135
9136 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9137
9138 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9139 blocks.
9140
9141 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9144 increment.
9145
9146 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9149 none is explicitly specified.
9150
9151 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9152
9153 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9154 while reallocating.
9155
9156 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 Respect netmask from bootp/dhcp.
9159
9160 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9161 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9162 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9163 into ...
9164 (grub_net_add_ipv4_local): ... this.
9165 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9166 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9167 (grub_net_add_ipv4_local): New proto.
9168
9169 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9170
9171 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9172 determining EFI memory map size.
9173
9174 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9177
9178 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9179
9180 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9181 when looking for partition separator.
9182
9183 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9186 Escape commas.
9187
9188 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 Restructure FAT driver to avoid hook in label reading as it hits a
9191 GCC bug.
9192
9193 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9194 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9195 (grub_fat_iterate_dir): Split into ...
9196 (grub_fat_iterate_init): ... this, ...
9197 (grub_fat_iterate_fini): ... this, ...
9198 (grub_fat_iterate_dir_next): ... and this. All users updated.
9199
9200 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9201
9202 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9203 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9204 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9205 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9206 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9207 New fields last_key and last_key_time.
9208 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9209 extended key-esc into extended key-extended key.
9210
9211 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 Avoid unnecessary memcpy of whole video buffer.
9214
9215 * grub-core/video/fb/video_fb.c (dirty): New struct.
9216 (framebuffer): Add members current_dirty and previous_dirty.
9217 (dirty): New function.
9218 (grub_video_fb_fill_rect): Update dirty.
9219 (common_blitter): Likewise.
9220 (grub_video_fb_scroll): Likewise.
9221 (doublebuf_blit_update_screen): Copy only dirty part.
9222 (doublebuf_pageflipping_update_screen): Likewise.
9223 (grub_video_fb_doublebuf_blit_init): Init dirty.
9224 (doublebuf_pageflipping_init): Likewise.
9225 (grub_video_fb_setup): Likewise.
9226
9227 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9228
9229 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9230 poll rate.
9231
9232 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 Fix wildcard regexp dot and other special characters handling.
9235 Reported by: Robert Mabee.
9236
9237 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9238 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9239 (split_path): Trigger expansion on '?'.
9240 (unescape): New function.
9241 (wildcard_expand): Unescape parts copied without globbing.
9242 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9243 (grub_script_arglist_to_argv): Don't unescape expansions.
9244
9245 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 * include/grub/net.h (grub_net_card): New member txbufsize.
9248 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9249 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9250 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9251 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9252 txbufsize.
9253 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9254 compatible property to check for macs. Set
9255 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9256 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9257 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9258 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9259 (send_card_buffer): Use txbuf.
9260 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9261 nested function out of the parent while on it.
9262
9263 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9266 presence check.
9267 (grub_ieee1275_net_config_real): Fix config pointer.
9268
9269 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9272 filename parsing to non-block devices.
9273
9274 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9275
9276 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9277
9278 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9279
9280 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9281 All users updated.
9282
9283 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9286 UUID search command even if hints probing failed.
9287
9288 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 * po/POTFILES.in: Regenerated.
9291
9292 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 Speed-up video on fuloong.
9295
9296 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9297 New function.
9298 (grub_pci_device_unmap_range): Handle non-cached address.
9299 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9300 add direct_ptr.
9301 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9302 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9303 (grub_video_sis315pro_set_active_render_target): Removed.
9304 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9305 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9306 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9307 sync caches.
9308 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9309 New proto.
9310
9311 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 * docs/grub.texi (Multi-boot manual config): New section.
9314
9315 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9316
9317 Avoid slow read-back from VRAM.
9318
9319 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9320 Move from here ...
9321 * grub-core/video/fb/video_fb.c
9322 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9323 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9324 (front_target): Remove front_target. Add pages.
9325 (grub_video_fb_init): Skip setting front_pages.
9326 (grub_video_fb_fini): Likewise.
9327 (doublebuf_blit_update_screen): Use pages.
9328 (grub_video_fb_doublebuf_blit_init): Likewise.
9329 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9330 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9331 (grub_video_fb_setup): Prefer doublebuffing.
9332
9333 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9334
9335 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9336 gzio.
9337
9338 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9339
9340 Add loongson tests.
9341
9342 * tests/util/grub-shell.in: Handle loongson.
9343 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9344 drivers.
9345 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9346 Reboot instead of shutdown if REBOOT is defined.
9347
9348 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9349
9350 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9351 sized ports since unlike on real hardware qemu supports only 32-bit
9352 regs.
9353
9354 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9357 * util/grub-mkrescue.in: Handle loongson.
9358
9359 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9360
9361 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9362 Set is_part appropriately.
9363 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9364 names. Canonicalize partition without full disk.
9365
9366 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9367
9368 Revert usb-quiesce since it's wrong.
9369
9370 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9371 (grub_ofdisk_init): Don't do quiesce.
9372
9373 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9374
9375 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9376 PowerMac workaround to Xserves as well.
9377 Information supplied by: Benjamin Herrenschmidt.
9378
9379 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 Don't assume that beginning address is also the entry point on ppc.
9382
9383 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9384 (grub_linux_boot): Use linux_entry.
9385 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9386 (grub_linux_load64): Likewise.
9387
9388 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9389
9390 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9391
9392 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9395 needlessly lose the console.
9396
9397 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9398
9399 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9400 space.
9401
9402 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9403
9404 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9405 than current grub_get_rtc() not implemented when booted with
9406 coreboot without TSC.
9407
9408 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9409 Add machine/time.h to kernel headers on loongson.
9410 * grub-core/Makefile.core.def (kernel): Remove
9411 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9412 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9413 (grub_get_rtc): Likewise.
9414 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9415 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9416 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9417 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9418 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9419 rather than installing known non-working time source.
9420 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9421 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9422 * include/grub/time.h: Don't include machine/time.h.
9423 * include/grub/efi/time.h: Removed.
9424 * include/grub/i386/efi/time.h: Likewise.
9425 * include/grub/i386/ieee1275/time.h: Likewise.
9426 * include/grub/powerpc/ieee1275/time.h: Likewise.
9427 * include/grub/sparc64/ieee1275/time.h: Likewise.
9428 * include/grub/x86_64/efi/time.h: Likewise.
9429
9430 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 Remove dot on i and j when combining with above diacritics.
9433
9434 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9435 value.
9436 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9437 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9438 with dotless variants when any combining above is present.
9439
9440 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9441
9442 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9443 text and not binary.
9444
9445 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 Stop polling as soon as we have the packet we were waiting for.
9448
9449 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9450 All users updated.
9451 * grub-core/net/arp.c (have_pending): New var.
9452 (pending_req): Likewise.
9453 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9454 stop indicator.
9455 (grub_net_arp_receive): Set have_pending.
9456 * grub-core/net/dns.c (recv_data): New field stop.
9457 (recv_hook): Set stop.
9458 (grub_net_dns_lookup): Init stop and use as stop condition.
9459 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9460 condition.
9461 * grub-core/net/net.c (grub_net_poll_cards): New argument
9462 stop_condition. Stop when it goes true.
9463 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9464 indicator.
9465 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9466
9467 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9468
9469 Keep TX and RX buffers on EFI rather than always allocate new ones.
9470
9471 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9472 card. All users updated.
9473 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9474 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9475 (get_card_packet): Likewise.
9476 (grub_efinet_findcards): Init new fields.
9477
9478 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9481 compilation error on sparc64.
9482
9483 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9484
9485 Use ITC on IA64 rather than broken routine based on daytime.
9486
9487 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9488 ia64.
9489 (grub_get_rtc) [__ia64__]: Likewise.
9490 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9491 (get_itc): New function.
9492 (grub_rtc_get_time_ms): Likewise.
9493 (grub_machine_init): Calibrate ITC.
9494 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9495 Keep only on non-ia64. Don't export since it's broken and used only
9496 if TSC is unavailable.
9497
9498 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9499
9500 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9501 even if it's used.
9502 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9503 Skip if parent is unused.
9504
9505 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9508
9509 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9510
9511 Fix wildcard escaping.
9512
9513 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9514 * grub-core/script/execute.c (wildcard_escape): .. to here.
9515 Don't escape dot.
9516 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9517 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9518 Don't escape dot.
9519 * grub-core/script/execute.c (gettext_append): Always escape.
9520 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9521 * grub-core/script/yylex.l: Don't cut away the escaping.
9522 * tests/grub_script_echo1.in: Add tests with wildcard.
9523
9524 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9525
9526 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9527 (ftdi_hw_configure): Likewise.
9528 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9529 define.
9530 (real_config): Handle 1.5 stop bits.
9531 (pl2303_hw_configure): Likewise.
9532
9533 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * Makefile.am: Add ppc linux bootcheck.
9536 * grub-core/tests/boot/linux-ppc.cfg: New file.
9537 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9538
9539 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * tests/grub_script_expansion.in: Skip network protocols.
9542
9543 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9546
9547 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9550 --rom-directory.
9551 Add -graft-points.
9552
9553 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9554
9555 ESCC serial driver for conducting sautomated tests in qemu.
9556 Not tested on real hardware.
9557
9558 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9559 * grub-core/term/ieee1275/escc.c: New file.
9560 * grub-core/Makefile.core.def (escc): New module.
9561
9562 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9563
9564 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9565 invalid on error.
9566 (serial_hw_fetch): Don't read invalid handle.
9567 (serial_hw_put): Don't write into invalid handle.
9568
9569 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9570
9571 Add a 1.5 stop bits value.
9572
9573 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9574 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9575 GRUB_SERIAL_STOP_BITS_1_5.
9576
9577 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9580 value rather than let it uninited.
9581
9582 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * grub-core/commands/wildcard.c (+check_file): New function.
9585 (wildcard_expand): Don't expand to non-existing files, expand with
9586 suffix and not attempt to expand if not needed.
9587
9588 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9589
9590 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9591 out of partitions containing other partitions.
9592
9593 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9594
9595 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9596 on some qemu versions with GRUB.
9597
9598 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9599 define.
9600 (grub_openbsd_bootarg_pcibios): New struct.
9601 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9602 Add PCIINFO.
9603
9604 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * tests/util/grub-shell.in: Trim firmware output on EFI.
9607
9608 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9609
9610 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9611 and coreboot since it's already in kernel.
9612
9613 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9616 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9617 to here. New return value start. All users updated.
9618 Recursively scan linear mappings.
9619 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9620 proto.
9621 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9622 Use grub_util_get_dm_node_linear_info.
9623 * util/getroot.c (convert_system_partition_to_system_disk): Use
9624 grub_util_info rather than grub_dprintf.
9625 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9626
9627 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9628
9629 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9630
9631 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9632 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9633
9634 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9635
9636 * include/grub/types.h (grub_set_unaligned64): New function.
9637 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9638 (setup): Likewise.
9639
9640 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9641
9642 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9643 (grub_ofdisk_fini): Quiesce USB devices.
9644
9645 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9646
9647 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9648 caches.
9649
9650 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9651
9652 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9653
9654 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9655
9656 * grub-core/disk/pata.c (grub_pata_pio_read)
9657 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9658 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9659
9660 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Extend automated tests to qemu-mips.
9663
9664 * Makefile.am: reorganise tests and enable qemu-mips.
9665 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9666 * grub-core/tests/boot/linux.init-mips.S: New file.
9667 * tests/partmap_test.in: Handle ata0 disks.
9668 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9669 non-pc i386.
9670
9671 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9672
9673 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9674 ia64.
9675 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9676 quotes while on it.
9677
9678 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9681 (grub_halt): Likewise.
9682 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9683
9684 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 * grub-core/term/serial.c (grub_serial_register)
9687 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9688 the behaviour in line with x86 platforms.
9689
9690 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9693 (grub_ata_strncpy): Likewise.
9694 (grub_ata_identify): Add missing byteswaps.
9695
9696 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9699 byte-swap.
9700 (screen_read_char): Likewise.
9701 (grub_vga_text_cls): Likewise.
9702
9703 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9706 filenames.
9707 (make_file_path): Likewise.
9708
9709 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9712 machines.
9713 Tested by: Paulo Flabiano Smorigo.
9714 Crucial information about API supplied by: Coleen <Last name unknown>.
9715 Reviewed by: Coleen <Last name unknown>.
9716
9717 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9718
9719 * util/grub-mkimage.c: Disable -Wcast-align.
9720
9721 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9722
9723 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9724 as they are fatal.
9725
9726 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9729
9730 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9731
9732 * util/grub-probe.c (escape_of_path): Fix double free.
9733
9734 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9735
9736 * grub-core/commands/videoinfo.c (hook): Show pitch.
9737
9738 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9739
9740 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9741
9742 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9745 (probe): Add ieee1275 to OFW devices.
9746
9747 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9750
9751 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 Handle IBM OFW path.
9754
9755 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9756 available.
9757 (of_path_of_scsi): Handle vdevice.
9758
9759 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9762 Allocate in multiples of 16 to avoid adding a few bytes free region the
9763 windows bugs upon.
9764
9765 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9766
9767 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9768 Allocate in multiples of 16 to avoid adding a few bytes free region the
9769 windows bugs upon.
9770 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9771
9772 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9775 resolutions.
9776 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9777 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9778
9779 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9780
9781 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9782
9783 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9784
9785 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9786 resulted in \\ at the end of the line.
9787
9788 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9791 (grub_parser_cmdline_state): Likewise.
9792 (grub_parser_split_cmdline): Likewise.
9793
9794 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9797 /dev/root and /dev/dm-*.
9798
9799 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9802 fix partially stale display.
9803
9804 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9805
9806 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9807 substraction.
9808
9809 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9810
9811 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9812 Fix MBR remapping workaround.
9813 (grub_util_biosdisk_read) [__linux__]: Likewise.
9814
9815 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9818
9819 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9820
9821 * configure.ac: Bump to beta6.
9822
9823 2012-05-31 Christer Weinigel <christer@weinigel.se>
9824
9825 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9826
9827 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9828
9829 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9830 (grub_cmd_linux): Likewise.
9831
9832 2012-05-31 Christer Weinigel <christer@weinigel.se>
9833
9834 Fix EHCI low-speed.
9835
9836 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9837 (GRUB_EHCI_MULT_TWO): Likewise.
9838 (GRUB_EHCI_MULT_THREE): Likewise.
9839 (GRUB_EHCI_CMASK_MASK): New enum value.
9840 (GRUB_EHCI_SMASK_MASK): Likewise.
9841 (GRUB_EHCI_CMASK_OFF): Likewise.
9842 (GRUB_EHCI_SMASK_OFF): Likewise.
9843 (grub_ehci_pci_iter): Enable periodic schedule.
9844 (grub_ehci_parse_notrun): Likewise.
9845 (grub_ehci_restore_hw): Likewise.
9846 (grub_ehci_setup_qh): Set flags for low speed transfers.
9847 (grub_ehci_find_qh): Use periodic list for low speed.
9848 (grub_ehci_setup_transfer): Check periodic queue as well.
9849 (grub_ehci_check_transfer): Likewise.
9850 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9851
9852 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9853
9854 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9855 parameter is used.
9856
9857 2012-05-31 Peter Jones <pjones@redhat.com>
9858
9859 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9860 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9861 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9862
9863 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9866 uninited variable. Allocate at least setup_sects.
9867
9868 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 Fix handling of EFI with big memory maps.
9871
9872 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9873 (real_mode_mem): Likewise.
9874 (real_mode_target): Likewise.
9875 (real_mode_pages): Likewise.
9876 (prot_mode_pages): Likewise.
9877 (linux_params): New var.
9878 (linux_cmdline): Likewise.
9879 (free_pages): Don't set real mode variables.
9880 (allocate_pages): Don't allocate real mode memory.
9881 (grub_e820_add_region): Remove the limit.
9882 (grub_linux_boot): Allocate and copy real mode memory.
9883 (grub_linux_unload): Free linux_cmdline.
9884 (grub_cmd_linux): Use temporary storage for parameters.
9885 (grub_cmd_initrd): Likewise.
9886 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9887 (linux_kernel_params): Make it 1K big.
9888
9889 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * Makefile.util.def: Remove -Wno-format.
9892 * grub-core/Makefile.core.def: Likewise.
9893
9894 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * tests/cmp_unit_test.c: Add missing failure message.
9897 * tests/example_unit_test.c: Likewise.
9898 * tests/printf_unit_test.c: Likewise.
9899
9900 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9901
9902 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9903 relaxation of protective MBR requirements.
9904
9905 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9906
9907 * configure.ac: Add condition for COND_HOST_XNU.
9908 * Makefile.util.def (10_xnu): New script.
9909 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9910
9911 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9914 objconv bug.
9915
9916 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9919 Binary on other platforms stays identical.
9920
9921 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9924 Apple.
9925
9926 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9929
9930 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9933 rather than defining size_t ourselves to avoid conflict.
9934
9935 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9938 initialisation to avoid __bzero reference.
9939
9940 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9943 version.
9944 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9945 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9946 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9947 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9948 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9949
9950 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9953 * grub-core/kern/misc.c: Likewise.
9954 * grub-core/loader/i386/xnu.c: Likewise.
9955 * include/grub/i386/tsc.h: Likewise.
9956 * include/grub/symbol.h: Likewise.
9957
9958 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9961 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
9962 on older compiler.
9963
9964 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
9967 Implement Apple flavour.
9968 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
9969
9970 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
9973 (memmove) [__APPLE__]: Likewise.
9974 (memcpy) [__APPLE__]: Likewise.
9975 (memset) [__APPLE__]: Likewise.
9976 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
9977 (memmove) [__APPLE__]: Likewise.
9978 (memcpy) [__APPLE__]: Likewise.
9979 (memset) [__APPLE__]: Likewise.
9980
9981 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9982
9983 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
9984 dependency discard.
9985
9986 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 * grub-core/normal/main.c (read_config_file): Provide config_file and
9989 config_directory.
9990 * util/grub.d/41_custom.in: Use config_directoy when available.
9991
9992 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
9995 (grub_bfs_dir): Likewise.
9996
9997 2012-05-27 Peter Jones <pjones@redhat.com>
9998
9999 The old code gives arguments to a printf function which can't work
10000 correctly, and the compiler complains.
10001
10002 * grub-core/tests/example_functional_test.c (example_test): Add
10003 missing text.
10004 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10005 * include/grub/test.h (grub_test_assert_helper): New declaration.
10006 (grub_test_assert): Use grub_test_assert_helper.
10007
10008 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10011 (exfctest): ... this to avoid overlong filenames.
10012 All users updated.
10013
10014 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 Handle "." and ".." on squashfs.
10017
10018 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10019 Make inode numbers into stack.
10020 (grub_squash_read_symlink): Use stack.
10021 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10022 (make_root_node): Fill stack.
10023 (grub_squash_open): Use stack.
10024
10025 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10026
10027 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10028 freeing.
10029
10030 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10031
10032 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10033 stderr on test calls.
10034
10035 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10038
10039 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10040
10041 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10042
10043 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10046 "..".
10047
10048 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10051 (grub_hfsplus_iterate_dir): Add "." and "..".
10052
10053 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10054
10055 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10056 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10057
10058 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10061 (find_path): Handle "." and "..".
10062
10063 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10064
10065 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10066 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10067 (grub_affs_iterate_dir): Handle hardlinks.
10068
10069 2012-05-26 Matthew Garrett <mjg@redhat.com>
10070
10071 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10072 (grub_efi_console_fini): Likewise.
10073 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10074 (grub_video_gop_fill_mode_info): Rename to ...
10075 (grub_video_gop_fill_real_mode_info): ... this.
10076 (grub_video_gop_fill_mode_info): New function.
10077 (grub_video_gop_setup): Setup double framebuffer.
10078 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10079 Free offscreen.
10080 (grub_video_gop_swap_buffers): Copy framebuffer.
10081 (grub_video_gop_fini): Free offscreen buffer.
10082 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10083 New enum.
10084 (grub_efi_gop_blt_pixel): New struct.
10085
10086 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * gentpl.py: Remove error disabling for objconv.
10089
10090 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10091
10092 * configure.ac: Remove -Wunitialized as it's not available on older
10093 compilers.
10094
10095 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 Fix extent overflow comparator.
10098
10099 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10100 (grub_hfsplus_read_block): Set type.
10101 (grub_hfsplus_cmp_extkey): Compare type.
10102
10103 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10104
10105 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10106
10107 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10108
10109 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10110 than 0.
10111
10112 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10113
10114 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10115 (dejavu_bold_14.pf2): New target.
10116
10117 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10118
10119 * configure.ac: Fix djvu font detection.
10120
10121 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10124 ext* instead of ext2.
10125
10126 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10129 name with \0.
10130
10131 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10132
10133 * docs/grub-dev.texi: Remove dot from .png.
10134
10135 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10138 protective entry in any slot.
10139 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10140 if protective entry is found in any slot.
10141
10142 Protective entry in non-first slot make no sense but is a widespread
10143 brain damage.
10144
10145 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10148
10149 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10150
10151 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10152 with old reiserfs.
10153 (grub_reiserfs_open): Don't free root.
10154
10155 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10156
10157 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10158 after freeing for safety.
10159
10160 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10161
10162 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10163 Reported by: Jordan Uggla.
10164
10165 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10166
10167 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10168 actual implementation. Specifically, clarify that the grub menu will
10169 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10170 passed.
10171
10172 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10173
10174 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10175 of r0.
10176
10177 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 Remove unjustified hard dependency of normal.mod on gfxterm.
10180
10181 * include/grub/term.h (grub_term_output): New member fullscreen.
10182 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10183 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10184 (grub_gfxterm): Set .fullscreen.
10185 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10186 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10187
10188 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10189
10190 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10191 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10192 Mention case-insensitive AFFS, SFS and JFS.
10193
10194 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10197
10198 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10201 a bad FS.
10202
10203 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10206 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10207
10208 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10211 (grub_jfs_mount): Fill caseins.
10212 (grub_jfs_find_file): Respect caseins.
10213
10214 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10215
10216 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10217 through UTF-16.
10218
10219 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10220
10221 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10222 New argument origpath. All users updated.
10223
10224 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10225
10226 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10227 (read_attr): Ensure that we read start of possibly compressed block.
10228
10229 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10232 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10233 All users updated.
10234
10235 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10238 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10239 (dejavu.pf2): Replace with ...
10240 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10241 this.
10242
10243 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10244
10245 * util/grub.d/20_linux_xen.in: Add missing line.
10246
10247 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10250 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10251 (grub_utf16_to_utf8): Likewise.
10252
10253 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10256 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10257 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10258 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10259 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10260 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10261
10262 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10263
10264 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10265 a bad FS.
10266
10267 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10268
10269 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10270 (grub_udf_read_symlink): Handle read_string failure.
10271
10272 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10273
10274 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10275 comment.
10276
10277 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 Fix handling of UDF symlinks.
10280
10281 * grub-core/fs/udf.c (read_string): New argument outbuf.
10282 All users updated.
10283 (grub_ufs_read_symlink): Rename to ...
10284 (grub_udf_read_symlink): ... this. All users updated.
10285 Handle symlinks with more than one component.
10286
10287 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10288
10289 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10290 symlinks. Replace leading colon with a slash.
10291
10292 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10295 filename.
10296
10297 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10298
10299 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10300 match in inner node.
10301
10302 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10305 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10306 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10307 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10308 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10309 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10310 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10311 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10312 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10313
10314 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 Use grub-probe and not cmp to check that disk is empty.
10317
10318 * util/grub-install.in: Use grub-probe for zero-check.
10319 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10320 (probe): Handle PRINT_ZERO_CHECK.
10321 (argp_parser): Handle -t zero_check.
10322
10323 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10324
10325 Flush block cache on adding disk to device map.
10326
10327 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10328 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10329 adding.
10330 (read_device_map): Likewise.
10331 (open_device): Flush on opening.
10332
10333 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10334
10335 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10336 (handle_symlink): Fix off-by-one error.
10337 Canonicalize the target.
10338 (grub_cpio_dir): Canonicalize the name.
10339 Fix memory leak.
10340 Set directory.
10341 (grub_cpio_open): Canonicalize the name.
10342
10343 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10346 handling.
10347
10348 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10351 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10352
10353 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10354
10355 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10356 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10357 All users updated.
10358
10359 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10362 counterpart.
10363
10364 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10365
10366 Fix UFS1 big file support.
10367
10368 * grub-core/fs/ufs.c (INODE): Removed.
10369 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10370 64-bit.
10371 (INODE_MODE): Simplify.
10372 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10373 (grub_ufs_lookup_symlink): Don't use INODE.
10374
10375 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10378
10379 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10380 (grub_minix_data): Replace log_block_size with block_size.
10381 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10382 (grub_minix_mount): Fill block_size.
10383
10384 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 * configure.ac: Bump to beta5.
10387
10388 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 Fix wrapped HFS+ handling.
10391
10392 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10393 blocks_start. All users updated.
10394 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10395 wrapping offset.
10396 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10397
10398 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 Fix long symlinks on reiserfs.
10401
10402 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10403 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10404 (grub_reiserfs_iterate_dir): Save size for non-directories.
10405 (grub_reiserfs_open): Don't reread stat block as we already know the
10406 size.
10407 (grub_reiserfs_read): Split into...
10408 (grub_reiserfs_read_real): ... and ...
10409 (grub_reiserfs_read): ...this.
10410
10411 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 Fix non-indexed JFS.
10414
10415 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10416 (grub_jfs_data): New field namecomponentlen.
10417 (grub_jfs_mount): Fill namecomponentlen.
10418 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10419
10420 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10423 * tests/grub_script_echo1.in: Add tests.
10424
10425 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * util/grub-install.in: Ignore empty devicetree directory.
10428
10429 2012-05-08 Bean <bean123ch@gmail.com>
10430
10431 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10432 All users updated.
10433 (free_rsm): Free header as well.
10434 (free_old_fragments): Fix memory leak.
10435 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10436 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10437 (destroy_pq): Likewise.
10438 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10439
10440 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10443 resulting hash as a precaution.
10444
10445 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10446
10447 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10448 '_' in variable names.
10449 * grub-core/net/net.c (grub_net_network_level_interface_register):
10450 Likewise.
10451
10452 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10453
10454 Fix AFFS with non-512B blocks.
10455
10456 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10457 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10458 (grub_affs_data): Replace blocksize with log_blocksize.
10459 (grub_affs_read_block): Fix non-512B blocks.
10460 (grub_affs_read_symlink): Likewise.
10461 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10462 (grub_affs_read): Fix non-512B blocks.
10463 (grub_affs_label): Likewise.
10464 (grub_affs_mtime): Likewise.
10465 (grub_affs_mount): Fix block detection routine.
10466
10467 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10468
10469 Add filesystem mtime to AFFS.
10470
10471 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10472 (aftime2ctime): New function.
10473 (grub_affs_dir): Use aftime2ctime.
10474 (grub_affs_label): Fix return value.
10475 (grub_affs_mtime): New function.
10476 (grub_affs_fs): Add mtime.
10477
10478 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10481 UTF-8.
10482
10483 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10484
10485 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10486 UTF-8.
10487
10488 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10491
10492 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10495 flags.
10496 (FLAGS_CASE_SENSITIVE): New enum value.
10497 (cache_entry): New struct.
10498 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10499 cache_size and cache.
10500 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10501 Add log_blocksize and fshelp_flags.
10502 (grub_sfs_read_extent): Handle non-512 blocks.
10503 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10504 (grub_sfs_read_file): Handle non-512 blocks.
10505 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10506 fshelp_flags.
10507 (grub_sfs_read_symlink): Handle non-512 blocks.
10508 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10509 (grub_sfs_dir): Free cache.
10510 (grub_sfs_close): Likewise.
10511
10512 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10515 filesystems.
10516
10517 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10520
10521 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10522
10523 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10524
10525 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10526
10527 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10528 (grub_sfs_read_extent): Likewise.
10529 (grub_sfs_read_block): Likewise.
10530 (grub_sfs_mount): Likewise.
10531 (grub_sfs_iterate_dir): Likewise.
10532 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10533 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10534
10535 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10536
10537 Fix errors on compressed NTFS with 512B clusters.
10538
10539 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10540 types.
10541 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10542 not 0.
10543 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10544 Relax check for inline extents.
10545 (ntfscomp): Return correct -1 on error and not 0.
10546
10547 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10548
10549 * util/grub-install.in: Fix handling of prefix containing spaces.
10550
10551 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10552
10553 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10554 (grub_squash_read_data): Fix offset byte-swapping.
10555
10556 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10557
10558 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10559 per common usage and preffered in several parts of code.
10560 (grub_memcmp): Likewise.
10561 (grub_strncmp): Likewise.
10562 * include/grub/misc.h (grub_strcasecmp): Likewise.
10563 (grub_strncasecmp): Likewise.
10564 * Makefile.util.def (cmp_test): New test.
10565 (grub_script_strcmp): Likewise.
10566 * tests/cmp_unit_test.c: New file.
10567 * tests/grub_script_strcmp.in: Likewise.
10568 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10569
10570 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10571
10572 * include/grub/pci.h: Move enums into no-asm part.
10573
10574 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10577
10578 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10579
10580 * util/getroot.c (find_hurd_root_device): Try to make error message
10581 and comments to translators clearer.
10582
10583 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10584
10585 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10586
10587 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10588
10589 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10590 btrfs.
10591
10592 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10593
10594 * docs/grub.cfg: Update.
10595
10596 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * docs/grub.texi (PXE): Remove not present variables.
10599
10600 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10601
10602 * grub-core/net/net.c (defserver_set_env): New function.
10603 (defserver_get_env): Likewise.
10604 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10605
10606 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10609 entries.
10610
10611 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10614 * grub-core/kern/emu/hostdisk.c: Likewise.
10615
10616 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10617
10618 Handle hurd userspace partitions.
10619
10620 * util/getroot.c (find_hurd_root_device): New function.
10621 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10622
10623 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10626 names.
10627 Reported by: Bastian Blank.
10628
10629 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10630
10631 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10632 crossing page boundary.
10633
10634 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 Fix B-tree search in BFS, especially in presence of non-ASCII
10637 characters.
10638
10639 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10640 (find_in_b_tree): Use standard bsearch + btree algorithm.
10641
10642 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10643
10644 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10645 and so on.
10646
10647 2012-05-03 Matthew Garrett <mjg@redhat.com>
10648 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 Suspend broadcom cards in order to stop their DMA.
10651
10652 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10653 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10654 (pci): Don't build on x86 EFI.
10655 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10656 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10657 New function.
10658 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10659 stop_broadcom if running on EFI.
10660 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10661 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10662 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10663 (grub_pci_find_capability): New proto.
10664
10665 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * docs/grub.texi: Remove dot from the extension as it apparently
10668 doesn't work with some makeinfo versions.
10669
10670 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10673 with GRUB expectance.
10674
10675 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10676
10677 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10678
10679 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10680
10681 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10682 zero after directory block since last entry may be not 0-terminated if
10683 it ends on block boundary. Use continue instead of if spanning whole
10684 loop.
10685
10686 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 Support 4K sectors UDF inline files.
10689
10690 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10691 (grub_udf_extended_file_entry): Likewise.
10692 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10693 All users updated.
10694 (get_fshelp_size): New function.
10695 (grub_udf_read_icb): Read whole block.
10696 (grub_udf_iterate_dir): Likewise.
10697 (grub_udf_dir): Likewise.
10698 (grub_udf_open): Likewise.
10699
10700 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10701
10702 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10703
10704 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10705
10706 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10707 inline symlinks in addition to workaround.
10708
10709 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10712
10713 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10714
10715 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10716
10717 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10720
10721 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 Fix reiserfs big seek times.
10724
10725 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10726 exact. All users updated.
10727 (grub_reiserfs_read): Use nearest btree search for seeking.
10728 Fix return value on error.
10729
10730 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10733 entries.
10734 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10735 * docs/grub.texi: Update menuentry description.
10736
10737 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10740 crash when embedding onto filesystem.
10741
10742 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10745 name.
10746
10747 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10750
10751 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10754 commit.
10755
10756 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10757 2012-05-01 Bean <bean123ch@gmail.com>
10758
10759 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10760
10761 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10764 Special behaviour for len = 0 to read whole file isn't used anywhere and
10765 can cause buffer ovewrflows in several places.
10766
10767 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10770
10771 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10772
10773 Handle RAIDZ on non-512B sectors.
10774
10775 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10776 max_children_ashift.
10777 (fill_vdev_info_real): Fill max_children_ashift.
10778 (read_device): Use max_children_ashift.
10779
10780 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10781
10782 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10783
10784 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10785
10786 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10787 disk names.
10788 * docs/grub.texi: Update device.map parts.
10789
10790 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10791
10792 Don't scan into non-diskfilter devices having diskfilter names.
10793
10794 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10795 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10796 handling.
10797 (scan_disk_hook): New function.
10798
10799 2012-04-29 Bean <bean123ch@gmail.com>
10800
10801 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10802 allocation.
10803
10804 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10805
10806 * configure.ac: Detect starfield theme font path
10807 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10808
10809 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10812 geometry on serial consoles.
10813
10814 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10815
10816 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10817 because of network consoles.
10818
10819 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10820
10821 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10822 handling.
10823
10824 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10825
10826 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10827 falls on Q syndrom.
10828
10829 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10832 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10833
10834 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10835
10836 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10837 Allocate at lest 8192 for temporary buffer as required for lzo.
10838
10839 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10840
10841 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10842 to cluster_bits, since it's already added in.
10843 (grub_fat_read_data): Likewise.
10844
10845 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10846
10847 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10848 as long as cluster size is multiple of 512 bytes.
10849
10850 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10851
10852 * util/grub-mkrescue.in: Fix locale directory.
10853
10854 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10855
10856 * grub-core/kern/emu/hostdisk.c (map): Make static.
10857
10858 2012-04-23 Bean <bean123ch@gmail.com>
10859
10860 * util/grub-fstest.c (fstest): Add missing break.
10861
10862 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10863
10864 Fix hurd build.
10865
10866 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10867 not define nr variable.
10868 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10869 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10870 grub_find_device): Do not define.
10871
10872 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10873
10874 Fix kfreebsd compile and behaviour.
10875
10876 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10877 format-security.
10878 * util/getroot.c: Fix wait.h include.
10879 (grub_guess_root_devices): Error if grub_find_device fails.
10880 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10881 (grub_util_get_dev_abstraction): Likewise.
10882 (grub_util_pull_device): Likewise.
10883 (grub_util_get_grub_dev): Likewise.
10884 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10885
10886 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10887
10888 Fix and unify wholedisk detection.
10889
10890 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10891 is_part. All users updated.
10892 (device_is_wholedisk): Removed.
10893 (grub_util_biosdisk_get_grub_dev): Use is_part.
10894
10895 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10896
10897 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10898 mode.
10899
10900 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10901
10902 * configure.ac: Bump to beta4.
10903
10904 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10905
10906 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10907 --fs-uuid --set UUID syntax.
10908
10909 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10910
10911 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10912 disunification.
10913
10914 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10915
10916 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10917
10918 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10919
10920 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10921
10922 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10923
10924 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10925
10926 2012-04-18 Bean <bean123ch@gmail.com>
10927
10928 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10929 place.
10930
10931 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10934 users updated.
10935 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10936 corresponding to GRUB partitions.
10937 (grub_util_biosdisk_write): Likewise.
10938
10939 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10940
10941 Scan mdraid before LVM.
10942
10943 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10944 (grub_diskfilter_register_front): ... this.
10945 (grub_diskfilter_register_back): New function.
10946 All users of grub_diskfilter_register updated.
10947
10948 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 * util/grub-install.in: Fix an automatic target detection bug.
10951
10952 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10953
10954 * util/grub-install.in: New option --efi-directory.
10955
10956 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10959 boot services if we have no other choice.
10960
10961 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10962
10963 * util/grub-mknetdir.in: Rename --override-directory to --directory and
10964 document it.
10965 * tests/util/grub-shell.in: Update to --directory.
10966
10967 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
10970
10971 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10972
10973 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
10974 (grub_minix_read_file): Likewise.
10975 (grub_minix_read_inode): Likewise.
10976 (grub_minix_find_file): Likewise.
10977 (grub_minix_dir): Likewise.
10978
10979 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10980
10981 * util/grub-setup.c (setup): Fix partition handling and blocklist
10982 check.
10983
10984 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
10985
10986 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
10987 redundant buggy overlap check.
10988
10989 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10990
10991 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
10992 and grub-mknetdir.
10993
10994 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
10995
10996 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
10997 kh.loadflags on pre-2.00 kernels.
10998
10999 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11000
11001 Terminate UNDI and PXE before launching the payload to avoid problems
11002 with DMA.
11003
11004 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11005 (grub_loader_flags): ... this. All users updated.
11006 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11007 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11008 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11009 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11010 function.
11011 (grub_pxe_restore): Likewise.
11012 (fini_hnd): New var.
11013 (GRUB_MOD_INIT): Register shutdown hook.
11014 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11015 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11016 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11017 (grub_loader_set): Rename second argument to flags.
11018
11019 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11020
11021 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11022 written bytes.
11023 (grub_get_num_of_utf8_bytes): New function.
11024 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11025 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11026 executing it.
11027 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11028 (grub_ucs4_to_utf8): Change return type.
11029
11030 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11033 warning.
11034 * grub-core/fs/bfs.c (hop_level): Likewise.
11035 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11036
11037 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11038
11039 * grub-core/lib/adler32.c: Recode due to license unclearness.
11040
11041 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11044 (test_header): Likewise.
11045
11046 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11047
11048 Fix --help formatting.
11049
11050 * util/grub-mkconfig_lib.in (print_option_help): New function.
11051 (grub_fmt): Likewise.
11052 * util/grub-install.in: Use print_option_help and grub_fmt.
11053 * util/grub-kbdcomp.in: Likewise.
11054 * util/grub-mkconfig.in: Likewise.
11055 * util/grub-mknetdir.in: Likewise.
11056 * util/grub-mkrescue.in: Likewise.
11057 * util/grub-mkstandalone.in: Likewise.
11058 * util/grub-reboot.in: Likewise.
11059 * util/grub-set-default.in: Likewise.
11060 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11061
11062 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11063
11064 * linguas.sh: Remove autogenerated *.po.
11065
11066 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11067
11068 * po/README: Move language fetcing to ...
11069 * linguas.sh: ... here.
11070 * po/README: Point to linguas.sh.
11071
11072 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11073
11074 * po/README: Exclude ko.po due to disclaimer problems.
11075
11076 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11077
11078 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11079 len = 0.
11080 (grub_gettext_translate_real): Handle 0th string.
11081 (grub_gettext_translate): Ensure that "" isn't translated.
11082
11083 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11084
11085 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11086 TRANSLATORS comment.
11087 (grub_diskfilter_print_partmap): Propagate changing of error into
11088 warning.
11089
11090 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11093 to uint64_t to prevent overflow.
11094 (grub_diskfilter_lv): Increase start_extent and extent_count
11095 to uint64_t to prevent overflow.
11096
11097 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11098
11099 * configure.ac: Increase version.
11100
11101 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11104
11105 * po/Rules-translit: New file.
11106 * po/arabic.sed: Likewise.
11107 * po/cyrillic.sed: Likewise.
11108 * po/greek.sed: Likewise.
11109 * po/hebrew.sed: Likewise.
11110 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11111 * po/Makefile.in.in: Add extra_dist4.
11112
11113 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11114
11115 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11116
11117 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11118 modify names. Introduce MODE_BIGENDIAN.
11119 * grub-core/fs/minix_be.c: New file.
11120 * grub-core/fs/minix2_be.c: Likewise
11121 * grub-core/fs/minix3_be.c: Likewise.
11122 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11123 minix3_be.
11124 * grub-core/Makefile.core.def (minix_be): New module.
11125 (minix2_be): Likewise.
11126 (minix3_be): Likewise.
11127
11128 2012-04-01 Felix <email@hamburg.de>
11129
11130 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11131 (devs): Add MBP 2011.
11132
11133 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11136
11137 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11138
11139 * grub-core/normal/cmdline.c (print_completion): New field
11140 prompt_len.
11141 (grub_cmdline_get): Handle width properly.
11142
11143 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11144
11145 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11146
11147 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11148
11149 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11150 after 29th of February.
11151
11152 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11153
11154 Fix exfat endianness handling.
11155
11156 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11157 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11158 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11159 Byte-swap utf16 when necessary.
11160 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11161
11162 2012-03-31 Anton Blanchard <anton@samba.org>
11163 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 Fix btrfs endianness handling.
11166
11167 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11168 (lower_bound): Make root uint64_t. Use root in le.
11169 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11170 (find_path): Fix template key init.
11171 (grub_btrfs_dir): Fix mtime byteswap.
11172 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11173
11174 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11175
11176 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11177 recursion_depth. Break infinite resursions. All users updated.
11178
11179 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11180
11181 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11182 after free.
11183 Reported by: Peter Jones.
11184
11185 2012-03-31 Anton Blanchard <anton@samba.org>
11186
11187 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11188 8 bit values.
11189
11190 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 * util/grub-install.in: Fix nvram call for PreP.
11193
11194 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11197 the error when some elements are missing into a warning.
11198
11199 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11202
11203 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11204
11205 * docs/grub.texi (Invoking grub-probe): New section.
11206 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11207
11208 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11209
11210 Fix tab and wide character handling in editor and menu.
11211
11212 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11213 agglomerate control characters with combining marks.
11214 (bidi_line_wrap): Allow break on tab.
11215 (grub_unicode_get_comb_start): New function.
11216 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11217 and tab correctly.
11218 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11219 with a space.
11220 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11221 fixed_tab_size. All users updated.
11222 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11223 (grub_term_getcharwidth): Handle \t.
11224 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11225 and copy.
11226
11227 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11228
11229 Handle big-endian mdraid.
11230
11231 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11232 * grub-core/Makefile.core.def (mdraid09_be): New module.
11233 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11234 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11235 * grub-core/disk/mdraid_linux_be.c: New file.
11236
11237 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11240
11241 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11244 missing quotes which caused confusion among translators.
11245
11246 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 * util/grub-mkconfig_lib.in: Fix typo.
11249
11250 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11251
11252 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11253 spaces.
11254 * tests/grub_script_leading_whitespace.in: New file.
11255 * Makefile.util.def (grub_script_leading_whitespace): New test.
11256
11257 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11260 to work.
11261
11262 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11263
11264 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11265 starts with control character.
11266
11267 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11268
11269 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11270 overflow.
11271 (grub_gdb_outbuf): Likewise.
11272
11273 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11274
11275 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11276 zero terminator. Fixes a crash.
11277
11278 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11279
11280 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11281 beyond 4 GiB.
11282 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11283 images independently of preffered adderss field.
11284
11285 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11288 * grub-core/commands/regexp.c: Likewise.
11289 * grub-core/loader/i386/linux.c: Likewise.
11290 * grub-core/partmap/msdos.c: Likewise.
11291 * grub-core/script/execute.c: Likewise.
11292 * grub-core/term/gfxterm.c: Likewise.
11293
11294 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 Add variable parsing in $"..." and fix several mismatches with bash.
11297
11298 * Makefile.util.def (grub_script_gettext): New test.
11299 * grub-core/script/execute.c (parse_string): New function.
11300 (gettext_append): Likewise.
11301 (grub_script_arglist_to_argv): Use gettext_append.
11302 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11303 * tests/grub_script_gettext.in: New file.
11304
11305 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 Fix handling of leading spaces in scripts.
11308
11309 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11310 spaces.
11311 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11312 other than skipping \r. All users updated.
11313 * tests/grub_script_echo1.in: Add space-related tests.
11314 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11315
11316 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11319
11320 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 * configure.ac: Bump up the version to beta2.
11323
11324 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11325
11326 Fix gettext reload bugs (e.g. inability to disable gettext
11327 once enabled).
11328
11329 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11330 main_context and secondary_context. All functions updated.
11331 (grub_gettext_translate): Rename to ...
11332 (grub_gettext_translate_real): ... this. Return NULL on failed
11333 translate.
11334 (grub_gettext_translate): Handle secondary context.
11335 (grub_gettext_delete_list): Close file and zero-out the context.
11336 (grub_mofile_open): Don't call grub_gettext_delete_list.
11337 Don't close file.
11338 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11339 if locale="" to avoid pointless error message.
11340 (grub_gettext_env_write_lang): Update lang even if load fails.
11341 Handle secondary context.
11342 (grub_gettext_reread_prefix): New function.
11343 (read_main): Likewise.
11344 (read_secondary): Likewise.
11345 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11346 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11347 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11348 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11349
11350 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * configure.ac: Decrease warning level to avoid spurious warnings and
11353 to be able to compile with GCC 4.2.
11354 * Makefile.util.def: Remove -Wno-error=logical-op.
11355
11356 2012-03-10 William Bittner <william.bittner@gmail.com>
11357
11358 * util/import_unicode.py: Add missing brackets around string for
11359 python 3 support.
11360
11361 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11362
11363 Fix efi chainloader on network root.
11364
11365 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11366 network devices.
11367 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11368 New function.
11369
11370 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11371
11372 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11373 unused show_text member.
11374 * docs/grub.texi: Document "text" property.
11375
11376 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11377
11378 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11379 in dprintf.
11380
11381 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 Fix IMSM handling on Fedora.
11384
11385 * util/getroot.c (grub_util_is_imsm): New function.
11386 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11387
11388 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11389
11390 * Makefile.am: Strip gold section.
11391 * conf/Makefile.common: Likewise.
11392 * gentpl.py: Likewise.
11393 * grub-core/Makefile.core.def: Likewise.
11394 * grub-core/genmod.sh.in: Likewise.
11395
11396 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11397
11398 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11399 * util/grub.d/20_linux_xen.in: Likewise.
11400 Based on Debian patch.
11401
11402 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11403
11404 * util/grub.d/10_linux.in: Fix syntax error resulting in
11405 Richard Laager's patch.
11406 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11407
11408 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11409
11410 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11411 dependencies.
11412
11413 2012-03-10 Richard Laager <rlaager@wiktel.com>
11414
11415 * util/grub.d/10_linux.in: Fix ZFS root passing.
11416
11417 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11420 * grub-core/commands/xnu_uuid.c: Likewise.
11421 * grub-core/loader/efi/appleloader.c: Likewise.
11422 * grub-core/script/execute.c: Likewise.
11423 * grub-core/script/main.c: Likewise.
11424 * util/grub-mkfont.c: Likewise.
11425
11426 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11427
11428 * util/grub-mkfont.c (options): Use more appropriate "select" that
11429 "set" for face index.
11430
11431 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11432
11433 * util/grub-editenv.c (options): Gettextize command summaries.
11434
11435 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11436
11437 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11438 "out of memory" error messagge.
11439
11440 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11441
11442 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11443 of diskfilter for diskfilter on diskfilter support.
11444
11445 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11446
11447 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11448
11449 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11452 themes/starfield.
11453
11454 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11457
11458 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11459
11460 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11461
11462 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11463
11464 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11465 of error message.
11466
11467 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11470
11471 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11472
11473 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11474 message.
11475 * util/grub-install.in: Fix and gettextize error message.
11476
11477 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11478
11479 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11480 Gettextize.
11481 * util/grub-mount.c (options): Likewise.
11482
11483 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11486 gettextize.
11487 * grub-core/commands/search_wrap.c (options): Likewise.
11488
11489 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11492
11493 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11496 size calculation.
11497 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11498 none is known.
11499
11500 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11501
11502 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11503 "temporary" since it's used in identifier and is limited in space.
11504
11505 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11506
11507 * po/POTFILES.in: Regenerate. Include *.h since they contain
11508 translatable strings as well.
11509
11510 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11513 byte-swap on big-endian.
11514 Reported by: Lennart Sorensen
11515
11516 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11517
11518 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11519 (allocate_pages): Improve dprintf.
11520 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11521 code32_start. Fill code32_start and kernel_alignment in params.
11522 (grub_cmd_initrd): Use prot_init_space.
11523
11524 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11525
11526 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11527
11528 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11529
11530 * util/grub-install.in: Add missing dot at the end of sentence.
11531
11532 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11533
11534 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11535 * grub-core/commands/videotest.c: Likewise.
11536 * grub-core/loader/i386/linux.c: Likewise.
11537
11538 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11539
11540 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11541 sentence.
11542 Reported by: Milo Casagrande.
11543
11544 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11547 * grub-core/commands/gptsync.c: Likewise.
11548 * grub-core/commands/hashsum.c: Likewise.
11549 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11550 * grub-core/commands/legacycfg.c: Likewise.
11551 * grub-core/io/gzio.c: Likewise.
11552 * grub-core/net/net.c: Likewise.
11553 * grub-core/term/gfxterm.c: Likewise.
11554 * grub-core/term/terminfo.c: Likewise.
11555 * grub-core/tests/test_blockarg.c: Likewise.
11556 * grub-core/video/video.c: Likewise.
11557 * util/grub-install.in: Likewise.
11558 * util/grub-mkfont.c: Likewise.
11559
11560 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11561
11562 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11563
11564 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11565
11566 * grub-core/commands/search_wrap.c (options): Fix a typo.
11567 Reported by: David Prévot.
11568
11569 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11570
11571 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11572 description.
11573
11574 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11575
11576 * util/grub-script-check.c (main): Fix a syntax error message which was
11577 unclear.
11578
11579 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11580
11581 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11582
11583 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11584
11585 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11586 messages.
11587
11588 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11589
11590 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11591 without argument.
11592 * util/grub-mount.c (options): Likewise.
11593
11594 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11595
11596 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11597
11598 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11599
11600 * grub-core/net/http.c: Add TRANSLATORS comments.
11601 * grub-core/normal/cmdline.c: Likewise.
11602 * grub-core/normal/misc.c: Likewise.
11603 * grub-core/partmap/msdos.c: Likewise.
11604 * grub-core/parttool/msdospart.c: Likewise.
11605 * grub-core/script/execute.c: Likewise.
11606 * grub-core/script/main.c: Likewise.
11607 * grub-core/term/terminfo.c: Likewise.
11608 * grub-core/video/bitmap.c: Likewise.
11609 * util/grub-install.in: Likewise.
11610 * util/grub-mkimage.c: Likewise.
11611 * util/grub-mklayout.c: Likewise.
11612 * util/grub-setup.c: Likewise.
11613
11614 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11615
11616 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11617 with similar messages in grub-fstest.
11618
11619 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11620
11621 * util/grub-install.in: Unify "option requires an argument" message
11622 with similar messages in other files.
11623 * util/grub-mkconfig.in: Likewise.
11624
11625 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11626
11627 * util/grub-set-default.in: Replace printf with gettext_printf (the
11628 string in in question is already translated from grub-reboot)
11629
11630 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11631
11632 * configure.ac: Bump up the version to beta1.
11633
11634 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11635
11636 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11637 case when min_align = 0.
11638
11639 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11640
11641 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11642 and fix a case when line_start overflows.
11643
11644 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11645
11646 * util/grub-reboot.in (usage): Mention id posibility.
11647 * util/grub-set-default.in (usage): Likewise.
11648
11649 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11650
11651 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11652 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11653 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11654 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11655 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11656 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11657 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11658
11659 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11660
11661 * grub-core/commands/menuentry.c (options): Remove
11662 GRUB_ARG_OPTION_REPEATABLE.
11663 Reported by: Andreas Vogel
11664
11665 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11666
11667 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11668
11669 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11670
11671 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11672 error.
11673
11674 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 Use sort -V by the idea of Georgi Georgiev.
11677
11678 * util/grub-mkconfig_lib.in (version_sort): New function.
11679 (version_test_numeric): Use version_sort.
11680
11681 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 Use submenus in grub-mkconfig.
11684
11685 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11686 * util/grub-mkconfig_lib.in (grub_quote): New function.
11687 (gettext_printf): Use gettext and not gettext_quoted to fix several
11688 messages.
11689 * util/grub.d/10_hurd.in: Use submenus.
11690 * util/grub.d/10_kfreebsd.in: Likewise.
11691 * util/grub.d/10_linux.in: Likewise.
11692 * util/grub.d/10_netbsd.in: Likewise.
11693 * util/grub.d/20_linux_xen.in: Likewise.
11694 * util/grub.d/30_os-prober.in: Likewise.
11695 * util/grub.d/10_illumos.in: Add missing quoting.
11696 * util/grub.d/10_windows.in: Likewise.
11697
11698 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11699
11700 Fix menu title instability bug.
11701
11702 * grub-core/commands/menuentry.c (options): New option --id.
11703 (grub_normal_add_menu_entry): New argument id. All users updated.
11704 (grub_cmd_menuentry): Handle --id.
11705 (grub_menu_init): Accept unknown arguments.
11706 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11707 feature_menuentry_options.
11708 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11709 saved_entry.
11710 (get_entry_number): Match with id as well.
11711 * include/grub/menu.h (grub_menu_entry): New member id.
11712 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11713 * util/grub.d/00_header.in: Define menuentry_id_option.
11714 * util/grub.d/10_hurd.in: Define id.
11715 * util/grub.d/10_illumos.in: Likewise.
11716 * util/grub.d/10_kfreebsd.in: Likewise.
11717 * util/grub.d/10_linux.in: Likewise.
11718 * util/grub.d/10_netbsd.in: Likewise.
11719 * util/grub.d/10_windows.in: Likewise.
11720 * util/grub.d/20_linux_xen.in: Likewise.
11721 * util/grub.d/30_os-prober.in: Likewise.
11722
11723 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11724
11725 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11726 "scope" with "body".
11727
11728 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11729
11730 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11731 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11732 prot_size and prot_file_size.
11733
11734 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11737 All users updated. If easily=1 require raid-5/-6 to be full.
11738 (is_node_readable): Likewise.
11739 (scan_devices): Scan incomplete but readable LVs at the end.
11740 (grub_diskfilter_memberlist): Pull missing devices.
11741 (insert_array): Skip scanning until device is complete or scan is
11742 done otherwise.
11743 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11744 check.
11745 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11746 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11747
11748 2012-03-03 Matthew Garrett <mjg@redhat.com>
11749 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11750
11751 Avoid EFI boot services when loading Linux.
11752
11753 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11754 avoid_efi_bootservices. All users updated.
11755 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11756 argument avoid_efi_bootservices. All users updated.
11757 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11758 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11759 align, min_align, relocatable, prefered_address. All users updated.
11760 Allocate avoiding boot services if kernel is relocatable.
11761 (grub_cmd_linux): Check if kernel is relocatable.
11762 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11763 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11764 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11765 avoid_efi_boot_services.
11766 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11767 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11768 (linux_kernel_params): Likewise.
11769
11770 2012-03-03 Matthew Garrett <mjg@redhat.com>
11771 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11772
11773 Use EDID on EFI.
11774
11775 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11776 datasize_out.
11777 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11778 modes. Set gop_handle.
11779 (grub_video_gop_get_edid): New function.
11780 (grub_gop_get_preferred_mode): Likewise.
11781 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11782 (grub_video_efi_gop_adapter): Set .get_edid.
11783 * include/grub/efi/edid.h: New file.
11784 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11785
11786 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11787
11788 * util/grub-install.in: Load efivars unconditionally.
11789
11790 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 * po/Rules-piglatin: Change suffix from .po-update-en to
11793 .po-update-en-piglatin.
11794
11795 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 Add a pig farm.
11798
11799 * po/piglatin.sed: New file.
11800 * po/en@piglatin.header: Likewise.
11801 * po/Rules-piglatin: Likewise.
11802 * po/README: Add en@piglatin to autogenerated languages.
11803
11804 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11805
11806 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11807 "Command for ...".
11808 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11809 "Check" since we don't check anything.
11810 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11811 is 64-bit one.
11812 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11813 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11814 (grub_md_sha512_real): Likewise.
11815
11816 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11817
11818 * grub-core/commands/gptsync.c: Fix typographic quoting.
11819 * grub-core/commands/ieee1275/suspend.c: Likewise.
11820 * grub-core/commands/parttool.c: Likewise.
11821 * grub-core/commands/search_wrap.c: Likewise.
11822 * grub-core/commands/videoinfo.c: Likewise.
11823 * grub-core/gfxmenu/gui_label.c: Likewise.
11824 * grub-core/hello/hello.c: Likewise.
11825 * grub-core/kern/emu/main.c: Likewise.
11826 * grub-core/net/net.c: Likewise.
11827 * grub-core/normal/menu.c: Likewise.
11828 * grub-core/normal/menu_text.c: Likewise.
11829 * grub-core/normal/misc.c: Likewise.
11830 * util/grub-editenv.c: Likewise.
11831 * util/grub-install.in: Likewise.
11832 * util/grub-kbdcomp.in: Likewise.
11833 * util/grub-mkconfig.in: Likewise.
11834 * util/grub-mknetdir.in: Likewise.
11835 * util/grub-mkrescue.in: Likewise.
11836 * util/grub-mkstandalone.in: Likewise.
11837 * util/grub-reboot.in: Likewise.
11838 * util/grub-set-default.in: Likewise.
11839 * util/grub-setup.c: Likewise.
11840 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11841
11842 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11845 * grub-core/commands/keystatus.c: Likewise.
11846 * grub-core/commands/loadenv.c: Likewise.
11847 * grub-core/commands/probe.c: Likewise.
11848 * grub-core/commands/regexp.c: Likewise.
11849 * grub-core/commands/true.c: Likewise.
11850 * grub-core/commands/videoinfo.c: Likewise.
11851 * grub-core/disk/cryptodisk.c: Likewise.
11852 * grub-core/disk/ldm.c: Likewise.
11853 * grub-core/disk/loopback.c: Likewise.
11854 * grub-core/disk/luks.c: Likewise.
11855 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11856 * grub-core/kern/disk.c: Likewise.
11857 * grub-core/kern/emu/hostdisk.c: Likewise.
11858
11859 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11860
11861 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11862 * util/grub-install.in: Add missing quote in the comment.
11863
11864 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11865
11866 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11867 * grub-core/commands/lsmmap.c: Likewise.
11868 * grub-core/commands/minicmd.c: Likewise.
11869 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11870 * grub-core/commands/regexp.c: Likewise.
11871 * grub-core/gdb/gdb.c: Likewise.
11872 * grub-core/term/gfxterm.c: Likewise.
11873 * util/grub-mkconfig.in: Likewise.
11874 * util/grub-mkfont.c: Likewise.
11875 * util/grub-mklayout.c: Likewise.
11876 * util/grub-mknetdir.in: Likewise.
11877 * util/grub-mkrescue.in: Likewise.
11878 * util/grub.d/30_os-prober.in: Likewise.
11879
11880 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11881
11882 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11883 with "Direct color" and "Packed" with "Packed pixel".
11884 (grub_cmd_videoinfo): Simplify legend.
11885
11886 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11889 absolutely unclear error message.
11890
11891 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11892
11893 * util/grub-mkstandalone.in: Remove confusing leftover print.
11894
11895 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11896
11897 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11898 comments.
11899 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11900 (GRUB_MOD_INIT): Likewise.
11901 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11902 VGA mode.
11903 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11904 comments.
11905 * util/grub-install.in (usage): Likewise.
11906 Spell ID in whole letters.
11907 Add missing ending dot.
11908 Quote variables.
11909 * util/grub-reboot.in: Fix capitalisation.
11910 * util/grub-set-default.in: Likewise.
11911
11912 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11915 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11916 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11917 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11918 Disable -Werror for -Wdeprecated-declarations.
11919 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11920 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11921 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11922 (grub_util_get_grub_dev): Make luks handling dependent on
11923 HAVE_DEVICE_MAPPER and not __linux__.
11924 (get_win32_path): Fix format security.
11925 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11926 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11927 Don't try grub_find_zpool_from_dir.
11928 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11929 #ifdef-out paresdir.
11930
11931 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11932
11933 * util/grub-pe2elf.c (usage): Add missing noreturn.
11934 (write_section_data): Rename name to shname to avoid shadowing.
11935 (write_symbol_table): Rename name to symname to avoid shadowing.
11936 Fix write_reloc_section call.
11937
11938 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11941 to ensure that it's after the last byte of .text.
11942
11943 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * util/ieee1275/ofpath.c (my_isdigit): New function.
11946 (trailing_digits): Use my_isdigit.
11947 (strip_trailing_digits): Likewise.
11948
11949 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11950
11951 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11952 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11953
11954 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 * grub-core/kern/i386/pc/startup.S: Define __start.
11957
11958 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11961 strip already transforms he format.
11962
11963 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
11966
11967 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11968
11969 * util/grub-install.in: Add missing gettext init.
11970 * util/grub-kbdcomp.in: Likewise.
11971 * util/grub-mkconfig.in: Likewise.
11972 * util/grub-mknetdir.in: Likewise.
11973 * util/grub-mkrescue.in: Likewise.
11974 * util/grub-mkstandalone.in: Likewise.
11975 * util/grub-reboot.in: Likewise.
11976 * util/grub-set-default.in: Likewise.
11977 * util/grub.d/00_header.in: Likewise.
11978 * util/grub.d/10_hurd.in: Likewise.
11979 * util/grub.d/10_windows.in: Likewise.
11980 * util/grub.d/30_os-prober.in: Likewise.
11981 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11982
11983 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11984
11985 * po/Rules-swiss: Fix header comment.
11986
11987 2012-02-29 Andreas Vogel <anvoit>
11988
11989 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
11990 resulted in leak of arguments.
11991
11992 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 * grub-core/boot/i386/pc/startup_raw.S: Use separate
11995 reed_solomon_size const definition instead of computing it since
11996 Apple assembler doesn't support the later.
11997
11998 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 * gentpl.py (kernel): Rewrite Apple part.
12001
12002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12005
12006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12007
12008 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12009 ELF section gap.
12010 (load_image): Likewise.
12011
12012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12013
12014 * configure.ac: Fix a typo in previous commit.
12015
12016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 Don't add -Wl,-N on Apple platform.
12019
12020 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12021 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12022
12023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12024
12025 * grub-core/Makefile.core.def (lzma_decompress): Use
12026 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12027
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12029
12030 * grub-core/genmod.sh.in: Rewrite the Apple part.
12031
12032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12035 comparison.
12036
12037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12038
12039 * acinclude.m4 (grub_CHECK_PIC): New test.
12040 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12041
12042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12043
12044 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12045 to avoid the warning.
12046
12047 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12050 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12051 after. All users updated.
12052
12053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054
12055 Use the common size routine in hostfs so we can read disks as well.
12056
12057 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12058 (grub_util_get_fd_size): ... this. Return size in bytes.
12059 All users updated.
12060 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12061 grub_util_get_fd_size.
12062
12063 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12064
12065 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12066 Add blocksize retrieval.
12067
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12069
12070 * configure.ac: Restore CFLAGS after efiemu check.
12071
12072 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12073
12074 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12075 Apple bug.
12076
12077 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12078
12079 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12080
12081 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12082
12083 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12084 (grub_cmd_halt): Likewise.
12085
12086 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12089 for local arithmetics.
12090 Break %sp init into 2 instructions.
12091 Add 0 byte at the end.
12092
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12094
12095 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12096 before loops.
12097
12098 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12099
12100 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12101 for context.
12102
12103 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12104
12105 * grub-core/disk/ldm.c (make_vg): Init part.name.
12106 (grub_ldm_detect): Silence spurious warning.
12107 (grub_util_is_ldm): Likewise.
12108
12109 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12112 sane value to avoid a spurious warning.
12113
12114 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115
12116 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12117 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12118
12119 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12122 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12123
12124 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12127 hardcoding the relevant info.
12128
12129 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12130
12131 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12132 missing const qualifiers.
12133 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12134
12135 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12136
12137 * util/getroot.c [__APPLE__]: Add missing includes.
12138 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12139
12140 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141
12142 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12143
12144 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12145
12146 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12147 avoid conflicts.
12148
12149 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12152
12153 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12154
12155 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12156 and grub_file_close call.
12157
12158 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12159
12160 Add LZSS Mach-O support (needed for new xnu kernelcache).
12161
12162 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12163 * grub-core/loader/lzss.c: New file.
12164 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12165 on Mach-O open failure.
12166 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12167 Don't free cmdsXX in uncompressedXX is set.
12168 (grub_macho_file): Init new fields.
12169 New argument is_64bit. All users updated.
12170 Handle compressed. Error out if no suitable architecture is found.
12171 Don't close file.
12172 (grub_macho_open): New argument is_64bit. All users updated.
12173 * grub-core/loader/macho32.c: Add defines for new fields.
12174 * grub-core/loader/macho64.c: Likewise.
12175 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12176 (grub_macho_parse): Handle compressed.
12177 Defer actual processing if compressed.
12178 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12179 "filename". All users updated.
12180 (grub_macho_size): New argument "filename". All users updated.
12181 (grub_macho_get_entry_point): Likewise.
12182 (grub_macho_load): Handle compressed.
12183 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12184 (GRUB_MACHO_LZSS_OFFSET): New define.
12185 (grub_decompress_lzss): New proto.
12186 * include/grub/machoload.h (grub_macho_file): New fields to handle
12187 compressed.
12188 (grub_macho_contains_macho64): Remove proto.
12189 (grub_macho_contains_macho32): Likewise.
12190 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12191
12192 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12193
12194 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12195
12196 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12197
12198 Fix make dist.
12199
12200 * Makefile.am (starfield_theme_files): New var.
12201 (starfield_DATA): Use starfield_theme_files.
12202 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12203 Add bootcheck-related files.
12204 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12205 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12206 and font_char_metrics.txt.
12207 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12208 (setjmp): Add lib/ia64/longjmp.S.
12209 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12210 * po/POTFILES.in: Regenerate.
12211 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12212 DISTFILES.common.extra1.
12213 * util/devicemap.c: Removed.
12214 * grub-core/lib/i386/relocator_backward.S: Likewise.
12215 * util/import_gcry.py: Remove unused files. Add extra_dist for
12216 ChangeLog.
12217
12218 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12219
12220 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12221 grub_gettext_delete_list before changing grub_gettext_max to avoid
12222 running out of array bounds.
12223
12224 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12225
12226 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12227 grub_vga_text_init/grub_vga_text_fini.
12228
12229 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12232
12233 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12234
12235 * configure.ac: Bump to 2.00~beta0.
12236
12237 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12238
12239 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12240 missing initialisation.
12241
12242 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12243
12244 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12245
12246 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12247
12248 Support v2 xnu boot arguments.
12249
12250 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12251 New argument fsbfreq_out.
12252 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12253 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12254 be used.
12255 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12256 darwin_version.
12257 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12258 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12259 (grub_xnu_boot_params): Rename to ...
12260 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12261 (grub_xnu_boot_params_v2): New struct.
12262
12263 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12266 zeroing of CRC field before computing CRC.
12267
12268 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12269
12270 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12271 Change order of allocations to decrease fragmentation.
12272
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12274
12275 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12276
12277 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12278
12279 Use write-combining MTRR to speed up video with buggy BIOSes.
12280
12281 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12282 (cpuid): New define.
12283 (rdmsr): Likewise.
12284 (wrmsr): Likewise.
12285 (mtrr_base): Likewise.
12286 (mtrr_mask): Likewise.
12287 (grub_vbe_enable_mtrr_entry): New function.
12288 (grub_vbe_enable_mtrr): Likewise.
12289 (grub_vbe_disable_mtrr): Likewise.
12290 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12291 control off to BIOS.
12292 (grub_video_vbe_init): Fill mtrr.
12293 (grub_video_vbe_fini): Disable mtrr.
12294 (grub_video_vbe_get_info_and_fini): Likewise.
12295 (grub_video_vbe_setup): Enable mtrr.
12296
12297 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12298
12299 * include/grub/partition.h (grub_partition_map): Change prototype of
12300 embed to take a maximum value for nsectors.
12301 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12302 * include/grub/fs.h (grub_fs): Likewise.
12303 * grub-core/partmap/msdos.c (embed_signatures): New array.
12304 (pc_partition_map_embed): Check for and avoid sectors matching any
12305 of the signatures in embed_signatures, up to max_nsectors.
12306 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12307 returned sector map to max_nsectors.
12308 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12309 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12310 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12311 * util/grub-setup.c (setup): Allow for the embedding area being
12312 split into multiple blocklists. Tell dest_partmap->embed the
12313 maximum number of sectors we care about.
12314
12315 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12316
12317 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12318 Specify blocklist_install and reserver_first_sector for all fs.
12319 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12320 blocklists.
12321
12322 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 * util/grub-install.in: Clarify strings.
12325 Fix source dir check.
12326
12327 2012-02-27 Richard Laager <rlaager@wiktel.com>
12328
12329 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12330 "zfs" and "fuse.zfs" as synonyms.
12331
12332 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12333
12334 * configure.ac: Put platform and target_cpu substitutions back since
12335 they are used for directories.
12336
12337 2012-02-27 Richard Laager <rlaager@wiktel.com>
12338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12339
12340 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12341 * util/grub.d/20_linux_xen.in: Likewise.
12342
12343 2012-02-27 Richard Laager <rlaager@wiktel.com>
12344
12345 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12346 with full paths.
12347
12348 2012-02-27 Richard Laager <rlaager@wiktel.com>
12349
12350 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12351 unescape.
12352
12353 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 Don't use insecure popen in getroot.
12356
12357 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12358 (exec_pipe): ... here.
12359 (find_root_devices_from_poolname): Use exec_pipe.
12360
12361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12362
12363 Remove platform and target_cpu replacement.
12364
12365 * configure.ac: Remove platform and target_cpu substitutions.
12366 * tests/util/grub-shell.in: Use modinfo.
12367 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12368 explicitly.
12369
12370 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12371
12372 Autodetect platform in grub-install but allow override.
12373
12374 * util/grub-install.in: Autodetect platform. Support --target and
12375 --directory. Read platform from modinfo.sh.
12376
12377 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12378
12379 Support btrfs multi-volume probe.
12380
12381 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12382 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12383 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12384 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12385 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12386 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12387 grub_find_root_devices_from_btrfs if on btrfs.
12388
12389 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12390
12391 Remove any awareness of *.c util files about target.
12392
12393 * Makefile.util.def (grub-setup): Split to ...
12394 (grub-bios-setup): ... and this.
12395 (grub-sparc64-setup): ... and this.
12396 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12397 * docs/man/grub-setup.h2m: Split into ...
12398 * docs/man/grub-sparc64-setup.h2m: ... this.
12399 * docs/man/grub-bios-setup.h2m: ... and this.
12400 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12401 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12402 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12403 (grub_target_addr_t): Remove.
12404 (grub_target_size_t): Remove.
12405 (grub_target_ssize_t): Remove.
12406 * util/grub-install.in: Use new grub-*-setup.
12407 * util/grub-mkimagexx.c (Elf_Word): New define.
12408 (Elf_Half): Likewise.
12409 (Elf_Section): Likewise.
12410 (ELF_ST_TYPE): Likewise.
12411 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12412 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12413
12414 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12415
12416 Replace grub_target_addr with more appropriate types.
12417
12418 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12419 grub_target_addr with grub_addr.
12420 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12421 grub_target_addr with grub_port.
12422 (grub_cmd_write): Likewise.
12423 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12424 grub_target_addr with grub_addr.
12425 (grub_cmd_write): Likewise.
12426 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12427
12428 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12429
12430 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12431 const qualifier for vendor_guid.
12432
12433 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12434
12435 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12436 const qualifier.
12437 (efiemu_memequal): Likewise.
12438 (find_variable): Likewise.
12439
12440 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 Fix missing console prototype on qemu-mips.
12443
12444 * include/grub/mips/qemu_mips/console.h: New file.
12445
12446 2012-02-27 Matthew Garrett <mjg@redhat.com>
12447 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12450 * include/grub/efi/efi.h: Likewise.
12451 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12452 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12453 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12454 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12455 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12456 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12457
12458 2012-02-27 Matthew Garrett <mjg@redhat.com>
12459
12460 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12461
12462 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12463
12464 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12465 error.
12466
12467 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12468
12469 * configure.ac: Remove inappropriate use of program_transform_name
12470 on grubdir and bootdir but allow explicit specification of those
12471 variables.
12472
12473 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12474
12475 * util/grub-mknetdir.in (grub_prefix): Removed.
12476 (subdir): Use @bootdirname@ and @grubdirname@.
12477
12478 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12481
12482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12483
12484 * po/POTFILES.in: Regenerated.
12485
12486 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12487
12488 Remove improper use of program_transform_name on pkglibrootdir.
12489
12490 * configure.ac (pkglibrootdir): Removed.
12491 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12492 * util/grub-mkimage.c: Likewise.
12493
12494 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12495
12496 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12497 warning.
12498
12499 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12500
12501 * util/grub-install.in: Use file identifier if no UUID is available
12502 or user explicitly prompted for it.
12503
12504 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12505
12506 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12507 (freebsd_get_zfs): New function.
12508 (grub_freebsd_boot): Pass zfs UUID.
12509 (grub_cmd_freebsd): Set zfs UUID.
12510
12511 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12512
12513 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12514 pkglibrootdir.
12515
12516 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12517
12518 Add configure flag to control libzfs integration.
12519
12520 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12521
12522 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12523
12524 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12525 device.
12526 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12527 small devices.
12528
12529 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12532 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12533 be used on non-modules.
12534
12535 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12536 Rename to grub_boot_init.
12537 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12538 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12539 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12540 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12541 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12542 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12543 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12544 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12545 includes.
12546 (grub_machine_init): Remove empty inits.
12547 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12548 includes.
12549 (grub_machine_init): Remove empty inits.
12550 * grub-core/term/arc/console.c: Remove explicit proto.
12551 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12552 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12553 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12554 grub_at_keyboard_fini.
12555 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12556 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12557 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12558 grub_gfxterm_fini.
12559 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12560 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12561 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12562 grub_vgatext_fini.
12563 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12564 * grub-core/term/serial.c (GRUB_MOD_INIT)
12565 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12566 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12567 grub_serial_fini.
12568 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12569 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12570 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12571 grub_terminfo_fini.
12572 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12573 (GRUB_MOD_FINI): Likewise.
12574 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12575 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12576 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12577 grub_video_radeon_fuloong2e_fini.
12578 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12579 [LOONGSON]: Rename to grub_video_sis315pro_init.
12580 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12581 grub_video_sis315pro_fini.
12582 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12583 [LOONGSON]: Rename to grub_video_sm712_init.
12584 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12585 grub_video_sm712_fini.
12586 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12587 (grub_at_keyboard_fini): Likewise.
12588 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12589 Don't declare grub_{modname}_init.
12590 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12591 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12592 New proto.
12593 (grub_keylayouts_fini) [!EMU]: Likewise.
12594 * include/grub/serial.h (grub_serial_init) [!EMU]:
12595 New proto.
12596 (grub_serial_fini) [!EMU]: Likewise.
12597 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12598 New proto.
12599 (grub_terminfo_fini) [!EMU]: Likewise.
12600 * include/grub/video.h (grub_font_init) [!EMU]:
12601 New proto.
12602 (grub_font_fini) [!EMU]: Likewise.
12603 (grub_gfxterm_init) [!EMU]: Likewise.
12604 (grub_gfxterm_fini) [!EMU]: Likewise.
12605 (grub_video_sm712_init) [!EMU]: Likewise.
12606 (grub_video_sm712_fini) [!EMU]: Likewise.
12607 (grub_video_sis315pro_init) [!EMU]: Likewise.
12608 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12609 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12610 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12611
12612 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12613
12614 Make nand a prefix for nand devices.
12615
12616 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12617
12618 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12619
12620 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12621 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12622
12623 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12624
12625 * include/grub/env.h (grub_env_find): Remove prototype.
12626 * grub-core/kern/env.c (grub_env_find): Make static.
12627 (grub_env_set): Remove useless set.
12628
12629 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * grub-core/kern/i386/realmode.S: Remove useless align.
12632
12633 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12634
12635 * include/grub/dl.h (grub_dl_load_file): Don't export.
12636
12637 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12638
12639 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12640 grub_dprintf.
12641
12642 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12643
12644 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12645 grub_errors.
12646 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12647 not reloading whole superblock but only the part which is really needed.
12648 Remove useless grub_errors.
12649 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12650 grub_errors.
12651
12652 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12653
12654 Don't export grub_get_rtc.
12655
12656 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12657 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12658
12659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12660
12661 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12662
12663 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12664
12665 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12666 argument since it can be deduced from diskfilter. All users updated.
12667
12668 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12669
12670 Remove prio_list.
12671
12672 * include/grub/list.h (grub_prio_list): Removed.
12673 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12674 GRUB_COMMAND_PRIO_MASK.
12675 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12676 GRUB_COMMAND_FLAG_ACTIVE.
12677 (grub_prio_list_insert): Removed.
12678 (grub_prio_list_remove): Likewise.
12679 (GRUB_AS_PRIO_LIST): Likewise.
12680 (GRUB_AS_PRIO_LIST_P): Likewise.
12681 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12682 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12683 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12684 * grub-core/kern/command.c (grub_register_command_prio): Inline
12685 the prio_list code.
12686 (grub_unregister_command): Likewise.
12687
12688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 Fix interrupt mixup from previous commit.
12691
12692 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12693 (grub_realidt): New var.
12694 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12695 Load idt.
12696 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12697 New declaration.
12698 (grub_relocator16_boot): Set grub_relocator16_idt.
12699 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12700 (LOCAL(realidt)): ... this.
12701 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12702 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12703 (grub_realidt): New variable.
12704
12705 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12706
12707 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12708 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12709 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12710 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12711 Gettextize.
12712 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12713 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12714 * po/POTFILES.in: Regenerate.
12715
12716 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12717
12718 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12719 errors.
12720
12721 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12722
12723 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12724 \0.
12725 (add_length): Likewise.
12726
12727 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12728 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12729
12730 GDB serial and backtrace support.
12731
12732 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12733 (prot_to_real): Likewise.
12734 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12735 * grub-core/Makefile.core.def (backtrace): New module.
12736 (gdb): Likewise.
12737 * grub-core/gdb/cstub.c: New file.
12738 * grub-core/gdb/gdb.c: Likewise.
12739 * grub-core/gdb/i386/idt.c: Likewise.
12740 * grub-core/gdb/i386/machdep.S: Likewise.
12741 * grub-core/gdb/i386/signal.c: Likewise.
12742 * grub-core/lib/i386/backtrace.c: Likewise.
12743 * grub-core/lib/backtrace.c: Likewise.
12744 * include/grub/backtrace.h: Likewise.
12745 * include/grub/gdb.h: Likewise.
12746 * include/grub/i386/gdb.h: Likewise.
12747
12748 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12749
12750 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12751 New function.
12752 (add_length): Likewise.
12753 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12754 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12755 proto.
12756 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12757 __argp_get_display_len.
12758
12759 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 $"..." support in scripts.
12762
12763 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12764 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12765 * grub-core/script/yylex.l: Likewise.
12766 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12767 value.
12768
12769 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12770
12771 * gentpl.py: Remove obsolete pkglib_DATA handling.
12772
12773 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12774
12775 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12776 mailing list.
12777
12778 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12779 * util/grub-kbdcomp.in: Likewise.
12780 * util/grub-mkconfig.in: Likewise.
12781 * util/grub-mkconfig_lib.in: Likewise.
12782 * util/grub-mknetdir.in: Likewise.
12783 * util/grub-mkrescue.in: Likewise.
12784 * util/grub-mkstandalone.in: Likewise.
12785 * util/grub-reboot.in: Likewise.
12786 * util/grub-set-default.in: Likewise.
12787 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12788
12789 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12790
12791 Remove GRUB_PREFIX.
12792
12793 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12794 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12795 used for backward compatibility.
12796
12797 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 Add new all_video module.
12800
12801 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12802 * grub-core/Makefile.core.def (all_video): New module.
12803 * grub-core/genmoddep.awk: Generate dependency of all_video from
12804 video.lst.
12805 * grub-core/lib/fake_module.c: New file.
12806 * grub-core/normal/main.c (features): Add feature_all_video_module.
12807 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12808 don't do explicit search again.
12809 insmod all_video in load_video if available.
12810
12811 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 Another round of string clarification and adding TRANSLATORS comments.
12814
12815 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12816
12817 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12818
12819 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12822 to grub_ssize_t.
12823 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12824 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12825
12826 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12827
12828 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12829 trailing newline implicitly. All users updated.
12830
12831 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12832
12833 Implement serial on IEEE1275 and EFI.
12834
12835 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12836 on emu. Mention arc and emu as the only platforms without serial
12837 support.
12838 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12839 ieee1275 platforms.
12840 * grub-core/term/efi/serial.c: New file.
12841 * grub-core/term/ieee1275/serial.c: Likewise.
12842 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12843 specification if no ns8250 driver is available.
12844 (grub_cmd_serial): Likewise.
12845 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12846 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12847 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12848 (grub_efi_parity_type_t): New type.
12849 (grub_efi_stop_bits_t): Likewise.
12850 (grub_efi_serial_io_interface): New struct.
12851 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12852 available for all interfaces.
12853 Add EFI and IEEE1275 fields.
12854 (grub_ofserial_init): New proto.
12855 (grub_efiserial_init): Likeiwse.
12856 * util/grub.d/00_header.in: Don't check for the presence of serial
12857 module.
12858
12859 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12860
12861 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12862 name as if it was an alias.
12863
12864 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12865
12866 * grub-core/commands/lsacpi.c (options): Fix typo.
12867
12868 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 Convert grub-emu to argp.
12871
12872 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12873 emu.
12874 * util/argp_common.c: Rename to ...
12875 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12876 Add missing includes.
12877 * grub-core/kern/emu/main.c: Convert to argp.
12878 * po/POTFILES.in: Regenerate.
12879 * util/grub-install.in (usage): Make first letter lowcase in messages
12880 for uniformity.
12881 * util/grub-setup.c (options): Likewise.
12882
12883 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12884
12885 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12886 Put back accidently commented-out code.
12887
12888 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12891 loop check using Brent algorithm.
12892 (grub_hfsplus_btree_search): Likewise.
12893
12894 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12895
12896 * util/grub-install.in: Fix usage of wrong device for PreP install.
12897
12898 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12899
12900 * conf/Makefile.common (CFLAGS_GNULIB): Add
12901 -Wno-unsafe-loop-optimizations.
12902 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12903 on tools.
12904 * grub-core/commands/legacycfg.c: Add pragma to skip
12905 -Wunsafe-loop-optimizations.
12906 (check_password_md5_real): Fix loop counter type.
12907 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12908 reading.
12909 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12910 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12911 loop condition.
12912 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12913 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12914 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12915 condition.
12916 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12917 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12918 avoid possible infinite loops.
12919 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12920 and -Wunsafe-loop-optimizations.
12921 * grub-core/script/yylex.l: Likewise.
12922 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12923 (print_glyphs): Avoid infinite loops.
12924 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12925
12926 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12927
12928 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12929 to avoid infinite loop.
12930 (disp_acpi_rsdt_table): Likewise.
12931
12932 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12933
12934 * grub-core/font/font.c (grub_font_load): Add support for default
12935 path for fonts ($prefix/fonts).
12936 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12937 for checking if string is a path.
12938 * grub-core/normal/main.c (features): Add feature_default_font_path.
12939 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12940 * util/grub.d/00_header.in: Use default directory if possible.
12941 * util/grub-install.in: Install unicode.pf2.
12942
12943 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12944
12945 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12946 * po/Rules-swiss: New file.
12947 * po/swiss.sed: Likewise.
12948
12949 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12950
12951 * grub-core/fs/btrfs.c (find_device): Fix typos.
12952 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12953 * util/grub-mkrelpath.c (argp_parser): Likewise.
12954 Reported by: Yuri Chornoivan.
12955
12956 2012-02-23 Dalet Omega <daletomega@gmail.com>
12957
12958 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12959 for usual informative messages.
12960
12961 2012-02-23 Dalet Omega <daletomega@gmail.com>
12962
12963 Starfield theme.
12964
12965 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
12966 * conf/Makefile.common: Define starfielddir.
12967 * configure.ac: Configure starfield.
12968 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
12969 * themes/starfield/README: Likewise.
12970 * themes/starfield/blob_w.png: Likewise.
12971 * themes/starfield/boot_menu_c.png: Likewise.
12972 * themes/starfield/boot_menu_e.png: Likewise.
12973 * themes/starfield/boot_menu_n.png: Likewise.
12974 * themes/starfield/boot_menu_ne.png: Likewise.
12975 * themes/starfield/boot_menu_nw.png: Likewise.
12976 * themes/starfield/boot_menu_s.png: Likewise.
12977 * themes/starfield/boot_menu_se.png: Likewise.
12978 * themes/starfield/boot_menu_sw.png: Likewise.
12979 * themes/starfield/boot_menu_w.png: Likewise.
12980 * themes/starfield/slider_c.png: Likewise.
12981 * themes/starfield/slider_n.png: Likewise.
12982 * themes/starfield/slider_s.png: Likewise.
12983 * themes/starfield/src/blob_nw.xcf: Likewise.
12984 * themes/starfield/src/bootmenu/: Likewise.
12985 * themes/starfield/src/bootmenu/center.xcf: Likewise.
12986 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
12987 * themes/starfield/src/bootmenu/side.xcf: Likewise.
12988 * themes/starfield/src/slider_c.xcf: Likewise.
12989 * themes/starfield/src/slider_n.xcf: Likewise.
12990 * themes/starfield/src/slider_s.xcf: Likewise.
12991 * themes/starfield/src/terminalbox/: Likewise.
12992 * themes/starfield/src/terminalbox/center.xcf: Likewise.
12993 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
12994 * themes/starfield/src/terminalbox/side.xcf: Likewise.
12995 * themes/starfield/starfield.png: Likewise.
12996 * themes/starfield/terminal_box_c.png: Likewise.
12997 * themes/starfield/terminal_box_e.png: Likewise.
12998 * themes/starfield/terminal_box_n.png: Likewise.
12999 * themes/starfield/terminal_box_ne.png: Likewise.
13000 * themes/starfield/terminal_box_nw.png: Likewise.
13001 * themes/starfield/terminal_box_s.png: Likewise.
13002 * themes/starfield/terminal_box_se.png: Likewise.
13003 * themes/starfield/terminal_box_sw.png: Likewise.
13004 * themes/starfield/terminal_box_w.png: Likewise.
13005 * themes/starfield/theme.txt: Likewise.
13006
13007 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 * util/grub.d/00_header.in: Add missing export theme.
13010
13011 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13014 already included.
13015 Reported by: Eren D.
13016
13017 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13018
13019 * conf/Makefile.common (grubdatadir): Removed.
13020 (Makefile.am): Move eveything grubdata to pkgdata.
13021
13022 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13023
13024 * grub-core/commands/acpihalt.c (get_sleep_type):
13025 Remove unused variable.
13026
13027 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13028
13029 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13030 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13031 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13032 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13033 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13034 i18n with gettext no-op.
13035 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13036 GRUB_ACPI_OPCODE_STRING_CONST.
13037 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13038 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13039
13040 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13041
13042 * po/POTFILES.in: Regenerate.
13043
13044 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13045
13046 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13047 -Wno-error=missing-noreturn.
13048
13049 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13050
13051 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13052 condition to avoid possibly infinite loops.
13053 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13054 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13055
13056 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13059 condition to avoid possibly infinite loops.
13060
13061 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13064 on show_error.
13065
13066 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13069
13070 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13071
13072 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13073
13074 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * util/bin2h.c (usage): Add missing attribute noreturn.
13077
13078 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13081 if the size isn't divisible by 512.
13082
13083 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 Make list_push and list_remove functions rather than inline functions
13086 to decrease size and avoid aliasing violations.
13087
13088 * include/grub/list.h (grub_list_push): Move to ...
13089 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13090 * include/grub/list.h (grub_list_remove): Move to ...
13091 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13092
13093 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13094
13095 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13096 and -Wunused-result.
13097
13098 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13099
13100 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13101 Reported by: Seth Goldberg
13102
13103 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13104
13105 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13106
13107 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13108
13109 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13110 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13111 command line.
13112 * docs/grub.texi (Simple configuration): Document
13113 GRUB_CMDLINE_GNUMACH.
13114
13115 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 * conf/Makefile.common (platform_SCRIPTS): New variable.
13118 (platform_PROGRAMS): Likewise.
13119 * gentpl.py: Mark *,module and *.image for install.
13120 * grub-core/gdb_grub.in: Add a notice of expected environment.
13121 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13122 (gmodule.pl): Likewise.
13123
13124 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13125
13126 Replace grub_checkkey with grub_getkey_noblock.
13127
13128 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13129 (grub_getkey_noblock): ... this. All users updated.
13130
13131 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13132
13133 * grub-core/kern/emu/console.c: Move to ...
13134 * grub-core/term/emu/console.c: ...here.
13135 (grub_ncurses_getkey): Fix return value if no key is detected.
13136
13137 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13140 (grub_unit_test_fini): Likewise.
13141 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13142
13143 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13144
13145 * include/grub/test.h (GRUB_UNIT_TEST)
13146
13147 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13148
13149 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13150 Better error handling.
13151 (grub_script_return): Likewise.
13152 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13153
13154 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13157 rimplicit redifinition.
13158
13159 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13162 GRUB.
13163
13164 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13165
13166 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13167 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13168 prompt here.
13169
13170 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13171
13172 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13173 as GRUB_ERR_BUG. Don't malloc if no device is available.
13174
13175 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13176
13177 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13178 Mark calling with invalid term as GRUB_ERR_BUG.
13179
13180 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13183 packets rather than raising an error.
13184
13185 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13188 in if.
13189
13190 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13193 diagnostic to dprintf.
13194 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13195
13196 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13197
13198 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13199 device name.
13200
13201 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202
13203 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13204 (grub_ntfs_iterate_dir): Likewise.
13205
13206 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13207
13208 Efiemu stylistic fixes and gettext.
13209
13210 * grub-core/efiemu/i386/loadcore32.c
13211 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13212 * grub-core/efiemu/i386/loadcore64.c
13213 (grub_arch_efiemu_relocate_symbols64): Likewise.
13214 * grub-core/efiemu/i386/pc/cfgtables.c
13215 (grub_machine_efiemu_init_tables): Likewise.
13216 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13217 (grub_efiemu_loadcore_initXX): Add a filename argument.
13218 All users updated.
13219 Improved error message.
13220 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13221 Add a filename argument.
13222 All users updated.
13223 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13224 Reclassify double relocation as GRUB_ERR_BUG.
13225
13226 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13227
13228 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13229 handling.
13230
13231 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13232
13233 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13234 on partition.
13235
13236 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13237
13238 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13239
13240 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13241
13242 Improve string. Gettextize.
13243
13244 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13247 utils.
13248 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13249
13250 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13253 [GRUB_UTIL]: New function.
13254 (insert_array) [GRUB_UTIL]: Store partmaps.
13255 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13256 partmaps.
13257 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13258 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13259 (probe_abstraction): Print diskfilter and not raid.
13260 Reported by: Lennart Sorensen
13261
13262 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13263
13264 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13265 * util/grub-mkimagexx.c (MASK3): New define.
13266 (add_value_to_slot_20b): Use MASK3.
13267 (add_value_to_slot_21): Likewise.
13268 (relocate_addresses): Fix format specification.
13269 (load_image): Explicitly init symtab_section.
13270
13271 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13272
13273 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13274 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13275
13276 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13279 on powerpc.
13280 Reported by: Lennart Sorensen
13281
13282 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * gentpl.py: Add missing license header.
13285 * docs/grub.texi: Update copyright year.
13286
13287 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13288
13289 Source grub-mkconfig_lib from the build directory at build time.
13290 Suggested by: Vladimir Serbinenko.
13291
13292 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13293 * util/grub-install.in: Define pkgdatadir if not already set, and source
13294 grub-mkconfig_lib from there.
13295 * util/grub-kbdcomp.in: Likewise.
13296 * util/grub-mkconfig.in: Likewise.
13297 * util/grub-mknetdir.in: Likewise.
13298 * util/grub-mkrescue.in: Likewise.
13299 * util/grub-mkstandalone.in: Likewise.
13300 * util/grub-reboot.in: Likewise.
13301 * util/grub-set-default.in: Likewise.
13302 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13303
13304 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 Increase warning level.
13307
13308 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13309 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13310 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13311 (TARGET_CFLAGS): Likewise.
13312 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13313 * grub-core/Makefile.core.def (decompressor_xz): Add
13314 -Wno-unreachable-code.
13315 (normal): Add -Wno-redundant-decls.
13316 (xzio): Add -Wno-unreachable-code.
13317 (lzopio): Add -Wno-redundant-decls -Wno-error.
13318 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13319 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13320 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13321 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13322 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13323 * grub-core/kern/i386/coreboot/init.c: Add exception to
13324 -Wsuggest-attribute=noreturn.
13325 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13326 * grub-core/kern/ia64/dl_helper.c: Likewise.
13327 * grub-core/kern/mips/dl.c: Likewise.
13328 * grub-core/kern/sparc64/dl.c: Likewise.
13329 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13330 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13331 (memcmp): Likewise.
13332 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13333 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13334 * grub-core/loader/mips/linux.c: Likewise.
13335 * grub-core/loader/multiboot_elfxx.c: Likewise.
13336 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13337 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13338 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13339 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13340 fixme.
13341 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13342 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13343 Fix prototype.
13344
13345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13346
13347 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13348 address.
13349
13350 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13353 Avoid improper use of strings.
13354 (grub_cmd_legacy_initrdnounzip): Likewise.
13355
13356 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13357
13358 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13359 attribute.
13360 (grub_util_info): Likewise.
13361 (grub_util_error): Likewise.
13362
13363 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13364
13365 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13366 * util/grub-fstest.c (fstest): Likewise.
13367
13368 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13369
13370 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13371 (grub_md_sha512_real): Likewise.
13372 (grub_util_get_geli_uuid): Likewise.
13373 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13374 (grub_util_biosdisk_open): Fix format specification.
13375 Respect format security.
13376 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13377 (xrealloc): Likewise.
13378 (xasprintf): Likewise.
13379
13380 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * util/import_gcry.py: Include grub/crypto.h in init.c.
13383
13384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13385
13386 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13387 (generate_image): Make prefix a const char *.
13388 Fix format specifications. Respect format security.
13389 Avoid void * arithmetics.
13390 Avoid shadowing.
13391 (argp_parser): Remove unused variable. Respect format security.
13392 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13393 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13394 (count_funcs): Remove unused variable.
13395 (relocate_addresses): Fix format specification.
13396 Disable x86-64 with elf32. Remove unused variables.
13397 (add_fixup_entry): Avoid shadowing.
13398 (make_reloc_section): Fix format specification.
13399 Use assert.
13400 (locate_sections): Fix format specifications.
13401 (load_image): Avoid shadowing.
13402
13403 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13406 Fix format specifications. Respect format security.
13407 Don't translate already translated grub_errmsg.
13408 (argp_parser): Remove unused variable
13409
13410 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411
13412 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13413
13414 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13415
13416 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13417 (main): Likewise. Use xmalloc. Respect format security.
13418
13419 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13420
13421 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13422 a const char *.
13423 (argp_parser): Remove unused variable.
13424
13425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13428 (add_pixel): Make static.
13429 (add_font): Likewise.
13430 (write_string_section): Make name and str a const char *.
13431 (write_be16_section): Make name a const char *.
13432 (print_glyphs): Make static.
13433 (write_font_ascii_bitmap): Likewise.
13434 (write_font_width_spec): Likewise.
13435 (write_font_pf2): Likewise.
13436 (argp_parser): Remove unused variable.
13437 Respect format security.
13438 (main): Avoid shadowing. Respect format security.
13439
13440 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 * util/grub-editenv.c (argp_parser): Make static.
13443 (create_envblk_file): Use xmalloc.
13444 (open_envblk_file): Likewise.
13445 Resepect format security.
13446 (set_variables): Respect format security.
13447
13448 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13449
13450 * util/getroot.c (grub_find_device): Respect format security.
13451 (get_mdadm_uuid): Remove unused variable.
13452 (grub_util_pull_device): Dont call gettext on already translated
13453 grub_errmsg.
13454 (find_system_device): Remove unused variable.
13455 (grub_util_get_grub_dev): Likewise.
13456 (grub_make_system_path_relative_to_its_root): Respect format security.
13457
13458 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * util/grub-fstest.c (execute_command): Make first argument
13461 a const char *.
13462 (read_file): Avoid shadowing.
13463 Reuse underlying error message if device open fails.
13464 (cmd_cmp): Respect format security.
13465 (root): Make const char *.
13466 (fstest): Remove args argument and use global copy.
13467 Respect format security.
13468 (argp_parser): Make static.
13469 (main): Make default_root const char *.
13470
13471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13472
13473 * util/grub-mount.c (root): Make const char *.
13474 (execute_command): Make first argument a const char *.
13475 (fuse_init): Respect format security.
13476 (argp_parser): Make static. Remove unused variable.
13477 (main): Make default_root a const char *.
13478 Respect format security.
13479
13480 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * util/grub-probe.c (probe): Don't call gettext on already translated
13483 grub_errmsg.
13484 Remove unused variables.
13485 (argp_parser): Remove unused variable.
13486
13487 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13488
13489 * util/grub-script-check.c (argp_parser): Remove unused variable.
13490 (main): Rename read to curread to avoid shadowing.
13491
13492 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13493
13494 * util/misc.c (grub_util_write_image_at): Fix format specification.
13495 (grub_util_write_image): Likewise.
13496 (grub_script_execute_argument_to_string): Removed (unused).
13497 (grub_script_execute_menuentry): Likewise.
13498 (grub_putchar): Likewise.
13499
13500 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13501
13502 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13503 (FUNCTION) [GRUB_UTIL]: Likewise.
13504 (VARIABLE) [GRUB_UTIL]: Likewise.
13505
13506 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13507
13508 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13509 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13510
13511 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13512
13513 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13514 buffer.
13515
13516 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13517
13518 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13519 (LzmaEnc_SaveState): Removed (unused).
13520 (LzmaEnc_RestoreState): Likewise.
13521 (LzmaEnc_InitPriceTables): Made static.
13522 (LzmaEnc_Construct): Likewise.
13523 (LzmaEnc_FreeLits): Likewise.
13524 (LzmaEnc_Destruct): Likewise.
13525 (LzmaEnc_Init): Likewise.
13526 (LzmaEnc_InitPrices): Likewise.
13527 (LzmaEnc_Finish): Likewise.
13528 (LzmaEnc_PrepareForLzma2): Removed (unused).
13529 (LzmaEnc_MemPrepare): Likewise.
13530 (LzmaEnc_GetNumAvailableBytes): Likewise.
13531 (LzmaEnc_GetCurBuf): Likewise.
13532 (LzmaEnc_CodeOneMemBlock): Likewise.
13533
13534 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13537 (grub_util_ldm_embed): Likewise.
13538
13539 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 * util/grub-editenv.c (print_var): Rename name to varname to
13542 avoid shadowing.
13543 (main): Rename index to curindex to avoid shadowing.
13544 Make filename a const char *.
13545
13546 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13549 to arg_getline to avoid shadowing.
13550
13551 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13554 disk_ to avoid shadowing.
13555
13556 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13557
13558 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13559 curindex to avoid shadowing.
13560 Make static.
13561 (MatchFinder_GetNumAvailableBytes): Make static.
13562
13563 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13564
13565 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13566 avoid shadowing.
13567
13568 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13569
13570 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13571 argument from encrypt to do_encrypt to avoid shadowing.
13572
13573 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13576 incorrect nesting of #if's.
13577
13578 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13581 checks which are always false on some platforms.
13582 (grub_cmd_lsacpi): Likewise.
13583 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13584 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13585 Likewise.
13586
13587 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13588
13589 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13590 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13591
13592 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13593
13594 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13595 re_dfa_t to avoid breaking alignment invariants.
13596 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13597 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13598
13599 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13600
13601 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13602 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13603
13604 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13605
13606 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13607 Fix declaration.
13608
13609 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13612 conserve alignment invariants.
13613 (grub_ehci_ehcc_read16): Likewise.
13614 (grub_ehci_oper_read32): Likewise.
13615 (grub_ehci_oper_write32): Likewise.
13616 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13617 Conserve alignment invariants.
13618
13619 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13622 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13623 declarations.
13624
13625 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13628 Remove unused variable.
13629
13630 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13631
13632 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13633 Remove set in if.
13634
13635 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13636
13637 * include/grub/net.h: Remove double declarations.
13638
13639 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13640
13641 Remove "payload" command in ia64 Linux loader since I couldn't
13642 find any evidence of it being used for anything.
13643 Replace "relocate" command with an environment variable
13644
13645 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13646 fields.
13647 (ia64_boot_payload): Removed.
13648 (last_payload): Likewise.
13649 (RELOCATE_OFF): Likewise.
13650 (RELOCATE_ON): Likewise.
13651 (RELOCATE_FORCE): Likewise.
13652 (relocate): Likewise.
13653 (free_pages): Don't free payloads.
13654 (grub_load_elf64): Use common error messages.
13655 Use "linux_relocate" variable.
13656 Increase the space after boot_params.
13657 (grub_cmd_payload): Removed.
13658 (grub_cmd_relocate): Likewise.
13659 (grub_cmd_fpswa): Improve messages.
13660 (cmd_payload): Removed.
13661 (cmd_relocate): Likewise.
13662 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13663 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13664
13665 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13666
13667 Convert UHCI to DMA framework.
13668
13669 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13670 (grub_uhci_pci_iter): Fill new members
13671 (grub_alloc_td): Use P2V and V2P functions.
13672 (grub_free_queue): Likewise.
13673 (grub_alloc_qh): Likewise.
13674 (grub_uhci_setup_transfer): Likewise.
13675 (grub_uhci_check_transfer): Likewise.
13676
13677 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13678
13679 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13680 Remove assignment in if while on it.
13681
13682 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 * util/grub-mkstandalone.in: Fix modules directory.
13685
13686 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13687
13688 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13689 on i386-pc target.
13690 (argp_parser): Accept "auto" as compression specification.
13691
13692 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 Fix `help' with unloaded modules.
13695
13696 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13697 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13698 (grub_dyncmd_dispatcher): Small stylistic fix.
13699 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13700 explicit help is requested.
13701
13702 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13705 Explicitly init restart while on it.
13706
13707 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13708
13709 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13710 uninited variable.
13711
13712 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 * util/grub-mknetdir.in: Use . rather than source for POSIX
13715 compatibility.
13716
13717 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13718
13719 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13720
13721 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13722
13723 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13724 variable.
13725
13726 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13727
13728 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13729 without quotes.
13730
13731 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13732
13733 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13734
13735 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13736
13737 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13738 iteration of partitions.
13739
13740 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13741
13742 Improve gettext support. Stylistic fixes and error handling fixes while
13743 on it.
13744
13745 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13748 part. Instead setup the correct stack in RM.
13749 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13750 for stack.
13751 * include/grub/i386/relocator_private.h: New file.
13752
13753 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13754
13755 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13756 argument.
13757 * util/grub-fstest.c (options): Add missing DEVICE part.
13758
13759 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 Clarify and unify messages.
13762
13763 * grub-core/commands/hashsum.c (options): Unify messages.
13764 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13765 literal-only message as translatable.
13766 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13767 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13768 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13769 commands.
13770 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13771 key, not the key used to unlock. Clarify what it's used for.
13772 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13773 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13774 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13775 * util/grub-editenv.c (options): Unify "verbose" message.
13776 * util/grub-fstest.c (read_file): Unify error message.
13777 (fstest): Add quotes around commands.
13778 (options): Unify "verbose" message.
13779 * util/grub-install.in: Add quotes around variable name.
13780 * util/grub-kbdcomp.in: Unify error message.
13781 * util/grub-mkfont.c (main): Likewise.
13782 * util/grub-mkrescue.in: Likewise.
13783 * util/grub-mklayout.c (options): Unify "verbose" message.
13784 * util/grub-mkstandalone.in: Unify help and verbose messages.
13785 * util/grub-mount.c (options): Unify "verbose" message.
13786 * util/grub-probe.c (options): Likewise.
13787 * util/grub-script-check.c (options): Likewise.
13788 * util/grub-setup.c (setup): Unify no-terminator message.
13789 (options): Use DEVICE and not DEV.
13790 Unify "verbose" message.
13791 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13792
13793 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13794
13795 Improve and unify messages.
13796
13797 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13798 name. All users updated.
13799 Print filename in error.
13800 (read_device_map): Print filename in error.
13801 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13802 (grub_util_get_os_disk): Likewise.
13803 (grub_util_biosdisk_get_grub_dev): Likewise.
13804 (grub_util_check_block_device): Likewise.
13805 (grub_util_check_char_device): Likewise.
13806 (grub_make_system_path_relative_to_its_root): Likewise.
13807 * util/grub-editenv.c (create_envblk_file): Likewise.
13808 (open_envblk_file): Likewise.
13809 (write_envblk): Likewise.
13810 * util/grub-fstest.c (cmd_cp): Likewise.
13811 (cmd_cat): Likewise.
13812 (cmd_cmp): Likewise.
13813 * util/grub-menulst2cfg.c (main): Likewise.
13814 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13815 (write_font_width_spec): Likewise.
13816 (write_font_pf2): Likewise.
13817 * util/grub-mkimage.c (generate_image): New argument outname.
13818 All users updated.
13819 Remove unreacheable message.
13820 (options): Unify messages.
13821 (help_filter): Likewise.
13822 * util/grub-mklayout.c (usage): Removed (unused).
13823 (main): Print filename in error.
13824 * util/grub-mkrescue.in: Fix wrong quoting.
13825 * util/grub-setup.c (setup): Print filename in error.
13826 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13827 (check_sas): Likewise.
13828 * util/misc.c (grub_util_get_fp_size): Removed.
13829 (grub_util_get_image_size): Print filename in error.
13830 (grub_util_read_at): Removed.
13831 (grub_util_read_image): Print filename in error.
13832 (grub_util_load_image): Likewise.
13833 (grub_util_write_image_at): New argument filename. All users updated.
13834 Print filename in error.
13835 (grub_util_write_image): New argument filename. All users updated.
13836 Print filename in error.
13837 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13838 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13839
13840 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 * grub-core/Makefile.core.def (pxechain): New module.
13843 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13844 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13845 function.
13846 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13847 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13848
13849 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13850
13851 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13852 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13853 * include/grub/err.h (grub_error_saved): New struct.
13854 (grub_errmsg): Make array size explicit.
13855 * include/grub/misc.h (grub_error_save): New function.
13856 (grub_error_load): Likewise.
13857 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13858 (grub_error_push): Update `errno' member name.
13859 (grub_error_pop): Likewise
13860 * grub-core/net/tftp.c (tftp_data): New member save_err.
13861 (tftp_receive): Save error.
13862 (tftp_open): Restore error.
13863
13864 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13867 to real mode down to execute A20-related code in protected mode as
13868 intended.
13869
13870 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13871
13872 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13873 NULL when the argument `level' has an unexpected value.
13874
13875 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13876
13877 Move platform-dependent files from $prefix to $prefix/$platform.
13878
13879 * config.h.in (GRUB_TARGET_CPU): New definition.
13880 (GRUB_PLATFORM): Likewise.
13881 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13882 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13883 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13884 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13885 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13886 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13887 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13888 * grub-core/normal/term.c (read_terminal_list): Likewise.
13889 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13890 $prefix/locale.
13891 (grub_gettext_init_ext): Likewise.
13892 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13893 grub_platform.
13894 * util/grub-install.in: Update directories.
13895 * util/grub-mknetdir.in: Likewise.
13896 * util/grub-mkrescue.in: Likewise.
13897
13898 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13901 grub_error framework. All users updated.
13902
13903 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13906 lists (by always binsearching), improve caching (cache strings
13907 used for binsearch, not only results), improve
13908 maintainability (by using more structured binary search) and correct
13909 error handling.
13910
13911 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13912
13913 * grub-core/script/execute.c (grub_script_return): Fix warning.
13914
13915 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13916
13917 * grub-core/script/execute.c (grub_script_return): Fix potential
13918 NULL-dereference.
13919 Reported by: Jim Meyering.
13920
13921 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13922
13923 * po/POTFILES.in: Regenerate.
13924 * util/grub-install.in: Gettextize the strings missed in first pass.
13925
13926 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13927
13928 * Makefile.util.def (grub-mkdevicemap): Removed.
13929 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13930 * include/grub/util/deviceiter.h: Removed.
13931 * util/deviceiter.c: Likewise.
13932 * util/getroot.c (grub_util_get_os_disk): New function.
13933 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13934 replacement for EFI.
13935 * util/grub-mkdevicemap.c: Removed.
13936 * util/grub-probe.c (probe): Handle PRINT_DISK.
13937 (argp_parser): Handle -t disk.
13938
13939 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13940
13941 * util/grub-mkfont.c: Migrate to argp.
13942 * util/grub-mklayout.c: Likewise.
13943 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13944 * util/grub-mkrelpath.c: Likewise.
13945 * util/grub-probe.c: Likewise.
13946 * util/grub-script-check.c: Likewise.
13947
13948 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * util/grub-reboot.in: Add missing datarootdir.
13951 Add missing newline.
13952 * util/grub-set-default.in: Add missing datarootdir.
13953 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13954 * util/grub-mkrescue.in: Likewise.
13955
13956 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13959
13960 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13961
13962 * util/grub-kbdcomp.in: Add decent help and gettextize.
13963 * docs/man/grub-kbdcomp.h2m: New file.
13964
13965 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13966
13967 Migrate grub-mkimage.c to argp.
13968
13969 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
13970 (grub-setup): Likewise.
13971 * util/grub-setup.c (print_version): Move to ...
13972 * util/argp_common.c (print_version): ... here.
13973 * util/grub-setup.c (argp_program_version_hook): Move to ...
13974 * util/argp_common.c (argp_program_version_hook): ... here.
13975 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
13976 safety.
13977 * util/grub-mkimage.c (main): Migrate to argp.
13978
13979 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13980
13981 * util/grub-mkrescue.in: Use same message as
13982 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
13983 for better translations.
13984
13985 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
13988 options with generic grub-mkrescue.in with the goal of future
13989 merge.
13990
13991 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13992
13993 * grub-core/kern/mm.c: Add missing include of i18n.h
13994 * grub-core/lib/relocator.c: Likewise.
13995
13996 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
13999 error.
14000 (allocate_pages): Check return value.
14001 Replace fatal with error.
14002 (grub_linux_boot): Replace printf with dprintf.
14003 Check find_mmap_size return value.
14004 Replace fatal with error.
14005 Don't call grub_machine_fini.
14006 (grub_load_elf64): Replace printf with dprintf.
14007 (grub_cmd_linux): Likewise.
14008 (grub_cmd_initrd): Likewise.
14009 (grub_cmd_payload): Likewise.
14010
14011 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14012
14013 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14014 message.
14015 * grub-core/video/radeon_fuloong2e.c
14016 (grub_video_radeon_fuloong2e_setup): Likewise.
14017 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14018 * grub-core/video/video.c (grub_video_set_mode): Don't override
14019 standard out of memory message.
14020
14021 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14022
14023 NetBSD disk wedge support.
14024
14025 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14026 [__NetBSD__]: Handle NetBSD disk wedges.
14027 * util/getroot.c (convert_system_partition_to_system_disk)
14028 [__NetBSD__]: Likewise.
14029
14030 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14031
14032 * util/grub-mkconfig.in: Use umask rather than chmod to create
14033 grub.cfg.new to avoid insecure grub.cfg.
14034
14035 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * grub-core/commands/ls.c: Gettextize.
14038 * grub-core/commands/setpci.c: Likewise.
14039 * grub-core/commands/videotest.c: Likewise.
14040 * grub-core/disk/geli.c: Likewise.
14041 * grub-core/kern/mm.c: Likewise.
14042 * grub-core/lib/relocator.c: Likewise.
14043 * grub-core/loader/efi/appleloader.c: Likewise.
14044 * grub-core/loader/i386/xnu.c: Likewise.
14045 * grub-core/loader/ia64/efi/linux.c: Likewise.
14046 * grub-core/loader/xnu.c: Likewise.
14047 * grub-core/net/dns.c: Likewise.
14048 * grub-core/net/net.c: Likewise.
14049 * grub-core/script/lexer.c: Likewise.
14050 * grub-core/script/parser.y: Likewise.
14051 * grub-core/script/yylex.l: Likewise.
14052 * util/getroot.c: Likewise.
14053 * util/grub-setup.c: Likewise.
14054
14055 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14056
14057 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14058 number.
14059
14060 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14061
14062 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14063
14064 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14067 macro.
14068 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14069 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14070
14071 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14072
14073 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14074 * util/grub-install.in: Gettextize.
14075 * util/grub-mkconfig.in: Likewise.
14076 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14077 if not available.
14078 (grub_warn): Gettextize.
14079 * util/grub-mknetdir.in: Gettextize.
14080 * util/grub-mkrescue.in: Likewise.
14081 * util/grub-mkstandalone.in: Likewise.
14082 * util/grub-reboot.in: Likewise.
14083 * util/grub-set-default.in: Likewise.
14084 * util/grub.d/00_header.in: Likewise.
14085 * util/grub.d/10_hurd.in: Likewise.
14086 * util/grub.d/10_kfreebsd.in: Likewise.
14087 * util/grub.d/10_linux.in: Likewise.
14088 * util/grub.d/10_netbsd.in: Likewise.
14089 * util/grub.d/10_windows.in: Likewise.
14090 * util/grub.d/20_linux_xen.in: Likewise.
14091 * util/grub.d/30_os-prober.in: Likewise.
14092 * po/POTFILES-shell.in: Regenerate.
14093
14094 2012-02-03 Richard Laager <rlaager@wiktel.com>
14095
14096 * util/grub-mkimage.c (main): Fix format-security warning.
14097 * util/grub-mkrelpath.c (main): Likewise.
14098 * util/grub-probe.c (main): Likewise.
14099
14100 2012-02-03 Richard Laager <rlaager@wiktel.com>
14101
14102 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14103 failure.
14104 Put back lost PRINT_DRIVE.
14105
14106 2012-02-03 Richard Laager <rlaager@wiktel.com>
14107
14108 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14109 (grub_guess_root_devices): Replace strlen with sizeof.
14110 Avoid crash.
14111 (find_root_devices_from_poolname): Remove unused variable.
14112 Handle raidzN.
14113
14114 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14115
14116 Support install on multi-device filesystems.
14117
14118 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14119 (grub_guess_root_devices): ...this. Return char **. All users updated.
14120 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14121 Removed.
14122 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14123 (find_root_devices_from_poolname): ... here.
14124 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14125 Support zfs-fuse.
14126 (grub_guess_root_device): Rename to ...
14127 (grub_guess_root_devices): ... this. Return char **. All users updated.
14128 * util/grub-install.in: Handle multi-device filesystems.
14129 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14130 argument. All users updated.
14131 Handle multi-device filesystems.
14132 Use 'delim' as separator.
14133 Remove device check to allow filesystems on file.
14134 (main): Support -0 argument. Handle multi-device.
14135 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14136 Fix a cross-device check while on it.
14137 (arguments): Remove root_dev.
14138 (argp_parser): Remove -r.
14139 (main): Remove root_dev.
14140
14141 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14142
14143 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14144
14145 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14146
14147 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14148 symbol.
14149 Reported by: NODA, Kai <nodakai>.
14150
14151 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14152
14153 Fix ehci on amd64.
14154
14155 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14156 pointers.
14157 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14158 (grub_ehci_setup_qh): Likewise.
14159 (grub_ehci_find_qh): Likewise.
14160 (grub_ehci_transaction): Likewise.
14161 (grub_ehci_setup_transfer): Likewise.
14162 (grub_ehci_check_transfer): Likewise.
14163 (grub_ehci_portstatus): Likewise.
14164 (grub_ehci_detect_dev): Likewise.
14165 (grub_ehci_transfer_controller_data): New field td_last_phys.
14166 (grub_ehci_setup_transfer): Fill td_last_phys.
14167 (grub_ehci_check_transfer): Use td_last_phys.
14168
14169 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14170
14171 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14172 if no submenu is present.
14173
14174 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14175
14176 CBI support.
14177
14178 * include/grub/usb.h (grub_usbms_protocol_t): New values
14179 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14180 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14181 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14182 (grub_usbms_dev): Add subclass, protocol and intrpt.
14183 Remove in_maxsz and out_maxsz.
14184 (grub_usbms_reset): Rename to ...
14185 (grub_usbms_bo_reset): .. this.
14186 (grub_usbms_cbi_cmd): New function.
14187 (grub_usbms_cbi_reset): Likewise.
14188 (grub_usbms_reset): Likewise.
14189 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14190 (grub_usbms_transfer): Rename to ...
14191 (grub_usbms_transfer_bo): ... this.
14192 (grub_usbms_transfer_cbi): Likewise.
14193 (grub_usbms_transfer): Likewise.
14194
14195 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14196 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14199 the support for the CS5536 modification thereos and few bugfixes.
14200
14201 * grub-core/Makefile.core.def (ehci): New module.
14202 * grub-core/bus/usb/ehci.c: New file.
14203 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14204 port and hubaddr. All users updated.
14205 Save port and hubaddr into dev structure.
14206 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14207 define.
14208 * include/grub/pci.h (grub_dma_phys2virt): New function.
14209 (grub_dma_virt2phys): Likewise.
14210 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14211
14212 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14213
14214 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14215 check as some mkfs implementations omit it.
14216
14217 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14218
14219 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14220
14221 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14222
14223 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14224 Add new member volname2.
14225 (grub_jfs_label): Use volname2 if available.
14226
14227 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14228
14229 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14230 over last_mounted as seen in image generated by mkfs.nilfs2.
14231 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14232
14233 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14236 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14237 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14238
14239 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14240
14241 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14242 over the sector.
14243
14244 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14245
14246 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14247 subvolume name (by removing a bogus and useless check).
14248
14249 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14252 sizeof while on it.
14253
14254 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14255
14256 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14257 (grub_scsi_read_capacity10): ... this.
14258 (grub_scsi_read_capacity16): New function.
14259 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14260 0xffffffff.
14261 Fix off-by-one error.
14262 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14263 64-bit unsigned.
14264 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14265 (grub_scsi_read_capacity10): ... this.
14266 (grub_scsi_read_capacity_data): Rename to ...
14267 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14268 (grub_scsi_read_capacity16): New struct.
14269 (grub_scsi_read_capacity16_data): Likewise.
14270 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14271 grub_scsi_cmd_read_capacity10.
14272 New command grub_scsi_cmd_read_capacity16.
14273
14274 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14275
14276 SCSI >2TiB support.
14277
14278 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14279 (grub_scsi_write16): Likewise.
14280 (grub_scsi_read): Use read16 when necessary.
14281 (grub_scsi_write): Likewise.
14282 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14283 (grub_scsi_write16): Likewise.
14284 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14285
14286 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 SCSI write support (for usbms mainly).
14289
14290 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14291 a const pointer.
14292 (grub_scsi_write): Implement.
14293 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14294
14295 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14296
14297 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14298 variable.
14299
14300 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14303
14304 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * po/POTFILES.in: Regenerate.
14307
14308 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14311 with grub_printf to avoid unnecessary fatal failure.
14312
14313 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14316 (INT_MAX): Likewise.
14317 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14318 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14319 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14320 (strcpy): Likewise.
14321 (strstr): Likewise.
14322 (strchr): Likewise.
14323 (strncpy): Likewise.
14324 (strcat): Likewise.
14325 (strncat): Likewise.
14326 (strcoll): Likewise.
14327 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14328 (GRUB_INT_MAX): Likewise.
14329
14330 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14331
14332 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14333 unexpected error.
14334 (optimize_utf8): Likewise.
14335 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14336
14337 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14338
14339 * grub-core/boot/i386/pc/lnxboot.S: Use
14340 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14341 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14342 location.
14343 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14344 definition.
14345 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14346
14347 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14348
14349 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14350 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14351 now to avoid double free.
14352 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14353 hostdisk.
14354 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14355 * util/grub-probe.c (escape_of_path): Always return a new copy.
14356 (print_full_name): Escape path.
14357 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14358 Fix hints on abstractions.
14359
14360 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14363 Don't add "root" line if no compatibility hont is available.
14364 Suggested by: Seth Goldberg.
14365
14366 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14369 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14370 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14371 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14372
14373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14374
14375 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14376
14377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 * util/grub-pe2elf.c (ehdr): Make static.
14380 (shdr): Likewise.
14381 (num_sections): Likewise.
14382 (offset): Likewise.
14383
14384 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14385
14386 Eliminate ofpath limits and possible overflows.
14387
14388 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14389 (OF_PATH_MAX): Removed.
14390 (MAX_DISK_CAT): New const.
14391 (find_obppath): Use allocated rather than preallocated buffer.
14392 Return result. Argument of_path removed. All users updated.
14393 Add missing fdstat.
14394 (xrealpath): New function.
14395 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14396 Allocate rather than use preallocated buffer. All users updated.
14397 (__of_path_common): Use allocated rather than preallocatecd buffer.
14398 Return result. Argument of_path removed. All users updated.
14399 (vendor_is_ATA): Read only needed part form the file.
14400 (check_sas): Allocate depending on contents rather than fixed.
14401 (main) [STANDALONE]: Handle NULL result.
14402
14403 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14404
14405 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14406
14407 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14408
14409 Cryptodisk write support.
14410
14411 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14412 (grub_cryptodisk_decrypt): Moved logic to ...
14413 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14414 (grub_cryptodisk_write): Implement.
14415 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14416 (grub_util_fd_write): ... this. Make global.
14417 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14418
14419 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14420
14421 * include/grub/list.h (grub_list_remove): Don't crash if element is
14422 removed twice.
14423
14424 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425
14426 Rename ofconsole to console.
14427
14428 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14429 as sysnonym to console.
14430 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14431 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14432 Rename grub_ofconsole_ to grub_console_. All users updated
14433 (grub_console_term_output): Rename "ofconsole" to "console".
14434 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14435 as "console".
14436
14437 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14440 handling.
14441 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14442 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14443 GRUB_DISK_DEVICE_FILE_ID.
14444
14445 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14446
14447 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14448 and improve performance.
14449
14450 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14451
14452 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14453 missing ieee1275/ prefix on whole disk.
14454
14455 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14456
14457 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14458 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14459
14460 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14461
14462 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14463
14464 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 Merge common RAID and LVM logic to an abstract diskfilter.
14467 Add LDM support using the same framework.
14468
14469 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14470 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14471 (libgrubmods): Remove grub-core/disk/raid.c and
14472 grub-core/partmap/gpt.c.
14473 * grub-core/Makefile.core.def (ldm): New module.
14474 (raid): Renamed to diskfilter. All users updated.
14475 * grub-core/disk/raid.c: Moved to ...
14476 * grub-core/disk/diskfilter.c: ... here.
14477 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14478 (lv_num): New var.
14479 (find_array): Renamed to ...
14480 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14481 (grub_is_array_readable): Renamed to ...
14482 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14483 (insert_array): New argument id.
14484 (is_node_readable): New function.
14485 (scan_device): Rename to ...
14486 (scan_disk): .. this. Restrict to one disk.
14487 (scan_devices): New function.
14488 (grub_diskfilter_iterate): Support multi-LV.
14489 Skip invisible and nameless LVs.
14490 (grub_diskfilter_memberlist): Support multi-LV.
14491 (grub_diskfilter_read_node): New function.
14492 (grub_raid_read): Most of logic moved to ...
14493 (read_segment): ... here
14494 (read_lv): New function.
14495 (grub_diskfilter_get_vg_by_uuid): New function.
14496 (grub_diskfilter_make_raid): Likewise.
14497 * grub-core/disk/ldm.c: New file.
14498 * grub-core/disk/lvm.c (vg_list): Removed.
14499 (lv_count): Likewise.
14500 (scan_depth): Likewise.
14501 (is_lv_readable): Likewise.
14502 (grub_lvm_getvalue): Advance pointer past the number.
14503 (find_lv): Removed.
14504 (do_lvm_scan): Refactored into ...
14505 (grub_lvm_detect): ... this. Support raid.
14506 (grub_lvm_iterate): Removed.
14507 (grub_lvm_memberlist): Likewise.
14508 (grub_lvm_open): Likewise.
14509 (grub_lvm_close): Likewise.
14510 (read_lv): Likewise.
14511 (read_node): Likewise.
14512 (is_node_readable): Likewise.
14513 (is_lv_readable): Likewise.
14514 (grub_lvm_read): Likewise.
14515 (grub_lvm_write): Likewise.
14516 (grub_lvm_dev): Use diskfilter
14517 (GRUB_MOD_INIT): Likewise.
14518 (GRUB_MOD_FINI): Likewise.
14519 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14520 new interface.
14521 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14522 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14523 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14524 grub_diskfilter_read_node.
14525 Fix a bug with xor.
14526 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14527 grub_diskfilter_read_node.
14528 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14529 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14530 (grub_disk_dev_iterate): Move from here...
14531 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14532 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14533 Make global.
14534 (grub_hostdisk_find_partition_start): Likewise.
14535 (grub_hostdisk_os_dev_to_grub_drive): New function.
14536 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14537 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14538 * util/getroot.c (make_device_name): ... here.
14539 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14540 Move to ...
14541 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14542 * grub-core/kern/emu/hostdisk.c
14543 (convert_system_partition_to_system_disk): Move to ...
14544 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14545 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14546 * util/getroot.c (device_is_wholedisk): ... here.
14547 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14548 * util/getroot.c (find_system_device): ... here.
14549 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14550 Move to ...
14551 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14552 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14553 Move to ...
14554 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14555 Handle LDM.
14556 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14557 Move to ...
14558 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14559 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14560 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14561 DISKFILTER.
14562 * include/grub/raid.h: Renamed to ...
14563 * include/grub/diskfilter.h: ... this.
14564 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14565 (GRUB_RAID_LAYOUT_*): Make into array.
14566 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14567 (grub_diskfilter_vg): New struct.
14568 (grub_diskfilter_pv_id): Likewise.
14569 (grub_raid_member): Removed.
14570 (grub_raid_array): Likewise.
14571 (grub_diskfilter_pv): New struct.
14572 (grub_diskfilter_lv): Likewise.
14573 (grub_diskfilter_segment): Likewise.
14574 (grub_diskfilter_node): Likewise.
14575 (grub_diskfilter_get_vg_by_uuid): New proto.
14576 (grub_raid_register): Inline.
14577 (grub_diskfilter_unregister): Likewise.
14578 (grub_diskfilter_make_raid): New proto.
14579 (grub_diskfilter_vg_register): Likewise.
14580 (grub_diskfilter_read_node): Likewise.
14581 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14582 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14583 (grub_util_is_ldm): Likewise.
14584 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14585 (grub_hostdisk_find_partition_start): Likewise.
14586 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14587 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14588 New definition.
14589 (grub_gpt_partition_map_iterate): New proto.
14590 * include/grub/lvm.h (grub_lvm_vg): Removed.
14591 (grub_lvm_pv): Likewise.
14592 (grub_lvm_lv): Likewise.
14593 (grub_lvm_segment): Likewise.
14594 (grub_lvm_node): Likewise.
14595 * util/getroot.c [...]
14596 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14597 (probe_abstraction): Likewise.
14598 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14599 (main): Remove dead logic.
14600
14601 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14602
14603 Simplify root device discover and don't fail when trying to open
14604 incorrect devices.
14605
14606 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14607 function.
14608 (get_diskname_from_path): Likewise.
14609 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14610 of iterating.
14611
14612 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14613
14614 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14615
14616 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14619 pastthe end.
14620
14621 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14622
14623 * util/grub-install.in: Add missing \.
14624 Reported by: gentoofan
14625
14626 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14627
14628 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14629 (direct_read): Use correct compressed size.
14630 (grub_squash_read_data): Likewise.
14631
14632 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14633
14634 * docs/grub.texi (Platform limitations): New section.
14635 (Platform-specific operations): Likewise.
14636 * docs/grub-dev.texi (Porting): Likewise.
14637
14638 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 IEEE1275 disk write support.
14641
14642 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14643 const void *.
14644 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14645 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14646 and seek loginc to ...
14647 (grub_ofdisk_prepare): ... here.
14648 (grub_ofdisk_write): Implement.
14649
14650 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 ARC disk write support.
14653
14654 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14655 (reopen): New argument writable. All users updated.
14656 Handle required access mode.
14657 (grub_arcdisk_write): Implement.
14658 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14659 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14660
14661 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14662
14663 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14664 (read_sblock): Don't attempt to read superblocks outside the disk size.
14665
14666 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14667
14668 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14669 first superblock to find the second one when possible.
14670
14671 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14672
14673 * util/grub-install.in: Fix an ARC bug.
14674 Print a warning if no platform-specific setup is available.
14675
14676 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14677
14678 Use static allocation rather than scratch pointer in reed_solomon.
14679 It decreases its size significantly and avoids a variable in .text.
14680
14681 * grub-core/lib/reed_solomon.c (scratch): Removed.
14682 (chosenstat): New const or static array.
14683 (sigma): Likewise.
14684 (errpot): Likewise.
14685 (errpos): Likewise.
14686 (sy): Likewise.
14687 (mstat): Likewise.
14688 (errvals): Likewise.
14689 (eqstat): Likewise.
14690 (pol_evaluate): Replace x with log_x argument. All users updated.
14691 (syndroms): Removed.
14692 (gauss_solve): Use statically allocated arrays.
14693 (rs_recover): Likewise.
14694 Calculate syndroms directly.
14695 (decode_block): Use statically allocated arrays.
14696 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14697 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14698
14699 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14700
14701 Eliminate fixed limit on reed solomon decoder length.
14702
14703 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14704 rather than hardcoding the address.
14705 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14706 no_reed_solomon_length.
14707 Move gate_a20 to no-reed-solomon part.
14708 Don't force a particular size of no reed-solomon part.
14709 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14710 Removed.
14711 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14712 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14713
14714 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14715
14716 * grub-core/commands/wildcard.c (match_files): Handle filenames
14717 without explicit device.
14718 (wildcard_expand): Don't add explicit device if not already present.
14719 * tests/grub_script_echo1.in: Add a new expansion test.
14720
14721 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14722
14723 Replace single-linked with double-linked lists. It results in more
14724 compact and more efficient code.
14725
14726 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14727 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14728 (grub_list_remove): Moved from here ...
14729 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14730 (grub_prio_list_insert): Set prev.
14731 * include/grub/list.h (grub_list): Add prev. All users updated.
14732
14733 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14734
14735 Handle newer autotools. Add some missing quotes while on it.
14736
14737 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14738 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14739 (pkgdata_DATA): ... here.
14740 * Makefile.util.def (update-grub_lib): Removed.
14741 * conf/Makefile.common (pkglib_DATA): Removed.
14742 (pkglib_SCRIPTS): Likewise.
14743 (pkgdata_DATA): New variable.
14744 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14745 needed.
14746 Add missing quotes.
14747 Remove unused variable while on it.
14748 * tests/util/grub-shell.in: Likewise.
14749 * util/grub-install.in: Likewise.
14750 * util/grub-mkconfig.in: Likewise.
14751 * util/grub-mknetdir.in: Likewise.
14752 * util/grub-mkrescue.in: Likewise.
14753 * util/grub-mkstandalone.in: Likewise.
14754 * util/grub.d/00_header.in: Likewise.
14755 * util/grub.d/10_hurd.in: Likewise.
14756 * util/grub.d/10_illumos.in: Likewise.
14757 * util/grub.d/10_kfreebsd.in: Likewise.
14758 * util/grub.d/10_linux.in: Likewise.
14759 * util/grub.d/10_netbsd.in: Likewise.
14760 * util/grub.d/10_windows.in: Likewise.
14761 * util/grub.d/20_linux_xen.in: Likewise.
14762 * util/grub.d/30_os-prober.in: Likewise.
14763 * util/update-grub_lib.in: Removed.
14764
14765 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14766
14767 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14768 a workaround for intel problem.
14769
14770 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14771 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14772 2012-01-23 pfsmorigo
14773
14774 * util/grub-install.in: Support dd'in into PreP partition.
14775 * util/grub-probe.c (probe): Support discovering partition type.
14776 (main): Support -t msdos_parttype.
14777
14778 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14781 infinite recursion using counter.
14782 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14783 init to skip it if the magic check fails.
14784 (dec_stream_header): Init s->crc32.
14785
14786 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14787 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14788 2012-01-22 Richard Laager <rlaager@wiktel.com>
14789
14790 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14791 All users updated.
14792 (find_bestub): Determine correct size.
14793 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14794 (scan_disk): Align the size down.
14795 Call check pool before find_bestub to have ashift.
14796
14797 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14798
14799 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14800 dprintf in no-malloc zone.
14801
14802 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14803
14804 * configure.ac: Add back in test for limits.h.
14805
14806 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 Support 4K-sector NTFS.
14809
14810 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14811 (grub_ntfs_data): Remove blocksize.
14812 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14813 Remove data argument. All users updated.
14814
14815 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14816
14817 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14818 being in .text to avoid dprel references.
14819 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14820 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14821 (grub_arch_highmemsize): Likewise.
14822 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14823 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14824 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14825
14826 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14829
14830 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14831 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14832
14833 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14834
14835 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14836 GRUB_UTIL.
14837 (grub_set_datetime_cmos): Likewise.
14838
14839 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14840
14841 Make XZ compression parameters dependent on target and not host CPU.
14842
14843 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14844 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14845
14846 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14847
14848 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14849 set but not used variable.
14850
14851 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14852
14853 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14854 created when no uuid support is compiled into mkfs.reiser.
14855
14856 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14857
14858 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14859 (utf8_to_macroman): Do the opposite.
14860 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14861
14862 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14863
14864 * configure.ac: Refise build qemu_mips w/o unifont.
14865
14866 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14867
14868 Eliminate grub_min/grub_max prone to overflow usage.
14869
14870 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14871 (poll_nonroot_hub): Likewise.
14872 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14873 (grub_affs_label): Likewise.
14874 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14875 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14876 (grub_hfs_label): Likewise.
14877 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14878 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14879 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14880 (zap_leaf_array_get): Likewise.
14881 (dnode_get_path): Likewise.
14882 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14883 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14884 * grub-core/script/execute.c (grub_script_break): Likewise.
14885 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14886 grub_max.
14887 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14888 * include/grub/misc.h (grub_min): Removed.
14889 (grub_max): Likewise.
14890
14891 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14892
14893 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14894 direct.inode = 0.
14895
14896 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14899
14900 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14903
14904 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14905
14906 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14907 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14908
14909 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14910
14911 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14912 rather than a hack for grub_strncasemap.
14913
14914 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14915
14916 Support multiple initrds
14917 Note: part of this was accidently committed in r3739.
14918
14919 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14920 initrd.
14921 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14922 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14923 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14924 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14925 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14926
14927 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14928
14929 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14930 disks with unknown size.
14931 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14932
14933 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14934
14935 Remove defines pertaining to arbitrary limits not affecting GRUB
14936 anymore.
14937
14938 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14939 (EXT2_MAX_SYMLINKCNT): Likewise.
14940 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14941 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14942 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14943 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14944 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14945 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14946 (DN_MAX_OBJECT_SHIFT): Likewise.
14947 (DN_MAX_OFFSET_SHIFT): Likewise.
14948 (DN_MAX_OBJECT): Likewise.
14949 (DNODES_PER_LEVEL_SHIFT): Likewise.
14950 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14951 (SPA_MAXBLOCKSIZE): Likewise.
14952 (SPA_BLOCKSIZES): Likewise.
14953 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14954 (MZAP_MAX_BLKSZ): Likewise.
14955
14956 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14959 handle NULL appropriately.
14960 Remove MIN.
14961
14962 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 Fix efiemu.
14965
14966 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
14967 cpu/types.h.
14968 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
14969 * configure.ac: Fix efiemu check.
14970
14971 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
14974 grub_probe.
14975 Reported by: adamwill
14976
14977 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
14978
14979 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
14980
14981 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 Fix handling of wide characters in gfxterm.
14984
14985 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
14986 (clear_char): Likewise.
14987 (paint_char): Skip code == NULL chars.
14988 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
14989
14990 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14991
14992 * grub-core/normal/charset.c: Move comment to right place.
14993
14994 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
14997 (GRUB_AFFS_FLAG_FFS): Put back where it was.
14998 (grub_affs_mount): Revert the correct version checking.
14999
15000 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15001
15002 * docs/grub.texi (Unicode): Mention several other unsupported features.
15003
15004 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15005
15006 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15007 case statements as compile-time one.
15008 (direct_read): Prevent spurious warnings.
15009 (grub_squash_read_data): Likewise.
15010
15011 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 Various squash4 fixes and LZO and XZ support.
15014
15015 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15016 Add xzembed source files.
15017 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15018 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15019 (grub_squash_inode): New subtype long_dir.
15020 (SQUASH_TYPE_LONG_DIR): New inode type.
15021 (COMPRESSION): New enum.
15022 (XZBUFSIZ): New const.
15023 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15024 (read_chunk): Use data->decompress.
15025 (zlib_decompress): New function.
15026 (lzo_decompress): Likewise.
15027 (xz_decompress): Likewise.
15028 (squash_mount): Set new data fields.
15029 (grub_squash_iterate_dir): Handle long dir.
15030 (squash_unmount): Free xzdec and xzbuf.
15031 (grub_squash_open): Check ino type.
15032 (direct_read): Stylistic fixes. Use data->decompress.
15033 (grub_squash_read_data): Likewise.
15034 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15035 (get_byte): Likewise.
15036 (grub_zlib_disk_read): Removed.
15037 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15038 (GRUB_POSIX_BOOL_DEFINED): New define.
15039 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15040 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15041 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15042 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15043
15044 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15045
15046 Don't override more informative errors.
15047
15048 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15049 * grub-core/font/font.c (open_section): Likewise.
15050 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15051 filename. Don't override errors.
15052 (grub_cmd_openbsd_ramdisk): Don't override errors.
15053 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15054 (grub_cmd_initrd): Likewise.
15055 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15056 (grub_cmd_initrd): Likewise.
15057 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15058 (grub_cmd_linux): Likewise.
15059 (grub_cmd_initrd): Likewise.
15060 (grub_cmd_payload): Likewise.
15061 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15062 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15063 (grub_cmd_module): Likewise.
15064 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15065 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15066 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15067 (grub_cmd_xnu_mkext): Likewise.
15068 (grub_cmd_xnu_ramdisk): Likewise.
15069 (grub_xnu_check_os_bundle_required): Likewise.
15070 (grub_xnu_load_kext_from_dir): Likewise.
15071 (grub_cmd_xnu_kextdir): Likewise.
15072 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15073
15074 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15075
15076 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15077 as 1024 in block size field. Found on one of my test images.
15078 Small optimisation while on it.
15079
15080 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15083 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15084 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15085 performance fixes while on it.
15086 (grub_sfs_close): Fix memory leak while on it.
15087 (grub_sfs_label): Convert Latin1 to UTF-8.
15088
15089 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15092 space to avoid overflows.
15093 (grub_hfs_label): Convert from macroman to UTF-8.
15094
15095 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15098
15099 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15100
15101 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15102
15103 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15104
15105 * unicode: Import Unicode 6.0 data.
15106
15107 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15108
15109 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15110 outside of range.
15111
15112 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 Avoid cutting in the middle of UTF-8 character.
15115
15116 * include/grub/charset.h (grub_getend): New function.
15117 * grub-core/script/function.c (grub_script_function_find): Use
15118 grub_getend.
15119 * grub-core/normal/completion.c (add_completion): Likewise.
15120
15121 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15124 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15125 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15126 (GRUB_UNICODE_TAG_END): Likewise.
15127 (GRUB_UNICODE_LAST_VALID): Likewise.
15128
15129 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15130
15131 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15132 len and make it smaller. All users updated.
15133 * util/import_unicode.py: Put length and not end character.
15134 Check length.
15135
15136 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15137
15138 Make better Unicode-compliant and unify some UTF-8 code pathes.
15139
15140 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15141 valid character.
15142 (grub_is_valid_utf8): Use grub_utf8_process.
15143 Check resulting code range.
15144 (grub_utf8_to_ucs4): Use grub_utf8_process.
15145 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15146 valid character.
15147
15148 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15151
15152 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15153
15154 * docs/grub.texi (Filesystems): Mention AFS.
15155
15156 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15157
15158 * docs/grub.texi (Filesystems): Clarify restrictions.
15159 (Regexp): Mention non-Unicode regexp behaviour.
15160 (Other): Mention non-Unicode matching behaviour.
15161
15162 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 Make HFS implementation use MacRoman.
15165
15166 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15167 (macroman): New const array.
15168 (macroman_to_utf8): New function.
15169 (utf8_to_macroman): Likewise.
15170 (grub_hfs_find_dir): Use utf8_to_macroman.
15171 (grub_hfs_dir): Use macroman_to_utf8.
15172 Set case_insensitive.
15173
15174 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15175
15176 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15177
15178 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15179
15180 Integrate hints into autogeneration scripts.
15181
15182 * docs/grub.texi (Filesystems): Add a hostdisk example.
15183 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15184 (grub-probe): Add ofpath.
15185 * gentpl.py: Remove group nosparc64.
15186 * grub-core/commands/search.c (cache_entry): New struct.
15187 (cache): New var.
15188 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15189 * grub-core/commands/search_wrap.c (options): Add platform-specific
15190 hint options.
15191 (grub_cmd_search): Handle platform-specific hints.
15192 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15193 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15194 (grub_util_biosdisk_data): Likewise.
15195 (grub_util_biosdisk_open): Set device_map.
15196 (read_device_map): Handle "" as indication of no map.
15197 Set device_map.
15198 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15199 (grub_util_biosdisk_get_compatibility_hint): New function.
15200 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15201 * include/grub/emu/hostdisk.h
15202 (grub_util_biosdisk_get_compatibility_hint): New proto.
15203 * util/grub-install.in: Don't call grub-mkdevicemap.
15204 Add platform-specific hint to load.cfg.
15205 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15206 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15207 hints. Set root preliminary to compatibility hint, not to OS name.
15208 * util/grub-probe.c (PRINT_*): Add hints.
15209 (print): Make static.
15210 (escape_of_path): New function.
15211 (guess_bios_drive): Likewise.
15212 (guess_efi_drive): Likewise.
15213 (guess_baremetal_drive): Likewise.
15214 (print_full_name): Likewise.
15215 (probe): Handle hints.
15216 (main): Likewise.
15217 * util/ieee1275/devicemap.c: Removed.
15218 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15219 updated.
15220 (grub_util_devname_to_ofpath): Return NULL on failure.
15221
15222 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15223 resource leak.
15224 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15225
15226 * po/POTFILES.in: Regenerated.
15227
15228 Allow purely long options
15229
15230 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15231 (SHORT_ARG_USAGE): Likewise.
15232 (grub_arg_show_help): Compare opt with help_options.
15233 (parse_option): Receive opt as argument. If makes big simplificatons.
15234 All users updated
15235
15236 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15237
15238 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15239 Restructure to avoid warning.
15240
15241 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15242
15243 * util/grub-install.in: Account for possible escaped comma in device
15244 name.
15245
15246 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15247
15248 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15249 channel.
15250
15251 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15254 allocation and zero-setting.
15255 (grub_ieee1275_get_devname): Check that alias is complete.
15256
15257 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15260 unaligned segments.
15261
15262 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15263
15264 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15265 prefix.
15266 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15267 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15268 Add ieee1275 prefix.
15269
15270 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 * docs/grub.texi (Filesystems): Update.
15273
15274 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 Support odc, newc and bigendian cpio formats.
15277
15278 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15279 * grub-core/Makefile.core.def (newc): New module.
15280 (odc): Likewise.
15281 (cpio_be): Likewise.
15282 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15283 (MAGIC): Likewise.
15284 (MAGIC2): Likewise.
15285 (head) [MODE_ODC]: Adapt for the format.
15286 (head) [MODE_NEWC]: Likewise.
15287 (head) [!MODE_*]: Write fields of interest as arrays.
15288 (MAGIC_USTAR): Removed.
15289 (read_number) [MODE_NEWC]: Change to hex.
15290 (read_number) [!MODE_*]: Parse binary arrays.
15291 (grub_cpio_find_file): Factor out the code for better structure and
15292 always use read_number.
15293 (grub_cpio_mount): Use MAGIC and MAGIC2.
15294 (grub_cpio_dir): Exit on first hook non-0 return.
15295 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15296 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15297 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15298 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15299 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15300 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15301 * grub-core/fs/newc.c: New file.
15302 * grub-core/fs/odc.c: Likewise.
15303 * grub-core/fs/cpio_be.c: Likewise.
15304
15305 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15306
15307 Fix handling of tar numbers occupying the whole field.
15308
15309 * grub-core/fs/cpio.c (read_number): New function.
15310 (grub_cpio_find_file): Use read_number instead of strtoull.
15311
15312 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15313
15314 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15315 occupying the whole field size.
15316
15317 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15318
15319 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15320
15321 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15322
15323 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15324
15325 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15326
15327 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15328 TARGET_IMG_LDFLAGS.
15329
15330 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15331
15332 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15333 (mountinfo_entry): Increase the field size to take escaping into
15334 account.
15335 (find_root_device_from_libzfs): Add one byte to size of strings for
15336 security.
15337
15338 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15339
15340 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15341 an assert.
15342 * util/grub-setup.c (setup): Likewise.
15343
15344 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15345
15346 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15347 _LzmaDecodeA.
15348
15349 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 * docs/grub.texi (Internationalisation): New section.
15352
15353 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * docs/grub.texi (Loopback booting): New section.
15356
15357 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15358
15359 * util/grub-mkstandalone.in: Fix minor typo errors.
15360
15361 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15362
15363 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15364
15365 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15366 net/icmp.c and net/icmp6.c.
15367 (http): New module.
15368 (priority_queue): Likewise.
15369 * grub-core/io/bufio.c: Rewritten.
15370 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15371 TYPE_WITH_CONFIGFILE_OPTION.
15372 (legacy_commands): Add bootp and dhcp.
15373 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15374 (grub_legacy_parse): Likewise.
15375 * grub-core/lib/priority_queue.c: New file.
15376 * grub-core/net/arp.c: Add missing license header.
15377 (arp_find_entry): Removed.
15378 (arp_find_entry): Likewise.
15379 (grub_net_arp_resolve): Rename to ...
15380 (grub_net_arp_send_request): ...this.
15381 (grub_net_arp_receive): New card argument.
15382 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15383 Set router and DNS server.
15384 (grub_net_configure_by_dhcp_ack): Handle routing information.
15385 (grub_cmd_bootp): Set checksum.
15386 (grub_bootp_init): Remove net_dhcp.
15387 * grub-core/net/dns.c: New file.
15388 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15389 completion.
15390 (get_card_packet): Handle allocation.
15391 (grub_efinet_findcards): Set mtu.
15392 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15393 (get_card_packet): Handle allocation.
15394 (emucard): Set mtu.
15395 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15396 (GRUB_MOD_INIT): Set mtu.
15397 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15398 mtu.
15399 (get_card_packet): Handle allocation.
15400 (grub_ofnet_findcards): Set mtu.
15401 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15402 assert.
15403 (grub_net_recv_ethernet_packet): Handle IPv6.
15404 * grub-core/net/http.c: New file.
15405 * grub-core/net/icmp.c: Likewise.
15406 * grub-core/net/icmp6.c: Likewise.
15407 * grub-core/net/ip.c (ip6addr): New type.
15408 (ip6hdr): Likewise.
15409 (reassemble): Likewise.
15410 (cmp): New function.
15411 (reassembles): New variable.
15412 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15413 (id): New variable.
15414 (send_fragmented): New function.
15415 (grub_net_send_ip_packet): Rename to ...
15416 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15417 Handle non-UDP.
15418 (grub_net_recv_ip_packets): Rename to ...
15419 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15420 (free_rsm): New function.
15421 (free_old_fragments): Likewise.
15422 (grub_net_recv_ip4_packets): New function.
15423 (grub_net_send_ip6_packet): Likewise.
15424 (grub_net_send_ip_packet): Likewise.
15425 (grub_net_recv_ip6_packets): Likewise.
15426 (grub_net_recv_ip_packets): Likewise.
15427 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15428 (LINK_LAYER_CACHE_SIZE): New const.
15429 (link_layer_find_entry): New function.
15430 (grub_net_link_layer_add_address): Likewise.
15431 (grub_net_link_layer_resolve_check): Likewise.
15432 (grub_net_link_layer_resolve): Likewise.
15433 (grub_net_ipv6_get_slaac): Likewise.
15434 (grub_net_ipv6_get_link_local): Likewise.
15435 (grub_cmd_ipv6_autoconf): Likewise.
15436 (parse_ip): Handle one number representation.
15437 (parse_ip6): New functoion.
15438 (match_net): Handle IPv6.
15439 (grub_net_resolve_address): Handle IPv6 and DNS.
15440 (grub_net_resolve_net_address): Handle IPv6.
15441 (route_cmp): New function.
15442 (grub_net_route_address): Find best route.
15443 (grub_net_addr_to_str): Handle IPv6.
15444 (grub_net_addr_cmp): New function.
15445 (grub_net_add_addr): Register local route.
15446 (print_net_address): Handle net address.
15447 (grub_net_poll_cards): Retransmit TCP.
15448 (grub_net_poll_cards_idle_real): Likewise.
15449 (have_ahead): New function.
15450 (grub_net_seek_real): Use underlying seek.
15451 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15452 * grub-core/net/tcp.c: New file.
15453 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15454 (cmp): New function.
15455 (ack): Likewise.
15456 (tftp_receive): Handle unordered input.
15457 (destroy_pq): New function.
15458 (tftp_close): Close pq.
15459 * grub-core/net/udp.c: Put missing license header.
15460 (grub_net_udp_socket): New function.
15461 (udp_socket_register): Likewise.
15462 (grub_net_udp_close): Likewise.
15463 (grub_net_recv_udp_packet): Check checksum.
15464 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15465 * include/grub/misc.h (grub_memchr): New function.
15466 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15467 (grub_net_card_driver): Return buf in recv.
15468 (grub_net_slaac_mac_list): New struct.
15469 (grub_network_level_protocol_id): Add ipv6.
15470 (grub_net_network_level_addr): Likewise.
15471 (grub_net_network_level_net_addr): Likewise.
15472 (grub_net_app_protocol): Add seek.
15473 (grub_net_socket): Removed.
15474 (grub_net_sockets): Likewise.
15475 (grub_net_socket_register): Likewise.
15476 (grub_net_socket_unregister): Likewise.
15477 (FOR_NET_SOCKETS): Likewise.
15478 (grub_net_add_addr): Add const.
15479 (GRUB_NET_BOOTP_*): New enum.
15480 (grub_net_addr_cmp): New proto.
15481 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15482 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15483 (grub_net_hwaddr_to_str): NEw proto.
15484 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15485 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15486 (grub_dns_init): New proto.
15487 (grub_dns_fini): Likewise.
15488 (grub_net_tcp_retransmit): Likewise.
15489 (grub_net_link_layer_add_address): Likewise.
15490 (grub_net_link_layer_resolve_check): Likewise.
15491 (grub_net_link_layer_resolve): Likewise.
15492 (grub_net_dns_lookup): Likewise.
15493 (grub_net_add_dns_server): Likewise.
15494 (grub_net_remove_dns_server): Likewise.
15495 (GRUB_NET_TRIES): New const.
15496 (GRUB_NET_INTERVAL): Likewise.
15497 * include/grub/net/arp.h: Mostly rewritten.
15498 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15499 * include/grub/net/ip.h: Mostly rewritten.
15500 * include/grub/net/netbuff.h: Indent.
15501 * include/grub/net/tcp.h: New file.
15502 * include/grub/net/udp.h: Mostly rewritten.
15503 * include/grub/priority_queue.h: New file.
15504 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15505 (grub_swap_bytes64_compile_time): Likewise.
15506 (grub_cpu_to_be16_compile_time): Likewise.
15507 (grub_cpu_to_be32_compile_time): Likewise.
15508 (grub_cpu_to_be64_compile_time): Likewise.
15509 (grub_be_to_cpu64_compile_time): Likewise.
15510
15511 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15512
15513 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15514 UINT_TO_PTR with cast.
15515
15516 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15517
15518 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15519 don't use them.
15520
15521 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15522
15523 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15524 already there.
15525
15526 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15527
15528 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15529 confusing ipxe.
15530
15531 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15532
15533 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15534 Add missing const attribute.
15535 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15536 Likewise.
15537 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15538 Likewise.
15539
15540 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15541
15542 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15543 misaligned access.
15544 (serpent_setkey): Likewise.
15545 (serpent_encrypt_internal): Likewise.
15546 (serpent_decrypt_internal): Likewise.
15547 (serpent_encrypt): Don't put an alignment-increasing cast.
15548 (serpent_decrypt): Likewise.
15549 (serpent_test): Likewise.
15550
15551 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15552
15553 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15554
15555 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15556
15557 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15558
15559 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15560 grub_addr_t casts.
15561 (PTR_TO_UINT64): Likewise.
15562 (PTR_TO_UINT32): Likewise.
15563
15564 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15565
15566 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15567 because of stack.
15568 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15569 limit.
15570
15571 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15572
15573 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15574 text_width > available width a bit more gracefully.
15575
15576 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15579 current address calculation.
15580
15581 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15584 stack.
15585 (encode_block): Likewise.
15586
15587 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15590 certainety.
15591
15592 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15595 non-RS part to avoid RS messing with GDT.
15596 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15597 Increase to suit in realmode routines.
15598
15599 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15600
15601 * grub-core/kern/i386/realmode.S: Increase alignment.
15602 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15603
15604 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15605
15606 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15607 be deterministic.
15608 (syndroms): Compute 0 syndrom.
15609 (rs_recover): Use 0 syndrom.
15610
15611 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15612
15613 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15614
15615 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15616
15617 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15618 brackets.
15619
15620 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15623 account.
15624 (get_top_pad): Likewise.
15625 (get_right_pad): Likewise.
15626 (get_bottom_pad): Likewise.
15627
15628 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15631
15632 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15633
15634 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15635 attribute as the structure isn't guaranteed to be properly aligned.
15636 (grub_efi_pci_device_path): Likewise.
15637 (grub_efi_pccard_device_path): Likewise.
15638 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15639 specify the size of `memory_type'.
15640 (grub_efi_vendor_device_path): Likewise.
15641 (grub_efi_controller_device_path): Likewise.
15642 (grub_efi_acpi_device_path): Likewise.
15643 (grub_efi_expanded_acpi_device_path): Likewise.
15644 (grub_efi_atapi_device_path): Likewise.
15645 (grub_efi_scsi_device_path): Likewise.
15646 (grub_efi_fibre_channel_device_path): Likewise.
15647 (grub_efi_1394_device_path): Likewise.
15648 (grub_efi_usb_device_path): Likewise.
15649 (grub_efi_usb_class_device_path): Likewise.
15650 (grub_efi_i2o_device_path): Likewise.
15651 (grub_efi_mac_address_device_path): Likewise.
15652 (grub_efi_ipv4_device_path): Likewise.
15653 (grub_efi_ipv6_device_path): Likewise.
15654 (grub_efi_infiniband_device_path): Likewise.
15655 (grub_efi_uart_device_path): Likewise.
15656 (grub_efi_vendor_messaging_device_path): Likewise.
15657 (grub_efi_hard_drive_device_path): Likewise.
15658 (grub_efi_cdrom_device_path): Likewise.
15659 (grub_efi_vendor_media_device_path): Likewise.
15660 (grub_efi_file_path_device_path): Likewise.
15661 (grub_efi_protocol_device_path): Likewise.
15662 (grub_efi_piwg_device_path): Likewise.
15663 (grub_efi_bios_device_path): Likewise.
15664
15665 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15666
15667 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15668 (grub_ucs4_to_utf8_alloc): Likewise.
15669 (grub_ucs4_to_utf8): Likewise.
15670 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15671 (grub_ucs4_to_utf8_alloc): Likewise.
15672
15673 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 AFFS never uses unicode.
15676
15677 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15678 (grub_latin1_to_utf8): New inline function.
15679 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15680
15681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15682
15683 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15684 overflow.
15685
15686 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15687
15688 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15689 (grub_squash_dirent_header): Likewise.
15690 (read_chunk): Don't double swap.
15691 (grub_squash_iterate_dir): Fix swap sizes.
15692
15693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15694
15695 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15696
15697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15700 (grub_hfs_iterate_dir): Likewise.
15701
15702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 Fix video on platforms where unaligned access is forbidden.
15705 Make several optimisations while on it.
15706
15707 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15708 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15709 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15710 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15711 Disable.
15712 (grub_video_fbblit_replace_16bit_1bit):
15713 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15714 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15715 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15716 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15717 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15718 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15719 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15720 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15721 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15722 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15723 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15724 (grub_video_fbblit_replace_index_RGB888): Likewise.
15725 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15726 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15727 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15728 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15729 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15730 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15731 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15732 Disable.
15733 (grub_video_fbblit_blend_XXX565_1bit):
15734 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15735 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15736 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15737 void *.
15738 * grub-core/video/fb/video_fb.c (common_blitter)
15739 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15740 (grub_video_fb_create_render_target_from_pointer)
15741 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15742 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15743 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15744 definition.
15745 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15746
15747 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15750 HH22 and HM10 relocations.
15751
15752 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15753
15754 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15755
15756 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15759 allocation succeeded.
15760
15761 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15762
15763 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15764 argument a u8 pointer. All users updated.
15765 Handle unaligned buffers.
15766
15767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15768
15769 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15770 add_part to workaround compiler bug.
15771
15772 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15773
15774 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15775
15776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15777
15778 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15779 Reserve alignment invariants.
15780 (grub_multiboot_load): Likewise.
15781 (retrieve_video_parameters): Likewise.
15782 (grub_multiboot_make_mbi): Likewise.
15783
15784 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15787 incorrect pointer.
15788
15789 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15792 (grub_pata_pio_write): Likewise.
15793
15794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 Add noreturn attributes and remove unreachable code.
15797
15798 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15799 code.
15800 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15801 code. Mark as noreturn.
15802 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15803 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15804 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15805 unreachable code.
15806 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15807 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15808 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15809 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15810 * include/grub/kernel.h (grub_main): Mark as noreturn.
15811 * include/grub/reader.h (grub_rescue_run): Likewise.
15812
15813 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15816 redundant declaration.
15817
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15819
15820 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15821 redundant declaration.
15822 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15823
15824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15825
15826 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15827 to ensure alignment.
15828 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15829 alignment. Ensure tmp alignment.
15830 (grub_cmd_hdparm): Ensure buf alignment.
15831 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15832 to ensure alignment.
15833 (grub_ata_dumpinfo): Ensure text alignment.
15834 (grub_atapi_identify): Preserve alignment invariant.
15835 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15836
15837 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15840 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15841 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15842 * include/grub/misc.h (grub_reboot)
15843 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15844 (grub_halt) [__mips__]: Likewise.
15845
15846 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15849 Remove redundant declaration.
15850 (grub_mmap_get_post64): Likewise.
15851 (grub_mmap_get_upper): Likewise.
15852 (grub_mmap_get_lower): Likewise.
15853
15854 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15855
15856 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15857 uint32_t * to ensure alignment.
15858 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15859
15860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15863 uint16_t * to ensure alignment.
15864 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15865 alignment.
15866
15867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15870 to ensure alignment.
15871 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15872
15873 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15876 Handle unaligned pointers.
15877 (u32at): Likewise.
15878 (u64at): Likewise.
15879 (fixup): Use byte access instead of v16at.
15880 (find_attr): Fix imporper usage of v32at.
15881 (read_data): Likewise.
15882 (list_file): Handle byte-swapping and unaligned strings.
15883 (grub_ntfs_label): Likewise.
15884
15885 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15888 as it's not necessarily aligned.
15889
15890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15891
15892 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15893 redundant declaration.
15894 (grub_serial_init): Likewise.
15895 (grub_terminfo_init): Likewise.
15896
15897 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15898
15899 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15900 function.
15901 (ZAP_HASH_IDX): Likewise.
15902 (ZAP_LEAF_HASH_SHIFT): Likewise.
15903 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15904 (LEAF_HASH): Likewise.
15905 (ZAP_LEAF_NUMCHUNKS): Likewise.
15906 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15907 alignment invariants. Return pointer. All users updated.
15908 (ZAP_LEAF_ENTRY): Make into inline function.
15909 (NBBY): Removed.
15910 (xor): LIkewise.
15911 (xor_out): Use grub_crypto_xor.
15912 (dnode_get_path): Use grub_get_unaligned.
15913 (nvlist_find_value): Likewise.
15914 (grub_zfs_nvlist_lookup_uint64): Likewise.
15915 (grub_zfs_nvlist_lookup_string): Likewise.
15916 (get_nvlist_size): Likewise.
15917 (grub_zfs_open): Likewise.
15918 (fill_fs_info): Likewise.
15919 (grub_zfs_dir): Likewise.
15920 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15921 alignment invariants.
15922 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15923 necessarily aligned.
15924
15925 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15926
15927 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15928
15929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15930
15931 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15932 arithmetic to conserve alignment invariants.
15933
15934 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15937 redundant declaration.
15938 (grub_efiemu_mm_obtain_request): Likewise.
15939 (grub_efiemu_prepare): Likewise.
15940
15941 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15942
15943 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15944 to match types.
15945
15946 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15947
15948 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15949 case of aunaligned recptr.
15950 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15951 alignment.
15952 (grub_hfsplus_btree_search): Handle unaligned index.
15953
15954 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15955
15956 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15957 to get freetag and skip.
15958
15959 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15962 array.
15963 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
15964 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
15965
15966 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15967
15968 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
15969 name for checksum and fix allocation algorithm.
15970
15971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15972
15973 * include/grub/types.h (grub_properly_aligned_t): New type.
15974 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
15975 (grub_get_unaligned16): Add explicit casts.
15976 (grub_get_unaligned32): Likewise.
15977 (grub_get_unaligned64): Likewise.
15978 (grub_set_unaligned16): New function.
15979 (grub_set_unaligned32): Likewise.
15980
15981 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15982
15983 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
15984
15985 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15986
15987 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
15988 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
15989 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
15990
15991 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
15994 conditionals.
15995
15996 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
15999 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16000
16001 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16002
16003 Unify and improve RAID and crypto xor.
16004
16005 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16006 changed to grub_crypto_xor
16007 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16008 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16009 Use bigger types when possible.
16010
16011 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16012
16013 * grub-core/disk/raid.c (scan_devices): Fix condition.
16014
16015 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16016
16017 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16018 Make name a const ptr.
16019
16020 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16021
16022 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16023 first argument a const pointer.
16024 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16025 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16026 proto.
16027 (grub_children_iterate): Likewise.
16028 (grub_machine_mmap_iterate): Remove redundant declaration.
16029
16030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16033 (grub_cmd_acpi) [!x86]: Disable EBDA.
16034
16035 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 Enable UTF8 in gnulib regexp.
16038
16039 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16040 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16041 (isupper): Use grub_isupper.
16042 (isascii): New inline function.
16043 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16044 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16045 * grub-core/normal/charset.c (grub_utf8_process): New function.
16046 (grub_utf8_to_utf16): Use grub_utf8_process.
16047 (grub_encode_utf8_character): New function.
16048 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16049 * include/grub/charset.h (grub_utf8_process): New declaration.
16050 (grub_encode_utf8_character): Likewise.
16051 * include/grub/misc.h (grub_islower): New inline function.
16052 (grub_isupper): Likewise.
16053 (grub_strchrsub): Moved down to fix the definitions.
16054
16055 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16058 specification.
16059
16060 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16061
16062 * include/grub/loader.h (grub_loader_register_preboot_hook):
16063 Use struct preboot * and not void * for handle. All users updated.
16064 (grub_loader_unregister_preboot_hook): Likewise.
16065
16066 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16069 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16070 UTF-16-BE. All users updated.
16071 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16072 (grub_hfsplus_iterate_dir): Likewise.
16073 (grub_hfsplus_label): Likewise.
16074
16075 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16076
16077 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16078
16079 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16080
16081 Add missing const qualifiers.
16082
16083 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16084 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16085 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16086 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16087 (grub_lvm_check_flag): Likewise.
16088 * grub-core/efiemu/i386/coredetect.c
16089 (grub_efiemu_get_default_core_name): Likewise
16090 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16091 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16092 * grub-core/fs/ntfs.c (fixup): Likewise.
16093 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16094 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16095 (fzap_lookup): Likewise.
16096 (zap_lookup): Likewise.
16097 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16098 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16099 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16100 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16101 (grub_freebsd_add_meta_module): Likewise.
16102 (grub_cmd_freebsd_module): Likewise.
16103 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16104 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16105 (grub_xnu_writetree_get_size): Likewise.
16106 (grub_xnu_writetree_toheap_real): Likewise.
16107 (grub_xnu_find_key): Likewise.
16108 (grub_xnu_create_key): Likewise.
16109 (grub_xnu_create_value): Likewise.
16110 (grub_xnu_register_memory): Likewise.
16111 (grub_xnu_check_os_bundle_required): Likewise.
16112 (grub_xnu_scan_dir_for_kexts): Likewise.
16113 (grub_xnu_load_kext_from_dir): Likewise.
16114 * grub-core/normal/color.c (color_list): Likewise.
16115 * grub-core/normal/completion.c (current_word): Likewise.
16116 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16117 * grub-core/term/serial.c (grub_serial_find): Likewise.
16118 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16119 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16120 Likewise.
16121 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16122 (grub_freebsd_add_meta_module): Likewise.
16123 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16124 * include/grub/net.h (grub_net_card_driver): Likewise.
16125 (grub_net_card): Likewise.
16126 (grub_net_app_protocol): Likewise.
16127 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16128 * include/grub/serial.h (grub_serial_find): Likewise.
16129 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16130 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16131 (grub_xnu_create_value): Likewise.
16132 (grub_xnu_find_key): Likewise.
16133 (grub_xnu_scan_dir_for_kexts): Likewise.
16134 (grub_xnu_load_kext_from_dir): Likewise.
16135
16136 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16137 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16138 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16139 Moved from here ...
16140 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16141
16142 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16143
16144 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16145
16146 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16147
16148 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16149 (read_device): Fix size calculation.
16150
16151 2011-11-25 Robert Millan <rmh@gnu.org>
16152
16153 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16154 (find_root_device_from_libzfs): Add zpool output parser to be used
16155 as fallback when libzfs isn't available.
16156
16157 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16158
16159 * po/Makefile.in.in: Add missing escape-continuation.
16160
16161 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16164
16165 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16166
16167 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16168
16169 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16172
16173 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16176
16177 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16178
16179 * grub-core/lib/adler32.c: Add missing license specification.
16180 * grub-core/lib/crc64.c: Likewise.
16181 * grub-core/loader/i386/pc/plan9.c: Likewise.
16182 * grub-core/partmap/plan.c: Likewise.
16183
16184 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16185
16186 Add facility to debug GRUB with gdb under qemu.
16187
16188 * grub-core/gdb_grub.in: New file.
16189 * grub-core/gmodule.pl.in: Likewise.
16190 * grub-core/Makefile.core.def (gmodule.pl): New script.
16191 (gdb_grub): Likewise.
16192
16193 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16194
16195 * util/grub-mount.c (argp_parser): Accept relative pathes.
16196 * util/grub-fstest.c (argp_parser): Likewise.
16197
16198 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16199
16200 Plan9 support.
16201
16202 * Makefile.util.def (libgrubmods): Add
16203 grub-core/partmap/plan.c.
16204 * docs/grub.texi: Notice Plan9 support.
16205 * grub-core/Makefile.core.def (plan9): New module.
16206 (part_plan): Likewise.
16207 * grub-core/loader/i386/pc/plan9.c: New file.
16208 * grub-core/partmap/plan.c: Likewise.
16209 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16210 define.
16211 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16212 * include/grub/mm.h (grub_extend_alloc): New inline function.
16213
16214 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16215
16216 Make Reed-Solomon faster by using power of generator representation of
16217 GF(256)*.
16218
16219 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16220 (gf_double_t): Likewise.
16221 (gf_invert): Removed.
16222 (gf_powx): New array.
16223 (gf_powx_inv): Likewise.
16224 (scratch): Move higher.
16225 (gf_reduce): Removed.
16226 (gf_mul): Use powx.
16227 (gf_invert): Likewise.
16228 (init_inverts): Replaced with ...
16229 (init_powx): ...this. All users updated.
16230 (pol_evaluate): Replace multiplications with additions.
16231 (rs_encode): Likewise.
16232 (gauss_eliminate): Call gf_invert.
16233 (grub_reed_solomon_add_redundancy): Call init_powx.
16234 (grub_reed_solomon_recover): Call init_powx unconditionally.
16235
16236 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16239
16240 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16241
16242 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16243 disk->partiton for safety.
16244
16245 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16246
16247 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16248 Fix a memory leak.
16249 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16250
16251 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16252
16253 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16254
16255 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16256
16257 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16258
16259 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16260
16261 Fix spaces handling in proc/self/mountinfo.
16262
16263 * util/getroot.c (unescape): New function.
16264 (grub_find_root_device_from_mountinfo): Use unescape.
16265
16266 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16267
16268 Support ZFS embedding.
16269
16270 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16271 (grub_zfs_fs): Register grub_zfs_embed.
16272
16273 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 Fix MIPS compilation.
16276
16277 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16278 * include/grub/offsets.h: Rename decompressor fields from
16279 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16280 * util/grub-mkimage.c (image_targets): Use new names.
16281
16282 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16283
16284 Defer multiboot device parsing until we're in compressed part.
16285
16286 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16287 bsd_part. setdevice has fallen into disuse.
16288 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16289 (bsd_part): Likewise.
16290 (boot_dev): New variable.
16291 (multiboot_trampoline): Don't parse multiboot device.
16292 Pass multiboot device in %edx.
16293 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16294 grub_boot_device.
16295 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16296 Likewise.
16297 * grub-core/kern/i386/pc/startup.S: Save edx.
16298 (grub_boot_drive): Removed.
16299 (grub_install_dos_part): Likewise.
16300 (grub_install_bsd_part): Likewise.
16301 (grub_boot_device): New variable.
16302 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16303 (grub_install_bsd_part): Likewise.
16304 (grub_boot_drive): Likewise.
16305 (grub_boot_device): New variable.
16306 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16307 Removed.
16308 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16309 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16310 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16311 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16312 * util/grub-install.in: Remove redundant condition.
16313
16314 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16315
16316 Fix bug introduced by previous commit.
16317
16318 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16319
16320 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16321
16322 Use decompressors framework on i386-pc. It increases core size
16323 by 46 bytes but improves compatibility and maintainability.
16324
16325 * grub-core/Makefile.core.def (lzma_decompress): New image.
16326 (kernel): Add i386_pc_ldflags.
16327 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16328 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16329 to real_to_prot, prot_to_real and device info.
16330 * include/grub/offsets.h: Renamed decompressor offsets.
16331 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16332 (image_target_desc): Remove raw_size and rename decompressor fields.
16333 (compress_kernel): Handle lzma.
16334 (generate_image): Handle decompressors on i386-pc.
16335
16336 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16337
16338 * configure.ac: Add -fno-asynchronous-unwind-tables.
16339
16340 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16341
16342 Move assembly code to C by using intwrap. It increases core size
16343 by 88 bytes but improves compatibility and maintainability.
16344
16345 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16346 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16347 ... here. Translated to C.
16348 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16349 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16350 ... here. Translated to C.
16351 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16352 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16353 ... here. Translated to C.
16354 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16355 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16356 ... here. Translated to C.
16357 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16358 * grub-core/term/i386/pc/console.c (grub_console_cls):
16359 ... here. Translated to C.
16360 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16361 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16362 ... here. Translated to C.
16363 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16364 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16365 Translated to C.
16366 * grub-core/term/i386/pc/console.c (int10_9): New function.
16367 (grub_console_putchar): Likewise.
16368 * include/grub/i386/pc/console.h: Removed the not anymore shared
16369 functions.
16370
16371 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16372
16373 Move grub_chainloader_real_boot out of the kernel.
16374
16375 * grub-core/Makefile.am: Remove machine/loader.h.
16376 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16377 Removed.
16378 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16379 variable.
16380 (grub_relocator16_keep_a20_enabled): Likewise.
16381 (grub_relocator16_boot): Fill new variables.
16382 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16383 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16384 relocator.
16385 (grub_chainloader_unload): Likewise.
16386 (grub_chainloader_cmd): Likewise.
16387 * include/grub/i386/pc/loader.h: Removed.
16388 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16389 and esi. All initialisers updated.
16390
16391 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16392 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16393
16394 * Makefile.util.def (grub-mount): New util.
16395 * .bzrignore: Add grub-mount.
16396 * configure.ac: Check for fuse and enable grub-mount if available.
16397 * docs/man/grub-mount.h2m: New file.
16398 * util/grub-mount.c: Likewise.
16399
16400 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16401
16402 * grub-core/commands/efi/fixvideo.c: Gettextize.
16403 * grub-core/commands/hashsum.c: Likewise.
16404 * grub-core/commands/i386/cmostest.c: Likewise.
16405 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16406 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16407 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16408 * grub-core/commands/lsmmap.c: Likewise.
16409 * grub-core/commands/menuentry.c: Likewise.
16410 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16411 * grub-core/commands/setpci.c: Likewise.
16412 * grub-core/loader/i386/bsd.c: Likewise.
16413 * grub-core/loader/i386/linux.c: Likewise.
16414 * util/getroot.c: Likewise.
16415 * util/grub-editenv.c: Likewise.
16416 * util/grub-fstest.c: Likewise.
16417 * util/grub-mkfont.c: Likewise.
16418 * util/grub-mkimage.c: Likewise.
16419 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16420 * util/grub-pe2elf.c: Likewise.
16421 * util/grub-probe.c: Likewise.
16422 * util/grub-setup.c: Likewise.
16423 * util/ieee1275/ofpath.c: Likewise.
16424 * util/misc.c: Likewise.
16425 * util/raid.c: Likewise.
16426
16427 2011-11-11 Robert Millan <rmh@gnu.org>
16428
16429 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16430 __attribute__((unused)) from `os_dev', which *is* being used.
16431
16432 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16433
16434 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16435 forgotten define.
16436 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16437 GRUB_IA64_DL_GOT_ALIGN.
16438 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16439 GRUB_IA64_DL_TRAMP_ALIGN.
16440
16441 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16442
16443 Replace grub_fatal with normal errors in i386 linux loader.
16444
16445 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16446 (allocate_pages): Check find_efi_mmap_size return value.
16447 (grub_e820_add_region): Return error.
16448 (grub_linux_boot): Check mmap return value.
16449
16450 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 * grub-core/commands/acpihalt.c: Gettextized.
16453 * grub-core/commands/cacheinfo.c: Likewise.
16454 * grub-core/commands/cmp.c: Likewise.
16455 * grub-core/commands/efi/loadbios.c: Likewise.
16456 * grub-core/commands/gptsync.c: Likewise.
16457 * grub-core/commands/ieee1275/suspend.c: Likewise.
16458 * grub-core/commands/legacycfg.c: Likewise.
16459 * grub-core/commands/memrw.c: Likewise.
16460 * grub-core/commands/minicmd.c: Likewise.
16461 * grub-core/commands/parttool.c: Likewise.
16462 * grub-core/commands/time.c: Likewise.
16463 * grub-core/commands/videoinfo.c: Likewise.
16464 * grub-core/disk/geli.c: Likewise.
16465 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16466 * grub-core/disk/luks.c: Likewise.
16467 * grub-core/disk/lvm.c: Likewise.
16468 * grub-core/font/font_cmd.c: Likewise.
16469 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16470 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16471 * grub-core/gfxmenu/view.c: Likewise.
16472 * grub-core/kern/emu/hostdisk.c: Likewise.
16473 * grub-core/kern/emu/main.c: Likewise.
16474 * grub-core/kern/emu/misc.c: Likewise.
16475 * grub-core/kern/emu/mm.c: Likewise.
16476 * grub-core/kern/mips/arc/init.c: Likewise.
16477 * grub-core/kern/mips/loongson/init.c: Likewise.
16478 * grub-core/kern/partition.c: Likewise.
16479 * grub-core/lib/i386/halt.c: Likewise.
16480 * grub-core/lib/mips/arc/reboot.c: Likewise.
16481 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16482 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16483 * grub-core/loader/i386/xnu.c: Likewise.
16484 * grub-core/loader/multiboot.c: Likewise.
16485 * grub-core/net/bootp.c: Likewise.
16486 * grub-core/net/net.c: Likewise.
16487 * grub-core/normal/term.c: Likewise.
16488 * grub-core/partmap/bsdlabel.c: Likewise.
16489 * grub-core/parttool/msdospart.c: Likewise.
16490 * grub-core/term/gfxterm.c: Likewise.
16491 * grub-core/term/terminfo.c: Likewise.
16492 * grub-core/video/i386/pc/vbe.c: Likewise.
16493 * util/grub-menulst2cfg.c: Likewise.
16494 * util/grub-mkdevicemap.c: Likewise.
16495 * util/grub-mklayout.c: Likewise.
16496 * util/grub-mkrelpath.c: Likewise.
16497 * util/grub-script-check.c: Likewise.
16498 * util/ieee1275/grub-ofpathname.c: Likewise.
16499 * util/resolve.c: Likewise.
16500
16501 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 Support %1$d syntax.
16504
16505 * tests/printf_unit_test.c: New file.
16506 * Makefile.util.def (printf_test): New test.
16507 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16508
16509 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16510
16511 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16512 fix.
16513
16514 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16515
16516 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16517 dprintf.
16518 * grub-core/font/font.c (grub_font_load): Likewise.
16519
16520 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 * util/grub-macho2img.c: Add comment concerning gettext.
16523 * grub-core/lib/legacy_parse.c: Likewise.
16524
16525 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16526
16527 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16528 (grub_xvasprintf): Likewise.
16529
16530 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16531
16532 Add const keyword to grub_env_get and gettextize week days.
16533
16534 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16535 (grub_read_hook_datetime): Return const char *.
16536 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16537 updated.
16538 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16539 Mark for gettext.
16540 (grub_get_weekday_name): Return const char *. Call gettext.
16541 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16542 char * and len as the argument. All users updated.
16543 (grub_script_argv_split_append): Receive const char *.
16544 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16545 * include/grub/env.h (grub_env_get): Likewise.
16546 (grub_env_read_hook_t): Return const char *.
16547 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16548 (grub_script_argv_split_append): Likewise.
16549
16550 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16551
16552 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16553
16554 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16555
16556 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16557 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16558
16559 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16560
16561 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16562 Fix prototype.
16563
16564 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16565
16566 Fix mips compilation.
16567
16568 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16569 normal decoder.
16570 (hashes): Use in embed decoder as well (for sizes).
16571 (dec_stream_header): Fix embed decompressor logic.
16572 (dec_stream_footer): Likewise.
16573
16574 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16575
16576 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16577 an error and not a fatal on unrecognised relocation types.
16578
16579 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16580
16581 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16582 Issue error rather than printf on unknown arguments.
16583
16584 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16585
16586 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16587 Make buf a const.
16588
16589 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16592 Fix module name.
16593
16594 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16595
16596 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16597 leftover debug printf.
16598
16599 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16602
16603 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16604
16605 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16606 A stylistic fix.
16607
16608 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16609
16610 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16611
16612 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16613
16614 Allow all modules to perform serial IO
16615
16616 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16617 * include/grub/serial.h (grub_serial_port_configure): New inline
16618 function.
16619 (grub_serial_port_fetch): Likewise.
16620 (grub_serial_port_put): Likewise.
16621 (grub_serial_port_fini): Likewise.
16622 (grub_serial_find): New proto.
16623
16624 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16625
16626 Put symlink at the end of the node and fix a potential
16627 memory corruption.
16628
16629 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16630 Make symlink into an array.
16631 (set_rockridge): Set have_symlink and alloc_dirents.
16632 (grub_iso9660_read_symlink): Use new layout.
16633 (grub_iso9660_iterate_dir): Fix memory corruption.
16634 Use new layout.
16635 (grub_iso9660_dir): Set have_symlink.
16636 (grub_iso9660_open): Likewise.
16637
16638 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16639
16640 Remove local keyword.
16641
16642 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16643 (version_test_gt): Likewise.
16644 (version_find_latest): Likewise.
16645 (gettext_printf): Likewise.
16646 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16647
16648 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16649
16650 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16651
16652 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16653
16654 Fix ZFS memory and resource leaks.
16655
16656 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16657 All users updated.
16658 Free type on exit.
16659 (fill_vdev_info): New parameter inserted. All users updated.
16660 (check_pool_label): Likewise.
16661 (scan_disk): Likewise.
16662 (scan_devices): Close non-inserted disks.
16663 (fzap_iterate): Free l.
16664 (unmount_device): Free children descripto memory.
16665
16666 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16667
16668 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16669 argument (access out of bounds).
16670
16671 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16674 >= 6 drives.
16675
16676 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16679 Fix declaration.
16680
16681 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16682
16683 Fix several memory leaks.
16684
16685 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16686 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16687 (grub_cpio_dir): Likewise.
16688 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16689 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16690 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16691 (grub_romfs_label): Likewise.
16692 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16693 (squash_unmount): New function.
16694 (grub_squash_dir): Fix memory leak.
16695 (grub_squash_open): Likewise.
16696 (grub_squash_read): Likewise.
16697 (grub_squash_mtime): Likewise.
16698 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16699 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16700 * util/grub-fstest.c (fstest): Likewise.
16701
16702 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16705 avoid accessing beyond the array.
16706
16707 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16708
16709 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16710
16711 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16712
16713 Several AFFS fixes.
16714
16715 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16716 (GRUB_AFFS_FLAG_FFS): Removed.
16717 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16718 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16719 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16720 (grub_fshelp_node): Make block 32-bit.
16721 Add block_cache and last_block_cache.
16722 (grub_affs_read_block): Fill and use block cache.
16723 (grub_affs_read_file): Removed.
16724 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16725 boot block.
16726 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16727 safety.
16728 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16729 space.
16730 (grub_affs_close): Free block cache.
16731 (grub_affs_read): Use grub_fshelp_read_file directly.
16732
16733 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16736 with no error set.
16737
16738 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16739
16740 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16741 used variable.
16742 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16743 Likewise.
16744
16745 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16748
16749 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16750 byteswap when needed.
16751
16752 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16753
16754 Fix FreeBSD compilation.
16755
16756 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16757 to avoid circular dependency.
16758 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16759 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16760 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16761
16762 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 Fix ZFS crypto error types.
16765
16766 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16767 (grub_gcm_decrypt): Likewise.
16768 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16769 from PBKDF2.
16770
16771 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16772
16773 Illumos support.
16774
16775 * Makefile.util.def (10_illumos): New script.
16776 * configure.ac: Set COND_HOST_ILLUMOS.
16777 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16778 Support Illumos calls.
16779 (find_partition_start) [__sun__]: Likewise.
16780 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16781 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16782 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16783 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16784 device.
16785 * util/grub-probe.c (probe) [__sun__]: Do character check.
16786 * util/grub.d/10_illumos.in: New file.
16787
16788 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 Support escaped commas in hostdisk.
16791
16792 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16793 (find_grub_drive): Use unescape_cmp.
16794 (make_device_name): Escape commas.
16795
16796 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16797
16798 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16799
16800 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16801
16802 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16803 variable.
16804
16805 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16806
16807 Support trampoline jumps on powerpc.
16808
16809 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16810 __ia64__ path.
16811 (grub_dl_load_segments): Set mod->sz.
16812 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16813 segments.
16814 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16815 (jump): Likewise.
16816 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16817 function.
16818 (trampoline): New struct.
16819 (trampoline_template): New const.
16820 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16821 * include/grub/dl.h (grub_dl): Add sz element.
16822 [__powerpc__]: Follow __ia64__.
16823 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16824 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16825 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16826 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16827
16828 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16829
16830 ZFS crypto support.
16831
16832 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16833 * grub-core/Makefile.core.def (zfscrypt): New module.
16834 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16835 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16836 it. All users updated.
16837 (grub_zfs_decrypt): New var.
16838 (grub_zfs_load_key): Likewise.
16839 (zio_checksum_functions): Add SHA256+MAC.
16840 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16841 (zio_read): Handle encrypted blocks.
16842 (zap_verify): Remove incorrect check.
16843 (fzap_iterate): Handle non-standard fzap.
16844 (zap_iterate): Likewise.
16845 (zap_iterate_u64): New function.
16846 (dnode_get_fullpath): Load keys.
16847 * grub-core/fs/zfs/zfscrypt.c: New file.
16848 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16849 (grub_crypto_ecb_encrypt): Make input const.
16850 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16851 (grub_crypto_ecb_encrypt): Make input const.
16852 (GRUB_CIPHER_AES): New macro.
16853 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16854 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16855 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16856 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16857 prefix. All users updated.
16858 (grub_zfs_add_key): New proto.
16859 (grub_zfs_decrypt): Likewise.
16860 (grub_zfs_load_key): Likewise.
16861 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16862 * util/grub-fstest.c (options): Add -K option.
16863 (argp_parser): Likewise.
16864
16865 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 Support zle compression on ZFS.
16868
16869 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16870 (decomp_table): Add zle.
16871 * include/grub/zfs/zio.h (zio_compress): Add zle.
16872
16873 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 Support BtrFS embedding.
16876
16877 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16878 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16879 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16880 * util/grub-setup.c (setup): Use fs embedding if available.
16881 Add additional sanity check.
16882
16883 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16884
16885 * util/grub-install.in: Fix condition for config_opt.
16886
16887 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16888
16889 Support third redundancy strip on raidz3.
16890
16891 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16892 Return error on singularity. All users updated.
16893 (read_device): Don't stop on 3rd failure on raidz3.
16894
16895 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16896
16897 Support case-insensitive ZFS subvolumes.
16898
16899 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16900 All users updated.
16901 (zap_hash): Likewise.
16902 (name_cmp): New function.
16903 (zap_leaf_array_equal): New parameter case_insensitive.
16904 All users updated.
16905 (zap_leaf_lookup): Likewise.
16906 (fzap_lookup): Likewise.
16907 (zap_lookup): Likewise.
16908 (dnode_get_path): New parameter case_insensitive. Retrieve case
16909 sensitiviness of a volume. All users updated.
16910 (dnode_get_fullpath): New parameter case_insensitive.
16911 All users updated.
16912 (grub_zfs_dir): Set info.case_insensitiveness.
16913
16914 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 Support second redundancy strip on raidz(2,3).
16917
16918 * grub-core/fs/zfs/zfs.c (powx): New array.
16919 (powx_inv): Likewise.
16920 (poly): New const.
16921 (xor_out): New function.
16922 (gf_mul): Likewise.
16923 (recovery): Likewise.
16924 (read_device): Use second redundancy strip.
16925
16926 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 Use a power of generator representation of GF(256) multiplication group
16929 to save space time and complexity.
16930
16931 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16932 (raid6_table2): Likewise.
16933 (powx): New array.
16934 (powx_inv): Likewise.
16935 (poly): New const.
16936 (grub_raid_block_mul): Replace with ...
16937 (grub_raid_block_mulx): ...this.
16938 (grub_raid6_init_table): Rewritten.
16939 (grub_raid6_recover): Use power of generator representation.
16940
16941 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16944 for the right device.
16945
16946 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16947
16948 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16949 expected by grub-mkimage and it's more clear since there is no implicit
16950 padding.
16951
16952 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16955 disk.
16956 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16957
16958 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16959
16960 * util/grub-mkrescue.in: Fix handling xorriso option.
16961
16962 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16963
16964 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
16965 NULL.
16966
16967 2011-11-03 crocket <crockabiscuit@gmail.com>
16968
16969 * util/grub.d/10_linux.in: Add Slackware initrd naming.
16970
16971 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
16972
16973 XZ CRC64 and SHA256 support.
16974
16975 * Makefile.util.def (libgrubmods): Add crc64.c.
16976 * grub-core/Makefile.core.def (crc64): New module.
16977 * grub-core/lib/crc64.c: New file.
16978 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
16979 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
16980 Fix the type.
16981 (MAX_HASH_SIZE): New define.
16982 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
16983 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
16984 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16985 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
16986 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
16987 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
16988 Handle non-crc32 hashes.
16989 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
16990 (dec_stream_header): Handle non-crc32 hashes.
16991 (dec_stream_footer): Likewise.
16992 (dec_block_header): Likewise.
16993 (dec_main): Likewise.
16994 (xz_dec_init): Likewise.
16995 (xz_dec_reset): Likewise.
16996 (xz_dec_end): Likewise.
16997 * util/import_gcry.py: Add CRC64 line.
16998
16999 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17002 as well.
17003
17004 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17005
17006 Make reiserfs label retrieval similar to other *_label functions.
17007
17008 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17009 (REISERFS_MAX_LABEL_LENGTH): Removed.
17010 (REISERFS_LABEL_OFFSET): Likewise.
17011 (grub_reiserfs_label): Rewritten.
17012
17013 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17016 field.
17017
17018 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17019
17020 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17021
17022 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17023
17024 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17025 drive failure on both raidz and raidz2.
17026
17027 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17028
17029 Fix RAIDZ(2) for >= 5 devices.
17030
17031 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17032 asize argument. All users updated.
17033
17034 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17035
17036 Fix RAIDZ(2).
17037
17038 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17039 (fill_vdev_info_real): Set ashift.
17040 (read_device): Rewrite RAIDZ part based on reverse engineering.
17041
17042 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17045 don't report potentially unavialiable fields in debug output.
17046 (find_path): Fix double-free and memory leak.
17047
17048 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 Read label on UFS1.
17051
17052 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17053 (grub_ufs_fs): Always set .label.
17054
17055 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 Use shifts in UFS.
17058
17059 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17060 (grub_ufs_data): New field log2_blksz.
17061 (grub_ufs_read_file): Use shifts.
17062 (grub_ufs_mount): Check block size and logarithm it.
17063
17064 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17067 long symlinks.
17068
17069 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17070
17071 Handle symlinks and long names on tar and cpio.
17072
17073 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17074 (ATTR_FILE): Likewise.
17075 (ATTR_DIR): Likewise.
17076 (ATTR_LNK): Likewise.
17077 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17078 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17079 L and K entries.
17080 (grub_cpio_mount): Zero-fill data.
17081 (handle_symlink): New function.
17082 (grub_cpio_dir): Handle symlinks.
17083 (grub_cpio_open): Likewise.
17084 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17085
17086 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17087
17088 Fix iso9660 filename limitations and fix memory leaks.
17089
17090 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17091 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17092
17093 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 Fix JFS file name length limitations.
17096
17097 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17098 (grub_jfs_diropen): Fix maximum filename length.
17099 (grub_jfs_getent): Fix filename length.
17100 (grub_jfs_lookup_symlink): Fix size checks.
17101
17102 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17103
17104 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17105 string.
17106
17107 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17108
17109 Leverage BFS implementation to read AFS.
17110
17111 * Makefile.util.def (libgrubmods): Add afs.c.
17112 * grub-core/Makefile.core.def (afs): New module
17113 * grub-core/fs/afs.c: New file.
17114 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17115
17116 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17117
17118 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17119
17120 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17121
17122 * grub-core/fs/bfs.c: Run indent.
17123
17124 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17125
17126 BFS implementation based on the specification.
17127
17128 * grub-core/fs/bfs.c: New file.
17129 * Makefile.util.def (libgrubmods): Add bfs.c.
17130 * grub-core/Makefile.core.def (bfs): New module.
17131
17132 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 * util/grub-fstest.c (cmd_cp): Clarify error message.
17135 (cmd_cmp): Likewise.
17136
17137 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17138
17139 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17140 and befs_be.
17141
17142 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17143
17144 Remove afs and befs because of copyright problem.
17145
17146 * grub-core/fs/afs.c: Removed.
17147 * grub-core/fs/afs_be.c: Removed.
17148 * grub-core/fs/befs.c: Removed.
17149 * grub-core/fs/befs_be.c: Removed.
17150 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17151 * grub-core/Makefile.core.def (afs): Removed.
17152 (afs_be): Likewise.
17153 (befs): Likewise.
17154 (befs_be): Likewise.
17155
17156 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17157
17158 Prefer rockridge over Joliet.
17159
17160 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17161 to ...
17162 (set_rockridge): ... here.
17163 (grub_iso9660_mount): Check rockridge on the primary label when
17164 discovering. Ignore Joliet if Rockridge is present.
17165
17166 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17167
17168 Use shifts in nilfs2.
17169
17170 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17171 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17172 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17173 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17174 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17175 (grub_nilfs2_entries_per_block): Replaced with ...
17176 (grub_nilfs2_log_entries_per_block_log): ... this.
17177 (grub_nilfs2_blocks_per_group): Replaced with ...
17178 (grub_nilfs2_blocks_per_group_log): ... this.
17179 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17180 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17181 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17182 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17183 (grub_nilfs2_palloc_entry_offset): Replaced ...
17184 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17185 (grub_nilfs2_dat_translate): Use shifts.
17186 (grub_nilfs2_read_inode): Likewise.
17187 (GRUB_MOD_INIT): Ensure that logs are correct.
17188
17189 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17190
17191 Use shifts in minix filesystem.
17192
17193 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17194 (GRUB_MINIX_ZONE2SECT): Likewise.
17195 (grub_minix_data): Replace block_size with log_block_size.
17196 (grub_minix_read_file): Use shifts.
17197 (grub_minix_mount): Check block size and take a logarithm.
17198
17199 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17200
17201 Use shifts in squash4.
17202
17203 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17204 (squash_mount): Check block size and take logarithm.
17205 (direct_read): Use shifts.
17206
17207 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17208
17209 Correct befs block counting logic.
17210
17211 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17212 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17213 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17214 (grub_afs_read_inode): Use block_shift.
17215 (RANGE_SHIFT): New definition.
17216 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17217 unexpected conditions, use shifts and appropriate types.
17218 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17219
17220 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17221
17222 * grub-core/disk/raid.c (scan_devices): Check partition.
17223 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17224
17225 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17226
17227 Support BFS (befs) UUID.
17228
17229 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17230 (grub_afs_small_data_element_header): New struct.
17231 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17232 (grub_afs_read_attribute) [MODE_BFS]: New function.
17233 (grub_afs_iterate_dir): Allocate for complete inode.
17234 (grub_afs_mount): Likewise.
17235 (grub_afs_uuid) [MODE_BFS]: New function.
17236 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17237
17238 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17239
17240 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17241 (zfs_unmount): Fix memory leak.
17242
17243 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 Support NTFS reparse points.
17246
17247 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17248 (symlink_descriptor): New struct.
17249 (grub_ntfs_read_symlink): New function.
17250 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17251 (grub_ntfs_open): Likewise.
17252
17253 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17254
17255 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17256
17257 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 fstest xnu_uuid subcommand.
17260
17261 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17262 grub-core/commands/xnu_uuid.c.
17263 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17264 (fstest): Handle xnu_uuid.
17265 (options): Document xnu_uuid.
17266 (argp_parser): Parse xnu_uuid.
17267
17268 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17269
17270 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17271 -l argument. Add newline at the end if printing.
17272 (GRUB_MOD_INIT): Document -l.
17273
17274 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17275
17276 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17277
17278 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17279
17280 ZFS multi-device and version 33 support.
17281
17282 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17283 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17284 (grub_zfs_data): Add multidev-ice-related fields.
17285 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17286 (dva_get_offset): Make dva const.
17287 (zfs_fetch_nvlist): New function.
17288 (fill_vdev_info_real): Likewise.
17289 (fill_vdev_info): Likewise.
17290 (check_pool_label): Likewise.
17291 (scan_disk): Likewise.
17292 (scan_devices): Likewise.
17293 (read_device): Likewise.
17294 (read_dva): Likewise.
17295 (zio_read_gang): Use read_dva.
17296 (zio_read_data): Likewise.
17297 (zap_leaf_lookup): Add missing endian conversion.
17298 (zap_verify): Add missing endian conversion. All users updated.
17299 (fzap_lookup): Likewise.
17300 (fzap_iterate): Likewise.
17301 (dnode_get_path): Handle SA bonus.
17302 (nvlist_find_value): Make input const. All users updated.
17303 (unmount_device): New function.
17304 (zfs_unmount): Use unmount_device.
17305 (zfs_mount): Use scan_disk.
17306 (zfs_mtime): New function.
17307 (grub_zfs_open): Handle system attributes.
17308 (fill_fs_info): Likewise.
17309 (grub_zfs_dir): Likewise.
17310 (grub_zfs_fs): Add mtime.
17311 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17312 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17313 (SA_MTIME_OFFSET): Likewise.
17314 (SA_SYMLINK_OFFSET): Likewise.
17315 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17316 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17317 (fstest): Support zfsinfo.
17318 (argp_parser): Likewise.
17319
17320 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17321
17322 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17323 error.
17324
17325 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17326
17327 ZFS fixes.
17328
17329 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17330 sharing the same block. Iterate over correct number of indices.
17331 (dnode_get_path): Handle symlinks correctly.
17332
17333 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17334
17335 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17336
17337 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17338
17339 Read label on HFS+.
17340
17341 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17342 (grub_hfsplus_btree_search): Fix types.
17343 (grub_hfsplus_label): Implement.
17344
17345 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17346
17347 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17348
17349 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17350
17351 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17352
17353 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17354
17355 Fix symlink handling on iso9660.
17356
17357 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17358 All users updated.
17359 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17360 (grub_iso9660_read_symlink): Moved most of code ...
17361 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17362
17363 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17364
17365 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17366 Use union to avoid breaking strict-aliasing rules.
17367
17368 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17369
17370 Support multi-extent iso files.
17371
17372 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17373 Add node.
17374 (grub_fshelp_node): Revamp. All users updated.
17375 (FLAG_*): New enum.
17376 (read_node): New function.
17377 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17378 All users updated.
17379 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17380 (get_node_size): New function.
17381 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17382 entries.
17383 Fix memory leak on . and ..
17384 (grub_iso9660_read): Use read_node.
17385 (grub_iso9660_close): Free node.
17386
17387 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17388
17389 Fix tar 4G limit and handle paths containing dot.
17390
17391 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17392 (canonicalize): New function.
17393 (grub_cpio_find_file): Use canonicalize. Store offs in
17394 grub_disk_addr_t.
17395 (grub_cpio_dir): Use grub_disk_addr_t.
17396 (grub_cpio_open): Likewise.
17397
17398 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17399
17400 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17401
17402 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17403 unused flags.
17404 (grub_squash_inode): Add long_file and block_size.
17405 (grub_squash_cache_inode): New struct.
17406 (grub_squash_dirent): Make types into enum.
17407 (SQUASH_TYPE_LONG_REGULAR): New type.
17408 (grub_squash_frag_desc): Add field size.
17409 (SQUASH_BLOCK_FLAGS): New enum.
17410 (grub_squash_data): Use grub_squash_cache_inode.
17411 (grub_fshelp_node): Make ino_chunk 64-bit.
17412 (read_chunk): Minor argument change. All users updated.
17413 (squash_mount): Use correct le_to_cpu.
17414 (grub_squash_open): Handle LONG_REGULAR.
17415 (direct_read): New function.
17416 (grub_squash_read_data): Handle blocks correctly.
17417
17418 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17419
17420 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17421
17422 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17423
17424 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17425
17426 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17427
17428 Fix 2G limit on ZFS.
17429
17430 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17431 types.
17432 (uberblock_verify): Likewise.
17433 (dmu_read): Likewise.
17434 (grub_zfs_read): Likewise. Remove invalid cast.
17435
17436 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17437
17438 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17439 (grub_jfs_blkno): Fix incorrect shift.
17440 (grub_jfs_read_file): Use more appropriate types.
17441
17442 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 Support triple indirect on minix2 and minix3.
17445
17446 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17447 Declare triple_indir_zone.
17448 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17449 indirect.
17450
17451 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17452
17453 Minix FS fixes.
17454
17455 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17456 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17457 Rename ctime to mtime. All users updated.
17458 (grub_minix_get_file_block): Fix types and double indirect computations.
17459
17460 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17463 if no label is found.
17464 (grub_fat_iterate_dir): Fix file size type.
17465 (grub_fat_iterate_dir): Likewise.
17466
17467 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17468
17469 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17470 save some space.
17471 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17472 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17473
17474 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17475
17476 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17477
17478 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17479
17480 * util/import_gcry.py: Accept space between # and include.
17481
17482 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17483
17484 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17485
17486 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17489
17490 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17491 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17492 yylex_strncpy.
17493 * grub-core/script/yylex.l: Add fine-grained #pragma.
17494
17495 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17496
17497 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17498 New inline function.
17499 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17500 Likewise.
17501 (memset) [GRUB_UTIL]: Likewise.
17502 (memcmp) [GRUB_UTIL]: Likewise.
17503
17504 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17507 inline function rather than a define.
17508
17509 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17510
17511 * util/grub-setup.c: Add missing include.
17512
17513 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17514
17515 * util/ieee1275/grub-ofpathname.c: Add missing include.
17516
17517 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17518
17519 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17520 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17521 Likewise.
17522
17523 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17524
17525 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17526 grub_memcmp usage.
17527
17528 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17529
17530 * util/grub-install.in: Add datarootdir as per automake manual
17531 suggestion.
17532 * util/grub-mknetdir.in: Likewise.
17533
17534 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17535
17536 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17537 suggestion.
17538 * util/grub.d/10_kfreebsd.in: Likewise.
17539 * util/grub.d/10_linux.in: Likewise.
17540 * util/grub.d/10_netbsd.in: Likewise.
17541 * util/grub.d/10_windows.in: Likewise.
17542 * util/grub.d/20_linux_xen.in: Likewise.
17543
17544 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17545
17546 Remove redundant grub_kernel_image_size.
17547
17548 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17549 _edata and _start.
17550 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17551 the small code. It moves it only by few bytes but simplifies the code.
17552 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17553 _start.
17554 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17555 (grub_kernel_image_size): Removed.
17556 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17557 (grub_kernel_image_size): Removed.
17558 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17559 compiled with Apple toolchain.
17560 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17561 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17562 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17563 (grub_total_module_size): Likewise.
17564 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17565 Removed.
17566 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17567 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17568 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17569 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17570 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17571 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17572 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17573 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17574 Removed.
17575 (grub_total_module_size): Removed.
17576 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17577 (image_targets): Likewise.
17578 Set .compressed_size to no field on sparc.
17579 (generate_image): Remove kernel_image_size handling.
17580
17581 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17582
17583 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17584 NULL pointer dereference.
17585
17586 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17587
17588 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17589 done with a dedicated section.
17590
17591 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17592 Ensure the correct position of boot_path.
17593 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17594 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17595 other fields.
17596 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17597 * include/grub/boot.h: Removed. All references removed.
17598 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17599 Removed.
17600 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17601
17602 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17603
17604 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17605 name.
17606
17607 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17608
17609 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17610
17611 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17614 Don't add the bogus brackets.
17615
17616 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 ExFAT support.
17619
17620 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17621 * grub-core/Makefile.core.def (exfat): New module.
17622 * grub-core/fs/exfat.c: New file.
17623 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17624 (GRUB_FAT_ATTR_*): Make into an enum.
17625 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17626 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17627 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17628 (GRUB_FAT_MAXFILE): Removed.
17629 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17630 (grub_current_fat_bpb_t): New type.
17631 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17632 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17633 (grub_fat_dir_node_t): New type.
17634 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17635 (fat_log2) [MODE_EXFAT]: Removed.
17636 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17637 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17638 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17639 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17640 (grub_fat_label) [MODE_EXFAT]: New function.
17641 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17642 reserved_first_sector to 0.
17643
17644 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17645
17646 Move grub_reboot out of the kernel.
17647
17648 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17649 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17650 * grub-core/lib/efi/reboot.c: ... here.
17651 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17652 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17653 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17654 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17655 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17656 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17657 * grub-core/lib/ieee1275/reboot.c: ... here.
17658 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17659 * grub-core/lib/mips/arc/reboot.c: ... here.
17660 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17661 * grub-core/lib/mips/loongson/reboot.c: ...here.
17662 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17663 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17664 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17665 * include/grub/i386/reboot.h: New file.
17666 * include/grub/mips/loongson/ec.h: Fix includes.
17667 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17668 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17669 * grub-core/lib/i386/reboot.c: New file.
17670
17671 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 Make grub_prefix into module to fix the arbitrary limit and save
17674 some space.
17675
17676 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17677 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17678 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17679 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17680 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17681 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17682 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17683 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17684 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17685 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17686 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17687 * include/grub/ia64/efi/kernel.h: Removed.
17688 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17689 (grub_prefix): Removed.
17690 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17691 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17692 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17693 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17694 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17695 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17696 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17697 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17698 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17699 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17700 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17701 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17702 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17703 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17704 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17705 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17706 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17707 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17708 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17709 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17710 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17711 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17712 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17713 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17714 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17715 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17716 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17717 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17718 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17719 from module.
17720 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17721 prefix_end.
17722 (image_targets): Likewise.
17723 (generate_image): Put prefix as a module.
17724
17725 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17726
17727 Replace grub_module_iterate with FOR_MODULES.
17728
17729 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17730 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17731 (grub_efi_modules_addr): ...this.
17732 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17733 (grub_efi_init): Set grub_modbase.
17734 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17735 (grub_modbase): New variable.
17736 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17737 (grub_modbase): New variable.
17738 (grub_machine_init): Set grub_modbase.
17739 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17740 (grub_modbase): New variable.
17741 (grub_machine_init): Set grub_modbase.
17742 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17743 (grub_modbase): New variable.
17744 (grub_machine_init): Set grub_modbase.
17745 * grub-core/kern/main.c (grub_module_iterate): Remove.
17746 (grub_modules_get_end): Use grub_modbase.
17747 (grub_load_modules): Use FOR_MODULES.
17748 (grub_load_config): Likewise.
17749 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17750 (grub_modbase): New variable.
17751 (grub_machine_init): Set grub_modbase.
17752 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17753 (grub_modbase): New variable.
17754 (grub_machine_init): Set grub_modbase.
17755 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17756 Removed.
17757 (grub_modbase): New variable.
17758 (grub_machine_init): Set grub_modbase.
17759 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17760 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17761 (grub_module_iterate): Likewise.
17762 (grub_modbase): New variable declaration.
17763 (FOR_MODULES): New macro.
17764
17765 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17766
17767 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17768 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17769
17770 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17771
17772 Fix few obvious type discrepancies.
17773
17774 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17775 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17776 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17777 variable.
17778 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17779 and connected types.
17780 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17781 offset.
17782 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17783 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17784 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17785 and connected types.
17786
17787 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17788
17789 Fix python 3.x incompatibilities.
17790
17791 * gentpl.py: Put brackets around print strings.
17792 * util/import_gcry.py: Open explicitly as utf-8.
17793 Use in instead of has_key.
17794
17795 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17796
17797 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17798 (GRUB_XFS_INO_AGBITS): Make into inline function.
17799 (GRUB_XFS_INO_INOINAG): Likewise.
17800 (GRUB_XFS_INO_AG): Likewise.
17801 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17802 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17803 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17804 (GRUB_XFS_EXTENT_SIZE): Likewise.
17805 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17806 (GRUB_XFS_NEXT_DIRENT): Likewise.
17807 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17808 (grub_xfs_read_file): Fix offset type.
17809
17810 2011-10-15 Robert Millan <rmh@gnu.org>
17811
17812 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17813
17814 2011-10-15 Robert Millan <rmh@gnu.org>
17815
17816 Fix build problem on FreeBSD and GNU/kFreeBSD.
17817
17818 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17819
17820 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17821
17822 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17823
17824 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17825 types.
17826 (grub_hfsplus_btree_recoffset): Likewise.
17827 (grub_hfsplus_btree_recptr): Likewise.
17828 (grub_hfsplus_find_block): Likewise.
17829 (grub_hfsplus_btree_search): Likewise.
17830 (grub_hfsplus_read_block): Likewise.
17831 (grub_hfsplus_read_file): Likewise.
17832 (grub_hfsplus_mount): Likewise.
17833 (grub_hfsplus_btree_iterate_node): Likewise.
17834 (grub_hfsplus_btree_search): Likewise.
17835 (grub_hfsplus_iterate_dir): Likewise.
17836 (grub_hfsplus_read): A small code simplification.
17837
17838 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * grub-core/kern/emu/hostdisk.c
17841 (convert_system_partition_to_system_disk): Don't assume that children
17842 of mapper nodes are mapper nodes.
17843
17844 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17847 * include/grub/misc.h (grub_isxdigit): New function.
17848 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17849 switched to grub_isxdigit.
17850 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17851 number starting with a letter.
17852
17853 2011-10-09 Robert Millan <rmh@gnu.org>
17854
17855 LVM support for FreeBSD and GNU/kFreeBSD.
17856
17857 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17858 GNU/kFreeBSD.
17859 (LVM_DEV_MAPPER_STRING): Move from here ...
17860 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17861 * util/getroot.c: Include `<grub/util/lvm.h>'.
17862 (grub_util_get_dev_abstraction): Enable
17863 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17864 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17865 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17866 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17867 support it.
17868 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17869 GNU/kFreeBSD.
17870 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17871 when LVM abstraction is required for ${GRUB_DEVICE}.
17872
17873 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17874
17875 Add support for LZO compression in GRUB:
17876 - import of minilzo library,
17877 - LZO decompression for btrfs,
17878 - lzop files decompression.
17879
17880 * grub-core/io/lzopio.c: New file.
17881 * grub-core/lib/adler32.c: Likewise.
17882 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17883 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17884 * grub-core/lib/minilzo/minilzo.c: Likewise.
17885 * grub-core/lib/minilzo/minilzo.h: Likewise.
17886 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17887 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17888 grub-core/lib/minilzo/minilzo.c to common.
17889 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17890 cflags in cppflags.
17891 * grub-core/Makefile.core.def (btrfs): Likewise.
17892 * grub-core/Makefile.core.def (lzopio): New module.
17893 (adler32): Likewise.
17894 * grub-core/fs/btrfs.c: Include minilzo.h.
17895 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17896 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17897 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17898 (grub_btrfs_lzo_decompress): New function.
17899 (grub_btrfs_extent_read): Add support for LZO compression type.
17900 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17901 (GRUB_USHRT_MAX): Likewise.
17902 (GRUB_UINT_MAX): Likewise.
17903 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17904 (UINT_MAX): Likewise.
17905 (CHAR_BIT): Likewise.
17906 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17907 grub-core/lib/posix_wrap/limits.h
17908 (UCHAR_MAX): Likewise.
17909 * include/grub/file.h (grub_file_filter_id): New compression filter
17910 GRUB_FILE_FILTER_LZOPIO.
17911 * include/grub/file.h (grub_file_filter_id): Set
17912 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17913 * include/grub/types.h (grub_get_unaligned16): New function.
17914 (grub_get_unaligned32): Likewise.
17915 (grub_get_unaligned64): Likewise.
17916 * util/import_gcry.py (cryptolist): Add adler32.
17917
17918 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17919
17920 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17921 in perspective decreases the complexity of build system and fixes
17922 compilation right now.
17923
17924 2011-10-01 Ales Nesrsta <starous@volny.cz>
17925
17926 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17927 (fixed problem related to using UHCI with coreboot).
17928
17929 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17930
17931 * gentpl.py: Use Autogen macros so that the output template file
17932 (Makefile.tpl) size is reduced.
17933
17934 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17935
17936 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17937 extra_dist.
17938
17939 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17940
17941 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17942 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17943
17944 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17945
17946 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17947 _fullpath.
17948
17949 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17950
17951 Remove extra declaration of sleep for mingw32.
17952
17953 * util/misc.c (sleep) [__MINGW32__]: Removed.
17954 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17955
17956 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17957
17958 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17959 type and packname.
17960 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17961 Resurrected.
17962 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17963 (grub_netbsd_btinfo_bootwedge): New struct.
17964 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17965 New function.
17966 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
17967
17968 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
17969
17970 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
17971 loader.
17972
17973 2011-09-28 Andreas Born <futur.andy@googlemail.com>
17974
17975 Fix incorrect identifiers in bash-completion.
17976
17977 * util/bash-completion.d/grub-completion.bash.in
17978 (_grub_mkpasswd-pbkdf2): Rename to ...
17979 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
17980 (_grub_script-check): Rename to ...
17981 (_grub_script_check): ... this. All users updated.
17982
17983 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
17984
17985 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
17986 Return 0 if disk isn't biosdisk.
17987
17988 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17989
17990 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
17991 on NetBSD.
17992 * Makefile.util.def (grub-fstest): Likewise.
17993
17994 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
17995
17996 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
17997 Get sector size from disk label.
17998
17999 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18000
18001 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18002 */README* as well as README*.
18003 Reported by: Axel Beckert.
18004
18005 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18006
18007 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18008 case of less than 256 MiB of RAM.
18009
18010 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18011
18012 * grub-core/commands/wildcard.c (make_regex): Handle @.
18013
18014 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18015
18016 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18017
18018 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18019
18020 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18021 AC_LANG_CONFTEST macros.
18022
18023 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18024
18025 Add grub-fstest option to uncompress data for commands.
18026
18027 * util/grub-fstest.c (uncompress): New var.
18028 (options): New option -u.
18029
18030 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18031
18032 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18033 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18034
18035 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18036
18037 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18038 file type was not recognized correctly (not gzip or corrupted).
18039
18040 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18041
18042 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18043 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18044
18045 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18046
18047 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18048 loongson.
18049 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18050 video_radeon_fuloong2e.
18051 * grub-core/video/radeon_fuloong2e.c: New file.
18052 * include/grub/video.h (grub_video_id_t): Add new ID
18053 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18054
18055 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18056
18057 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18058 define.
18059 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18060 that PRID matches the detected subplatform and reset the subplatform
18061 if it doesn't.
18062
18063 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18064
18065 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18066
18067 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18068
18069 Fix PCI iterating on functions >= 4.
18070
18071 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18072 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18073 Removed.
18074 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18075 (grub_pci_read): Fix bitmask.
18076 (grub_pci_read_word): Likewise.
18077 (grub_pci_read_byte): Likewise.
18078 (grub_pci_write): Likewise.
18079 (grub_pci_write_word): Likewise.
18080 (grub_pci_write_byte): Likewise.
18081
18082 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18083
18084 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18085 can still be specified in TARGET_CFLAGS)
18086
18087 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18088
18089 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18090
18091 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18092 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18093 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18094 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18095 (FULOONG): Rename to ...
18096 (FULOONG2F): ... this. All users updated.
18097 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18098 (machtype_fuloong2f_str): ... this.
18099 (machtype_fuloong2e_str): New string.
18100 Check for machtype_fuloong2e_str.
18101 * grub-core/loader/mips/linux.c (loongson_machtypes)
18102 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18103 * grub-core/term/serial.c (loongson_defserial)
18104 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18105 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18106 loongson_defserial.
18107 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18108 Rename to ...
18109 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18110 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18111 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18112 to IMAGE_FULOONG2F_FLASH. All users updated.
18113 (image_targets): Rename images.
18114 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18115
18116 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18117
18118 Make enable of disk cache statistics code configurable.
18119
18120 * configure.ac: --enable-cache-stats added.
18121 * config.h.in (DISK_CACHE_STATS): New define.
18122 * grub-core/Makefile.core.def (cacheinfo): New command.
18123 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18124 * grub-core/commands/cacheinfo.c: New file.
18125 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18126 moved to cacheinfo.c.
18127 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18128 debug code.
18129 * include/grub/disk.h: Likewise.
18130
18131 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18132
18133 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18134 * grub-core/Makefile.am: Likewise.
18135
18136 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18137
18138 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18139 non-zero pull.
18140
18141 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18142
18143 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18144 All users updated.
18145 (grub_jfs_lookup_symlink): Use correct starting inode.
18146
18147 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18148
18149 * util/grub-setup.c (main): Add missing gcry initialisation.
18150
18151 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 Don't accept text modes on EFI when booting Linux.
18154
18155 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18156 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18157
18158 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18159 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18160
18161 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18162 use of "/path/.." as in grub-install for EFI as well as handling
18163 symlinks correctly.
18164 Fixes Debian bug #637768.
18165
18166 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18167
18168 * util/grub-probe.c: Remove duplicate #include.
18169
18170 2011-08-10 Robert Millan <rmh@gnu.org>
18171
18172 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18173
18174 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18175 function.
18176 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18177 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18178
18179 2011-08-03 Robert Millan <rmh@gnu.org>
18180
18181 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18182 la_array as packed.
18183 Reported by: Zachary Bedell
18184
18185 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18186
18187 * configure.ac: The Loongson port requires grub-mkfont due to its
18188 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18189 be built.
18190
18191 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18192
18193 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18194 processing arguments (otherwise help2man fails when GRUB has not yet
18195 been installed).
18196
18197 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18198
18199 New script grub-mkstandalone.
18200
18201 * Makefile.util.def (grub-mkstandalone): New script.
18202 * docs/man/grub-mkstandalone.h2m: New file.
18203 * util/grub-mkstandalone.in: Likewise.
18204
18205 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18206
18207 Support ATA disks with 4K sectors.
18208
18209 * include/grub/ata.h (grub_ata): New member log_sector_size.
18210 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18211 (grub_ata_identify): Read sector size.
18212 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18213
18214 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18215
18216 * util/grub-install.in: Don't use uhci outside of x86.
18217
18218 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18219
18220 * util/grub-mkrescue.in: Add missing quotes.
18221
18222 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18223
18224 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18225 dereference.
18226
18227 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18228
18229 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18230
18231 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18232
18233 * include/grub/video.h: add missing EXPORT_FUND on
18234 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18235
18236 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18237
18238 * include/grub/mips/kernel.h: Fix define conflict.
18239
18240 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18241
18242 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18243 all four ways.
18244
18245 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18246
18247 Preferred resolution detection for VBE.
18248
18249 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18250 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18251 the Flat Panel extension, in line with the X.org VESA driver.
18252 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18253 New function.
18254 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18255 (grub_vbe_bios_read_edid): Likewise.
18256 (grub_vbe_get_preferred_mode): Likewise.
18257 (grub_video_vbe_setup): When the mode is "auto", try to get the
18258 preferred mode from VBE, and use the largest mode that is no larger
18259 than the preferred mode (some BIOSes expose a preferred mode that is
18260 not in their mode list!). If this fails, fall back to 640x480 as a
18261 safe conservative choice.
18262 (grub_video_vbe_get_edid): New function.
18263 (grub_video_vbe_adapter): Add get_edid.
18264 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18265 (struct grub_video_adapter): Add get_edid.
18266 (grub_video_edid_checksum): Add prototype.
18267 (grub_video_edid_preferred_mode): Likewise.
18268 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18269 structure.
18270
18271 * grub-core/commands/videoinfo.c (print_edid): New function.
18272 (grub_cmd_videoinfo): Print EDID if available.
18273
18274 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18275 is more appropriate on a wider range of platforms than 640x480.
18276 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18277 documentation.
18278
18279 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18280
18281 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18282
18283 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18284
18285 * po/POTFILES.in: Regenerate.
18286
18287 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18288
18289 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18290 incorrect memory usage.
18291
18292 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18293
18294 * util/grub-install.in: Source grub-mkconfig_lib.
18295
18296 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18297
18298 Remove getroot.c from core on emu platform.
18299
18300 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18301 kern/emu/raid.c.
18302 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18303 useless.
18304 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18305 * util/getroot.c (get_win32_path): ... here.
18306 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18307 * util/getroot.c (fini_libzfs): ... here.
18308 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18309 * util/getroot.c (grub_get_libzfs_handle): ... here.
18310 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18311 Moved from here...
18312 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18313 * grub-core/kern/emu/misc.c
18314 (grub_make_system_path_relative_to_its_root): Moved from here...
18315 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18316 * grub-core/kern/emu/getroot.c: Moved from here ...
18317 * util/getroot.c: ... here. All users updated.
18318 * grub-core/kern/emu/raid.c: Moved from here ...
18319 * util/raid.c: ... here. All users updated.
18320
18321 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18322
18323 * po/POTFILES.in: Regenerate.
18324
18325 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18326
18327 Fix compilation on GNU/Linux.
18328
18329 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18330 Disable geli.
18331 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18332 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18333 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18334
18335 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18336 2011-07-07 Michael Gorven <michael@gorven.za.net>
18337 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18338
18339 LUKS and GELI support.
18340
18341 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18342 grub-core/disk/luks.c, grub-core/disk/geli.c,
18343 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18344 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18345 grub-core/lib/arg.c.
18346 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18347 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18348 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18349 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18350 (grub-bin2h): Add libgcry.a.
18351 (grub-mkimage): Likewise.
18352 (grub-mkrelpath): Likewise.
18353 (grub-script-check): Likewise.
18354 (grub-editenv): Likewise.
18355 (grub-mkpasswd-pbkdf2): Likewise.
18356 (grub-pe2elf): Likewise.
18357 (grub-fstest): Likewise.
18358 (grub-mkfont): Likewise.
18359 (grub-mkdevicemap): Likewise.
18360 (grub-probe): Likewise.
18361 (grub-ofpath): Likewise.
18362 (grub-mklayout): Likewise.
18363 (example_unit_test): Likewise.
18364 (grub-menulst2cfg): Likewise.
18365 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18366 * grub-core/Makefile.core.def (cryptodisk): New module.
18367 (luks): Likewise.
18368 (geli): Likewise.
18369 * grub-core/disk/AFSplitter.c: New file.
18370 * grub-core/disk/cryptodisk.c: Likewise.
18371 * grub-core/disk/geli.c: Likewise.
18372 * grub-core/disk/luks.c: Likewise.
18373 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18374 grub_util_is_lvm.
18375 (grub_util_get_dm_abstraction): New function.
18376 (grub_util_follow_gpart_up): Likewise.
18377 (grub_util_get_geom_abstraction): Likewise.
18378 (grub_util_get_dev_abstraction): Use new functions.
18379 (grub_util_pull_device): Pull GELI and LUKS.
18380 (grub_util_get_grub_dev): Handle LUKS and GELI.
18381 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18382 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18383 (follow_geom_up): Removed.
18384 (grub_util_fd_seek): New function.
18385 (open_device): Use grub_util_fd_seek.
18386 (nread): Rename to ..
18387 (grub_util_fd_read): ... this. All users updated.
18388 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18389 (grub_crypto_cbc_decrypt): Likewise.
18390 (grub_crypto_hmac_write): Likewise.
18391 (grub_crypto_hmac_buffer): Likewise.
18392 (grub_password_get): Extend to util.
18393 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18394 New member modname.
18395 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18396 * include/grub/cryptodisk.h: New file.
18397 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18398 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18399 LUKS and GELI.
18400 (grub_util_follow_gpart_up): New proto.
18401 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18402 (grub_util_fd_read): Likewise.
18403 (grub_cryptodisk_cheat_mount): Likewise.
18404 (grub_util_cryptodisk_print_uuid): Likewise.
18405 (grub_util_get_fd_sectors): Likewise.
18406 * util/grub-fstest.c (mount_crypt): New var.
18407 (fstest): Mount crypto if requested.
18408 (options): New option -C.
18409 (argp_parser): Parse -C.
18410 (main): Init and fini gcry.
18411 * util/grub-install.in: Support cryptodisk install.
18412 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18413 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18414 cryptodisk.
18415 (prepare_grub_to_access_device): Likewise.
18416 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18417 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18418 (probe_cryptodisk_uuid): New function.
18419 (probe_abstraction): Likewise.
18420 (probe): Use new functions.
18421 * util/import_gcry.py: Create Makefile.utilgcry.def.
18422 Add modname member.
18423
18424 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18425
18426 Lazy device scanning.
18427
18428 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18429 (grub-setup): Remove util/raid.c.
18430 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18431 * grub-core/disk/lvm.c (scan_depth): New variable.
18432 (grub_lvm_iterate): Rescan if necessary.
18433 (find_lv): New function based on grub_lvm_open.
18434 (grub_lvm_open): Use find_lv. Rescan on error.
18435 (is_node_readable): New function.
18436 (is_lv_readable): Likewise.
18437 (grub_lvm_scan_device): Skip already found disks.
18438 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18439 Stop if searched device is found and readable.
18440 * grub-core/disk/raid.c (inscnt): New variable.
18441 (scan_depth): Likewise.
18442 (scan_devices): New function based on grub_raid_register. Abort if
18443 looked for device is found.
18444 (grub_raid_iterate): Rescan if needed.
18445 (find_array): NEw function based on -grub_raid_open.
18446 (grub_raid_open): Use find_array and rescan.
18447 (insert_array): Set became_readable_at.
18448 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18449 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18450 New function.
18451 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18452 (grub_util_pull_device): New function.
18453 (grub_util_get_grub_dev): Call grub_util_pull_device.
18454 * util/raid.c: Moved to ..
18455 * grub-core/kern/emu/raid.c: ... here.
18456 (grub_util_raid_getmembers): New parameter "bootable".
18457 All users updated. Support 1.x.
18458 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18459 All users updated.
18460 * include/grub/disk.h (grub_disk_pull_t): New enum.
18461 (grub_disk_dev): Change iterate prototype.
18462 All users updated.
18463 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18464 New proto.
18465 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18466 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18467 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18468 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18469 All users updated.
18470 * include/grub/util/raid.h: Removed.
18471
18472 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18473
18474 * po/POTFILES.in: Regenerate.
18475
18476 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18477
18478 Unify sparc init with other ieee1275.
18479
18480 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18481 instead of kern/sparc64/ieee1275/init.c.
18482 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18483 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18484 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18485 grub/machine/kernel.h.
18486 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18487 (grub_claim_heap) [__sparc__]: Use sparc version.
18488 (grub_machine_init): Moved args parsing to
18489 (grub_parse_cmdline): ...this.
18490 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18491 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18492 New definition.
18493 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18494
18495 Move BOOTP to separate file.
18496
18497 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18498 * grub-core/net/net.c: Move all BOOTP functions to
18499 * grub-core/net/bootp.c: ... here.
18500
18501 Use frame interface on PXE.
18502
18503 * grub-core/Makefile.core.def (pxecmd): Removed.
18504 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18505 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18506 * grub-core/i386/pc/pxe.c: Moved from here ...
18507 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18508 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18509 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18510
18511 EFI network support.
18512
18513 * grub-core/Makefile.core.def (efinet): New module.
18514 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18515 here...
18516 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18517 All users updated.
18518 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18519 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18520 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18521 * grub-core/net/drivers/efi/efinet.c: New file.
18522 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18523 (grub_efi_net_config): New extern var.
18524
18525 Various cleanups and bugfixes.
18526
18527 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18528 error.
18529 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18530 disk declared as partition.
18531 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18532 leak on failure.
18533 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18534 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18535 (grub_debug_zalloc): Likewise.
18536 (grub_debug_realloc): Likewise.
18537 (grub_debug_memalign): Likewise.
18538 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18539 Check that target is IPv4.
18540 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18541 local-mac-address as fallback.
18542 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18543 memory leak.
18544 * grub-core/net/ip.c (ipchksum): Rename to ...
18545 (grub_net_ip_chksum): ... this. All users updated.
18546 (grub_net_recv_ip_packets): Special handling for DHCP.
18547 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18548
18549 Unify prefix handling
18550
18551 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18552 (grub_machine_get_bootlocation): ... this.
18553 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18554 (grub_machine_get_bootlocation): ... this.
18555 (grub_prefix): New variable.
18556 (prefix): Removed.
18557 (root_dev): New variable.
18558 (dir): Likewise.
18559 (main): Use new variables.
18560 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18561 Revamped into ...
18562 (grub_machine_get_bootlocation): ... this.
18563 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18564 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18565 (grub_machine_get_bootlocation): ... this.
18566 (grub_machine_set_prefix): Removed.
18567 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18568 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18569 Revamped into ...
18570 (grub_machine_get_bootlocation): ... this.
18571 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18572 (grub_set_prefix_and_root): ... this. All users updated.
18573 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18574 Revamped into ...
18575 (grub_machine_get_bootlocation): ... this.
18576 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18577 (grub_machine_get_bootlocation): New proto.
18578 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18579
18580 Less intrusive and more reliable seek on network implementation.
18581
18582 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18583 (grub_file_seek): Don't call grub_file_net_seek.
18584 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18585 (grub_net_fs_read_real): .. this.
18586 (grub_net_seek_real): Use net->offset.
18587 (grub_net_fs_read): Seek if necessary.
18588
18589 Unify IEEE1275 netwotk config with the other platforms.
18590
18591 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18592 New variable.
18593 (grub_machine_get_bootlocation): Support network.
18594 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18595 Support type and device parsing.
18596 (grub_ieee1275_get_device_type): New function.
18597 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18598 into ...
18599 (grub_ieee1275_net_config_real): ... this.
18600 (grub_ofnet_probecards): Removed.
18601 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18602 * include/grub/ieee1275/ofnet.h: Removed.
18603 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18604 extern var.
18605 (grub_ieee1275_get_device_type): New function.
18606
18607 Unify network device closing across platforms and make more robust.
18608
18609 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18610 grub_grubnet_fini.
18611 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18612 already.
18613 * grub-core/net/net.c (grub_net_network_level_interface_register):
18614 Update num_ifaces.
18615 (grub_net_card_unregister): Close all interfaces.
18616 (receive_packets): Don't poll if no iterfaces are registered.
18617 Open if necessary.
18618 (grub_net_fini_hw): New function.
18619 (grub_net_restore_hw): Likewise.
18620 (fini_hnd): New variable.
18621 (GRUB_MOD_INIT): Register preboot hook.
18622 (GRUB_MOD_FINI): Run and unregister preboot hook.
18623
18624 Poll network cards when idle.
18625
18626 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18627 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18628 * grub-core/net/net.c (receive_packets): Save last poll time.
18629 (grub_net_poll_cards_idle_real): New function.
18630 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18631 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18632 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18633
18634 Rename ofnet interfaces.
18635
18636 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18637 (grub_ofnet_findcards): Use ofnet_%s names.
18638
18639 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18640
18641 Cleanup socket opening.
18642
18643 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18644 (grub_net_fs_close): Likewise.
18645 (grub_net_fs_read_real): Use eof member.
18646 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18647 (+grub_net_udp_close): New inline function.
18648
18649 * include/grub/net/tftp.h: Moved to the top of ...
18650 * grub-core/net/tftp.c: ... here.
18651 * include/grub/net/ip.h: Moved mostly to the top of ...
18652 * grub-core/net/ip.c: ... here.
18653 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18654 * grub-core/net/ethernet.c: ... here.
18655
18656 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18657
18658 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18659 FS name.
18660
18661 * include/grub/net/ip.h (ipv4_ini): Removed.
18662 (ipv4_fini): Likewise.
18663
18664 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18665 (grub_net_send_ip_packets): Likewise.
18666
18667 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18668
18669 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18670 grub_read_cmos prototype.
18671
18672 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 VGA text support in qemu-mips
18675
18676 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18677 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18678 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18679 text.
18680 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18681 * grub-core/kern/vga_init.c: ... this.
18682 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18683 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18684 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18685 Adjust.
18686 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18687 GRUB_MACHINE_PCI_IO_BASE.
18688
18689 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18690
18691 MIPS qemu flash support.
18692
18693 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18694 magic.
18695 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18696 (grub_machine_init): Probe memory if its size isn't known.
18697 * util/grub-mkimage.c (image_targets): Add flash targets.
18698 (generate_image): Handle flash targets.
18699
18700 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 MIPS qemu at_keyboard support.
18703
18704 * gentpl.py (videoinkernel): Add qemu-mips.
18705 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18706 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18707 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18708 modules.
18709 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18710 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18711 * grub-core/term/serial.c (grub_serial_register)
18712 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18713
18714 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 CMOS support on sparc.
18717
18718 * gentpl.py (cmos): Add powerpc and sparc.
18719 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18720 powerpc and sparc.
18721 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18722 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18723 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18724 grub_set_datetime_cmos.
18725 * grub-core/lib/ieee1275/cmos.c: New file.
18726 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18727 (find_rtc): Set no_ieee1275_rtc on error.
18728 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18729 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18730 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18731 fail. Move value to argument. All users updated
18732 (grub_cmos_write): Likewise.
18733 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18734 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18735 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18736 grub_get_datetime_cmos and grub_set_datetime_cmos.
18737
18738 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18739
18740 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18741 sourcing grub-mkconfig_lib.
18742 * util/update-grub_lib.in: Likewise.
18743 * util/grub.d/00_header.in: Likewise.
18744 * util/grub.d/10_hurd.in: Likewise.
18745 * util/grub.d/10_kfreebsd.in: Likewise.
18746 * util/grub.d/10_linux.in: Likewise.
18747 * util/grub.d/10_netbsd.in: Likewise.
18748 * util/grub.d/10_windows.in: Likewise.
18749 * util/grub.d/20_linux_xen.in: Likewise.
18750 * util/grub.d/30_os-prober.in: Likewise.
18751
18752 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18753
18754 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18755 default_bg_color rather than black.
18756 (grub_gfxterm_fullscreen): Likewise.
18757 (grub_gfxterm_background_color_cmd): Save new background color in
18758 default_bg_color.
18759
18760 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18761
18762 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18763
18764 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18767 mismerge.
18768
18769 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18770
18771 Chainloading on coreboot support.
18772
18773 * grub-core/Makefile.core.def (chain): Add coreboot.
18774 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18775
18776 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18777
18778 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18779 if it happens.
18780
18781 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 Implement time command.
18784
18785 * grub-core/Makefile.core.def (time): New module.
18786 * grub-core/commands/time.c: New file.
18787 * grub-core/script/parser.y: Remove "time" keyword.
18788 * grub-core/script/yylex.l: Likewise.
18789
18790 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18793
18794 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18795
18796 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18797 when handling leftovers.
18798
18799 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18802 so that help2man doesn't fail.
18803
18804 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18805
18806 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18807 type in pointers on sparc64.
18808 (get_card_packet): Likewise.
18809
18810 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18811
18812 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18813 with `*'.
18814 (grub_cmd_videoinfo): Fetch current video mode.
18815
18816 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18819 because of underlying system restrictions.
18820
18821 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18822
18823 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18824 necessary.
18825
18826 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18827
18828 Coreboot video support.
18829
18830 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18831 (vbe): Likewise.
18832 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18833 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18834 here ...
18835 * grub-core/kern/i386/int.S: ... here.
18836 * grub-core/video/i386/pc/vbe.c: Updated includes.
18837 * grub-core/video/i386/pc/vga.c: Likewise.
18838 * include/grub/i386/coreboot/memory.h
18839 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18840 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18841 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18842 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18843 Disable interrupts.
18844 * include/grub/i386/pc/vga.h: Removed. All users updated.
18845
18846 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18847
18848 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18849 definitions for dprintf.
18850 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18851
18852 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18853
18854 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18855 prototype.
18856 (get_card_packet): Likewise.
18857
18858 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18859
18860 Display the path of the file when file is not found
18861
18862 * grub-core/fs/fat.c: Display the filename when file is not found.
18863 * grub-core/fs/fshelp.c: Likewise.
18864 * grub-core/fs/hfs.c: Likewise.
18865 * grub-core/fs/jfs.c: Likewise.
18866 * grub-core/fs/minix.c: Likewise.
18867 * grub-core/fs/ufs.c: Likewise.
18868 * grub-core/fs/btrfs.c: Likewise.
18869 * grub-core/commands/i386/pc/play.c: Likewise.
18870
18871 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18872
18873 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18874 pointer checks before calling grub_free().
18875 * grub-core/commands/wildcard.c (match_devices): Likewise.
18876 * grub-core/commands/wildcard.c (match_files): Likewise.
18877 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18878 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18879 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18880 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18881 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18882 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18883 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18884 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18885 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18886
18887 2011-06-25 Patrick <p55@mailinator.com>
18888
18889 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18890
18891 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18892
18893 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18894 (grub_pxe_send): Likewise.
18895 (GRUB_MOD_INIT): Fix types.
18896
18897 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18898
18899 * grub-core/io/xzio.c: Fix code style issues
18900
18901 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18902 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18903
18904 Network infrastructure.
18905 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18906
18907 * include/grub/net/arp.h: New file.
18908 * include/grub/net/device.h: Likewise.
18909 * include/grub/net/ethernet.h: Likewise.
18910 * include/grub/net/ip.h: Likewise.
18911 * include/grub/net/netbuff.h: Likewise.
18912 * include/grub/net/tftp.h: Likewise.
18913 * include/grub/net/udp.h: Likewise.
18914 * include/grub/ieee1275/ofnet.h: Likewise.
18915 * include/grub/emu/export.h: Likewise.
18916 * include/grub/net.h: Likewise.
18917 * grub-core/net/arp.c: Likewise.
18918 * grub-core/net/ethernet.c: Likewise.
18919 * grub-core/net/ip.c: Likewise.
18920 * grub-core/net/udp.c: Likewise.
18921 * grub-core/net/tftp.c: Likewise.
18922 * grub-core/net/netbuff.c: Likewise.
18923 * grub-core/net/net.c: Likewise.
18924 * grub-core/net/drivers/emu/emunet.c: Likewise.
18925 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18926 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18927 export.h.
18928 * grub-core/Makefile.core.def (net): New module.
18929 (tftp): Likewise.
18930 (ofnet): Likewise.
18931 (emunet): Likewise.
18932 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18933 network protocols.
18934 * grub-core/kern/device.c (grub_net_open) : New variable.
18935 (grub_device_open): Handle network device.
18936 (grub_device_close): Likewise.
18937 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18938 (grub_grubnet_fini): Likewise.
18939 (grub_file_seek): Seek in network device.
18940 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18941 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18942 network root.
18943 (grub_machine_fini): Call grub_grubnet_fini.
18944 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18945 network.
18946 (grub_ieee1275_get_aliasdevname): New function.
18947 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18948 Add unofficial Solaris network info.
18949 (grub_multiboot_make_mbi): Likewise.
18950 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18951 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18952 * include/grub/device.h (grub_fs): Removed.
18953 * include/grub/err.h (grub_err_t): Add network-related values.
18954 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18955 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18956 (grub_ieee1275_get_aliasdevname): New proto.
18957 * include/grub/net.h: Rewritten.
18958
18959 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18960
18961 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
18962 names.
18963
18964 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18965
18966 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
18967 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
18968 it truncates the output.
18969 Reported by: Ximin Luo.
18970
18971 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18972
18973 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
18974
18975 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18976
18977 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
18978 partmap before abstraction.
18979
18980 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
18981
18982 * util/grub-mkconfig_lib.in: Add missing quotes.
18983
18984 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18985
18986 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
18987 old method if mountinfo would return /dev/root and /dev/root doesn't
18988 exist.
18989
18990 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18991
18992 ZFS zlib support
18993
18994 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
18995 (decomp_table): Add zlib entries.
18996 (zio_read): USe 8 bits for compression function rather than 3.
18997 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
18998
18999 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19000
19001 * grub-core/disk/ahci.c: Add missing license statements.
19002 * grub-core/fs/romfs.c: Likewise.
19003 * grub-core/lib/ia64/setjmp.S: Likewise.
19004 * grub-core/loader/i386/pc/freedos.c: Likewise.
19005 * grub-core/loader/ia64/efi/linux.c: Likewise.
19006 * grub-core/video/colors.c: Likewise.
19007 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19008
19009 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19010
19011 AHCI support.
19012
19013 * grub-core/Makefile.core.def (ata_pthru): Removed.
19014 (ahci): New module.
19015 (pata): Likewise.
19016 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19017 on unload.
19018 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19019 readwrite.
19020 (grub_hdparm_do_check_powermode_cmd): Likewise.
19021 (grub_hdparm_do_smart_cmd): Likewise.
19022 (grub_hdparm_set_val_cmd): Likewise.
19023 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19024 * grub-core/disk/ahci.c: New file.
19025 * grub-core/disk/ata.c: Factor out the low-level part into ...
19026 * grub-core/disk/pata.c: ... here.
19027 * grub-core/disk/ata_pthru.c: Contents moved to ...
19028 * grub-core/disk/pata.c: ... here.
19029 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19030 (grub_scsi_iterate): Use grub_scsi_names.
19031 (grub_scsi_open): Likewise.
19032 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19033 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19034 (grub_ata_regs_t): New struct.
19035 (grub_disk_ata_pass_through_parms): Likewise.
19036 (grub_ata_device): Renamed to ...
19037 (grub_ata): ... this.
19038 (grub_ata_dev): New struct.
19039 Removed all low-level inline functions.
19040 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19041 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19042 iterate hooks and open. All users updated.
19043 * util/grub-install.in: Handle AHCI disk module.
19044
19045 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19046
19047 Add support for DRI and RSTn markers in JPEG files.
19048
19049 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19050 (JPEG_MARKER_RST0): Likewise.
19051 (JPEG_MARKER_RST1): Likewise.
19052 (JPEG_MARKER_RST2): Likewise.
19053 (JPEG_MARKER_RST3): Likewise.
19054 (JPEG_MARKER_RST4): Likewise.
19055 (JPEG_MARKER_RST5): Likewise.
19056 (JPEG_MARKER_RST6): Likewise.
19057 (JPEG_MARKER_RST7): Likewise.
19058 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19059 (grub_jpeg_decode_dri): New function.
19060 (grub_jpeg_decode_sos): Move image data related part into
19061 grub_jpeg_decode_data function.
19062 (grub_jpeg_decode_data): New function.
19063 (grub_jpeg_reset): New function.
19064 (grub_jpeg_decode_jpeg): Handle new markers.
19065
19066 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19067
19068 * util/ieee1275/ofpath.c (check_sas): Close fd.
19069 (main): Free of_path.
19070 Reported by: David Volgyes <dvolgyes>.
19071
19072 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19073
19074 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19075 Reported by: David Volgyes <dvolgyes>.
19076
19077 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19080 file after stat.
19081 Reported by: David Volgyes <dvolgyes>.
19082
19083 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19084
19085 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19086
19087 Reported by: David Volgyes <dvolgyes>.
19088
19089 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19090
19091 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19092 Prevent memory leak.
19093
19094 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19095
19096 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19097 (main): Close file.
19098 Reported by: David Volgyes <dvolgyes>.
19099
19100 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19101
19102 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19103 to continue if allocation is failed.
19104
19105 Reported by: David Volgyes <dvolgyes>.
19106
19107 2011-06-23 David Volgyes <dvolgyes>
19108
19109 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19110 dereference.
19111
19112 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19113
19114 Fix spurious warning.
19115
19116 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19117 (acorn_partition_map_find): Use .bin member.
19118
19119 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19120
19121 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19122 /dev/root as a valid device.
19123
19124 2011-06-23 Jim Meyering <meyering@redhat.com>
19125
19126 Avoid NULL deref in grub_device_open.
19127
19128 * grub-core/kern/device.c (grub_device_open): Don't dereference
19129 a NULL pointer upon failed grub_env_get.
19130
19131 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19132
19133 Support non-512B sectors and agglomerate reads.
19134
19135 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19136 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19137 (disk_io_guid): Removed.
19138 (make_devices): Locate solely by BlockIO.
19139 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19140 (grub_efidisk_read): Use read_blocks.
19141 (grub_efidisk_write): Use write_blocks.
19142 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19143 log_sector_size.
19144 (get_safe_sectors): Handle non-512B sectors.
19145 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19146 sectors.
19147 (grub_biosdisk_write): Handle non-512B sectors.
19148 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19149 (grub_scsi_read): Remove special non-512B block handling (now handled
19150 one level up).
19151 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19152 and do sanity checks.
19153 (grub_disk_adjust_range): Handle non-512B sectors.
19154 (transform_sector): New function.
19155 (grub_disk_read_small): Likewise.
19156 (grub_disk_read): Rewritten.
19157 (grub_disk_write): Handle non-512B sectors.
19158 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19159 log_sector_size.
19160 (open_device): Use log_sector_size.
19161 (grub_util_biosdisk_read): Likewise.
19162 (grub_util_biosdisk_write): Likewise.
19163 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19164 non-512B sectors.
19165 (pc_partition_map_embed): Likewise.
19166 * include/grub/disk.h (grub_disk): New field log_sector_size.
19167 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19168 (GRUB_DISK_CACHE_BITS): Increased to 6.
19169 * util/grub-fstest.c (fstest): New command testload.
19170 (argp_parser): Likewise.
19171
19172 2011-06-16 Robert Millan <rmh@gnu.org>
19173
19174 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19175 `ata' driver on kernel of FreeBSD 9.
19176
19177 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19178 (get_ataraid_disk_name): New functions.
19179 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19180 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19181 get_ataraid_disk_name() and get_ada_disk_name().
19182
19183 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19184
19185 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19186 input format.
19187
19188 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19189
19190 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19191 `ftp.gnu.org' for `alpha.gnu.org'.
19192
19193 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19194
19195 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19196 partitions under /dev/disk/by-id/.
19197
19198 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19199
19200 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19201 after ten consecutive open failures. Scanning all the way up to
19202 10000 is excessive and can cause serious performance problems in
19203 some configurations.
19204 Fixes Ubuntu bug #787461.
19205
19206 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19207
19208 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19209 opening new one.
19210
19211 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19212 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19213
19214 Don't stat devices unless we have to.
19215
19216 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19217 dir == /dev/mapper.
19218 (grub_guess_root_device): Use already known os_dev if possible.
19219 * grub-core/kern/emu/hostdisk.c
19220 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19221 if device is known to be a dm one.
19222
19223 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19224
19225 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19226 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19227 Reported by: Pawel Tecza.
19228
19229 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19230
19231 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19232 (lsefisystab): Likewise.
19233 (lssal): Likewise.
19234 (lsefimmap): Likewise.
19235 (hdparm): Enable on qemu-mips.
19236 (setjmp): Add ia64 nodist.
19237 (serial): Simplify tags.
19238
19239 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19240
19241 * Makefile.util.def (grub-ofpathname): Install manual page.
19242
19243 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19244
19245 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19246
19247 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19248
19249 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19250
19251 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19252
19253 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19254 into dprintf.
19255
19256 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19257
19258 Use full 64-bit division.
19259
19260 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19261 (grub_divmod64): ... this.
19262 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19263 version.
19264
19265 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19266
19267 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19268 `source'.
19269
19270 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19271
19272 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19273 to avoid accidents when debugging with 'sh -x'.
19274 * grub-core/gensyminfo.sh.in: Likewise.
19275 * tests/example_scripted_test.in: Likewise.
19276 * tests/grub_cmd_regexp.in: Likewise.
19277 * tests/grub_script_blanklines.in: Likewise.
19278 * tests/grub_script_dollar.in: Likewise.
19279 * tests/grub_script_expansion.in: Likewise.
19280 * tests/grub_script_final_semicolon.in: Likewise.
19281 * tests/partmap_test.in: Likewise.
19282 * tests/util/grub-shell-tester.in: Likewise.
19283 * tests/util/grub-shell.in: Likewise.
19284
19285 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19286
19287 Move gfxmenu color handling to video, so that gfxterm can use it
19288 too.
19289
19290 * grub-core/gfxmenu/named_colors.c: Move to ...
19291 * grub-core/video/colors.c: ... here. Rename
19292 grub_gui_get_named_color to grub_video_get_named_color.
19293 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19294 * grub-core/video/colors.c (my_isxdigit): ... here.
19295 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19296 Move to ...
19297 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19298 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19299 to ...
19300 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19301
19302 * include/grub/gui.h (grub_gui_color_t): Move to ...
19303 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19304 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19305 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19306 * include/grub/gui.h (grub_gui_map_color): Move to ...
19307 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19308 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19309 to ...
19310 * include/grub/video.h (grub_video_get_named_color): ... here.
19311 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19312 * include/grub/video.h (grub_video_parse_color): ... here.
19313
19314 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19315 video/colors.c.
19316 (gfxmenu): Remove gfxmenu/named_colors.c.
19317 (video) [videomodules]: Add video/colors.c.
19318
19319 Add a background_color command.
19320
19321 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19322 function.
19323 (GRUB_MOD_INIT): Register background_color command.
19324 (GRUB_MOD_FINI): Unregister background_color command.
19325 (redraw_screen_rect): Allow blend/replace of text layer to be
19326 controlled independently from whether there is a background bitmap.
19327 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19328 changing bitmap.
19329
19330 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19331
19332 Patch BPB in ntldr and chainloader --bpb.
19333
19334 * grub-core/fs/fat.c: Include grub/fat.h.
19335 (grub_fat_bpb): Moved to ...
19336 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19337 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19338 grub/ntfs.h.
19339 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19340 Moved from here...
19341 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19342 here.
19343 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19344 New function.
19345 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19346 (GRUB_MOD_INIT): Show --bpb.
19347 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19348 * grub-core/normal/main.c (features): New variable.
19349 (GRUB_MOD_INIT): Set feature_* variables.
19350 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19351 proto.
19352 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19353
19354 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19357 for cleanness.
19358
19359 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19360
19361 FreeDOS direct loading support.
19362
19363 * docs/grub.texi (Supported OS): Add FreeDOS.
19364 * grub-core/Makefile.core.def (freedos): New module.
19365 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19366 variable.
19367 (grub_relocator16_boot): Handle %ebx.
19368 * grub-core/lib/i386/relocator16.S: Likewise.
19369 * grub-core/loader/i386/pc/freedos.c: New file.
19370
19371 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19372
19373 Long Linux command line support.
19374
19375 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19376 (maximal_cmdline_size): New variable.
19377 (allocate_pages): Use maximal_cmdline_size.
19378 (grub_cmd_linux): Set and use maximal_cmdline_size.
19379 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19380 (allocate_pages): Use maximal_cmdline_size.
19381 (grub_cmd_linux): Set and use maximal_cmdline_size.
19382 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19383 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19384 and cmdline_size.
19385
19386 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19387 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19388
19389 Improve devmapper support
19390
19391 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19392 (grub_util_is_lvm): New function.
19393 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19394 than lvm if not dmraid.
19395 Handle mapped md nodes.
19396 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19397 (grub_util_device_is_mapped): ... this. Make always available. All users
19398 updated.
19399 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19400 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19401 dmraid nodes.
19402 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19403
19404 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19405
19406 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19407
19408 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19409 * grub-core/modinfo.sh.in: New file.
19410 * grub-core/Makefile.core.def (modinfo.sh): New script.
19411 * util/grub-mknetdir.in: Use modinfo.sh.
19412 * util/grub-mkrescue.in: Likewise.
19413
19414 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19415
19416 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19417 Fix potential usage of Elf32 instead of Elf64 when compiling on
19418 32-bit architecture. Add endianness macros while on it.
19419
19420 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19421
19422 Use mipsel- rather than mips- in directories involving mipsel ports to
19423 allow both endiannesses coexist.
19424
19425 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19426 mips. All conditions adjusted.
19427 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19428 variable.
19429 * util/grub-install.in: Adjust conditions to take renaming into account.
19430 * util/grub-mkimage.c (image_targets): Likewise. New target
19431 mips-qemu_mips-elf for bigendian mips.
19432
19433 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19434
19435 Avoid unnecessary copying on MIPS.
19436
19437 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19438 early if src == dest.
19439 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19440 compression is none.
19441
19442 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19443
19444 Reduce memory footprint on SGI by putting modules before the kernel
19445 as opposed to after.
19446
19447 * grub-core/Makefile.core.def (kernel): Increase linking address.
19448 (none_decompress): Likewise.
19449 (xz_decompress): Likewise.
19450 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19451 address.
19452 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19453 layout change.
19454 (grub_arch_modules_addr): New function.
19455 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19456 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19457 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19458 here.
19459 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19460 (grub_total_modules_size): ... this. Make global.
19461 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19462 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19463 New definition.
19464 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19465 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19466 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19467 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19468 * util/grub-mkimage.c (image_target_desc): New flag
19469 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19470 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19471 (generate_image): Handle images with modules before kernel.
19472
19473 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19474
19475 Prevent potential loss of memory map by overwrite on qemu-mips.
19476
19477 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19478 Save ram size in $s4.
19479 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19480 All users changed to grub_arch_memsize.
19481 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19482 Loongson.
19483 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19484 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19485 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19486 external variable.
19487
19488 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19489
19490 * .bzrignore: Remove grub-dumpbios.
19491
19492 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19493
19494 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19495 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19496 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19497 existing options which append).
19498 * docs/grub.texi (Simple configuration): Document new options.
19499 Reported by: Ian Jackson. Fixes Debian bug #617538.
19500
19501 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19502
19503 * util/grub-fstest.c (cmd_cat): New function.
19504 (fstest): Handle CMD_CAT.
19505 (options): Add cat.
19506 (argp_parser): Handle cat.
19507
19508 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19509
19510 * Makefile.util.def (grub-bin2h): Don't install.
19511 * docs/man/grub-bin2h.h2m: Remove.
19512
19513 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19514
19515 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19516 place.
19517
19518 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19519
19520 Reenable qemu-mips port.
19521
19522 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19523 Fix small arc bug while on it.
19524 * gentpl.py: Handle qemu_mips.
19525 * grub-core/Makefile.am: Likewise.
19526 * grub-core/Makefile.core.def: Likewise.
19527 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19528 inappropriate includes.
19529 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19530 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19531 * grub-core/kern/main.c (grub_modules_get_end)
19532 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19533 * grub-core/kern/mips/qemu-mips: Moved to ..
19534 * grub-core/kern/mips/qemu_mips: ... this.
19535 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19536 (grub_machine_init): Call terminfo_init and serial_init.
19537 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19538 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19539 New variable.
19540 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19541 parameter passing.
19542 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19543 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19544 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19545 * include/grub/mips/qemu_mips/cmos.h: New file.
19546 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19547 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19548 Removed.
19549 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19550 Use correct mips-style address.
19551 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19552 (GRUB_TICKS_PER_SECOND): Removed.
19553 (grub_get_rtc): Likewise.
19554 (grub_cpu_idle): Likewise.
19555 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19556 New definition.
19557 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19558 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19559 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19560 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19561 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19562 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19563 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19564 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19565
19566 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19567
19568 SGI ARCS port.
19569
19570 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19571 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19572 platforms.
19573 * configure.ac: New target mips-arc.
19574 * gentpl.py: Likewise.
19575 * grub-core/Makefile.am: Likewise.
19576 * grub-core/Makefile.core.def: Likewise.
19577 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19578 (none_decompress): Likewise.
19579 (lsdev): New module.
19580 (datetime): Use lib/arc/datetime.c on ARC.
19581 (part_dvh): New module.
19582 * grub-core/commands/arc/lsdev.c: New file.
19583 * grub-core/disk/arc/arcdisk.c: Likewise.
19584 * grub-core/kern/mips/arc/init.c: Likewise.
19585 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19586 aligned addresses.
19587 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19588 support.
19589 (grub_arch_dl_relocate_symbols): Likewise.
19590 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19591 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19592 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19593 platforms.
19594 * grub-core/lib/arc/datetime.c: New file.
19595 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19596 pci.h on non-loongson.
19597 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19598 (grub_linux_boot): Set unused registers to 0.
19599 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19600 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19601 * grub-core/mmap/mips/uppermem.c: ...here.
19602 * grub-core/partmap/dvh.c: New file.
19603 * grub-core/term/arc/console.c: Likewise.
19604 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19605 (grub_terminfo_set_current): Add terminal "arc".
19606 (grub_terminfo_readkey): Support ARC sequences.
19607 * include/grub/arc/arc.h: New file.
19608 * include/grub/arc/console.h: Likewise.
19609 * include/grub/disk.h (grub_disk_dev_id): Add
19610 GRUB_DISK_DEVICE_ARCDISK_ID.
19611 * include/grub/mips/arc/kernel.h: New file.
19612 * include/grub/mips/arc/memory.h: Likewise.
19613 * include/grub/mips/arc/time.h: Likewise.
19614 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19615 * include/grub/mips/kernel.h (grub_halt): ... here.
19616 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19617 here...
19618 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19619 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19620 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19621 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19622 proto.
19623 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19624 from here ...
19625 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19626 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19627 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19628 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19629 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19630 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19631 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19632 (grub_phys_addr_t): Moved from here ...
19633 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19634 (grub_vtop): Moved from here ...
19635 * include/grub/mips/memory.h (grub_vtop): ... here.
19636 (grub_map_memory): Moved from here ...
19637 * include/grub/mips/memory.h (grub_map_memory): ... here.
19638 (grub_unmap_memory): Moved from here ...
19639 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19640 (grub_machine_mmap_iterate): Moved from here ...
19641 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19642 (grub_mmap_get_lower): Moved from here ...
19643 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19644 (grub_mmap_get_upper): Moved from here ...
19645 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19646 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19647 here ...
19648 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19649 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19650 here ...
19651 * include/grub/mips/time.h (grub_get_rtc): ... here.
19652 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19653 here ...
19654 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19655 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19656 here ...
19657 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19658 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19659 definition.
19660 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19661 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19662 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19663 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19664 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19665 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19666 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19667 (GRUB_MACHINE_LINK_ADDR): Likewise.
19668 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19669 to 6.
19670 * util/grub-install.in: Run dvhtool on ARC.
19671 * util/grub-mkimage.c (image_targets): Add mips-arc.
19672 (generate_image): Handle ECOFF output for mips-arc.
19673
19674 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19675
19676 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19677 blocks.
19678
19679 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19680
19681 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19682 after enabling port.
19683
19684 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19685
19686 Skip incorrect USB devices.
19687
19688 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19689 configcnt == 0.
19690 * include/grub/usb.h (grub_usb_err_t): New enum value
19691 GRUB_USB_ERR_BADDEVICE.
19692
19693 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19694
19695 Fuloong video init support.
19696
19697 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19698 well.
19699 (grub_vga_read_arx): New function.
19700 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19701 definition.
19702 (framebuffer): New members io, mmioptr and mmiobase.
19703 (read_sis_cmd): New function.
19704 (write_sis_cmd): Likewise.
19705 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19706 rather than 640x400.
19707 * grub-core/video/sis315_init.c: New file.
19708
19709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19710
19711 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19712 non-loongson.
19713 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19714 to grub_dl_register_symbol.
19715
19716 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19717
19718 Fix compilation errors.
19719
19720 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19721 potentially unused.
19722 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19723 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19724 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19725 to loongson machines.
19726
19727 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19728
19729 Several FS mtime support.
19730
19731 * grub-core/fs/affs.c (grub_affs_time): New struct.
19732 (grub_affs_file): New field mtime.
19733 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19734 type. Removed 'size'. New field 'di'. All users updated.
19735 (grub_affs_mount): Simplify checsum checking.
19736 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19737 (grub_affs_dir): Handle mtime.
19738 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19739 (grub_cpio_dir): Likewise.
19740 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19741 (grub_hfs_filerec): New field mtime.
19742 (grub_hfs_dir): Handle mtime.
19743 (grub_hfs_mtime): New function.
19744 (grub_hfs_fs): Register grub_hfs_mtime.
19745 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19746 (grub_iso9660_dir): New field mtime.
19747 (grub_fshelp_node): New field dirent.
19748 (iso9660_to_unixtime): New function.
19749 (iso9660_to_unixtime2): Likewise.
19750 (grub_iso9660_read_symlink): Use node->dirent.
19751 (grub_iso9660_iterate_dir): Likewise.
19752 (grub_iso9660_dir): Set mtime.
19753 (grub_iso9660_mtime): New function.
19754 (grub_iso9660_fs): Register grub_iso9660_mtime.
19755 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19756 (grub_jfs_inode): New fields atime, ctime and mtime.
19757 (grub_jfs_dir): Set mtime.
19758 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19759 * grub-core/fs/ntfs.c (list_file): Set mtime.
19760 (grub_ntfs_dir): Likewise.
19761 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19762 (grub_reiserfs_iterate_dir): Set mtime.
19763 (grub_reiserfs_dir): Likewise.
19764 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19765 (grub_fshelp_node): Likewise.
19766 (grub_sfs_iterate_dir): Set mtime.
19767 (grub_sfs_dir): Likewise.
19768 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19769 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19770 (grub_xfs_inode): New fields atime, mtime, ctime.
19771 (grub_xfs_dir): Set mtime.
19772 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19773 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19774 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19775
19776 Support UDF symlinks.
19777
19778 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19779 (grub_ufs_read_symlink): New function. All users updated.
19780
19781 Check amiga partmap checksum.
19782
19783 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19784 (grub_amiga_partition): Likewise.
19785 (amiga_partition_map_checksum): New function.
19786 (amiga_partition_map_iterate): Check checksum.
19787
19788 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19789
19790 ROMFS support.
19791
19792 * Makefile.util.def (libgrubmods.a): Add romfs.
19793 * grub-core/Makefile.core.def (romfs): New module.
19794 * grub-core/fs/romfs.c: New file.
19795
19796 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19797
19798 Squashfs v4 support.
19799
19800 * Makefile.util.def (libgrubmods.a): Add squash4.
19801 * grub-core/Makefile.core.def (squash4): New module.
19802 * grub-core/fs/squash4.c: New file.
19803 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19804 disk_input_start, disk_input.
19805 (get_byte): Handle disk_input.
19806 (grub_zlib_disk_read): New function.
19807 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19808
19809 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19810 2011-05-15 Feiran Zheng <famcool@gmail.com>
19811
19812 * Makefile.util.def (libgrubmods.a): Add minix3.
19813 * grub-core/Makefile.core.def (minix3): New module.
19814 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19815 (GRUB_MINIX_BSIZE): Removed.
19816 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19817 (grub_minix_ino_t): New type.
19818 (grub_minix_le_to_cpu_ino): New macro.
19819 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19820 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19821 (grub_minix_data): New field block_size.
19822 (grub_minix_read_file): Handle 64-bit correctly.
19823 * grub-core/fs/minix3.c: New file.
19824
19825 2011-05-15 Tristan Gingold <gingold@free.fr>
19826 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19827 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 IA64 support.
19830
19831 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19832 * configure.ac: Add ia64-efi target.
19833 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19834 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19835 * gentpl.py: Add ia64_efi platform.
19836 Rename x86_efi to efi and Add ia64-efi. All users updated.
19837 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19838 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19839 Remove kern/generic/rtc_get_time_ms.c on EFI.
19840 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19841 kern/ia64/dl_helper.c on ia64-efi.
19842 Add kern/emu/cache.c on emu.
19843 (linux): Use on loader/ia64/efi/linux.c on ia64.
19844 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19845 whether symbol is a function.
19846 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19847 (grub_symbol): New field 'isfunc'.
19848 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19849 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19850 (grub_dl_load_segments): Place all sections into the same region.
19851 [__ia64__]: Create trampolines and got.
19852 [GRUB_MACHINE_EMU]: Call mprotect.
19853 (grub_dl_resolve_symbols): Resolve symbol type as well.
19854 [__ia64__]: Create function descriptors.
19855 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19856 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19857 (grub_get_rtc): New function.
19858 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19859 * grub-core/kern/emu/cache.S: Renamed to ...
19860 * grub-core/kern/emu/cache_s.S: ... this.
19861 [__ia64__]: Add a nop.
19862 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19863 [__ia64__]: New function.
19864 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19865 * grub-core/kern/ia64/dl.c: New file.
19866 * grub-core/kern/ia64/dl_helper.c: Likewise.
19867 * grub-core/kern/ia64/efi/init.c: New file.
19868 * grub-core/kern/ia64/efi/startup.S: Likewise.
19869 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19870 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19871 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19872 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19873 * grub-core/loader/ia64/efi/linux.c: New file.
19874 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19875 (GRUB_MOD_DEP): Likewise.
19876 (grub_dl) [__ia64__]: New fields got and tramp.
19877 (grub_dl): New field 'base'.
19878 (grub_dl_register_symbol): New argument isfunc. All users updated.
19879 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19880 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19881 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19882 (grub_ia64_dl_get_tramp_got_size): New proto.
19883 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19884 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19885 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19886 * include/grub/efi/api.h: Skip call wrappers on ia64.
19887 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19888 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19889 * include/grub/elf.h (ELF_ST_INFO): New definition.
19890 * include/grub/ia64/efi/kernel.h: New file.
19891 * include/grub/ia64/efi/memory.h: Likewise.
19892 * include/grub/ia64/efi/time.h: Likewise.
19893 * include/grub/ia64/kernel.h: Likewise.
19894 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19895 * include/grub/ia64/time.h: New file.
19896 * include/grub/ia64/types.h: Likewise.
19897 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19898 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19899 New protos.
19900 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19901 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19902 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19903 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19904 All users updated.
19905 (EFI64_HEADER_SIZE): New definition. All users updated.
19906 (image_targets): Add ia64-efi.
19907 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19908 jumpers_addr. All users updated.
19909 Create function descriptors.
19910 (count_funcs): New function.
19911 (unaligned_uint32): New struct.
19912 (MASK20): New definition.
19913 (MASK19): Likewise.
19914 (MASKF21): Likewise.
19915 (add_value_to_slot_20b): New function.
19916 (add_value_to_slot_21_real): Likewise.
19917 (add_value_to_slot_21): Likewise.
19918 (ia64_kernel_trampoline): New struct.
19919 (nopm): New variable.
19920 (jump): Likewise.
19921 (make_trampoline): New function.
19922 (relocate_addresses): Handle ia64.
19923 (make_reloc_section): Likewise.
19924 (load_image): Likewise.
19925
19926 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19927
19928 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19929 warning. Move variables before code while on it.
19930
19931 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19932
19933 Fuloong support.
19934
19935 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19936 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19937 * grub-core/boot/mips/loongson/fuloong.S: New file.
19938 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19939 Explicitly init CS5536.
19940 [FULOONG]: Don't use serial until CS5536 is available.
19941 Set GPIO based on dumps.
19942 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19943 [FULOONG]: Handle GPIO and memory controller differences.
19944 Parse machine type in $a2.
19945 * grub-core/boot/mips/startup_raw.S: Determine and save the
19946 architecture.
19947 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19948 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19949 init on architecture type.
19950 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19951 SIS315E. Don't init at_keyboard on fuloong.
19952 (grub_halt): Support Fuloong.
19953 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19954 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19955 (loongson_machtypes): New array.
19956 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19957 type.
19958 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19959 config. All users updated. Handle CS5536 serial.
19960 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19961 default port on machine type. Register serial as inactive.
19962 * grub-core/video/sis315pro.c: New file.
19963 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
19964 definition.
19965 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
19966 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
19967 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
19968 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
19969 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
19970 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
19971 to ...
19972 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
19973 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
19974 definition.
19975 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
19976 (grub_arch_machine): New extern var.
19977 * include/grub/mips/loongson/serial.h
19978 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
19979 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
19980 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
19981 (GRUB_MACHINE_SERIAL_PORT0): ... this.
19982 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
19983 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
19984 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
19985 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
19986 * include/grub/term.h (grub_term_register_input_inactive): New inline
19987 function.
19988 (grub_term_register_output_inactive): Likewise.
19989 * include/grub/video.h (grub_video_driver_id): New value
19990 GRUB_VIDEO_DRIVER_SIS315PRO.
19991 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
19992 New field "names". All users updated.
19993 New field value IMAGE_FULOONG_FLASH.
19994 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
19995
19996 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
19997
19998 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
19999 and add some clarification.
20000
20001 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20002
20003 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20004 platforms if kernel is compressed.
20005
20006 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20007
20008 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20009 unused modules since currently referrence counter isn't reliable and
20010 there isn't much memory to recover there anyway.
20011
20012 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20013
20014 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20015 rather than resetting it to allow modules to reference themselves
20016 in init.
20017
20018 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20019
20020 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20021 counter on dependencies since grub_dl_unref already handles this.
20022
20023 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20024
20025 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20026 on error if not already done.
20027
20028 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20029
20030 Fix few potential memory misusage.
20031
20032 * grub-core/font/font.c (load_font_index): Don't free char_index to
20033 avoid double free.
20034 (grub_font_load): Zero-fill font at alloc for safety.
20035 Close file on error.
20036 (free_font): Free bmp_idx.
20037
20038 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20039
20040 * docs/grub.texi (Installation): Fix several outdated claims.
20041
20042 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20043
20044 Handle module_license on windows.
20045
20046 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20047 sections shifted.
20048 (insert_string): Make argument const char * instead of char *.
20049 (write_section_data): Handle long section names.
20050 Handle module_license.
20051
20052 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20053
20054 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20055 handle class-free menuentries.
20056 (grub_normal_add_menu_entry): Add a check to be sure.
20057
20058 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20059
20060 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20061 PgUp and PgDown.
20062
20063 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20064
20065 * configure.ac: Bump version to 1.99.
20066
20067 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20068
20069 Give ATA device a bit more time on first try in order to allow disks
20070 to spin up.
20071
20072 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20073 if dev->present is 1. Reset dev->present on failure.
20074 (grub_ata_device_initialize): Set dev->present to 1.
20075 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20076 (grub_ata_device): New member 'present'.
20077
20078 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20079
20080 * util/grub-mkimage.c (generate_image): Update hash.
20081
20082 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20083
20084 Flush caches on DMA memory.
20085
20086 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20087 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20088 (grub_dma_free): Likewise.
20089 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20090
20091 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20092
20093 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20094 to avoid asm treating ld and sd as macros.
20095
20096 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20097
20098 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20099 decompressor.
20100
20101 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20102
20103 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20104 grub_decompress_core since later would fail if grub_decompress_core
20105 is too far.
20106
20107 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20108
20109 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20110 R_MIPS_JALR since it's used by newer compiler.
20111
20112 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20115
20116 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20117
20118 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20119 file_path to 0 for surety.
20120 (grub_chainloader_boot): Set exit_data to NULL.
20121 Unset the loader once done.
20122 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20123
20124 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20125
20126 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20127 unknown key into a dprintf.
20128
20129 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20130
20131 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20132 on first non-existant partition.
20133
20134 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20135
20136 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20137 openning fails.
20138 Reported by: Mark Korenberg.
20139
20140 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20141
20142 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20143 overflow.
20144
20145 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20146
20147 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20148 before closing to ensure that it will be readable by grub-setup.
20149
20150 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20151
20152 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20153 (devpath_1): Use MAKE_PIWG_PATH.
20154 (devpath_2): Likewise.
20155 (devpath_3): Likewise.
20156 (devpath_4): Likewise.
20157 (devpath_5): Likewise.
20158 (devpath_6): Likewise.
20159
20160 The appleldr.mod was checked that to be binary identical to previous
20161 version.
20162
20163 2011-05-05 Zach <mikezackles>
20164
20165 Support 2010 Macbooks.
20166
20167 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20168 (devs): Add devpath_6.
20169
20170 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20173 /dev/random. /dev/urandom is good enough for our purposes (salting).
20174
20175 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20176
20177 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20178
20179 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20180
20181 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20182 hexadecimal.
20183
20184 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20185
20186 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20187 and not 0 on failure.
20188
20189 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20190
20191 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20192 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20193 disk; otherwise grub_fs_probe will not fall back to the next
20194 filesystem.
20195 (grub_pxefs_open): Likewise, for consistency.
20196 Reported and tested by: Ezekiel Grave.
20197
20198 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20199
20200 * tests/partmap_test.in: Don't hardcode path to parted.
20201 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20202
20203 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20204
20205 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20206 of `ls' to find out which devices are available.
20207
20208 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20209
20210 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20211 than source address for efi mmap buffer.
20212
20213 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20214
20215 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20216 wrong action on non-detecting the magic.
20217
20218 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20219
20220 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20221 already supplied by another part of the module (fixes compilation on
20222 FreeBSD).
20223
20224 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20225
20226 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20227 match the one used by mdadm.
20228
20229 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20230
20231 * po/README: Add instructions for creating po/LINGUAS.
20232
20233 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20234
20235 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20236 #551428.
20237
20238 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20239 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20240 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20241 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20242 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20243 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20244 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20245 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20246 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20247 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20248 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20249 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20250 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20251 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20252 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20253 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20254 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20255 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20256 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20257 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20258 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20259 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20260
20261 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20262
20263 * grub-core/kern/emu/getroot.c
20264 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20265 test that was incorrectly reintroduced in r3214.
20266 Reported by: Ian Dall. Fixes Savannah bug #33133.
20267
20268 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20269
20270 Fix stack pointer handling in 16-bit relocator.
20271
20272 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20273 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20274 Fixes Ubuntu bug #683904.
20275
20276 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20277
20278 * configure.ac: Bump version to 1.99~rc2.
20279
20280 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20281
20282 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20283 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20284 * grub-core/lib/x86_64/setjmp.S: Likewise.
20285 * grub-core/lib/mips/setjmp.S: Likewise.
20286 * grub-core/lib/powerpc/setjmp.S: Likewise.
20287 * grub-core/lib/sparc64/setjmp.S: Likewise.
20288
20289 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20290
20291 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20292 * grub-core/lib/efi/datetime.c: Likewise.
20293
20294 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20295
20296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20297 New function.
20298 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20299 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20300 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20301
20302 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20305 bitmap.
20306 (grub_gfxterm_term_init): Likewise.
20307
20308 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20309
20310 Take into account the decorations the computing menu entry width.
20311
20312 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20313 (grub_gfxmenu_create_box): Register get_border_width.
20314 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20315 if available.
20316 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20317 get_border_width.
20318
20319 2011-04-18 Endres Puschner <code@e7p.de>
20320
20321 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20322 Don't skip first class.
20323
20324 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20327 chunks.
20328 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20329
20330 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20331
20332 Complete 64-bit division support.
20333
20334 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20335 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20336 * include/grub/misc.h (grub_divmod64): Rename to ...
20337 (grub_divmod64_full): ... this.
20338 (grub_divmod64): New inline function.
20339
20340 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20341
20342 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20343
20344 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20345
20346 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20347 performing the necessary test.
20348
20349 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20350
20351 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20352 (kfreebsd.elf): Likewise.
20353 (pc-chainloader.elf): Likewise.
20354 (ntldr.elf): Likewise.
20355
20356 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20357
20358 Identify RAID by its UUID rather than (guessed) name.
20359
20360 * grub-core/disk/raid.c (ascii2hex): New function.
20361 (grub_raid_open): Accept mduuid/%s specification.
20362 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20363 (get_mdadm_uuid): ... this.
20364 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20365
20366 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20367
20368 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20369 to negative size.
20370
20371 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20372
20373 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20374 btrfs subvolume.
20375 * util/grub.d/20_linux_xen.in: Likewise.
20376
20377 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20378
20379 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20380 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20381
20382 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20383 Build a list of relevant visible mounts using the mnt_id and
20384 parent_mnt_id fields, and then scan that list at the end.
20385
20386 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20387
20388 * docs/grub.texi (normal): New section.
20389 (normal_exit): New section.
20390 (Embedded configuration): Add reference to normal.
20391 (GRUB only offers a rescue shell): Likewise.
20392 * docs/grub-dev.texi (Error Handling): Fix typo.
20393
20394 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20395
20396 * NEWS: Drop obsolete entry about probe-only btrfs support.
20397
20398 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20399
20400 * util/import_gcry.py: Fix typo.
20401
20402 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20403
20404 * NEWS: Add btrfs support.
20405
20406 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20407 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20408
20409 BtrFS support. Written by me (Vladimir) with important bugfixes and
20410 even more important testing by Colin.
20411
20412 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20413 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20414 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20415 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20416 mem_input_off and mem_input. All users updated to accept in-RAM input.
20417 (gzio_seek): New function.
20418 (test_zlib_header): Likewise.
20419 (grub_gzio_read): Likewise.
20420 (grub_zlib_decompress): Likewise.
20421 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20422 Accept partial and non-virtual mounts.
20423 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20424 avoid receiving /dev/dm-X as device.
20425 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20426 Handle bind and partial mounts.
20427 * grub-core/lib/crc.c: New file.
20428 * include/grub/deflate.h: Likewise.
20429 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20430 proto.
20431 * include/grub/lib/crc.h: New file.
20432
20433 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20434
20435 Implement automatic module license checking according to new GNU
20436 guidelines.
20437
20438 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20439 (grub_dl_load_core): Use grub_dl_check_license.
20440 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20441 (GRUB_MOD_LICENSE): Likewise.
20442 (GRUB_MOD_DUAL_LICENSE): Likewise.
20443 All modules updated.
20444
20445 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20446
20447 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20448 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20449 loaders.
20450 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20451
20452 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20453
20454 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20455
20456 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20457
20458 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20459 failed.
20460
20461 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20462
20463 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20464 parenthesis in the middle of the filename.
20465
20466 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20467
20468 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20469 rather than trying to put initrd way too high.
20470 Reported by: Ryan Lortie <desrt@desrt.ca>
20471
20472 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20473
20474 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20475 improperly removed string.
20476
20477 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20478
20479 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20480 is_disk.
20481 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20482 (open_device) Likewise.
20483 (grub_util_biosdisk_close): Likewise.
20484 Reported by: Mark Korenberg.
20485
20486 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20487
20488 * util/grub-mkconfig_lib.in: Add missing quotes.
20489
20490 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20491
20492 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20493 is NULL.
20494
20495 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20496
20497 Dynamically count the number of lines for the lower banner.
20498
20499 * grub-core/normal/menu_entry.c (per_term_screen): New member
20500 num_entries.
20501 (print_down): Use num_entries.
20502 (update_screen): Likewise.
20503 (grub_menu_entry_run): Set num_entries.
20504 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20505 num_entries.
20506 (grub_print_message_indented): Move real part to ...
20507 (grub_print_message_indented_real): ... here. Additional argument
20508 dry_run.
20509 (draw_border): Additional argument num_entries.
20510 (print_message): Additional argument dry_run.
20511 (print_entries): Receive menu viewer data.
20512 (grub_menu_init_page): New argment num_entries.
20513 (menu_text_set_chosen_entry): Use num_entries.
20514 (grub_menu_try_text): Likewise.
20515 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20516 All users updated.
20517 (grub_ucs4_count_lines): New function.
20518 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20519 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20520 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20521 (grub_term_border_height): Likewise.
20522 (grub_term_num_entries): Likewise.
20523
20524 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20525
20526 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20527 Remove now unused string.
20528
20529 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20530
20531 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20532 build system.
20533 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20534
20535 (Comment): Fix typo.
20536 (Getting started): General copy-editing.
20537 (Typical Development Experience): Likewise.
20538 (Error Handling): Likewise.
20539 (Video API): Likewise.
20540
20541 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20542
20543 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20544 throughout.
20545
20546 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20547
20548 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20549 directory.
20550
20551 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20552
20553 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20554 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20555 "development".
20556
20557 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20558
20559 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20560 grub_strcpy since the lines aren't necessarily 0-terminated.
20561
20562 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20563
20564 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20565 root on legacy.
20566
20567 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20568
20569 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20570 (GRUB_MOD_INIT): DEVICE isn't optional.
20571
20572 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20573
20574 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20575 word on new line if it's too long anyway. Fixes a hang.
20576
20577 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20578
20579 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20580 const.
20581 * util/grub-setup.c (main): Reuse md device name if available.
20582 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20583 not GRUB name as argument.
20584 Based on patch by: Florian Wagner <fwagner>.
20585
20586 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20587
20588 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20589 Place mbi on low memory for better compatibility.
20590
20591 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20592
20593 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20594
20595 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20596 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20597
20598 * autogen.sh: Ensure that collate and ctype locale is C.
20599 * conf/Makefile.common: Likewise.
20600
20601 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20602
20603 * grub-core/normal/menu.c: Add missing include.
20604
20605 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20606
20607 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20608
20609 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20610
20611 * util/grub-mkconfig.in: Ignore emacsen backup.
20612
20613 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20614
20615 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20616 on open.
20617 (grub_util_biosdisk_close): Likewise.
20618
20619 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20620
20621 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20622 const attribute and use grub_isdigit.
20623
20624 2011-04-06 Andrey <dev_null@ukr.net>
20625
20626 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20627 gcc warning.
20628
20629 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20630
20631 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20632 useful grub_dprintf's.
20633
20634 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20635
20636 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20637
20638 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20639
20640 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20641
20642 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20643
20644 Output errors if theme loading failed.
20645
20646 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20647 grub_gfxterm_fullscreen on error paths to ...
20648 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20649 theme loading error.
20650
20651 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20652
20653 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20654 space for older compilers.
20655 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20656
20657 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20658
20659 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20660 and report them as not RAID members since they are useless for GRUB.
20661 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20662
20663 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20664
20665 Increase LVM implementation robustness in order not to crash on
20666 configurations like pvmove. Previously code assumed that in some places
20667 only lvs or only pvs are used whereas it seems that they are used
20668 interchangeably.
20669
20670 * grub-core/disk/lvm.c (read_node): New function.
20671 (read_lv): Use read_node.
20672 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20673 Match volumes only at the end when all lvs are found. Take both
20674 pvs (first) and lvs (second) into account.
20675 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20676 mirror_* into node_*. All users updated.
20677 (grub_lvm_stripe): Merge this ...
20678 (grub_lvm_mirror): ... and this ...
20679 (grub_lvm_node): ... into this. All users updated.
20680
20681 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20682
20683 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20684 of function to allow further scanning for LVMs.
20685
20686 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20687
20688 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20689 on failed seek as it breaks open fd reusage.
20690
20691 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20692
20693 * util/grub-install.in: Add a recommendation to use --recheck before
20694 reporting bugs.
20695
20696 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20697
20698 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20699 are obtained.
20700
20701 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20702
20703 GRUB developper manual based on existing Internals section and
20704 contributions by the various authors with active copyright assignment.
20705
20706 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20707 * docs/font_char_metrics.png: New file.
20708 * docs/font_char_metrics.txt: Likewise.
20709 * docs/grub-dev.texi: Likewise.
20710 * docs/grub.texi (Internals): Move from here ...
20711 * docs/grub-dev.texi: ... here.
20712
20713 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20714
20715 Store the loopback device as data on loopback grub_disk structures,
20716 rather than the file it points to. This fixes use of freed memory
20717 if an existing loopback device is replaced.
20718
20719 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20720 disk->data, not dev->file.
20721 (grub_loopback_read): Adjust file assignment to match.
20722 Fixes Ubuntu bug #742967.
20723
20724 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20725
20726 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20727 when replacing an existing device.
20728
20729 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20730
20731 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20732 memory corruptions.
20733
20734 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20735 unsigned.
20736 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20737 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20738 (grub_jfs_read_inode): Likewise.
20739 (grub_jfs_opendir): Likewise. Remove now useless casts.
20740 (grub_jfs_getent): Likewise.
20741 Make ino a grub_uint32_t rather than int.
20742 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20743 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20744 division and module with bit operations.
20745 (grub_jfs_find_file): Make ino a grub_uint32_t.
20746 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20747
20748 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20749
20750 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20751 warning. (This was in fact always initialised before use, but GCC
20752 wasn't smart enough to prove that.)
20753 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20754
20755 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20756
20757 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20758 stack alignment.
20759 (efi_wrap_1): Likewise.
20760 (efi_wrap_2): Likewise.
20761 (efi_wrap_3): Likewise.
20762 (efi_wrap_4): Likewise.
20763 (efi_wrap_5): Likewise.
20764 (efi_wrap_6): Likewise.
20765 (efi_wrap_10): Likewise.
20766 Based on information by: Red Hat/Peter Jones.
20767
20768 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20769
20770 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20771 set-but-not-used variable.
20772
20773 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20774
20775 * docs/grub.texi (Simple configuration): Be more explicit about
20776 GRUB_DEFAULT, and add an example.
20777 Reported by: Leslie Rhorer.
20778
20779 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20780
20781 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20782 shell".
20783
20784 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20785
20786 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20787 * util/grub.d/20_linux_xen.in: Likewise.
20788
20789 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20790
20791 * util/grub.d/10_linux.in: Try alternative config filenames where
20792 we parse config file.
20793 * util/grub.d/20_linux_xen.in: Likewise.
20794
20795 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20796
20797 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20798 * util/grub.d/20_linux_xen.in: Likewise.
20799
20800 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20801
20802 * grub-core/disk/raid.c (insert_array): Add few potentially
20803 useful grub_util_info.
20804 (grub_raid_register): Likewise.
20805
20806 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20807
20808 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20809 Preserve partition number in mdadm code path.
20810
20811 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20812
20813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20814 few potentially useful grub_util_info.
20815
20816 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20817
20818 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20819
20820 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20821
20822 * docs/grub.texi (default): Use @example rather than nested
20823 itemized lists to avoid breaking gendocs.
20824
20825 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20826
20827 * docs/grub.texi (Future): Update.
20828
20829 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20830
20831 * docs/grub.texi (Environment): New chapter.
20832 (Changes from GRUB Legacy): Link to "Environment block" section for
20833 details of limitations.
20834 (Simple configuration): Likewise. Link to documentation of gfxmode
20835 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20836 respectively.
20837 (Shell-like scripting): Note that normal variables are stored in the
20838 environment.
20839 (gettext): Link to documentation of lang and locale_dir.
20840 (list_env): New section.
20841 (load_env): New section.
20842 (save_env): New section.
20843
20844 (Reporting bugs): Fix typo.
20845
20846 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20847
20848 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20849 the example.
20850
20851 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20852
20853 * grub-core/term/at_keyboard.c (set_scancodes)
20854 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20855
20856 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20857
20858 * docs/grub.texi (Menu-specific commands): Remove some semantics
20859 that were true in GRUB Legacy but not in GRUB 2.
20860 (submenu): New section.
20861 (false): New section.
20862 (read): New section.
20863 (true): New section.
20864
20865 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20866
20867 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20868
20869 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20870
20871 * docs/grub.texi (Simple configuration): Explain some of the
20872 current limitations of grub-mkconfig.
20873 Reported by: Leslie Rhorer.
20874
20875 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20876
20877 Old macs search for boot.efi rather than for bootia32.efi.
20878
20879 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20880 * util/grub-mkrescue.in: Likewise.
20881 Suggested by: Peter Jones.
20882
20883 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20884
20885 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20886
20887 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20888
20889 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20890 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20891 (grub_lvm_mirror): New struct.
20892 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20893 (grub_lvm_iterate): Iterate only visible volumes.
20894 (grub_lvm_read): Factor out to ..
20895 (read_lv): ... this. Support mirrors.
20896 (grub_lvm_read): New wrapper function.
20897 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20898 stripped or mirrored.
20899
20900 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20903
20904 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20905
20906 * docs/grub.texi (loopback): New section.
20907
20908 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20909
20910 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20911 removed -p option.
20912
20913 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * docs/grub.texi (BIOS installation): New section, partly based on
20916 previous text in other sections.
20917 (Installing GRUB using grub-install): Replace BIOS discussion with a
20918 cross-reference.
20919 (Images): Likewise.
20920
20921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20922
20923 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20924 [HAVE_DIOCGDINFO]: Add safety checks.
20925
20926 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20927
20928 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20929 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20930
20931 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20932
20933 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20934 real_sb->size is zero (e.g. RAID-0), get the disk size from
20935 real_sb->data_size instead.
20936 Fixes Ubuntu bug #743136.
20937
20938 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20939
20940 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20941 printf clauses for printing size and start.
20942
20943 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20944
20945 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20946 Reported and tested by: Timothy Nikkel.
20947
20948 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20949
20950 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20951 (dirty_region_add_real): ... this.
20952 (dirty_region_add): Don't discard margin refresh when performing
20953 scheduled repaint.
20954
20955 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20956
20957 * grub-core/lib/relocator.c (allocate_regstart)
20958 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20959 terminals are capabple of malloc-free operation.
20960 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20961 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20962
20963 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
20964
20965 * util/grub-setup.c: Copy the partition table zone if floppy support
20966 is disabled, even if no partition table is found.
20967
20968 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
20969 during POST if an invalid partition table is contained in the PBR
20970 of the active partition when GRUB is installed to a partition.
20971
20972 2011-03-28 Colin Watson <cjwatson@debian.org>
20973
20974 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
20975 comment.
20976
20977 2011-03-28 Colin Watson <cjwatson@debian.org>
20978
20979 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
20980 to be specific about what kind of RAID device we're scanning for.
20981
20982 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
20983
20984 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
20985 return freed string.
20986
20987 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20988
20989 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
20990
20991 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
20992
20993 Use libgeom on FreeBSD to detect partitions.
20994
20995 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
20996 (grub-mkrelpath): Likewise.
20997 (grub-script-check): Likewise.
20998 (grub-editenv): Likewise.
20999 (grub-mkpasswd-pbkdf2): Likewise.
21000 (grub-fstest): Likewise.
21001 (grub-mkfont): Likewise.
21002 (grub-mkdevicemap): Likewise.
21003 (grub-probe): Likewise.
21004 (grub-setup): Likewise.
21005 (grub-ofpathname): Likewise.
21006 (grub-mklayout): Likewise.
21007 (example_unit_test): Likewise.
21008 (grub-menulst2cfg): Likewise.
21009 * grub-core/Makefile.core.def (grub-emu): Likewise.
21010 (grub-emu-lite): Likewise.
21011 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21012 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21013 define HAVE_DIOCGDINFO.
21014 (follow_geom_up) [FreeBSD]: New function.
21015 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21016 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21017 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21018 unconditionally of HAVE_DIOCGDINFO.
21019
21020 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 Fix FreeBSD compilation problem.
21023
21024 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21025 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21026
21027 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21028
21029 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21030 Switch back to page zero before loading a kernel, since some kernel
21031 drivers expect that.
21032 Thanks to: Felix Kuehling.
21033
21034 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21037 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21038 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21039
21040 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21041
21042 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21043 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21044
21045 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21046
21047 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21048 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21049 malloc is disabled.
21050
21051 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21052
21053 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21054 for modules headers when counting the needed allocation size.
21055
21056 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21057
21058 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21059 if no ASCII character is found to prevent crash.
21060
21061 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21062
21063 * grub-core/video/bitmap.c (match_extension): Ignore case.
21064
21065 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21066
21067 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21068
21069 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21070
21071 * grub-core/script/parser.y: Declare "time" as valid argument.
21072
21073 2011-03-23 Peter Jones <pjones@redhat.com>
21074
21075 Fix incorrect assert failure reporting.
21076
21077 * grub-core/tests/example_functional_test.c (example_test): Add
21078 a failure comment.
21079 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21080 (failure_start): ...this. Check that malloc succeeded.
21081 Don't call xvasprintf. Return failure struct.
21082 (failure_append_vtext): New function.
21083 (failure_append_text): Likewise.
21084 (add_failure): Likewise.
21085 (grub_test_assert_helper): Likewise.
21086 * include/grub/test.h (grub_test_assert_helper): New declaration.
21087 (grub_test_assert): Macro rewritten.
21088
21089 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21090
21091 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21092
21093 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21094
21095 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21096
21097 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21098
21099 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21100 into GRUB-style one.
21101
21102 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21103
21104 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21105 error and not grub_errno.
21106 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21107
21108 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21109
21110 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21111 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21112
21113 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21114
21115 * grub-core/efiemu/i386/pc/cfgtables.c
21116 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21117 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21118 (grub_xnu_unlock): Likewise.
21119 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21120
21121 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21124 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21125 * grub-core/commands/hashsum.c (aliases): Likewise.
21126 * grub-core/commands/setpci.c (pci_registers): Likewise.
21127 * grub-core/disk/usbms.c (attach_hook): Likewise.
21128 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21129 (zio_checksum_table): Likewise.
21130 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21131 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21132 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21133 * grub-core/lib/relocator.c (leftovers): Likewise.
21134 (extra_blocks): Likewise.
21135 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21136 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21137 (modules_last): Likewise.
21138 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21139 (devices): Likewise.
21140 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21141 (modules_last): Likewise.
21142 * grub-core/normal/auth.c (users): Likewise.
21143 * grub-core/normal/context.c (initial_menu): Likewise.
21144 (current_menu): Likewise.
21145 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21146 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21147 (grub_serial_terminfo_input_template): Likewise.
21148 (grub_serial_terminfo_output_template): Likewise.
21149 (grub_serial_terminfo_input): Likewise.
21150 (grub_serial_terminfo_output): Likewise.
21151 (registered): Likewise.
21152 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21153
21154 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21155
21156 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21157 grub_video_mode_type_t.
21158 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21159 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21160 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21161
21162 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21163
21164 * util/grub-install.in: Correct the x86-64 name as x86_64.
21165
21166 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21167
21168 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21169 initial chunk read from the kernel always includes GRUB's multiboot
21170 header, which is now outside the first sector.
21171
21172 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21173
21174 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21175 cached mmap_size, so that this works correctly when called multiple
21176 times.
21177 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21178
21179 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21180
21181 * docs/grub.texi (Simple configuration): Tidy up formatting.
21182
21183 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21184
21185 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21186 Set-but-not-used variable removed.
21187
21188 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 Workaround yet another IEEE1275 bug.
21191
21192 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21193 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21194 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21195 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21196 is set.
21197 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21198 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21199
21200 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21201
21202 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21203 error.
21204
21205 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21206
21207 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21208 empty, since in that case we can only generate either nothing or a
21209 syntactically invalid configuration file.
21210 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21211
21212 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21213
21214 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21215 (Making a GRUB bootable CD-ROM): Likewise.
21216 (Invoking grub-mkrescue): New section.
21217 Reported by: Yann Dirson. Fixes Debian bug #612585.
21218
21219 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21220
21221 * util/grub-install.in: Remove unnecessary brackets from tr
21222 arguments.
21223 * util/grub.d/10_hurd.in: Likewise.
21224 * util/grub.d/10_kfreebsd.in: Likewise.
21225 * util/grub.d/10_linux.in: Likewise.
21226 * util/grub.d/20_linux_xen.in: Likewise.
21227 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21228
21229 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21230
21231 * include/grub/file.h (not_easly_seekable): Rename to ...
21232 (not_easily_seekable): ... this. Update all users.
21233
21234 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21235
21236 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21237 grub-mkrescue.
21238
21239 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21240
21241 * util/grub-mkimage.c (generate_image): Refuse to create the images
21242 bigger than the actual flash (512K) in Loongson machines. 512K is also
21243 the biggest chip supported by them.
21244
21245 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21246
21247 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21248
21249 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21250
21251 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21252 super_offset field.
21253
21254 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21255
21256 * util/grub-install.in: Ignore install device on platforms
21257 where it doesn't make sense. Always use UUIDs except on pc, efi and
21258 sparc64.
21259 Reported by: Daniel Kahn Gillmor.
21260
21261 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21262
21263 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21264
21265 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21266
21267 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21268 (iterate_real): Don't rely on partition being non-NULL.
21269
21270 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21271
21272 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21273 supported platforms. Put a compile time assert for this rather than
21274 generate a warning with 32-bit shift.
21275
21276 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21277
21278 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21279 logical expression more readable.
21280
21281 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21284 even if some elements have a name.
21285 Reported by: Alexander GQ Gerasiov.
21286
21287 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21288
21289 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21290 path unreadable if `grub-probe -t abstraction' fails, for example if
21291 memberlist fails on an LVM volume group.
21292 Reported by: Darius Jahandarie.
21293
21294 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21295
21296 * docs/grub.texi (Simple configuration): Document
21297 GRUB_PRELOAD_MODULES.
21298
21299 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21300
21301 * .bzrignore: Remove nonexistent grub-pbkdf2.
21302
21303 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21304
21305 * configure.ac: Bump version to 1.99~rc1.
21306
21307 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21308
21309 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21310 for safety.
21311
21312 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21313
21314 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21315 module.
21316
21317 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21320
21321 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21322
21323 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21324 diskdevid.
21325
21326 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 Fix compilation on cygwin.
21329
21330 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21331 -R .drectve on cygwin.
21332 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21333 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21334 (COND_CYGWIN): New condition.
21335 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21336 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21337 not @TARGET_OBJ2ELF@.
21338 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21339 type to determine whether aux is to be used.
21340
21341 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21344 realpath'ed device string.
21345 Handle floppy (somewhat).
21346 Issue error in unknown case rather than garbage.
21347 Reported by: Axel Beckert.
21348
21349 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21350
21351 * util/grub.d/00_header.in (load_video): Handle the case when no video
21352 drivers available.
21353 Thanks to: Axel Beckert.
21354
21355 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21356
21357 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21358 variable. Fixes problem on big endian platforms.
21359
21360 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21361
21362 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21363 It doesn't work well there.
21364
21365 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21366
21367 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21368 warning.
21369 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21370 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21371 counter.
21372
21373 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21374
21375 Use alias->path rather than buggy "canon".
21376
21377 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21378 (ofdisk_hash_add): New argument curcan. All users updated.
21379
21380 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21381
21382 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21383
21384 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21385
21386 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21387 loadmask before doing any calculations. Use correct type for offset.
21388 (grub_linux_load64): Likewise.
21389
21390 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21391
21392 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21393 with NULL.
21394 (console_grub_equivalences_unshift): Likewise.
21395 Reported by: Daniel Dehennin.
21396
21397 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21398
21399 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21400 (set_env_limn_ro): Likewise.
21401 (GRUB_MOD_INIT): Likewise.
21402 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21403 ARRAY_SIZE while on it.
21404 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21405 * grub-core/normal/context.c (grub_env_export): Move from here ...
21406 * grub-core/kern/env.c (grub_env_export): ... here.
21407 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21408 prefix.
21409 * grub-core/kern/main.c (grub_main): Export root and prefix.
21410 * include/grub/env.h (grub_env_export): Export.
21411 Reported by: Seth Goldberg.
21412
21413 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21416 Take into account space used by ELF sections and multiboot palette.
21417 Reported by: Grégoire Sutre.
21418
21419 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21420
21421 * BUGS: New file.
21422
21423 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21424
21425 Pass more appropriate video id to Linux.
21426
21427 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21428 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21429 fill have_vga.
21430 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21431 shift params->lfb_size.
21432 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21433
21434 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21435
21436 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21437
21438 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21439
21440 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21441 separator and pass bootpath/devid even if only one of them is available.
21442 Reported by: Seth Goldberg.
21443
21444 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21445
21446 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21447 implementations bug on them.
21448
21449 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21450 memory.
21451 (filter_memory_map): Likewise.
21452
21453 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21454
21455 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21456 Reported by: nebuchadnezzar.
21457
21458 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21459
21460 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21461 Reported by: nebuchadnezzar.
21462
21463 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21464
21465 Submenu default support.
21466
21467 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21468 auto_boot. All users updated.
21469 Declared static.
21470 Handle chosen and default with submenus.
21471 (grub_menu_execute_with_fallback): Declared static.
21472 Don't notify failure if autobooted. Upper level does it.
21473 (menuentry_eq): New function.
21474 (get_entry_number): Use menuentry_eq.
21475 (show_menu): New parameter "autobooted". All users updated.
21476 (grub_show_menu): Likewise.
21477 * include/grub/normal.h (grub_show_menu): Likewise.
21478 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21479 (grub_menu_execute_with_fallback): Likewise.
21480
21481 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21482
21483 * util/grub-mklayout.c (usage): Update help text.
21484
21485 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21486
21487 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21488
21489 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21490
21491 * util/grub-menulst2cfg.c (main): Trim the line.
21492
21493 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21494
21495 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21496 (grub_machine_init): Don't check amount of low memory as reportedly
21497 INT 12h can be broken and if low memory is too low we wouldn't have
21498 gotten into grub_machine_init anyway.
21499
21500 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21501
21502 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21503 (grub_machine_mmap_iterate): Take low memory into account
21504
21505 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21508 badfs.
21509 Reported by: TiCPU.
21510
21511 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21512
21513 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21514 members errors.
21515
21516 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21517
21518 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21519 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21520
21521 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21522
21523 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21524 openbsd and netbsd types being in part_bsd module.
21525
21526 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21529 (_FILE_OFFSET_BITS): Likewise.
21530 Reported by: Seth Goldberg.
21531
21532 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21533
21534 * configure.ac: Check for libdevmapper header.
21535
21536 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21537
21538 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21539 avoid aliasing.
21540 (fzap_lookup): Likewise.
21541 (dnode_get): Likewise.
21542 (make_mdn): Likewise.
21543 (zfs_mount): Likewise.
21544 (fzap_iterate): Use temporary pointer to avoid aliasing.
21545 (grub_zfs_read): Likewise.
21546 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21547 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21548 pointers to avoid aliasing.
21549 (grub_cmd_xnu_kernel64): Likewise.
21550 (grub_xnu_load_driver): Likewise.
21551
21552 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21553
21554 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21555 aliasing warning.
21556 (grub_cmd_terminal_output): Likewise.
21557 Reported and tested by: Grégoire Sutre.
21558
21559 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21560
21561 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21562 warning.
21563 Reported and tested by: Grégoire Sutre.
21564
21565 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21566
21567 * configure.ac: Do CPU substitution even if it's specified explicitly.
21568 Reported and tested by: Alain Greppin.
21569
21570 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21571
21572 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21573 Reported and tested by: Alain Greppin.
21574
21575 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21576
21577 Satisfy some bison versions need for inttypes.h.
21578
21579 * grub-core/lib/posix_wrap/inttypes.h: New file.
21580 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21581 (int16_t): Likewise.
21582 (int32_t): Likewise.
21583 (int64_t): Likewise.
21584 Reported and tested by: Alain Greppin.
21585
21586 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21589 Silence spurious warning.
21590 Reported and tested by: Alain Greppin.
21591
21592 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21593
21594 * docs/grub.texi (Support automatic decompression): Update with xz
21595 decompression support.
21596
21597 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21598
21599 Improve loaders' kernel command line handling.
21600
21601 * grub-core/lib/cmdline.c: New file.
21602 * include/grub/lib/cmdline.h: Likewise.
21603 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21604 grub_create_loader_cmdline to create kernel command line.
21605 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21606 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21607 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21608 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21609 (linux): Add lib/cmdline.c on common.
21610
21611 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21612
21613 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21614 inopos might be unaligned.
21615
21616 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21617
21618 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21619 endian transformations.
21620 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21621 Based on report by: Doug Nazar.
21622
21623 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21624
21625 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21626 array->members[i].start_sector.
21627 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21628
21629 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21632 Reported and tested by: Grégoire Sutre.
21633
21634 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21635
21636 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21637 avoid causing test failures by clearing the screen.
21638
21639 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21640
21641 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21642 Fix prefix check to handle the case where dir ends with a slash
21643 (most significantly, "/" itself).
21644 Reported by: Michael Vogt.
21645
21646 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21647
21648 Run terminfo_cls on initing terminfo output to clear the screen and
21649 move the cursor to (0,0).
21650
21651 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21652 Call grub_terminfo_output_init.
21653 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21654 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21655 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21656
21657 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21658
21659 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21660 only when needed.
21661
21662 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21665 CTRL.
21666
21667 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21668
21669 The E820 type 5 is BADRAM, not EXEC_CODE.
21670
21671 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21672 (GRUB_E820_BADRAM): New define.
21673 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21674 into reserved. Propagate BADRAM.
21675 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21676 (GRUB_E820_BADRAM): New define.
21677
21678 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21679
21680 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21681 Ignore the memory post-4G.
21682 (grub_relocator_firmware_alloc_region): Additional debug statement.
21683
21684 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21687 names.
21688 Reported by: David Pravec.
21689
21690 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21693 BIOSes.
21694
21695 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21696
21697 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21698 Prevent overflow.
21699 (grub_reed_solomon_recover): Likewise.
21700
21701 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21702
21703 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21704
21705 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21706
21707 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21708 variable.
21709
21710 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21711
21712 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21713 descriptions of extract_legacy_entries_source and
21714 extract_legacy_entries_configfile.
21715 Reported by: Seung Soo, Ha.
21716
21717 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21718
21719 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21720 on devices that do not implement function 0.
21721
21722 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21723
21724 * grub-core/fs/hfsplus.c: Make parent unsigned.
21725 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21726 overflows.
21727 (grub_hfsplus_cmp_extkey): Likewise
21728
21729 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21730
21731 * util/grub-install.in: Correctly use bootloader_id and not
21732 GRUB_DISTRIBUTOR on efibootmgr line.
21733
21734 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21735
21736 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21737
21738 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21739
21740 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21741 Xen and reorder menu item wording to make it clearer that this entry
21742 will launch Xen. Print separate messages when loading Xen and
21743 Linux.
21744
21745 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21748 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21749 loop in case of incorrect amiga partmap.
21750
21751 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21752
21753 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21754 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21755 Reported by:EHeM.
21756
21757 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21758
21759 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21760 spurious warning.
21761 Reported by: crocket
21762
21763 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21764
21765 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21766 Preload EFIemu.
21767 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21768
21769 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21770
21771 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21772 is loaded
21773 (grub_cmd_xnu_kextdir): Likewise.
21774 (grub_cmd_xnu_splash): Likewise.
21775
21776 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21777
21778 Avoid using Reed-Solomon with 0 redundancy.
21779
21780 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21781 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21782 or 0 redundancy.
21783 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21784 (grub_reed_solomon_recover): Likewise.
21785
21786 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21787
21788 Don't use disk subsystem in freebsd_boot.
21789
21790 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21791 (freebsd_biosdev): Likewise.
21792 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21793 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21794
21795 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21796
21797 Handling of files of unknown size is currently limited. They can't be
21798 used e.g. for initrd or modules. Moreover gzip handling of not
21799 easily seekable files is buggy. Disable unknown file size for now. May
21800 be inefficient but works.
21801
21802 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21803 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21804
21805 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21806
21807 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21808 floppy probe.
21809
21810 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21811
21812 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21813
21814 2010-12-25 Shea Levy <shlevy>
21815
21816 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21817
21818 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21819
21820 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21821 Windows Server 2008.
21822 Reported by: Devin Giddings.
21823
21824 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21825
21826 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21827 writing an error message because of async power management.
21828 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21829 (grub_reboot): Likewise.
21830
21831 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21832
21833 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21834 keep unit tests from failing when they shouldn't.
21835
21836 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21837
21838 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21839 previous patch increased the size of the RS code by 20 bytes (at
21840 least with gcc-4.4), so increase this by 20 bytes to match.
21841 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21842
21843 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21844
21845 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21846 scratch area. Make sure to initialise chosen in standalone mode as
21847 well as non-standalone.
21848 Reported by: Robert Hooker and Andy Whitcroft.
21849 Tested by: Andy Whitcroft.
21850
21851 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21852
21853 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21854 constructing a new unescaped string and passing it to grub_xputs in
21855 one go, rather than passing characters to grub_printf one at a time.
21856
21857 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21858
21859 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21860 initialising utf16.
21861
21862 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21863
21864 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21865 comment. Add an extra layer of quotation, requiring the output of
21866 this function to be used in a printf format string.
21867 (gettext_printf): New function.
21868 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21869 Extract translatable strings from here-documents and use a temporary
21870 variable instead, so that xgettext can find them.
21871 * util/grub.d/10_kfreebsd.in: Likewise.
21872 * util/grub.d/10_linux.in: Likewise.
21873 * util/grub.d/20_linux_xen.in: Likewise.
21874
21875 * po/grub.d.sed: New file.
21876 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21877 arguments. Set c-format flags on all strings extracted from
21878 util/grub.d/ (xgettext refuses to include these itself for strings
21879 it extracted from a shell file, but these really are c-format).
21880
21881 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21882
21883 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21884 Avoid next pointing to nowhere.
21885
21886 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21887
21888 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21889 rather than assuming than rootblock is exactly in the middle.
21890 (grub_affs_label): Likewise.
21891
21892 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21893
21894 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21895 reserved_first_sector to 0.
21896 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21897 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21898 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21899
21900 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21901
21902 Fix handling of UTF-16 UDF labels.
21903
21904 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21905 (read_string): .. here.
21906 (grub_udf_label): Use read_string.
21907
21908 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21909
21910 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21911 editor under argument scope.
21912 Reported by: Jordan Uggla
21913
21914 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21915
21916 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21917
21918 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21919
21920 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21921 line, and other keys scroll an entire page (previous handling was
21922 for \r and \n to scroll a page and other keys to scroll two lines).
21923
21924 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21925
21926 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21927 Set ptrdest to correct get_physical_target_address rather than
21928 incorrect get_virtual_current_address.
21929
21930 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21931
21932 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21933 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21934
21935 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21936
21937 * .bzrignore: Ignore grub-core/rs_decoder.S.
21938
21939 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21942 .mo/.mo.gz opening sequence to ...
21943 (grub_mofile_open_lang): ... here.
21944 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21945 * util/grub.d/00_header.in (grub_lang): Include country part of
21946 locale.
21947 Reported by: Mario Limonciello.
21948
21949 2010-12-09 Robert Millan <rmh@gnu.org>
21950
21951 * NEWS: Document addition of ZFS support.
21952
21953 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21954
21955 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21956 rather than `/ 2', as the latter requires -Wa,--divide which would
21957 require bumping our minimum binutils version.
21958
21959 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21960
21961 * util/grub-script-check.c (main): Print script line number on
21962 error.
21963
21964 2010-12-01 Robert Millan <rmh@gnu.org>
21965
21966 * grub-core/fs/zfs/zfs.c: New file.
21967 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
21968 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
21969 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
21970 * grub-core/fs/zfs/zfsinfo.c: Likewise.
21971
21972 * include/grub/zfs/dmu.h: Likewise.
21973 * include/grub/zfs/dmu_objset.h: Likewise.
21974 * include/grub/zfs/dnode.h: Likewise.
21975 * include/grub/zfs/dsl_dataset.h: Likewise.
21976 * include/grub/zfs/dsl_dir.h: Likewise.
21977 * include/grub/zfs/sa_impl.h: Likewise.
21978 * include/grub/zfs/spa.h: Likewise.
21979 * include/grub/zfs/uberblock_impl.h: Likewise.
21980 * include/grub/zfs/vdev_impl.h: Likewise.
21981 * include/grub/zfs/zap_impl.h: Likewise.
21982 * include/grub/zfs/zap_leaf.h: Likewise.
21983 * include/grub/zfs/zfs.h: Likewise.
21984 * include/grub/zfs/zfs_acl.h: Likewise.
21985 * include/grub/zfs/zfs_znode.h: Likewise.
21986 * include/grub/zfs/zil.h: Likewise.
21987 * include/grub/zfs/zio.h: Likewise.
21988 * include/grub/zfs/zio_checksum.h: Likewise.
21989
21990 * Makefile.util.def: Build ZFS into libgrubmods.
21991 * grub-core/Makefile.core.def: Build zfs.mod.
21992
21993 2010-11-30 Szymon Janc <szymon@janc.net.pl>
21994
21995 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
21996 variable.
21997 * grub-core/commands/wildcard.c (match_files): Likewise.
21998
21999 2010-11-30 Robert Millan <rmh@gnu.org>
22000
22001 * grub-core/loader/i386/bsd.c
22002 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22003 whether kernel is loaded using grub_loader_is_loaded(), rather
22004 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22005 certain error conditions.
22006
22007 2010-11-30 Robert Millan <rmh@gnu.org>
22008
22009 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22010 (grub_cmd_echo): Call grub_refresh() after printing a message.
22011
22012 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22013
22014 Avoid using tricks for initialising endian variables.
22015
22016 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22017 Make const.
22018 (GRUB_MOD_INIT): Don't byte-swap.
22019 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22020 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22021 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22022 (grub_swap_bytes32_compile_time): Likewise.
22023 (grub_cpu_to_le32_compile_time): Likewise.
22024 (grub_cpu_to_le16_compile_time): Likewise.
22025
22026 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22027
22028 * util/grub-setup.c (setup): Stop recommending --force. People who
22029 understand the dangers of blocklists are able to find this option
22030 anyway and the ones who don't shouldn't use it anyway.
22031
22032 2010-11-26 Robert Millan <rmh@gnu.org>
22033
22034 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22035 Update all users.
22036
22037 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22038
22039 Fix LVM-on-RAID probing.
22040
22041 * util/grub-probe.c (probe): Remember which disk was detected as
22042 RAID (perhaps an LVM physical volume). Use that disk's raidname
22043 rather than that of the top-level disk.
22044
22045 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22046
22047 Fix cmdline argument quotes for setparams command of menuentry
22048 definitions.
22049
22050 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22051 quotes for arguments.
22052 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22053 grub_strchrsub function instead.
22054
22055 * include/grub/misc.h (grub_strchrsub): New function.
22056
22057 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22058
22059 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22060 effort by skipping "." and ".." entries up-front.
22061 Suggested by: Michael Lazarev.
22062
22063 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22064
22065 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22066 ldflags to ldadd, to fix link line ordering.
22067 (none_decompress): Likewise.
22068
22069 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22070
22071 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22072 platforms.
22073 (grub-emu-lite): Remove kern/emu/cache.S.
22074
22075 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22076
22077 * util/deviceiter.c (compare_devices): If the by-id link for a
22078 device couldn't be resolved, fall back to sorting by the by-id link
22079 rather than segfaulting.
22080 Reported and tested by: Daniel Mierswa.
22081
22082 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22083
22084 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22085 ldflags, to fix link line ordering.
22086
22087 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22088
22089 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22090 linkers are picky about this.
22091
22092 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22093
22094 * grub-core/Makefile.am (command.lst): Adjust sed expression
22095 ordering so that extended and priority commands aren't treated as
22096 ordinary commands.
22097
22098 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22099
22100 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22101 Remove byte-swapping function calls, which are not valid in
22102 structure initialisers.
22103 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22104 non-const.
22105 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22106 grub_gpt_partition_type_bios_boot.
22107
22108 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22109
22110 Fix test program build on GNU/kFreeBSD.
22111
22112 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22113 $(LIBNVPAIR)' library dependencies.
22114
22115 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22116
22117 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22118
22119 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22120
22121 * util/grub-install.in: Remove excessive quoting that broke
22122 installations to RAID devices.
22123
22124 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22125
22126 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22127 bootloader version instead of 0.
22128
22129 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22130
22131 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22132 warning.
22133
22134 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22135
22136 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22137 retrieve the metadat sector if size isn't known.
22138 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22139
22140 2010-11-18 Robert Millan <rmh@gnu.org>
22141
22142 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22143 with grub_memcmp().
22144
22145 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22146
22147 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22148 arrow.
22149 Reported by: Jordan Uggla.
22150
22151 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22152
22153 Make better UTF compliant.
22154
22155 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22156 sequences as incorrect.
22157 (grub_is_valid_utf8): Likewise.
22158 (grub_utf8_to_ucs4): Likewise.
22159 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22160 (grub_ucs4_to_utf8_alloc): Likewise.
22161 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22162
22163 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22164
22165 Make legacy_source behave like source.
22166
22167 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22168 grub_show_menu.
22169 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22170
22171 2010-11-16 Colin Watson <cjwatson@debian.org>
22172
22173 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22174 (-Wunused implies -Wunused-parameter, but not vice versa).
22175
22176 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22177
22178 * configure.ac: Make error messages less confusing by testing for
22179 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22180 accepted, but produces a diagnostic if something else is wrong).
22181
22182 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22183
22184 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22185 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22186 (now unused).
22187 (grub_keyboard_controller_init)
22188 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22189 read the initial state since controller isn't inited yet.
22190
22191 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22192
22193 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22194 allocate_regbeg may need to create new chunk header.
22195
22196 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22197
22198 Fix quoting in legacy parser.
22199
22200 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22201 single quotes.
22202 (grub_legacy_parse): Likewise.
22203 Reported by: Jordan Uggla.
22204 Tested by: Jordan Uggla.
22205
22206 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22207
22208 Don't add -lgcc on i386 and x86_64.
22209
22210 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22211 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22212 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22213
22214 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22215
22216 * configure.ac: Add -Wno-trampolines when supported.
22217
22218 2010-11-14 Modestas Vainius <modax@debian.org>
22219
22220 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22221 fakeraid.
22222
22223 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22224
22225 Add generic logical block size support for UDF.
22226
22227 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22228 (GRUB_UDF_BLKSZ): Removed.
22229 (struct grub_udf_data): New field "lbshift" to hold the logical block
22230 size of the file system in log2 format. All users updated.
22231 (sblocklist): Change type to unsigned.
22232 (grub_udf_mount): Change type of "sblklist" to unsigned.
22233 Move AVDP search before VRS recognition, because the latter requires
22234 knowledge of the logical block size, which is detected during the
22235 former.
22236 Detect and validate logical block size during AVDP search, adding
22237 support for block sizes 512, 1024 and 4096.
22238 Make VRS recognition independent of block size.
22239
22240 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22241
22242 Properly handle deleted files on UDF.
22243
22244 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22245 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22246 set.
22247
22248 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22249
22250 Support reading files larger than 2 GiB.
22251
22252 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22253 "offset" to grub_off_t.
22254 (grub_udf_read_file): Likewise for parameter "pos".
22255
22256 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22257
22258 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22259 unavailable.
22260 (Simple configuration): Refer to Changes from GRUB Legacy about
22261 save_env availability.
22262
22263 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 * util/grub-install.in: Ignore empty partition table detection
22266 instead of trying to include part_ module.
22267
22268 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22269
22270 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22271 LVM on RAID support.
22272
22273 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22274
22275 Properly define WORDS_BIGENDIAN in wrapped environments.
22276
22277 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22278 definition.
22279 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22280
22281 Reported by: Manoel Rebelo Abranches.
22282 Tested by: Manoel Rebelo Abranches.
22283
22284 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22285
22286 * util/grub-mkconfig.in: Fix quoting.
22287
22288 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22289
22290 Support big ext2 files.
22291
22292 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22293 (grub_ext2_read_block): Support triple indirect blocks.
22294 (grub_ext2_read_file): Use 64-bit types and read size_high.
22295 (grub_ext2_open): Read size_high.
22296 Reported by: Ximin Luo.
22297 Tested by: Manoel Rebelo Abranches.
22298
22299 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22300
22301 * util/grub-install.in: Handle filenames containing spaces.
22302 Reported by: Jordan Uggla.
22303 Tested by: Jordan Uggla.
22304
22305 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22306
22307 * util/grub-mkconfig.in (grub_script_check): New variable.
22308 Use grub_script_check instead of grub-script-check.
22309 Reported by: Barry Jackson.
22310
22311 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22312
22313 * docs/grub.texi (menu): Correct the order.
22314 Reported by: D. Hugh Redelmeier.
22315
22316 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22317
22318 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22319 jump.
22320
22321 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22322
22323 * include/grub/elfload.h (grub_elf32_size): New parameter.
22324 All users updated.
22325 Return maximum segments alignment.
22326 (grub_elf64_size): Likewise.
22327 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22328 Return maximum segments alignment.
22329 (grub_elf64_size): Likewise.
22330 * grub-core/loader/powerpc/ieee1275/linux.c:
22331 (grub_linux_claimmap_iterate): New function. Uses the
22332 "available" property in the "memory" node for memory allocation
22333 for kernel in the PowerPC loader.
22334 (grub_linux_load32): Correctly find linux entry point offset.
22335 (grub_linux_load64): Likewise.
22336
22337 2010-11-07 Robert Millan <rmh@gnu.org>
22338
22339 On mips-yeeloong, build with -march=loongson2f when this flag is
22340 available (GCC >= 4.4).
22341 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22342 `-march=mips3'.
22343 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22344 or otherwise add -march=mips3.
22345
22346 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22347
22348 Suppress shell expansion on echo '*' and echo "*" like cases.
22349 Reported by: Jordan Uggla.
22350
22351 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22352 string arguments before shell expansion.
22353 * tests/grub_cmd_echo.in: New testcases.
22354
22355 2010-11-07 Robert Millan <rmh@gnu.org>
22356
22357 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22358 transition.
22359
22360 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22361
22362 * grub-core/kern/emu/hostdisk.c
22363 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22364
22365 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22366
22367 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22368 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22369 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22370
22371 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22372
22373 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22374
22375 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22376
22377 * util/grub-install.in: Replace useless recomendation to pass
22378 --modules with a recomendation to report a bug.
22379
22380 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 Properly register serial terminfo.
22383 Reported by: Jordan Uggla
22384
22385 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22386 const.
22387 (grub_serial_terminfo_output_template): Likewise.
22388 (grub_cmd_serial): Register "serial" with terminfo.
22389 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22390 grub_serial_terminfo_output.
22391
22392 2010-11-05 Robert Millan <rmh@gnu.org>
22393
22394 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22395 needed).
22396
22397 2010-11-05 Robert Millan <rmh@gnu.org>
22398
22399 On Yeeloong, pass machine type information to Linux.
22400
22401 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22402 (LOONGSON_MACHTYPE): New macro, set to
22403 "machtype=lemote-yeeloong-2f-8.9inches".
22404 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22405 additional argument to Linux.
22406
22407 2010-11-04 Robert Millan <rmh@gnu.org>
22408
22409 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22410 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22411 (its SATA disks are detected as slaveless IDE master drives on
22412 kFreeBSD).
22413 Reported by Carsten Aulbert.
22414
22415 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22416
22417 * util/bin2h.c (main): Fix spelling error in generated output.
22418
22419 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22420
22421 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22422
22423 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22424
22425 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22426 vga= option is supplied.
22427
22428 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22429
22430 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22431 * util/grub.d/10_kfreebsd.in: Likewise.
22432 * util/grub.d/10_linux.in: Likewise.
22433 * util/grub.d/20_linux_xen.in: Likewise.
22434
22435 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22436
22437 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22438 argument as an argument to no-argument option.
22439
22440 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22441
22442 * util/grub.d/10_linux.in: Add missing load_video with explicit
22443 GRUB_GFXPAYLOAD_LINUX.
22444
22445 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22448
22449 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22450
22451 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22452 elements with invlid index.
22453 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22454 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22455 members.
22456 * include/grub/raid.h (grub_raid_member): New struct.
22457 (grub_raid_array): Transform devices and start_sector into usage of
22458 grub_raid_member. All users updated
22459 (allocated_devs): New member.
22460
22461 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22464 is modified
22465
22466 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22467
22468 NetBSD build fix for getline function conflict from gnulib.
22469
22470 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22471 components that depend on gnulib headers.
22472 (libgrubmods.a): Renamed from earlier libgrub.a.
22473 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22474
22475 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22476
22477 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22478 install rather than creating a broken install.
22479
22480 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22481
22482 * util/grub-setup.c (argp): Remove misleading example of installing to
22483 a partition.
22484
22485 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22486
22487 * util/grub-setup.c (setup): Clarify the error message.
22488
22489 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22490
22491 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22492
22493 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22494
22495 * grub-core/kern/emu/misc.c
22496 (grub_make_system_path_relative_to_its_root)
22497 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22498
22499 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22500
22501 * grub-core/kern/emu/misc.c
22502 (grub_make_system_path_relative_to_its_root): Revert r2882.
22503
22504 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22505
22506 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22507 useless field head. All users updated.
22508 (free_subchunk): Correct handling of IN_REGION subchunk.
22509
22510 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22511
22512 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22513 (Supported kernels): Likewise.
22514
22515 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22516
22517 Make mktemp invocations portable.
22518
22519 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22520 exit if mktemp fails.
22521 * tests/grub_script_blockarg.in: Likewise.
22522 * tests/partmap_test.in: Likewise.
22523 * tests/util/grub-shell-tester.in: Likewise.
22524 * tests/util/grub-shell.in: Likewise.
22525 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22526 * Makefile.am: Likewise, and chain shell commands with `&&'
22527 instead of ';'.
22528 * util/grub-mkrescue.in: Use the same explicit template as above, and
22529 exit if mktemp fails.
22530
22531 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22532
22533 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22534 Linux kernel, reported by Dennis Schridde.
22535
22536 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22537
22538 * grub-core/normal/auth.c (grub_auth_check_authentication):
22539 Set-but-not-used variable removed.
22540
22541 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22542
22543 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22544 32-bit linux protocol.
22545
22546 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22549 cursor shape for sanity.
22550
22551 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22552
22553 * docs/grub.texi (Installation): Document buggy BIOS install.
22554
22555 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 * docs/grub.texi (Installation): Indent.
22558
22559 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * util/grub-setup.c (setup): New parameter allow_floppy.
22562 (arguments): New member allow_floppy.
22563 (argp_parser): Handle --allow-floppy.
22564 (main): Pass allow_floppy.
22565 * util/grub-install.in: New option --allow-floppy passed though to
22566 grub-setup.
22567
22568 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22569
22570 * util/grub-install.in: Handle partitionless disks.
22571
22572 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22573
22574 * util/grub-setup.c (setup): Don't clean blocklists before readability
22575 verfification.
22576
22577 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22578
22579 * docs/grub.texi (Installation): Document embedding zone. Remove
22580 obsolete grub-install example.
22581
22582 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22583
22584 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22585 Set-but-not-used variable ifdef'ed.
22586 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22587 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22588 variable removed.
22589 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22590 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22591 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22592 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22593 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22594 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22595 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22596 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22597 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22598 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22599 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22600 Likewise.
22601
22602 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22603
22604 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22605 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22606 enum value.
22607
22608 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22609
22610 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22611 synonym to _S5_. Needed for some DSDTs.
22612
22613 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22614
22615 Userspace ACPI parser debugging.
22616
22617 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22618 headers and add relevant defines. Don't include standard headers.
22619 (main) [GRUB_DSDT_TEST]: New function.
22620 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22621 Don't declare functions.
22622
22623 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22624
22625 Remove dead grub_efi_mm_fini.
22626
22627 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22628 (ALLOCATED_PAGES_SIZE): Likewise.
22629 (MAX_ALLOCATED_PAGES): Likewise.
22630 (allocated_pages): Likewise.
22631 (grub_efi_allocate_pages): Don't record allocated pages.
22632 (grub_efi_free_pages): Likewise.
22633 (grub_efi_mm_init): Likewise.
22634 (grub_efi_mm_fini): Removed.
22635
22636 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22637
22638 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22639 (grub_efi_mm_init): Take into account the memory map size increase.
22640
22641 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22642
22643 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22644 (serial_hw_put): Wait based on real time rather than port reads. Don't
22645 roken ports.
22646 * include/grub/serial.h (grub_serial_port): New field broken.
22647
22648 2010-10-16 Robert Millan <rmh@gnu.org>
22649
22650 * grub-core/kern/emu/misc.c
22651 (grub_make_system_path_relative_to_its_root): Fix premature return
22652 when processing non-root ZFS filesystems.
22653 Reported by Sergio Talens-Oliag.
22654
22655 2010-10-15 Robert Millan <rmh@gnu.org>
22656
22657 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22658 guarantee compressed ones are processed first.
22659
22660 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22661
22662 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22663 grub_efiemu_autocore.
22664
22665 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22666
22667 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22668 rather than 0x1b.
22669 (grub_console_getkey): Use correct jae opcode rather than ja.
22670
22671 2010-10-12 Robert Millan <rmh@gnu.org>
22672
22673 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22674 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22675 variable. All references updated.
22676
22677 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22678
22679 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22680
22681 Correctly distinguish mdraid flavours.
22682
22683 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22684 (insert_array): New argument raid.
22685 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22686 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22687 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22688
22689 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22690
22691 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22692 handling of special keys.
22693
22694 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22695
22696 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22697 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22698
22699 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22700
22701 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22702 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22703 users updated.
22704 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22705 Use right endpoint when querying descriptor.
22706
22707 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22708
22709 Clear out 0x80 color bit on EFI.
22710 Tested by: decoder
22711 Reported by: decoder and meta tech.
22712
22713 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22714 (grub_console_setcolorstate): Clear out 0x80 bit.
22715 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22716 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22717 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22718
22719 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22722 Set to "auto".
22723
22724 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22725
22726 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22727 mo_file after freeing.
22728
22729 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22730
22731 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22732
22733 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22734
22735 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22736 flags.
22737
22738 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22739
22740 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22741 usage.
22742
22743 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22744
22745 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22746
22747 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22748 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22749 and terminfo.h when needed.
22750 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22751 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22752 (terminfo): Enable only on terminfokernel.
22753 (extcmd): Likewise.
22754 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22755 * include/grub/lib/arg.h: Likewise.
22756 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22757 incorrect usage of ->.
22758
22759 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22760
22761 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22762 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22763
22764 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22765
22766 Fix coreboot compilation.
22767
22768 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22769 Take VBE info into account even if only text is supported.
22770 (fill_vbe_info): Take into account the case when only VGA text
22771 is supported.
22772 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22773 on coreboot, multiboot and qemu.
22774
22775 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22776
22777 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22778 debug messages.
22779 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22780
22781 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22782
22783 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22784 parameters.
22785
22786 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22789 if they were BSD-style.
22790
22791 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22792
22793 * grub-core/boot/i386/pc/lnxboot.S: Replace
22794 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22795 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22796
22797 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22798
22799 Write embedding zone using Reed-Solomon.
22800
22801 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22802 * grub-core/Makefile.am (rs_decoder.S): New target.
22803 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22804 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22805 (multiboot): Move to RS part.
22806 (post_reed_solomon): New label.
22807 (grub_boot_drive): Move to non-RS part since it's modified in memory
22808 on boot.
22809 Include rs_decoder.S.
22810 * grub-core/lib/reed_solomon.c: New file.
22811 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22812 New definition.
22813 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22814 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22815 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22816 * include/grub/partition.h (grub_partition_map): Change prototype of
22817 embed to allow returning additional sectors.
22818 * include/grub/reed_solomon.h: New file.
22819 * util/grub-setup.c (setup): Handle Reed-Solomon.
22820
22821 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22822
22823 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22824 i386 and x86-64 definedness tests.
22825
22826 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22827
22828 Fix generation of kernel_syms.lst
22829
22830 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22831 ASM_PREFIX
22832
22833 2010-09-26 Robert Millan <rmh@gnu.org>
22834
22835 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22836
22837 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22838 the pool is an array of devices, iterate through it and return the
22839 first device that passes a stat() test (instead of blindly returning
22840 the first one).
22841
22842 2010-09-26 Robert Millan <rmh@gnu.org>
22843
22844 Build fixes for GNU/kFreeBSD.
22845
22846 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22847 to programs that require ZFS conversion.
22848 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22849 kernels that don't have FLOPPY_MAJOR.
22850
22851 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22852
22853 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22854
22855 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22856
22857 Fix grub-emu build.
22858
22859 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22860 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22861 mdraid09 and mdraid1x.
22862
22863 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22864
22865 Re-enable grub-extras.
22866
22867 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22868 avoid confusing Automake. Run autogen only twice, once for the top
22869 level and once for grub-core. Add Makefile.util.def and
22870 Makefile.core.def from extra modules to the appropriate autogen
22871 invocations. If Makefile.common exists in an extra module, include
22872 it in both Makefile.util.am and grub-core/Makefile.core.am;
22873 similarly, include any Makefile.util.common file in Makefile.util.am
22874 and any Makefile.core.common file in grub-core/Makefile.core.am.
22875 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22876 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22877 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22878 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22879
22880 * gentpl.py (gvar_add): Turn GVARS into a set.
22881 (global_variable_initializers): Sort global variables on output.
22882 (vars_init): New function.
22883 (first_time): Likewise.
22884 (library): Ensure that non-global variable initialisations are
22885 emitted before the first time we emit code for a library block.
22886 Append to variables rather than setting them. Only emit
22887 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22888 each conditional path.
22889 (program): installdir() emits an Autogen macro, so must be passed to
22890 var_add rather than gvar_add.
22891 (data): Likewise.
22892 (script): Likewise.
22893 (rules): New function, centralising handling for different target
22894 types. Set up Guile association lists for first_time and vars_init,
22895 and send most output to a diversion so that variable initialisations
22896 can be emitted first.
22897 (module_rules): Use new rules function.
22898 (kernel_rules): Likewise.
22899 (image_rules): Likewise.
22900 (library_rules): Likewise.
22901 (program_rules): Likewise.
22902 (script_rules): Likewise.
22903 (data_rules): Likewise.
22904
22905 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22906
22907 * .bzrignore: Add contrib and grub-core/contrib. Remove
22908 grub-core/Makefile.gcry.am.
22909
22910 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22911
22912 * grub-core/lib/LzFind.c: Add missing include.
22913 * grub-core/lib/LzmaEnc.c: Likewise.
22914 * grub-core/script/lexer.c: Likewise.
22915 * grub-core/script/yylex.l: Likewise.
22916 * util/grub-macho2img.c: Likewise.
22917 * util/grub-menulst2cfg.c: Likewise.
22918 * util/grub-mklayout.c: Likewise.
22919 * util/grub-mkpasswd-pbkdf2.c
22920 * util/grub-mkrelpath.c: Likewise.
22921 * util/resolve.c: Likewise.
22922
22923 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22924
22925 * Makefile.util.def (example_unit_test): Add
22926 grub-core/gnulib/libgnu.a.
22927
22928 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22929
22930 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22931
22932 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22933
22934 Support xz compression on yeeloong.
22935
22936 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22937 * configure.ac: Check for LZMA.
22938 * grub-core/Makefile.core.def (xz_decompress): New target.
22939 (none_decompress): Likewise.
22940 * grub-core/boot/decompressor/minilib.c: New file.
22941 * grub-core/boot/decompressor/none.c: Likewise.
22942 * grub-core/boot/decompressor/xz.c: Likewise.
22943 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22944 * grub-core/kern/mips/cache_flush.S: Likewise.
22945 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22946 * grub-core/kern/mips/startup.S: Move first stage to ...
22947 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22948 nomacro.
22949 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22950 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22951 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22952 Allocate statically.
22953 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22954 Allocate statically or use scratch. Don't check CRC32.
22955 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22956 Allocate statically. Don't check CRC32.
22957 * include/grub/decompressor.h: New file.
22958 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22959 Removed.
22960 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22961 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22962 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22963 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
22964 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
22965 * util/grub-mkimage.c (grub_compression_t): New type.
22966 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
22967 (image_target_desc): New field default_compression.
22968 (image_targets): Adjust yeeloong targets.
22969 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
22970 (compress_kernel): New parameter comp.
22971 (generate_image): Likewise. Handle new compression case.
22972 (options): New option --compression
22973 (help): Likewise.
22974 (main): Handle new option.
22975
22976 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
22977
22978 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
22979
22980 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
22981
22982 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22983 typo in __i386__ conditional.
22984
22985 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22986
22987 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
22988 include.
22989
22990 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
22991
22992 Implement EFI and ACPI multiboot2 extensions.
22993
22994 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
22995 new tags as supported.
22996 (acpiv2_size): New function.
22997 (grub_multiboot_get_mbi_size): Take new tags into account.
22998 (grub_multiboot_make_mbi): Add new tags.
22999 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23000
23001 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23002
23003 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23004 Added missing configuration of USB device.
23005
23006 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23007
23008 * grub-core/normal/menu_entry.c (run): Make sure we always return
23009 a value.
23010
23011 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23012
23013 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23014 NumberOfPages is UINT64 according to the UEFI specification, not
23015 UINTN. Fix printf format.
23016
23017 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23018
23019 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23020 `err' to grub_usb_err_t.
23021 Reported and tested by: KESHAV P.R.
23022
23023 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23024
23025 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23026 tpart non-const, so that we can assign to it. (Since this is a
23027 typedef, the constness refers to the pointer rather than what it
23028 points to.)
23029
23030 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23031
23032 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23033 $(top_srcdir)/grub-core/gnulib as well as
23034 $(top_builddir)/grub-core/gnulib.
23035 Reported by: KESHAV P.R.
23036
23037 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23038
23039 * util/grub-install.in: Fix the bootloader ID option to be
23040 consistently --bootloader-id, not --bootloader_id.
23041 Reported by: KESHAV P.R.
23042
23043 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23044
23045 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23046 check hash checksum." consistently translatable.
23047
23048 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23049
23050 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23051 $(top_builddir).
23052
23053 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23054
23055 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23056 (GRUB_MOD_INIT): Register sha1sum command.
23057 (GRUB_MOD_FINI): Unregister sha1sum command.
23058
23059 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23060
23061 Keep boot and grub directory names in sync with utils scripts
23062
23063 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23064 * config.h.in: Add previous macros.
23065 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23066 * util/grub-install.in: Use $bootdir and $grubdir variables.
23067
23068 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23069
23070 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23071 convert partition names to disk names if the new `convert' parameter
23072 is set.
23073 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23074 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23075 disk in its own right. This can happen with Xen disk images.
23076
23077 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23078
23079 * util/grub-editenv.c: Update strings to avoid warnings when generating
23080 grub.pot file.
23081 * util/grub-setup.c: Likewise.
23082
23083 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 * configure.ac: Change version to 1.99~beta0.
23086
23087 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23088
23089 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23090 Add BADRAM.
23091 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23092 Likewise.
23093 * include/multiboot.h: Resynced with specification.
23094 * include/multiboot2.h: Likewise.
23095
23096 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23097
23098 Fix po directory handling.
23099
23100 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23101 * grub-core/gnulib/Makefile.am: Import gettext module.
23102 * m4/gnulib-cache.m4: Likewise.
23103 * m4/gnulib-comp.m4: Likewise.
23104 * m4/gettext.m4: New file, from gnulib.
23105 * m4/glibc2.m4: Likewise.
23106 * m4/iconv.m4: Likewise.
23107 * m4/intdiv0.m4: Likewise.
23108 * m4/intl.m4: Likewise.
23109 * m4/intldir.m4: Likewise.
23110 * m4/intlmacosx.m4: Likewise.
23111 * m4/intmax.m4: Likewise.
23112 * m4/inttypes-pri.m4: Likewise.
23113 * m4/lcmessage.m4: Likewise.
23114 * m4/lib-ld.m4: Likewise.
23115 * m4/lib-link.m4: Likewise.
23116 * m4/lib-prefix.m4: Likewise.
23117 * m4/lock.m4: Likewise.
23118 * m4/nls.m4: Likewise.
23119 * m4/po.m4: Likewise.
23120 * m4/printf-posix.m4: Likewise.
23121 * m4/progtest.m4: Likewise.
23122 * m4/threadlib.m4: Likewise.
23123 * m4/uintmax_t.m4: Likewise.
23124 * m4/visibility.m4: Likewise.
23125 * po/Makefile.am: Remove.
23126 * po/Makefile.in.in: New file, from gettext.
23127 ($(DOMAIN).pot-update): Support POTFILES-shell.
23128 * po/Makevars: New file.
23129 * po/POTFILES-shell: Rename to ...
23130 * po/POTFILES-shell.in: ... this. Update.
23131 * po/POTFILES: Rename to ...
23132 * po/POTFILES.in: ... this. Update.
23133 * po/Rules-quot: New file, from gettext.
23134 * po/boldquot.sed: Likewise.
23135 * po/en@boldquot.header: Likewise.
23136 * po/en@quot.header: Likewise.
23137 * po/insert-header.sin: Likewise.
23138 * po/quot.sed: Likewise.
23139 * po/remove-potcdate.sin: Likewise.
23140
23141 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23142
23143 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23144
23145 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23146
23147 * util/grub.d/20_linux_xen.in: Use submenus.
23148
23149 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23150
23151 Support submenus.
23152
23153 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23154 parameter submenu. All users updated.
23155 * grub-core/normal/main.c (free_menu): Rename to ...
23156 (grub_normal_free_menu): ... this. Made global.
23157 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23158 if requested.
23159 * grub-core/normal/menu_entry.c (screen): New field submenu.
23160 (make_screen): Set submenu.
23161 (run): Open new context if requested.
23162 * include/grub/menu.h (grub_menu_entry): New field submenu.
23163 * include/grub/normal.h (grub_normal_free_menu): New proto.
23164
23165 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23166
23167 Menu entries extractor.
23168
23169 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23170 variants.
23171 (GRUB_MOD_INIT): Register new variants.
23172 (GRUB_MOD_FINI): Unregister new variants.
23173 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23174 into grub_cmd_legacy_source.
23175 (grub_cmd_legacy_source): Implement extractor variants.
23176 (GRUB_MOD_INIT): Register new variants.
23177 (GRUB_MOD_FINI): Unregister new variants.
23178 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23179 as an extractor.
23180 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23181 search as an extractor.
23182 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23183 test as an extractor.
23184 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23185 as an extractor.
23186 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23187 (grub_env_new_context): New function.
23188 (grub_env_context_open): Likewise.
23189 (grub_env_extractor_open): Likewise.
23190 (grub_env_extractor_close): Likewise.
23191 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23192 grub_extractor_level.
23193 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23194 * include/grub/env.h (grub_env_extractor_open): New proto.
23195 (grub_env_extractor_close): Likewise.
23196 * include/grub/normal.h (grub_extractor_level): New external variable.
23197
23198 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23199
23200 Make cutmem accept a region specification.
23201 Suggested by: Samuel Thibault
23202
23203 * grub-core/mmap/mmap.c (parsemem): New function.
23204 (grub_cmd_cutmem): Handle new arguments.
23205
23206 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23207
23208 New command cutmem.
23209
23210 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23211 (GRUB_MOD_INIT): Register new command.
23212 (GRUB_MOD_FINI): Unregister new command.
23213
23214 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 Support some annoying BSD and Minix subpartitions.
23217
23218 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23219 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23220 Properly handle concatenation.
23221 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23222 * grub-core/normal/completion.c (iterate_partition): Likewise.
23223 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23224 contain partition. All users updated.
23225 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23226 struct.
23227 (grub_openbsdlabel_partition_map): Likewise.
23228 (bsdlabel_partition_map_iterate): Rename to ..
23229 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23230 (bsdlabel_partition_map_iterate): New function.
23231 (netopenbsdlabel_partition_map_iterate): Likewise.
23232 (netbsdlabel_partition_map_iterate): Likewise.
23233 (openbsdlabel_partition_map_iterate): Likewise.
23234 (GRUB_MOD_INIT): Register new partmaps.
23235 (GRUB_MOD_FINI): Unregister new partmaps.
23236 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23237 (grub_partition_msdos_iterate): ... this. All users updated.
23238 Don't support embedding other than in a minix partition.
23239 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23240 proto.
23241 * include/grub/partition.h (grub_partition): New field msdostype.
23242 * util/grub-install.in: Handle openbsd and netbsd types being in
23243 part_bsd module.
23244
23245 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23246
23247 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23248
23249 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23250 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23251 (mdraid09): ... this.
23252 (mdraid1x): New module.
23253 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23254 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23255
23256 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23257
23258 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23259 vsprintf.
23260
23261 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23262
23263 * grub-core/commands/efi/lsefimmap.c: Correct header.
23264 * NEWS: Update.
23265
23266 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23267
23268 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23269 as printf format strings; the translations might contain '%' which
23270 could cause a crash.
23271 (main): Likewise.
23272 * util/grub-fstest.c (argp_parser): Likewise.
23273 * util/grub-setup.c (argp_parser): Likewise.
23274 (main): Likewise.
23275
23276 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23277
23278 Use argp in grub-fstest.
23279
23280 * util/grub-fstest.c: Don't include getopt.h.
23281 Include argp.h.
23282 (root): New variable.
23283 (args_count): Likewise.
23284 (nparm): Likewise.
23285 (num_disks): Likewise.
23286 (images): Likewise.
23287 (cmd): Likewise.
23288 (debug_str): Likewise.
23289 (args): Likewise.
23290 (options): Transformed to argp.
23291 (usage): Removed.
23292 (main): Split argument parsing into ...
23293 (argp_parser): ... this. Changed to argp format.
23294 (argp): New variable.
23295 (main): Use argp_parse.
23296
23297 2010-09-20 Tristan Gingold <gingold@free.fr>
23298 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23299 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23300
23301 * grub-core/commands/efi/lsefimmap.c: New file.
23302 * grub-core/Makefile.core.def (lsefimmap): New module.
23303 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23304
23305 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23306
23307 Pause the execution (10s max) if any errors are displayed so the user
23308 has a chance to see them.
23309
23310 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23311 (grub_print_error): Increment grub_err_printed_errors.
23312 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23313 execution if any errors were displayed.
23314 (show_menu): Remove old code for pause.
23315 * grub-core/normal/menu_entry.c (run): Likewise.
23316 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23317 users updated.
23318 (grub_normal_get_char_counter): Likewise.
23319 * include/grub/err.h (grub_err_printed_errors): New external variable.
23320 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23321
23322 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23323
23324 Support multiboot VBE info.
23325
23326 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23327 Take VBE info into account.
23328 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23329 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23330 Call fill_vbe_info when appropriate.
23331 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23332 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23333 as supported.
23334 (grub_multiboot_get_mbi_size): Take new tags into account.
23335 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23336 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23337 Call fill_vbe_tag when appropriate.
23338 (grub_multiboot_make_mbi): Properly align tags.
23339 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23340 function.
23341 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23342 proto.
23343 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23344
23345 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23346
23347 Suport manual terminal geometry specification.
23348
23349 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23350 Save state in grub_ofconsole_terminfo_output.
23351 (grub_ofconsole_term): Use grub_terminfo_getwh.
23352 (grub_ofconsole_getwh): Removed.
23353 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23354 (grub_serial_term): Use grub_terminfo_getwh.
23355 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23356 (options): New struct.
23357 (OPTION_*): New enum.
23358 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23359 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23360 width and height.
23361 (grub_terminfo_getwh): New proto.
23362 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23363
23364 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23365
23366 Handle legacy "terminal" command.
23367
23368 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23369 and FLAG_TERMINAL.
23370 (legacy_commands): Add terminal and title.
23371 (grub_legacy_parse): Handle terminal. Simplify title handling.
23372
23373 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23374
23375 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23376 parameters overflow.
23377
23378 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23379
23380 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23381 widthspec.h.
23382
23383 * docs/grub.texi (Shell-like scripting): Document `!'.
23384 (Network): Simplify using new i386-pc-pxe format. Mention
23385 grub-mknetdir.
23386
23387 * NEWS: Update.
23388
23389 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23390
23391 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23392 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23393 when needed.
23394
23395 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23396
23397 * grub-core/commands/efi/lsefisystab.c: Correct header.
23398 * grub-core/commands/efi/lssal.c: Likewise.
23399 * grub-core/commands/testload.c: Likewise.
23400
23401 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23402
23403 * util/grub-mkrescue.in: Add explicit root argument to --set to
23404 prevent the UUID being interpreted as an argument to --set (matches
23405 previous change to prepare_grub_to_access_device).
23406
23407 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23408
23409 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23410 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23411 the verbosity of later #ifs.
23412 (find_partition_start): Define this function on FreeBSD too.
23413 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23414 function.
23415 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23416 on FreeBSD.
23417
23418 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23419
23420 * util/grub-editenv.c: Use argp instead of getopt.
23421
23422 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23423
23424 * util/grub-setup.c: Use argp instead of getopt.
23425
23426 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23427
23428 Use gnulib-tool to create gnulib source files.
23429
23430 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23431 grub-core/gnulib directories
23432 * .bzignore: Add **/.deps and autogenerated gnulib files
23433 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23434 of gnulib macros, add grub-core/gnulib/Makefile
23435 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23436 include m4 directory to aclocal.
23437 * Makefile.util.def: Remove direct compilation of gnulib source files
23438 and use the new grub-core/gnulib/libgnu.a.
23439 * build-aux/config.rpath: move config.rpath from top directory to
23440 build-aux
23441 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23442 in gnulib headers
23443 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23444 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23445 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23446 header.
23447 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23448 string.
23449
23450 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23451
23452 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23453 grub-core/genmod.sh and grub-core/gensyminfo.sh
23454
23455 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23456
23457 Add a test for echo command options.
23458
23459 * tests/grub_cmd_echo.in: New test.
23460 * Makefile.util.def: Rules for new test.
23461
23462 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23463
23464 Remove crc.mod and move crc command to hashsum.mod.
23465 Remove lib/crc.c - users updated to use gcrypt implementation.
23466
23467 * grub-core/commands/crc.c: Removed.
23468 * grub-core/Makefile.core.def (crc): Module removed.
23469 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23470 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23471 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23472 * grub-core/lib/crc.c: Removed.
23473 * include/grub/lib/crc.h: Removed.
23474 * Makefile.util.def (crc): Remove lib/crc.c
23475 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23476 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23477 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23478 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23479 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23480 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23481
23482 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23483
23484 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23485
23486 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23487
23488 Split config.h for util and core.
23489
23490 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23491 (ADDR32): Likewise.
23492 (DATA32): Likewise.
23493 (BSS_START_SYMBOL): Likewise.
23494 (END_SYMBOL): Likewise.
23495 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23496 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23497 * config.h.in: New file.
23498 * configure.ac: Use config-util.h as config define file.
23499 Rename MACHINE into GRUB_MACHINE. All users updated.
23500 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23501 updated.
23502 (NESTED_FUNC_ATTR): Likewise.
23503 Substitue new variables.
23504 (COND_HAVE_ASM_USCORE): New conditional.
23505 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23506 (kernel_syms.lst): Use ASM_PREFIX.
23507 * grub-core/kern/emu/console.c: Include config-util.h.
23508 * grub-core/kern/emu/misc.c: Likewise.
23509 * grub-core/kern/emu/mm.c: Likewise.
23510 * include/grub/emu/misc.h: Likewise.
23511 * include/grub/libgcc.h: Likewise.
23512
23513 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23514
23515 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23516 constants usage.
23517 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23518 Fix GRUB_TERM_KEY_* constants usage.
23519 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23520
23521 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23522
23523 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23524 print pointer.
23525 * grub-core/bus/usb/uhci.c: Remove empty define.
23526 (grub_uhci_check_transfer): Add missing cast.
23527 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23528 print pointer.
23529 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23530 PRIuGRUB_SIZE.
23531 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23532
23533 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23534
23535 * grub-core/Makefile.core.def (legacycfg): Add
23536 lib/i386/pc/vesa_modes_table.c on emu.
23537
23538 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23539
23540 Reduce number of temporary files generated by build system.
23541
23542 * grub-core/gencmdlist.sh: Removed.
23543 * grub-core/genfslist.sh: Removed.
23544 * grub-core/genhandlerlist.sh: Removed.
23545 * grub-core/genmodsrc.sh: Removed.
23546 * grub-core/genpartmaplist.sh: Removed.
23547 * grub-core/genparttoollist.sh: Removed.
23548 * grub-core/gentermiinallist.sh: Removed.
23549 * grub-core/genvideolist.sh: Removed.
23550
23551 * grub-core/genmod.sh.in: New file.
23552 * grub-core/gensyminfo.sh.in: New file.
23553
23554 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23555 * conf/Makefile.extra-dist: Update with new files.
23556 * gentpl.py: Remove rules related to unnecessary temporary files.
23557 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23558 and und-* files.
23559 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23560 genmod.sh scripts.
23561 * grub-core/bus/usb/uhci.c: Remove empty #define.
23562 * grub-core/genmoddep.awk: Updated with new syminfo format.
23563 * util/bash-completion.d/Makefile.am: Add config.log to
23564 CLEANFILES.
23565
23566 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23567
23568 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23569
23570 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23571
23572 * util/grub-mkconfig.in: Check the config script for syntax errors
23573 before saving.
23574
23575 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23576 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23577
23578 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23579 platforms.
23580 * util/grub-install.in: Add EFI and IEEE1275 support.
23581 * util/i386/efi/grub-install.in: Removed.
23582 * util/ieee1275/grub-install.in: Likewise.
23583
23584 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23585
23586 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23587 (grub_cmd_cmosclean): Likewise.
23588 (GRUB_MOD_INIT): Register command cmosclean.
23589 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23590 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23591
23592 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23593 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23594 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23595
23596 Add keyboard layouts support.
23597
23598 * Makefile.util.def (grub-mklayout): New file.
23599 (grub-kbdcomp): New script.
23600 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23601 Add keyboard_layouts.h.
23602 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23603 commands/boot.c on yeeloong.
23604 (keylayouts): New module.
23605 * grub-core/bus/usb/ohci.c
23606 * grub-core/bus/usb/uhci.c
23607 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23608 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23609 (attach_root_port): Likewise.
23610 (poll_nonroot_hub): Likewise.
23611 (grub_usb_poll_devices): Likewise.
23612 (detach_device): Close transfer.
23613 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23614 function.
23615 (grub_usb_bulk_setup_readwrite): Likewise.
23616 (grub_usb_bulk_finish_readwrite): Likewise.
23617 * grub-core/commands/keylayouts.c: New file.
23618 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23619 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23620 aliases.
23621 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23622 support scancode 2.
23623 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23624 * include/grub/keyboard_layouts.h: New file.
23625 * util/grub-mklayout.c: New file.
23626 * util/grub-kbdcomp.in: Likewise.
23627
23628 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23629
23630 Unify memory types.
23631
23632 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23633 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23634 types.
23635 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23636 (grub_upper_mem): Likewise.
23637 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23638 * include/grub/memory.h (grub_memory_type_t): New enum.
23639 All users updated.
23640
23641 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23642
23643 * grub-core/Makefile.core.def (lsapm): New module.
23644 * grub-core/commands/i386/pc/lsapm.c: New file.
23645 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23646 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23647 Likewise.
23648 * include/grub/i386/pc/apm.h: New file.
23649 * include/multiboot.h (multiboot_apm_info): New struct.
23650
23651 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23652
23653 GRUB-legacy configuration file support.
23654
23655 * Makefile.util.def (grub-menulst2cfg): New util.
23656 * docs/man/grub-menulst2cfg.h2m: New file.
23657 * grub-core/Makefile.core.def (legacycfg): New module.
23658 * grub-core/commands/legacycfg.c: New file.
23659 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23660 (grub_normal_add_menu_entry): ... this.
23661 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23662 (grub_normal_set_password): ...this.
23663 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23664 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23665 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23666 * grub-core/lib/legacy_parse.c: New file.
23667 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23668 * include/grub/i386/pc/vesa_modes_table.h: New file.
23669 * include/grub/legacy_parse.h: Likewise.
23670 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23671 * util/grub-menulst2cfg.c: New file.
23672
23673 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23674
23675 * grub-core/kern/emu/hostdisk.c
23676 (convert_system_partition_to_system_disk): Initialise node.
23677
23678 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23679
23680 * grub-core/kern/emu/hostdisk.c
23681 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23682 leak.
23683 Reported and based on patch by: Modestas Vainius.
23684
23685 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23686
23687 Fix DM-RAID probing with recent versions of device-mapper udev
23688 rules.
23689
23690 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23691 canonicalise device paths under /dev/mapper/.
23692 (convert_system_partition_to_system_disk): Compare the
23693 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23694 path, since device nodes under /dev/mapper/ are often symlinks.
23695
23696 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23697
23698 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23699
23700 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23701
23702 * configure.ac: Avoid some annoying error messages if freetype-config
23703 program is not found.
23704
23705 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23706
23707 Support RAID on virtio devices, and others.
23708
23709 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23710 Rename to ...
23711 [__MINGW32__] (grub_find_device): ... this.
23712 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23713 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23714 reasonable default if dir is NULL.
23715 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23716 ...
23717 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23718 (grub_guess_root_device): Update callers.
23719 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23720
23721 * util/raid.c (grub_util_getdiskname): Remove.
23722 (grub_util_raid_getmembers): Use grub_find_device rather than
23723 grub_util_getdiskname.
23724
23725 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23726
23727 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23728 needing to be compiled with serial support.
23729 (ls): Indicate that multiple files are accepted.
23730 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23731 indicate that multiple files are accepted.
23732
23733 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23734
23735 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23736 libgrub_a_init.c, and util/bash-completion.d/grub.
23737
23738 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23739
23740 * util/grub-setup.c (setup): Fix incorrect container semantics.
23741
23742 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23743
23744 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23745 misusage.
23746 Reported by: J. Nick Terry
23747
23748 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23749
23750 Move embedding routines to partmap sources files.
23751
23752 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23753 [GRUB_UTIL]: New variable.
23754 (gpt_partition_map_iterate): Set part.parent.
23755 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23756 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23757 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23758 New function.
23759 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23760 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23761 (grub_partition_map) [GRUB_UTIL]: New field embed.
23762 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23763 (setup): Use ->embed.
23764
23765 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23766
23767 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23768 function.
23769 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23770 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23771
23772 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23773
23774 Add function to get completions from usage.
23775
23776 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23777 completions from usage. Use LC_ALL=C to get options properly.
23778
23779 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23780
23781 * grub-core/gnulib/basename-lgpl.c: Imported.
23782 * grub-core/gnulib/basename.c: Likewise.
23783 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23784 * grub-core/gnulib/dirname.c: Likewise.
23785 * grub-core/gnulib/dirname.h: Likewise.
23786 * grub-core/gnulib/stripslash.c: Likewise.
23787
23788 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23789
23790 * grub-core/gnulib/error.c: Resynced.
23791 * grub-core/gnulib/getopt.c: Likewise.
23792 * grub-core/gnulib/getopt_int.h: Likewise.
23793 * grub-core/gnulib/regex.h: Likewise.
23794 * grub-core/gnulib/regex_internal.c: Likewise.
23795 * grub-core/gnulib/regex_internal.h: Likewise.
23796
23797 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23798
23799 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23800 CRC calculations and validity checks.
23801 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23802 calculations.
23803
23804 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23805
23806 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23807
23808 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23809
23810 Fix incorrect echo options handling.
23811 Reported by: Yves Blusseau.
23812
23813 * include/grub/command.h (grub_command_flags_t): New flags
23814 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23815 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23816 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23817
23818 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23819
23820 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23821 users updated.
23822 (GRUB_COMMAND_FLAG_MENU): Likewise.
23823 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23824 (GRUB_COMMAND_FLAG_TITLE): Removed.
23825 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23826 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23827 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23828 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23829 (grub_command_flags_t): New enum. All users updated.
23830
23831 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23832
23833 Fix solaris compilation.
23834
23835 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23836 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23837 (grub-emu-list): Likewise.
23838
23839 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23840
23841 Remove deprecated root command.
23842
23843 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23844 updated.
23845
23846 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23847
23848 * util/i386/pc/grub-setup.c: Merge this ...
23849 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23850 * util/grub-setup.c: ... into this.
23851 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23852 New struct.
23853
23854 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23855
23856 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23857 possible.
23858
23859 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23860
23861 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23862 allocate p.
23863
23864 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23865
23866 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23867 explicit root argument to set to prevent UUID to be interpreted as
23868 argument to set.
23869
23870 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23871
23872 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23873
23874 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 Don't export grub_gate_a20.
23877
23878 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23879 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23880 to ...
23881 (grub_gate_a20): ... this. All users updated.
23882 * include/grub/i386/pc/init.h: Removed. All users updated.
23883
23884 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23885
23886 Create euro.pf2 which supports most European languages.
23887
23888 * Makefile.am (grubdata_DATA): Add euro.pf2.
23889 (euro.pf2): New target.
23890 (CLEANFILES): Add euro.pf2.
23891
23892 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23893
23894 * configure.ac: Disable emu-usb by default to prevent inadvertent
23895 device takeover.
23896
23897 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23898
23899 Disable usbserial on grub-emu since our libusb code isn't good enough
23900 yet.
23901
23902 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23903 (usbserial_pl2303): Likewise.
23904 (usbserial_ftdi): Likewise.
23905
23906 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23907
23908 * include/grub/disk.h (grub_disk): Remove has_partitions.
23909 All users updated.
23910 * disk/loopback.c (grub_loopback): Remove has_partitions.
23911 All users updated.
23912 (options): Remove partitions. All users updated.
23913 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23914 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23915 actual partition table is found.
23916
23917 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23918
23919 Remove readability checks (too many false negatives).
23920
23921 * util/grub-install.in: Remove readability checks.
23922 * util/grub-mkconfig.in: Likewise.
23923 * util/grub.d/10_hurd.in: Likewise.
23924 * util/grub.d/10_kfreebsd.in: Likewise.
23925 * util/grub.d/10_linux.in: Likewise.
23926 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23927 way.
23928
23929 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23930
23931 Enable acpi shutdown on all ACPI platforms.
23932
23933 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23934 on coreboo, multiboot and EFI.
23935 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23936 (grub_acpi_halt): Likewise.
23937 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23938 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23939 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23940 * grub-core/lib/i386/halt.c (grub_halt)
23941 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23942
23943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23944
23945 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23946 context.
23947
23948 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23949
23950 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23951 * grub-core/video/efi_uga.c: Likewise.
23952
23953 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23954
23955 Filter devaliases and never open same device twice.
23956
23957 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23958 (last_ihandle): Likewise.
23959 (ofdisk_hash_ent): New member shortest.
23960 (ofdisk_hash_add): Add canonical path too.
23961 (scan): New function.
23962 (grub_ofdisk_iterate): Iterate over hashed entries.
23963 (compute_dev_path): Don't add :0.
23964 (grub_ofdisk_open): Don't really open the disk.
23965 (grub_ofdisk_close): Avoid closing unrelated disk.
23966 (grub_ofdisk_read): Implement reopen logic.
23967 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
23968 New function.
23969 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
23970 New proto.
23971
23972 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23973
23974 Fix sparc64.
23975
23976 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
23977 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
23978 right address. Add sparc64_ieee1275_ldflags.
23979 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
23980 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
23981 to grub_host_to_target_addr
23982 (load_image): Likewise.
23983
23984 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23985
23986 * grub-core/normal/completion.c (complete_file): Handle device
23987 containing slash.
23988 Fix based on patch by Doug Nazar.
23989
23990 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 grub-mknetdir script.
23993
23994 * Makefile.util.def (grub-mknetdir): New module.
23995 * tests/util/grub-shell.in: Support boot=net
23996 * util/grub-mknetdir.in: New file.
23997
23998 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23999
24000 videoinfo on non-vbe.
24001
24002 * grub-core/Makefile.core.def (vbeinfo): Removed.
24003 (vbetest): Removed.
24004 (videoinfo): New module.
24005 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24006 * grub-core/commands/i386/pc/vbetest.c: Removed.
24007 * grub-core/commands/videoinfo.c: New file.
24008 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24009 specification.
24010 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24011 as vbetest.
24012 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24013 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24014 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24015 mode_number. New parameter mode. All users updated.
24016 (grub_video_gop_iterate): New function.
24017 (grub_video_efi_gop): New member iterate.
24018 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24019 (grub_vbe_set_video_mode): Remove setting useless fields.
24020 (vbe2videoinfo): New function.
24021 (grub_video_vbe_iterate): Likewise.
24022 (grub_video_vbe_setup): Use vbe2videoinfo.
24023 (grub_video_vbe_print_adapter_specific_info): New function.
24024 (grub_video_vbe_adapter): New fields iterate and
24025 print_adapter_specific_info.
24026 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24027 All users updated.
24028 (grub_video_mode_info): New field mode_number.
24029 (grub_video_adapter): New fields iterate and
24030 print_adapter_specific_info.
24031
24032 2010-09-13 Tristan Gingold <gingold@free.fr>
24033 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24034 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24035
24036 * grub-core/commands/efi/lsefisystab.c: New file.
24037 * grub-core/commands/efi/lssal.c: Likewise.
24038 * grub-core/Makefile.core.def (lsacpi): New module.
24039 (lsefisystab): Likewise.
24040 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24041 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24042 (grub_efi_sal_system_table): New struct.
24043 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24044 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24045 (grub_efi_sal_system_table_platform_features): Likewise.
24046 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24047 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24048 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24049 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24050
24051 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24052
24053 Support explicit user claim that a device is BIOS-visible.
24054
24055 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24056 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24057 * grub-core/kern/emu/hostdisk.c
24058 (convert_system_partition_to_system_disk): Support mdX.
24059 (find_system_device): New parameter add. All users updated.
24060 (grub_util_biosdisk_is_present): New function.
24061 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24062 proto.
24063
24064 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24065
24066 Search hints support.
24067
24068 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24069 All users updated.
24070
24071 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24072
24073 Bash completion script for util commands
24074
24075 * Makefile.am: Add util/bash-completion.d directory
24076 * configure.ac: Likewise.
24077 * util/bash-completion.d/Makefile.am: New file.
24078 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24079
24080 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24081
24082 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24083 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24084 Reported by: Yves Blusseau.
24085
24086 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24087
24088 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24089 partition size and offset.
24090
24091 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24092
24093 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24094
24095 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24096
24097 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24098
24099 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24100
24101 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24102 (grub_xvasprintf): Likewise.
24103
24104 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24105
24106 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24107
24108 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24109
24110 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24111 args ending with NULL.
24112
24113 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24114
24115 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24116 pointer.
24117
24118 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24119
24120 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24121
24122 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24123
24124 Shutdown using ACPI.
24125
24126 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24127 * grub-core/commands/acpihalt.c: New file.
24128 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24129 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24130 (grub_acpi_halt): New proto.
24131 (GRUB_ACPI_SLP_EN): New const.
24132 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24133 (GRUB_ACPI_OPCODE_*): New enum.
24134 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24135
24136 2010-09-11 Tristan Gingold <gingold@free.fr>
24137 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24138 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24139
24140 * commands/lsacpi.c: New file.
24141 * grub-core/Makefile.core.def (lsacpi): New module.
24142 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24143 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24144 (grub_acpi_madt_entry_header): New struct.
24145 (grub_acpi_madt): Likewise.
24146 (grub_acpi_madt_entry_interrupt_override): Likewise.
24147 (grub_acpi_madt_entry_sapic): Likewise.
24148 (grub_acpi_madt_entry_lsapic): Likewise.
24149 (grub_acpi_madt_entry_platform_int_source): Likewise.
24150 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24151 (PRIuGRUB_UINT32_T): Likewise.
24152 (PRIxGRUB_UINT64_T): Likewise.
24153
24154 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24155
24156 Implement loading palette on ieee1275_fb.
24157
24158 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24159 (have_setcolors): Likewise.
24160 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24161 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24162 (grub_video_ieee1275_set_palette): Implement.
24163
24164 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24165 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24166
24167 * util/grub-install.in (grub_partition): New variable.
24168 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24169 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24170 Fixes a bug reported by Yves Blusseau.
24171
24172 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24173
24174 Fix emu on mipsel.
24175
24176 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24177 =grub_cpu_flush_cache on all mips and not only yeeloong.
24178 * configure.ac (COND_mips): New conditional.
24179 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24180 platforms.
24181 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24182 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24183 [GRUB_LINKER_HAVE_INIT]: New function.
24184 (grub_emu_post_init): Likewise.
24185 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24186 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24187 * include/grub/cache.h (_mips): Include mips/cache.h.
24188 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24189 LVM and RAID prototypes.
24190 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24191 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24192 function.
24193
24194 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24195
24196 * util/grub-install.in: Don't try to verify core.img until after
24197 running grub-mkimage to create it.
24198
24199 2010-09-10 Robert Millan <rmh@gnu.org>
24200
24201 * util/grub.d/10_hurd.in: Add misc readability checks.
24202 * util/grub.d/10_kfreebsd.in: Likewise.
24203 * util/grub.d/10_linux.in: Likewise.
24204
24205 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24206
24207 * util/grub-install.in: ${imgext} won't be defined here until the
24208 install branch is merged. For the meantime, only verify core.img on
24209 i386-pc and sparc64-ieee1275 platforms.
24210
24211 2010-09-10 Robert Millan <rmh@gnu.org>
24212
24213 Solaris support in grub_find_zpool_from_dir(). Thanks
24214 Seth Goldberg for referring to getextmntent() facility.
24215
24216 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24217 `sys/mkdev.h'.
24218 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24219 `<sys/mnttab.h>'.
24220 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24221 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24222 method for finding zpool name.
24223
24224 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24225
24226 grub-fstest needs the host and hostfs modules while other utilities
24227 actively require those modules to be absent, so grub-fstest needs
24228 its own initialisation and finalisation code.
24229
24230 * Makefile.am (grub_fstest.pp): New target.
24231 (grub_fstest_init.lst): Likewise.
24232 (grub_fstest_init.c): Likewise.
24233 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24234
24235 2010-09-10 Robert Millan <rmh@gnu.org>
24236
24237 * configure.ac: Check for `struct statfs.f_fstypename' and
24238 `struct statfs.f_mntfromname'.
24239
24240 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24241 kFreeBSD-specific code.
24242
24243 2010-09-10 Robert Millan <rmh@gnu.org>
24244
24245 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24246 on ZFS. Now non-main filesystems are supported as / too.
24247
24248 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24249
24250 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24251 and grub-core/disk/host.c to ...
24252 (grub-fstest): ... here. Having the host disk implementation
24253 present confuses grub-probe and other utility programs.
24254
24255 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24256 when writing to a file, not when writing to stdout.
24257
24258 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24259
24260 * tests/partmap_test.in: New test for partitions.
24261 * Makefile.util.def: Rules for new test.
24262
24263 2010-09-09 Robert Millan <rmh@gnu.org>
24264
24265 * util/grub-probe.c (probe): Fix a pair of unhandled error
24266 conditions.
24267
24268 2010-09-09 Robert Millan <rmh@gnu.org>
24269
24270 Basic Btrfs support (detection and UUID).
24271
24272 * grub-core/fs/btrfs.c: New file.
24273 * Makefile.util.def (library): Register btrfs.c.
24274 * grub-core/Makefile.core.def: Likewise.
24275
24276 2010-09-08 Robert Millan <rmh@gnu.org>
24277
24278 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24279 with (optional) parameters to specify device and relative path.
24280 * util/grub-install.in: Use is_path_readable_by_grub() to
24281 verify readability of a few critical files.
24282 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24283 verify readability of grub.cfg.new.
24284
24285 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24286
24287 Split minix.mod into minix.mod and minix2.mod.
24288
24289 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24290 * grub-core/Makefile.core.def (minix2): New module.
24291 * grub-core/fs/minix.c: Use definitions instead of runtime version
24292 checking.
24293 * grub-core/fs/minix2.c: New file.
24294
24295 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24296
24297 Add new --boot-directory option to replace --root-directory
24298
24299 * util/grub-install.in: Add new --boot-directory option
24300 * util/grub-reboot.in: Likewise.
24301 * util/grub-set-default.in: Likewise.
24302
24303 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24304
24305 * util/grub-mkconfig.in: Use new variable.
24306
24307 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24308
24309 * configure.ac: Define some useful variables.
24310
24311 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24312
24313 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24314 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24315 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24316 Use terminfo and don't use cursor-on/cursor-off unless it's known
24317 to work.
24318 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24319 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24320
24321 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24322
24323 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24324 starts with "(,", fill the drive containing the loaded image in
24325 between those two characters, but expect that a full partition
24326 specification including partition map names will follow.
24327
24328 2010-09-08 Robert Millan <rmh@gnu.org>
24329
24330 * configure.ac: Remove `--enable-grub-fstest' option.
24331 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24332
24333 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24334 `grub-fstest' instead of `grub-probe' for readability verification.
24335 * util/grub-probe.c (probe): Remove readability verification kludge.
24336
24337 2010-09-08 Robert Millan <rmh@gnu.org>
24338
24339 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24340 initializing `GRUB_FS'.
24341
24342 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24343
24344 Not command (!) support to GRUB script.
24345
24346 * tests/grub_script_not.in: New test.
24347 * Makefile.util.def: Rules for new test.
24348
24349 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24350 ! command as a special case.
24351 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24352
24353 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24354
24355 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24356 grub_free.
24357
24358 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24359
24360 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24361
24362 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24363
24364 * docs/grub.texi (Shell-like scripting): Documentation for break,
24365 continue, shift and return commands.
24366
24367 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24368
24369 Rename CD-ROM to cd on BIOS.
24370
24371 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24372 "cd".
24373 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24374
24375 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24376
24377 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24378 * util/grub-probe.c (main): Likewise.
24379 * util/i386/pc/grub-setup.c (main): Likewise.
24380 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24381 Reported and debugged by: alexxy
24382
24383 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24384
24385 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24386 diagnostic info.
24387
24388 2010-09-05 Jo Shields <directhex@apebox.org>
24389
24390 * util/grub.d/30_os-prober.in: Add missing classes.
24391
24392 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24393
24394 * docs/grub.texi (Theme file format): Document new position format.
24395
24396 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24397
24398 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24399 a table. Use @code instead of @verbatim.
24400
24401 2010-09-05 Colin D Bennett <colin@gibibit.com>
24402
24403 Gfxmenu documentation.
24404
24405 * docs/grub.texi (Theme file format): New chapter.
24406
24407 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24408
24409 * grub-core/Makefile.core.def (xzio): New module.
24410 * grub-core/io/xzio.c: New file.
24411 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24412 * grub-core/lib/xzembed/xz_config.h: Likewise.
24413 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24414 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24415 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24416 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24417 * grub-core/lib/xzembed/xz_private.h: Likewise.
24418 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24419 * include/grub/file.h (grub_file_filter_id): New compression filter
24420 GRUB_FILE_FILTER_XZIO.
24421
24422 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24423
24424 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24425 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24426 size.
24427
24428 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24429
24430 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24431 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24432
24433 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24434
24435 Uncompressed checksum support.
24436
24437 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24438 (check_list): New parameter uncompress.
24439 (grub_cmd_hashsum): Handle --uncompress.
24440
24441 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 Reintroduce testload.
24444
24445 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24446 from here ...
24447 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24448 (GRUB_MOD_INIT): New function.
24449 (GRUB_MOD_FINI): Likewise.
24450 * grub-core/Makefile.core.def (testload): New module.
24451
24452 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24453
24454 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24455 (uint8_t): New type.
24456 (uint16_t): Likewise.
24457 (uint32_t): Likewise.
24458 (uint64_t): Likewise.
24459
24460 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24461
24462 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24463
24464 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24465
24466 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24467 Made static.
24468 (grub_gzfile_open): Removed. All users updated.
24469 (GRUB_MOD_INIT): New function.
24470 (GRUB_MOD_FINI): Likewise.
24471 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24472 (grub_file_filters_enabled): Likewise.
24473 (grub_file_open): Handle filters.
24474 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24475 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24476 * include/grub/file.h (grub_file_filter_id_t): New type.
24477 (grub_file_filter_t): Likewise.
24478 (grub_file_filters_all): New extern variable.
24479 (grub_file_filters_enabled): Likewise.
24480 (grub_file_filter_register): New inline function.
24481 (grub_file_filter_unregister): Likewise.
24482 (grub_file_filter_disable): Likewise.
24483 (grub_file_filter_disable_compression): Likewise.
24484 * include/grub/gzio.h: Removed.
24485
24486 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24487
24488 Filename expansion support for wildcards in GRUB script.
24489
24490 * tests/grub_script_expansion.in: New test.
24491 * Makefile.util.def: Rule for new test.
24492
24493 * grub-core/commands/wildcard.c: New file, implements filename
24494 expansion support for GRUB script.
24495 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24496 * grub-core/script/argv.c: Cosmetic changes.
24497 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24498 Refactored to perform wildcard expansion on arguments.
24499 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24500 struct.
24501
24502 * tests/util/grub-shell.in: Fix quoting for read input.
24503
24504 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24505
24506 Support for updating environment variables with matched substrings
24507 of regexp.
24508
24509 * tests/grub_cmd_regexp.in: New test.
24510 * Makefile.util.def: Rule for new test.
24511
24512 * grub-core/commands/regexp.c: New option -s to update environment
24513 variables with regexp matches.
24514
24515 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24516
24517 * include/grub/file.h (grub_file): New member not_easly_seekable.
24518 (grub_file_seekable): New inline function.
24519 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24520 easily seekable.
24521 (grub_gzio_open): Set not_easly_seekable.
24522 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24523 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24524
24525 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24526
24527 Support for options to appear multiple times on cmdline.
24528
24529 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24530 * grub-core/commands/extcmd.c: Support for repeatable option.
24531 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24532 repeatable option support.
24533
24534 Refactor menuentry into a regular command.
24535
24536 * grub-core/commands/menuentry.c: New file, menuentry command
24537 implementation.
24538 * grub-core/Makefile.core.def: Rule update for normal.mod.
24539 * grub-core/normal/main.c: Moved menuentry creation to
24540 grub-core/commands/menuentry.c.
24541 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24542 (grub_menu_execute_entry_real): Removed.
24543 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24544 function.
24545 (grub_script_execute_menuentry): Removed.
24546 * grub-core/script/parser.y (menuentry): Removed.
24547 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24548 * grub-core/script/yylex.l (menuentry): Removed.
24549 * include/grub/menu.h (grub_menu_init): New prototype.
24550 (grub_menu_fini): New prototype.
24551 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24552 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24553 (grub_script_execute_sourcecode): New prototype.
24554
24555 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24556
24557 "return" command for GRUB script functions.
24558
24559 * tests/grub_script_return.in: New test.
24560 * Makefile.util.def: Rules for new test.
24561
24562 * grub-core/script/execute.c (grub_script_return): New function.
24563 * grub-core/script/main.c: Register/unregister return commaond.
24564 * include/grub/script_sh.h (grub_script_return): New prototype.
24565
24566 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24567
24568 "setparams" command to update positional parameters.
24569
24570 * tests/grub_script_setparams.in: New test.
24571 * Makefile.util.def: Rules for new test.
24572
24573 * grub-core/script/argv.c (grub_script_argv_make): New function.
24574 * grub-core/script/execute.c (replace_scope): New function.
24575 (grub_script_setparams): New function.
24576 * grub-core/script/lexer.c: Remove unused variables.
24577 * grub-core/script/main.c: Register/unregister setparams command.
24578 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24579 (grub_script_setparams): New prototype.
24580
24581 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24582
24583 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24584 grub_free order.
24585
24586 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24587
24588 Support for passing block of commands as an argument to extcmds.
24589
24590 * Makefile.util.def: Rules for new test.
24591 * tests/grub_script_blockarg.in: New test.
24592 * grub-core/tests/test_blockarg.c: New file, block argument
24593 command used in the test.
24594
24595 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24596 (grub_register_extcmd_prio): New function prototype.
24597 (grub_extcmd_dispatcher): New function prototype.
24598 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24599 type.
24600 * include/grub/script_sh.h (struct grub_script): New members
24601 `children', `next_siblings' and `refcnt' for block arguments and
24602 reference counting.
24603 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24604 (grub_script_arg): New member `script' for block argument.
24605 (grub_script_argv): New member `script' for block argument.
24606 (grub_parser_param): New member `scripts' for block argument.
24607 (grub_script_mem_free): New extern function prototype.
24608 (grub_script_ref): New function prototype.
24609 (grub_script_unref): New function prototype.
24610
24611 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24612 extcmd form to support block arguments.
24613 * grub-core/script/argv.c: Block arguments support.
24614 * grub-core/script/execute.c: Likewise.
24615 * grub-core/script/lexer.c: Likewise.
24616 * grub-core/script/main.c: Likewise.
24617 * grub-core/script/script.c: Likewise.
24618 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24619 non-terminals.
24620
24621 * grub-core/commands/acpi.c: Update extcmd implementations with
24622 grub_extcmd_context_t.
24623 * grub-core/commands/cat.c: Likewise.
24624 * grub-core/commands/echo.c: Likewise.
24625 * grub-core/commands/extcmd.c: Likewise.
24626 * grub-core/commands/hashsum.c: Likewise.
24627 * grub-core/commands/hdparm.c: Likewise.
24628 * grub-core/commands/help.c: Likewise.
24629 * grub-core/commands/hexdump.c: Likewise.
24630 * grub-core/commands/i386/cpuid.c: Likewise.
24631 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24632 * grub-core/commands/i386/pc/halt.c: Likewise.
24633 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24634 * grub-core/commands/iorw.c: Likewise.
24635 * grub-core/commands/keystatus.c: Likewise.
24636 * grub-core/commands/loadenv.c: Likewise.
24637 * grub-core/commands/ls.c: Likewise.
24638 * grub-core/commands/lspci.c: Likewise.
24639 * grub-core/commands/memrw.c: Likewise.
24640 * grub-core/commands/probe.c: Likewise.
24641 * grub-core/commands/search_wrap.c: Likewise.
24642 * grub-core/commands/setpci.c: Likewise.
24643 * grub-core/commands/sleep.c: Likewise.
24644 * grub-core/disk/loopback.c: Likewise.
24645 * grub-core/hello/hello.c: Likewise.
24646 * grub-core/loader/i386/bsd.c: Likewise.
24647 * grub-core/loader/xnu.c: Likewise.
24648 * grub-core/term/gfxterm.c: Likewise.
24649 * grub-core/term/serial.c: Likewise.
24650 * grub-core/tests/lib/functional_test.c: Likewise.
24651
24652 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24653
24654 Multi-line quoted strings support.
24655
24656 * grub-core/script/lexer.c (append_newline): Removed.
24657 (grub_script_lexer_yywrap): Refactored.
24658 (grub_script_lexer_init): Refactored.
24659 * grub-core/script/yylex.l (yywrap): New function.
24660 (grub_lexer_resplit): New function.
24661 (grub_lexer_unput): New function.
24662 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24663 and resplit.
24664 * tests/grub_script_echo1.in: Added few more testcases.
24665
24666 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24667
24668 * grub-core/kern/misc.c: Don't add abort alias in utils.
24669 Reported by: echoline.
24670
24671 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24672
24673 Add missing files into "make dist" tarball for other platforms.
24674
24675 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24676 * conf/Makefile.common (dist_noinst_DATA): New variable.
24677 * conf/Makefile.extra-dist: Added missing make dist files.
24678 * grub-core/Makefile.core.def: Likewise.
24679
24680 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24681
24682 Compress grub_prefix.
24683
24684 * grub-core/boot/i386/pc/lnxboot.S: Use
24685 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24686 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24687 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24688 GRUB_MACHINE_PREFIX_END. All users updated.
24689 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24690 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24691 + 0x40.
24692 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24693 * util/grub-mkimage.c (image_target_desc): Change data_end to
24694 prefix_end. All users updated.
24695
24696 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24697
24698 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24699 value.
24700 (grub_openbsd_boot): Likewise.
24701 (grub_netbsd_boot): Likewise.
24702 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24703 (grub_xnu_boot): Likewise.
24704
24705 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24706
24707 * configure.ac: Clean LIBS variable after tests.
24708
24709 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24710
24711 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24712
24713 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24714
24715 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24716 echo if libdevmapper will be used.
24717
24718 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24719
24720 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24721 constant for the same file.
24722
24723 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24724
24725 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24726
24727 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24728
24729 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24730 grub-core/*.pp.
24731
24732 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24733
24734 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24735 required by the boot protocol.
24736
24737 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24738 ebp and edi members.
24739 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24740 state.ebp and state.edi.
24741 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24742 %ebp and %edi according to grub_relocator32_ebp and
24743 grub_relocator32_edi respectively.
24744 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24745 and state.edi.
24746
24747 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24748
24749 Add i386-pc-pxe image target.
24750
24751 * util/grub-mkimage.c (image_target_desc): New enum value
24752 IMAGE_I386_PC_PXE.
24753 (image_targets): New target i386-pc-pxe.
24754 (generate_image): Handle i386-pc-pxe image.
24755
24756 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24757
24758 Fix grub_pxe_scan.
24759
24760 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24761 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24762 All users updated.
24763 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24764 (grub_pxe_pxenv): Correct type.
24765
24766 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24767
24768 * NEWS: Document most of the important changes since 1.98.
24769
24770 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24771
24772 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24773 generated manual page) a little.
24774
24775 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24776
24777 * docs/grub.texi: Add myself as an author.
24778
24779 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24780
24781 * Makefile.util.def (libgrub.a): Add missing sunpc.
24782 Reported by: Seth Goldberg.
24783
24784 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24785
24786 Interrupt wrapping and code simplifications.
24787
24788 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24789 x86_noieee1275 which are functionaly equivalent in this case.
24790 (grub-install): Make source on each platform explicit. Enable on
24791 all noemu.
24792 * gentpl.py (x86_efi_pc): Removed group.
24793 (x86_noefi): Likewise.
24794 (i386_noefi): Likewise.
24795 (x86_noieee1275): Likewise.
24796 (i386_noieee1275): Likewise.
24797 (i386_noefi_noieee1275): Likewise.
24798 (i386_pc_qemu_coreboot): Likewise.
24799 (i386_coreboot_multiboot): Likewise.
24800 (i386_pc_coreboot_multiboot_qemu): Likewise.
24801 (x86_noefi_mips): Likewise.
24802 (noieee1275): Likewise.
24803 (ieee1275_mips): Likewise.
24804 (noemu_noieee1275): Likewise.
24805 (cmos): New group.
24806 (usb): Likewise.
24807 (videoinkernel): Likewise.
24808 (videomodules): Likewise.
24809 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24810 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24811 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24812 include/grub/loader.h, include/grub/msdos_partition.h,
24813 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24814 include/grub/machine/console.h, include/grub/machine/vga.h,
24815 include/grub/machine/vbe.h, include/grub/machine/init.h,
24816 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24817 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24818 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24819 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24820 * grub-core/Makefile.core.def (kernel): Explicit the source for
24821 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24822 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24823 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24824 Use videoinkernel tag.
24825 (usb): Enable on all usb.
24826 (usbserial_common): Likewise.
24827 (usbserial_pl2303): Likewise.
24828 (usbserial_ftdi): Likewise.
24829 (uhci): Enable on all x86.
24830 (ohci): Enable on all pci.
24831 (cmostest): Enable on all CMOS.
24832 (acpi): Include commands/acpi.c on all platforms.
24833 (halt): Add relevant lib/*/halt.c.
24834 (hdparm): Enable on all pci.
24835 (lspci): Likewise.
24836 (usbtest): Enable on all usb.
24837 (ata): Enable on all pci.
24838 (ata_pthru): Likewise.
24839 (usbms): Enable on all usb.
24840 (usb_keyboard): Likewise.
24841 (font): Use tag videomodules.
24842 (bufio): Likewise.
24843 (datetime): Use tag cmos. Enable on all noemu.
24844 (mmap): Use tags common and x86.
24845 (gfxterm): Use tag videomodules.
24846 (bitmap): Likewise.
24847 (bitmap_scale): Likewise.
24848 (video_fb): Likewise.
24849 (video): Likewise.
24850 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24851 adjust padding accordingly. All users updated.
24852 (grub_ohci_transaction): Fix bad format specification.
24853 (GRUB_MOD_INIT): Add asserts for struct size.
24854 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24855 (grub_alloc_td): Likewise.
24856 (grub_free_queue): Likewise.
24857 (grub_uhci_transfer): Likewise.
24858 (grub_uhci_transaction): Fix bad format specification.
24859 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24860 (grub_usb_bulk_readwrite): Likewise.
24861 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24862 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24863 Made static.
24864 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24865 Made static.
24866 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24867 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24868 Transformed into C.
24869 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24870 Moved from here ...
24871 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24872 ... here. Transformed into C. Made static.
24873 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24874 Moved from here ...
24875 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24876 ... here. Transformed into C. Made static.
24877 * grub-core/kern/i386/pc/startup.S
24878 (grub_biosdisk_check_int13_extensions): Moved from here ...
24879 * grub-core/disk/i386/pc/biosdisk.c
24880 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24881 Made static.
24882 * grub-core/kern/i386/pc/startup.S
24883 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24884 * grub-core/disk/i386/pc/biosdisk.c
24885 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24886 Transformed into C. Made static.
24887 * grub-core/kern/i386/pc/startup.S
24888 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24889 * grub-core/disk/i386/pc/biosdisk.c
24890 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24891 Transformed into C. Made static.
24892 * grub-core/kern/i386/pc/startup.S
24893 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24894 * grub-core/disk/i386/pc/biosdisk.c
24895 (grub_biosdisk_get_diskinfo_standard): ... here.
24896 Transformed into C. Made static.
24897 * grub-core/kern/i386/pc/startup.S
24898 (grub_biosdisk_get_num_floppies): Moved from here ...
24899 * grub-core/disk/i386/pc/biosdisk.c
24900 (grub_biosdisk_get_num_floppies): ... here.
24901 Transformed into C. Made static.
24902 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24903 New function.
24904 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24905 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24906 Transformed into C. Made static.
24907 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24908 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24909 Transformed into C. Made static.
24910 * grub-core/kern/i386/ieee1275/init.c: Removed.
24911 * grub-core/kern/i386/misc.S: Likewise.
24912 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24913 Splitted from here ...
24914 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24915 Transformed into C. Made static. All users updated.
24916 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24917 Transformed into C. Made static. All users updated.
24918 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24919 Moved from here...
24920 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24921 Transformed into C. Made static. All users updated.
24922 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24923 Moved from here...
24924 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24925 Transformed into C. Made static. All users updated.
24926 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24927 Removed (replaced by C version).
24928 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24929 Moved from here...
24930 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24931 Transformed into C. Made static.
24932 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24933 Moved from here...
24934 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24935 ... here. Transformed into C.
24936 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24937 Moved from here...
24938 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24939 ... here. Transformed into C.
24940 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24941 Moved from here...
24942 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24943 ... here. Transformed into C. Made static.
24944 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24945 Moved from here...
24946 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24947 ... here. Transformed into C.
24948 * grub-core/kern/i386/pc/startup.S
24949 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24950 * grub-core/video/i386/pc/vbe.c
24951 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24952 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24953 Moved from here...
24954 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24955 ... here. Transformed into C.
24956 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24957 Moved from here...
24958 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24959 ... here. Transformed into C.
24960 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24961 Moved from here...
24962 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24963 ... here. Transformed into C.
24964 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
24965 Moved from here...
24966 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
24967 ... here. Transformed into C.
24968 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
24969 Moved from here...
24970 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
24971 ... here. Transformed into C. Made static.
24972 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
24973 Moved from here...
24974 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
24975 ... here. Transformed into C. Made static.
24976 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
24977 Moved from here...
24978 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
24979 ... here. Transformed into C. Made static.
24980 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
24981 pxe_rm_entry as third argument.
24982 (grub_bios_interrupt): New function.
24983 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
24984 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
24985 of calling grub_stop.
24986 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
24987 * grub-core/lib/efi/halt.c (grub_halt): ...here.
24988 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
24989 * grub-core/lib/emu/halt.c (grub_halt): ... here.
24990 * grub-core/lib/i386/halt.c: Moved from here ...
24991 * grub-core/lib/i386/halt.c: ... here.
24992 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
24993 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
24994 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
24995 grub_stop_floppy.
24996 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
24997 * include/grub/i386/coreboot/init.h: Removed.
24998 * include/grub/i386/multiboot/init.h: Likewise.
24999 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25000 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25001 * include/grub/i386/pc/int.h: New file.
25002 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25003 (grub_pxe_scan): Removed.
25004 (grub_pxe_call): Update prototype.
25005 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25006 prototypes.
25007 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25008 * include/grub/i386/qemu/init.h: Removed.
25009 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25010 noreturn.
25011 (grub_halt): Likewise.
25012 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25013 (grub_reboot): Likewise.
25014 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25015 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25016 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25017
25018 2010-08-30 Robert Millan <rmh@gnu.org>
25019
25020 * NEWS: Document addition of ZFS support in `grub-install' and
25021 `grub-mkconfig'.
25022
25023 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25024
25025 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25026 dprintf output.
25027
25028 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25029
25030 Remove leftover embedding of font objects.
25031
25032 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25033 * util/grub-install.in (font): Removed.
25034 * util/grub-mkimage.c (generate_image): Remove font support. All users
25035 updated.
25036
25037 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25038
25039 Remove leftover embedding of font objects.
25040
25041 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25042 * util/grub-install.in (font): Removed.
25043 * util/grub-mkimage.c (generate_image): Remove font support. All users
25044 updated.
25045
25046 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25047
25048 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25049 Reported by: Ian Turner
25050
25051 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25052
25053 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25054 timeout to avoid indefinite boot stalling.
25055
25056 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25057
25058 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25059 (grub_env_write_color_highlight): Likewise.
25060
25061 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25062
25063 * grub-core/normal/term.c (print_more): Return to normal and not
25064 to standard state after printing "---MORE---".
25065
25066 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25067
25068 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25069 Mask out the bit 0x80 since it has other meaning that specifiing color.
25070
25071 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25072
25073 New relocator. Allows for more kernel support and more straightforward
25074 loader writing.
25075
25076 * Makefile.am (BOOTTARGET): New variable.
25077 (QEMU32): Likewise.
25078 (linux.init.x86_64): New target.
25079 (linux.init.i386): Likewise.
25080 (multiboot.elf): Likewise.
25081 (kfreebsd.elf): Likewise.
25082 (kfreebsd.aout): Likewise.
25083 (pc-chainloader.elf): Likewise.
25084 (pc-chainloader.bin): Likewise.
25085 (ntldr.elf): Likewise.
25086 (ntldr.bin): Likewise.
25087 (multiboot2.elf): Likewise.
25088 (kfreebsd.init.x86_64): Likewise.
25089 (kfreebsd.init.i386): Likewise.
25090 (knetbsd.init.i386): Likewise.
25091 (kopenbsd.init.i386): Likewise.
25092 (knetbsd.init.x86_64): Likewise.
25093 (kopenbsd.init.x86_64): Likewise.
25094 (linux-initramfs.i386): Likewise.
25095 (linux-initramfs.x86_64): Likewise.
25096 (kfreebsd-mfsroot.i386.img): Likewise.
25097 (knetbsd.image.i386): Likewise.
25098 (kopenbsd.image.i386): Likewise.
25099 (kopenbsd.image.x86_64): Likewise.
25100 (knetbsd.miniroot-image.i386.img): Likewise.
25101 (kfreebsd-mfsroot.x86_64.img): Likewise.
25102 (knetbsd.image.x86_64): Likewise.
25103 (knetbsd.miniroot-image.x86_64.img): Likewise.
25104 (kfreebsd-mfsroot.i386.gz): Likewise.
25105 (bootcheck-kfreebsd-i386): Likewise.
25106 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25107 (bootcheck-kfreebsd-x86_64): Likewise.
25108 (knetbsd.miniroot-image.i386.gz): Likewise.
25109 (bootcheck-knetbsd-i386): Likewise.
25110 (bootcheck-kopenbsd-i386): Likewise.
25111 (bootcheck-kopenbsd-x86_64): Likewise.
25112 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25113 (bootcheck-knetbsd-x86_64): Likewise.
25114 (bootcheck-linux-i386): Likewise.
25115 (bootcheck-linux-x86_64): Likewise.
25116 (bootcheck-linux16-i386): Likewise.
25117 (bootcheck-linux16-x86_64): Likewise.
25118 (bootcheck-multiboot): Likewise.
25119 (bootcheck-multiboot2): Likewise.
25120 (bootcheck-kfreebsd-aout): Likewise.
25121 (bootcheck-pc-chainloader): Likewise.
25122 (bootcheck-ntldr): Likewise.
25123 (CLEANFILES): Add new targets.
25124 (BOOTCHECKS): New variable.
25125 (.PHONY): Add bootchecks.
25126 (SUCCESSFUL_BOOT_STRING): New variable.
25127 (BOOTCHECK_TIMEOUT): Likewise.
25128 (bootcheck): New target
25129 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25130 * configure.ac: Correct efiemu excuse.
25131 * docs/grub.texi (Supported kernels): New chapter.
25132 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25133 include/grub/mm_private.h. Simplify inclusion of
25134 include/grub/boot.h, include/grub/loader.h
25135 and include/grub/msdos_partition.h
25136 (KERNEL_HEADER_FILES) [i386_coreboot]:
25137 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25138 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25139 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25140 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25141 include/grub/machine/loader.h.
25142 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25143 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25144 extra_dist.
25145 (pci.mod): Enable on i386-multiboot.
25146 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25147 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25148 i386-qemu.
25149 (relocator.mod): Rewritten.
25150 (aout.mod): Enable on all x86.
25151 (bsd.mod): Likewise.
25152 (ntldr.mod): New module.
25153 (linux.mod): Use loader/i386/linux.c on all x86.
25154 (xnu.mod): Enable on all x86.
25155 (vga_text.mod): disable on EFI and QEMU.
25156 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25157 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25158 * grub-core/efiemu/loadcore.c: Likewise.
25159 * grub-core/efiemu/main.c: Likewise.
25160 (grub_efiemu_exit_boot_services): Removed.
25161 (grub_efiemu_finish_boot_services): Likewise.
25162 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25163 function.
25164 * grub-core/efiemu/i386/nocfgtables.c: New file.
25165 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25166 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25167 (grub_efi_finish_boot_services): Moved from here ...
25168 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25169 Fille finish memory map and related data.
25170 (finish_mmap_buf): New variable.
25171 (grub_efi_uintn_t finish_mmap_size): Likewise.
25172 (grub_efi_uintn_t finish_key): Likewise.
25173 (grub_efi_uintn_t finish_desc_size): Likewise.
25174 (grub_efi_uint32_t finish_desc_version): Likewise.
25175 (grub_efi_is_finished): Likewise.
25176 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25177 finished.
25178 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25179 (grub_elf64_phdr_iterate): Likewise.
25180 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25181 (grub_os_area_size): Likewise.
25182 (grub_machine_init): Don't reserve os area.
25183 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25184 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25185 * grub-core/kern/i386/loader.S: Removed.
25186 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25187 (grub_os_area_size): Likewise.
25188 (grub_machine_init): Don't reserve os area.
25189 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25190 Don't call grub_dl_unload_all.
25191 Don't include loader.S.
25192 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25193 Declare the memory after _end as available.
25194 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25195 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25196 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25197 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25198 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25199 * include/grub/mm_private.h (grub_mm_header): ... here.
25200 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25201 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25202 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25203 (grub_mm_region): ..here. Removed addr. Added pre_size.
25204 All users updated.
25205 * grub-core/kern/mm.c (base): Renamed to ...
25206 (grub_mm_base): ... this. Made global.
25207 (grub_real_malloc): Alloc from end of region.
25208 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25209 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25210 * grub-core/kern/powerpc/cache_flush.S: ... here.
25211 * grub-core/lib/efi/relocator.c: New file.
25212 * grub-core/lib/i386/relocator.c: Rewritten.
25213 * grub-core/lib/i386/relocator16.S: New file.
25214 * grub-core/lib/i386/relocator32.S: Likewise.
25215 * grub-core/lib/i386/relocator64.S: Likewise.
25216 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25217 * grub-core/lib/i386/relocator_common.S: New file.
25218 * grub-core/lib/ieee1275/relocator.c: Likewise.
25219 * grub-core/lib/mips/relocator.c: Rewritten.
25220 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25221 stylistic adjustments.
25222 * grub-core/lib/powerpc/relocator.c: New file.
25223 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25224 * grub-core/lib/relocator.c: Rewritten.
25225 * grub-core/lib/x86_64/relocator_asm.S: New file.
25226 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25227 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25228 (bsd_tag): New struct.
25229 (tags): New variable.
25230 (tags_last): Likewise.
25231 (netbsd_module): New struct.
25232 (netbsd_mods): New variable.
25233 (netbsd_mods_last): Likewise.
25234 (openbsd_opts): New parameter "serial".
25235 (OPENBSD_SERIAL_ARG): New definition.
25236 (netbsd_opts): New parameter "serial".
25237 (NETBSD_SERIAL_ARG): New definition.
25238 (grub_freebsd_add_meta): Reorganised into ...
25239 (grub_bsd_add_meta): ...this. All users updated.
25240 (grub_freebsd_add_mmap): Reorganised into ...
25241 (generate_e820_mmap): ...this...
25242 (grub_bsd_add_mmap): ...and this. All users updated.
25243 (grub_freebsd_list_modules): Use tags.
25244 (grub_netbsd_add_meta_module): New function.
25245 (grub_netbsd_list_modules): Likewise.
25246 (grub_freebsd_boot): Use relocator and finish EFI.
25247 (grub_openbsd_boot): Likewise.
25248 (grub_netbsd_setup_video): New function.
25249 (grub_netbsd_add_modules): Likewise.
25250 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25251 and finish EFI.
25252 (grub_bsd_unload): Unload tags.
25253 (grub_bsd_load_aout): Use relocator.
25254 (grub_bsd_elf32_size_hook): New function.
25255 (grub_bsd_elf32_hook): Use relocator.
25256 (grub_bsd_elf64_size_hook): New function.
25257 (grub_bsd_elf64_hook): Use relocator.
25258 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25259 (grub_bsd_load): Zero-out openbsd_ramdisk.
25260 (grub_bsd_load): Use relocator.
25261 (grub_cmd_openbsd): Support serial.
25262 (grub_cmd_netbsd): Support modules.
25263 (grub_cmd_freebsd_module): Use relocator.
25264 (grub_netbsd_module_load): New function.
25265 (grub_cmd_netbsd_module): Likewise.
25266 (grub_cmd_openbsd_ramdisk): Likewise.
25267 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25268 kopenbsd_ramdisk.
25269 (GRUB_MOD_FINI): Unregister new commands.
25270 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25271 (grub_freebsd_load_elfmodule_obj): Use relocator.
25272 (grub_freebsd_load_elfmodule): Likewise.
25273 (grub_freebsd_load_elf_meta): Likewise.
25274 (grub_netbsd_load_elf_meta): New function.
25275 (grub_openbsd_find_ramdisk): Likewise.
25276 * grub-core/loader/i386/bsd_helper.S: Removed.
25277 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25278 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25279 * grub-core/loader/i386/efi/linux.c: Likewise.
25280 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25281 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25282 (DEFAULT_VIDEO_MODE): Likewise.
25283 (real_mode_target): New variable.
25284 (prot_mode_target): Likewise.
25285 (initrd_mem_target): Likewise.
25286 (relocator): Likewise.
25287 (efi_mmap_buf): Likewise.
25288 (efi_mmap_size): Likewise.
25289 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25290 (free_pages): Use relocator.
25291 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25292 (grub_linux_setup_video): Return error.
25293 (grub_linux_trampoline_start): Removed.
25294 (grub_linux_trampoline_end): Likewise.
25295 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25296 andd video parameters depending on firmware.
25297 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25298 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25299 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25300 (grub_cmd_initrd): Use relocator.
25301 * grub-core/loader/i386/linux_trampoline.S: Removed.
25302 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25303 (elf_sec_entsize): Likewise.
25304 (elf_sec_shstrndx): Likewise.
25305 (elf_sections): Likewise.
25306 (grub_multiboot_load): Use relocator.
25307 (grub_multiboot_get_mbi_size): Account for sections.
25308 (grub_multiboot_make_mbi): Use relocator and support sections.
25309 (grub_multiboot_add_elfsyms): New function.
25310 (grub_multiboot_free_mbi): Free sections.
25311 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25312 (grub_linux_real_target): Likewise.
25313 (grub_linux_real_chunk): Likewise.
25314 (grub_linux16_prot_size): Likewise.
25315 (grub_linux16_boot): Use relocator.
25316 (grub_linux_unload): Unload relocator.
25317 (grub_cmd_linux): Use relocator.
25318 (grub_cmd_initrd): Likewise.
25319 * grub-core/loader/i386/pc/ntldr.c: New file.
25320 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25321 Don't try to guess CPU frequency.
25322 (grub_xnu_set_video): Stretch bitmap.
25323 (grub_xnu_boot): Use relocator.
25324 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25325 (grub_linux_unload): Free relocator.
25326 (grub_linux_load32): Use relocator.
25327 (grub_linux_load64): Likewise.
25328 (grub_cmd_initrd): Likewise.
25329 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25330 (grub_multiboot_unload): Unload relocator.
25331 (grub_cmd_multiboot): Use relocator.
25332 (grub_cmd_module): Likewise.
25333 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25334 Use relocator and support sections.
25335 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25336 (elf_sec_entsize): Likewise.
25337 (elf_sec_shstrndx): Likewise.
25338 (elf_sections): Likewise.
25339 (grub_multiboot_load): Use relocator.
25340 (grub_multiboot_get_mbi_size): Account for sections.
25341 (grub_multiboot_make_mbi): Use relocator and support sections.
25342 (grub_multiboot_add_elfsyms): New function.
25343 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25344 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25345 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25346 Prototype changed. All users updated.
25347 (grub_xnu_align_heap): Simplified.
25348 (grub_xnu_writetree_toheap): Likewise.
25349 (grub_xnu_unload): Unload relocator.
25350 (grub_cmd_xnu_kernel): Use relocator.
25351 (grub_cmd_xnu_kernel64): Likewise.
25352 (grub_xnu_register_memory): Simplified.
25353 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25354 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25355 EFI is finished.
25356 (grub_console_checkkey): Likewise.
25357 (grub_console_getkey): Likewise.
25358 (grub_console_getwh): Likewise.
25359 (grub_console_getxy): Likewise.
25360 (grub_console_gotoxy): Likewise.
25361 (grub_console_cls): Likewise.
25362 (grub_console_setcolorstate): Likewise.
25363 (grub_console_setcursor): Likewise.
25364 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25365 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25366 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25367 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25368 * grub-core/tests/boot/kernel-8086.S: Likewise.
25369 * grub-core/tests/boot/kernel-i386.S: Likewise.
25370 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25371 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25372 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25373 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25374 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25375 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25376 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25377 * grub-core/tests/boot/linux.cfg: Likewise.
25378 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25379 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25380 * grub-core/tests/boot/linux16.cfg: Likewise.
25381 * grub-core/tests/boot/multiboot.cfg: Likewise.
25382 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25383 * grub-core/tests/boot/ntldr.cfg: Likewise.
25384 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25385 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25386 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25387 New definition.
25388 * include/grub/dl.h (grub_dl_unload_all): Removed.
25389 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25390 (grub_efi_finish_boot_services): Change prototype.
25391 (grub_efi_is_finished): New variable.
25392 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25393 Changed prototype.
25394 (grub_efiemu_finish_boot_services): Removed.
25395 (grub_machine_efiemu_init_tables): New prototype.
25396 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25397 (grub_elf64_phdr_iterate): Likewise.
25398 * include/grub/i386/bsd.h: Include relocator.h.
25399 (freebsd_tag_header): New struct.
25400 (grub_openbsd_bios_mmap): Removed.
25401 (grub_unix_real_boot): Removed.
25402 (grub_freebsd_load_elfmodule32): Changed prototype.
25403 (grub_freebsd_load_elfmodule_obj64): Likewise.
25404 (grub_freebsd_load_elf_meta32): Likewise.
25405 (grub_freebsd_load_elf_meta64): Likewise.
25406 (grub_freebsd_add_meta): Removed.
25407 (grub_netbsd_load_elf_meta32): New prototype.
25408 (grub_netbsd_load_elf_meta64): Likewise.
25409 (grub_bsd_add_meta): Likewise.
25410 (grub_openbsd_ramdisk_descriptor): New struct.
25411 (grub_openbsd_find_ramdisk32): New prototype.
25412 (grub_openbsd_find_ramdisk64): Likewise.
25413 * include/grub/i386/coreboot/loader.h: Removed.
25414 * include/grub/i386/efi/loader.h: Likewise.
25415 * include/grub/i386/ieee1275/loader.h: Likewise.
25416 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25417 to grub_uint32_t.
25418 * include/grub/i386/loader.h: Removed.
25419 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25420 value.
25421 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25422 (grub_phys_addr_t): New type.
25423 (grub_vtop): New inline function.
25424 (grub_map_memory): Likewise.
25425 (grub_unmap_memory): Likewise.
25426 * include/grub/i386/multiboot/loader.h: Removed.
25427 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25428 (NETBSD_BTINFO_CONSOLE): New definition.
25429 (NETBSD_BTINFO_SYMTAB): Likewise.
25430 (NETBSD_BTINFO_MODULES): Likewise.
25431 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25432 (grub_netbsd_bootinfo): New struct.
25433 (grub_netbsd_btinfo_common): Use explicit bitsize.
25434 (grub_netbsd_btinfo_mmap_entry): Removed.
25435 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25436 (grub_netbsd_btinfo_bootdisk): New struct.
25437 (grub_netbsd_btinfo_symtab): Likewise.
25438 (grub_netbsd_btinfo_serial): Likewise.
25439 (grub_netbsd_btinfo_modules): Likewise.
25440 (grub_netbsd_btinfo_framebuf): Likewise.
25441 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25442 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25443 Likewise.
25444 (grub_openbsd_bootargs): Use explicit bitsize.
25445 (grub_openbsd_bootarg_console): New struct.
25446 (GRUB_OPENBSD_COM_MAJOR): New definition.
25447 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25448 * include/grub/i386/pc/efiemu.h: Removed.
25449 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25450 * include/grub/i386/qemu/loader.h: Removed.
25451 * include/grub/i386/relocator.h: Rewritten.
25452 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25453 * include/grub/mips/memory.h: New file.
25454 * include/grub/mips/multiboot.h: Rewritten.
25455 * include/grub/mips/relocator.h: Rewritten.
25456 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25457 (grub_vtop): New function.
25458 (grub_map_memory): Likewise.
25459 (grub_unmap_memory): Likewise.
25460 * include/grub/misc.h (ALIGN_DOWN): New definition.
25461 * include/grub/mm.h (grub_mm_check_real): New proto.
25462 (GRUB_MM_CHECK): New definition.
25463 * include/grub/mm_private.h: New file.
25464 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25465 (grub_multiboot_get_mbi_size): Removed.
25466 (grub_multiboot_make_mbi): Change prottype.
25467 (grub_multiboot_set_accepts_video): New proto.
25468 (grub_multiboot_add_elfsyms): Likewise.
25469 (grub_multiboot_payload_eip): New variable.
25470 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25471 New prototype.
25472 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25473 New definition.
25474 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25475 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25476 * include/grub/powerpc/ieee1275/loader.h: Removed.
25477 * include/grub/powerpc/memory.h: New file.
25478 * include/grub/powerpc/relocator.h: Likewise.
25479 * include/grub/relocator.h: Likewise.
25480 * include/grub/relocator_private.h: Likewise.
25481 * include/grub/sparc64/ieee1275/loader.h: Removed.
25482 * include/grub/x86_64/memory.h: New file.
25483 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25484 (grub_xnu_heap_malloc): Likewise.
25485 (grub_xnu_heap_real_start): Removed.
25486 (grub_xnu_heap_start): Likewise.
25487 (grub_xnu_relocator): New variable.
25488 (grub_xnu_heap_target_start): Likewise.
25489 * tests/util/grub-shell.in: Support non-pc.
25490 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25491
25492 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25493
25494 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25495 on malloc error.
25496 (grub_bidi_logical_to_visual): Check that malloc succeded.
25497 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25498 puts.
25499 (grub_xputs_normal): Likewise.
25500
25501 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25502
25503 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25504 extra_dist.
25505
25506 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25507
25508 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25509
25510 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25511
25512 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25513
25514 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25515
25516 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25517 dprintf.
25518
25519 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25520
25521 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25522
25523 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25524
25525 * grub-core/normal/term.c (print_more): Fix a memory leak.
25526 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25527 (grub_xputs_normal): Likewise.
25528
25529 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25530
25531 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25532 the begining of the string
25533
25534 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25535
25536 * grub-core/script/script.c (grub_script_parse): Free parsed on
25537 failure.
25538
25539 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25540
25541 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25542 on failure.
25543
25544 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25545
25546 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25547 return.
25548
25549 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25550
25551 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25552 (scroll_up): Fix a memory leak.
25553
25554 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25555
25556 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25557 errors.
25558
25559 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25560
25561 Handle USB pendrives exposed as floppies.
25562
25563 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25564 floppy.
25565 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25566 Check for partitions on all devices.
25567
25568 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25569
25570 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25571 (readkey): Likewise.
25572
25573 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25574
25575 Multiple variable names support to "export" command.
25576
25577 * normal/context.c (grub_cmd_export): "export" command supports
25578 multiple variable names.
25579
25580 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25581
25582 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25583 --target=drive output to Mach device name.
25584
25585 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25586
25587 New Automake based build system for GRUB.
25588
25589 * ABOUT-NLS: New file.
25590 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25591 in Makefile.util.def file.
25592 * Makefile.util.def: New file. Autogen build definitions file for
25593 GRUB host utils.
25594 * conf/Makefile.common: New file. Common variables for GRUB host
25595 utils and target modules.
25596 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25597 * docs/Makefile.am: New file. Automake file for docs.
25598 * gentpl.py: New file. Python script to generate Autogen
25599 template.
25600 * grub-core/Makefile.am: New file. GRUB target modules' rules
25601 that doesn't fit in Makefile.core.def file.
25602 * grub-core/Makefile.core.def: New file. Autogen build
25603 definitions file for GRUB target modules.
25604 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25605 specific setjmp.S file.
25606 * po/Makefile.am: New file.
25607
25608 * .bzrignore: New ignores.
25609 * INSTALL: New requirements, without Ruby.
25610 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25611 * autogen.sh: Updated to invoke autogen as necessary.
25612 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25613 and defines for Automake conditionals.
25614 * geninit.sh: Refactoring.
25615
25616 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25617 necessary.
25618 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25619 New prototype.
25620
25621 * include/grub/test.h: Fix functional test modules' naming.
25622 * grub-core/tests/example_functional_test.c: Fix test module name.
25623
25624 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25625 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25626 * util/grub-editenv.c: Likewise.
25627 * util/grub-fstest.c: Likewise.
25628 * util/grub-mkdevicemap.c: Likewise.
25629 * util/grub-mkfont.c: Likewise.
25630 * util/grub-mkimage.c: Likewise.
25631 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25632 * util/grub-probe.c: Likewise.
25633 * util/grub-script-check.c: Likewise.
25634 * util/i386/pc/grub-setup.c: Likewise.
25635 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25636
25637 * tests/util/grub-shell.in: Fix override directory path.
25638 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25639 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25640
25641 * util/lvm.c: Update #includes.
25642 * util/raid.c: Likewise.
25643 * util/resolve.c: Likewise.
25644 * grub-core/bus/emu/pci.c: Likewise.
25645 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25646 * grub-core/lib/posix_wrap/string.h: Likewise.
25647 * grub-core/kern/emu/main.c: Likewise.
25648
25649 * grub-core/gensymlist.sh: New file. Script for generating kernel
25650 symbols file.
25651 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25652
25653 * grub-core/gentrigtables.c: Fix unused variable warnings.
25654
25655 * Makefile.in: Removed.
25656 * conf/any-emu.rmk: Removed.
25657 * conf/common.rmk: Removed.
25658 * conf/i386-coreboot.rmk: Removed.
25659 * conf/i386-efi.rmk: Removed.
25660 * conf/i386-ieee1275.rmk: Removed.
25661 * conf/i386-multiboot.rmk: Removed.
25662 * conf/i386-pc.rmk: Removed.
25663 * conf/i386-qemu.rmk: Removed.
25664 * conf/i386.rmk: Removed.
25665 * conf/mips-yeeloong.rmk: Removed.
25666 * conf/mips.rmk: Removed.
25667 * conf/powerpc-ieee1275.rmk: Removed.
25668 * conf/sparc64-ieee1275.rmk: Removed.
25669 * conf/tests.rmk: Removed.
25670 * conf/x86-efi.rmk: Removed.
25671 * conf/x86_64-efi.rmk: Removed.
25672 * gendistlist.sh: Removed.
25673 * geninitheader.sh: Removed.
25674 * genkernsyms.sh.in: Removed.
25675 * genmk.rb: Removed.
25676 * gensymlist.sh.in: Removed.
25677 * mkinstalldirs: Removed.
25678 * boot: Moved ...
25679 * grub-core/boot: ... to here.
25680 * bus: Moved ...
25681 * grub-core/bus: ... to here.
25682 * commands: Moved ...
25683 * grub-core/commands: ... to here.
25684 * disk: Moved ...
25685 * grub-core/disk: ... to here.
25686 * efiemu: Moved ...
25687 * grub-core/efiemu: ... to here.
25688 * font: Moved ...
25689 * grub-core/font: ... to here.
25690 * fs: Moved ...
25691 * grub-core/fs: ... to here.
25692 * gencmdlist.sh: Moved ...
25693 * grub-core/gencmdlist.sh: ... to here.
25694 * genemuinit.sh: Moved ...
25695 * grub-core/genemuinit.sh: ... to here.
25696 * genemuinitheader.sh: Moved ...
25697 * grub-core/genemuinitheader.sh: ... to here.
25698 * genfslist.sh: Moved ...
25699 * grub-core/genfslist.sh: ... to here.
25700 * genhandlerlist.sh: Moved ...
25701 * grub-core/genhandlerlist.sh: ... to here.
25702 * genmoddep.awk: Moved ...
25703 * grub-core/genmoddep.awk: ... to here.
25704 * genmodsrc.sh: Moved ...
25705 * grub-core/genmodsrc.sh: ... to here.
25706 * genpartmaplist.sh: Moved ...
25707 * grub-core/genpartmaplist.sh: ... to here.
25708 * genparttoollist.sh: Moved ...
25709 * grub-core/genparttoollist.sh: ... to here.
25710 * genterminallist.sh: Moved ...
25711 * grub-core/genterminallist.sh: ... to here.
25712 * gentrigtables.c: Moved ...
25713 * grub-core/gentrigtables.c: ... to here.
25714 * genvideolist.sh: Moved ...
25715 * grub-core/genvideolist.sh: ... to here.
25716 * gettext: Moved ...
25717 * grub-core/gettext: ... to here.
25718 * gfxmenu: Moved ...
25719 * grub-core/gfxmenu: ... to here.
25720 * gnulib: Moved ...
25721 * grub-core/gnulib: ... to here.
25722 * hello: Moved ...
25723 * grub-core/hello: ... to here.
25724 * hook: Moved ...
25725 * grub-core/hook: ... to here.
25726 * io: Moved ...
25727 * grub-core/io: ... to here.
25728 * kern: Moved ...
25729 * grub-core/kern: ... to here.
25730 * lib: Moved ...
25731 * grub-core/lib: ... to here.
25732 * loader: Moved ...
25733 * grub-core/loader: ... to here.
25734 * mmap: Moved ...
25735 * grub-core/mmap: ... to here.
25736 * normal: Moved ...
25737 * grub-core/normal: ... to here.
25738 * partmap: Moved ...
25739 * grub-core/partmap: ... to here.
25740 * parttool: Moved ...
25741 * grub-core/parttool: ... to here.
25742 * script: Moved ...
25743 * grub-core/script: ... to here.
25744 * term: Moved ...
25745 * grub-core/term: ... to here
25746 * tests/example_functional_test.c: Moved ...
25747 * grub-core/tests/example_functional_test.c: ... to here.
25748 * tests/lib/functional_test.c: Moved ...
25749 * grub-core/tests/lib/functional_test.c: ... to here.
25750 * tests/lib/test.c: Moved ...
25751 * grub-core/tests/lib/test.c: ... to here.
25752 * video: Moved ...
25753 * grub-core/video: ... to here.
25754
25755 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25756
25757 Replace --enable-grub-emu-modules with grub-emu-lite.
25758
25759 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25760 cache.S.
25761
25762 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25763 * kern/emu/full.c: New file. For grub-emu specific initialization.
25764 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25765 * kern/emu/main.c: Call initialization function grub_emu_init.
25766
25767 * Makefile.in: Include grub-emu-lite in install.
25768 * commands/parttool.c: Use grub_no_autoload to differentiate
25769 between grub-emu and grub-emu-lite.
25770 * include/grub/misc.h: New variable grub_no_autoload.
25771
25772 * conf/any-emu.rmk: New rules for grub-emu-lite.
25773 * configure.ac: Remove --enable-grub-emu-modules.
25774 * genmk.rb: Cleanup unnecessary rules.
25775 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25776
25777 * normal/main.c: Don't load list files on grub-emu-lite.
25778 * util/misc.c (grub_arch_sync_caches): Removed.
25779
25780 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25781
25782 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25783 grub-mkimage rather than grub-mkelfimage.
25784 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25785
25786 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25787
25788 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25789 a key after CapsLock or NumLock. It's just a qemu bug.
25790
25791 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25792
25793 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25794 needed by libusb wrapper.
25795
25796 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25797
25798 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25799
25800 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25801
25802 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25803 --nounzip is passed.
25804
25805 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25806
25807 USB hotunplugging and USB serial support.
25808
25809 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25810 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25811 (grub_uhci_transfer): Respect timeout and set *actual.
25812 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25813 non-standard length.
25814 (grub_usb_device_attach): Autoload modules.
25815 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25816 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25817 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25818 users updated.
25819 (grub_usb_add_hub): Fill nports and children.
25820 (attach_root_port): Receive hub instead of controller.
25821 All users updated. Fill hub->devices.
25822 (grub_usb_root_hub): Allocate hub->devices.
25823 (detach_device): New function.
25824 (poll_nonroot_hub): Fill children and detach devices.
25825 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25826 actual arguments. All users updated.
25827 (grub_usb_bulk_read_extended): New function.
25828 * bus/usb/serial/common.c: New file.
25829 * bus/usb/serial/ftdi.c: Likewise.
25830 * bus/usb/serial/pl2303.c: Likewise.
25831 * commands/terminal.c (handle_command): Support wildcard.
25832 * commands/usbtest.c: Output "Unknown" instead of empty string.
25833 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25834 (usbserial_common_mod_SOURCES): New variable.
25835 (usbserial_common_mod_CFLAGS): Likewise.
25836 (usbserial_common_mod_LDFLAGS): Likewise.
25837 (pkglib_MODULES): Add usbserial_pl2303.mod.
25838 (usbserial_pl2303_mod_SOURCES): New variable.
25839 (usbserial_pl2303_mod_CFLAGS): Likewise.
25840 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25841 (pkglib_MODULES): Add usbserial_ftdi.mod.
25842 (usbserial_ftdi_mod_SOURCES): New variable.
25843 (usbserial_ftdi_mod_CFLAGS): Likewise.
25844 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25845 (pkglib_MODULES): Add serial.mod.
25846 (serial_mod_SOURCES): New variable.
25847 (serial_mod_CFLAGS): Likewise.
25848 (serial_mod_LDFLAGS): Likewise.
25849 * conf/i386-pc.rmk: Likewise.
25850 * conf/mips-yeeloong.rmk: Likewise.
25851 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25852 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25853 * disk/usbms.c (first_available_slot): New variable.
25854 (grub_usbms_attach): Don't reuse free slots due to potential cache
25855 problems.
25856 * include/grub/serial.h: Moved to ..
25857 * include/grub/ns8250.h: ...this.
25858 * include/grub/serial.h: New file.
25859 * include/grub/term.h (grub_term_poll_usb): New variable.
25860 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25861 readkey. All users updated.
25862 (grub_terminfo_output_state): Pass term to put.
25863 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25864 (grub_usb_controller_dev): Add timeout and actual arguments to
25865 transfer. All users updated.
25866 (grub_usb_interface): New field detach_data.
25867 (grub_usb_device): New fields children and nports.
25868 (grub_usb_ep_type_t): New type.
25869 (grub_usb_get_ep_type): New function.
25870 (grub_usb_bulk_read_extended): Likewise.
25871 * include/grub/usbdesc.h (grub_usb_desc): New type.
25872 * include/grub/usbserial.h: New file.
25873 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25874 * kern/term.c (grub_term_poll_usb): New variable.
25875 (grub_getkey): Call grub_term_poll_usb if set.
25876 (grub_checkkey): Likewise.
25877 (grub_getkeystatus): Likewise.
25878 * term/serial.c: Moved controller-specific parts to ...
25879 * term/ns8250.c: ... here.
25880 * term/serial.c: Mostly rewritten.
25881 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25882 according to spec.
25883
25884 2010-08-20 Robert Millan <rmh@gnu.org>
25885
25886 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25887 a separate module and maybe other interesting combinations.
25888
25889 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25890 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25891 (kfreebsd_entry): Add generic filesystem module load routine.
25892 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25893
25894 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25895
25896 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25897 "numcenter" (I misunderstood the purpose of this entry).
25898 * docs/grub.texi (sendkey): Likewise.
25899
25900 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25901
25902 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25903 status flag options; simply omitting the option is equivalent and
25904 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25905 (keysym_table): Rename "num5numlock" to "numlock".
25906 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25907 can uniformly say that only the last of multiple `sendkey'
25908 invocations has any effect.
25909 * docs/grub.texi (sendkey): New section.
25910
25911 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25912
25913 * commands/i386/pc/sendkey.c (options): Fix three typos.
25914
25915 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25916
25917 Implement sendkey support.
25918
25919 * commands/i386/pc/sendkey.c: New file.
25920 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25921 (sendkey_mod_SOURCES): New variable.
25922 (sendkey_mod_CFLAGS): Likewise.
25923 (sendkey_mod_LDFLAGS): Likewise.
25924
25925 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25926
25927 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25928 fix warnings from Autoconf.
25929
25930 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25931
25932 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25933 to avoid false positives with some assemblers that output things
25934 like "someprefix_func" as part of their output.
25935
25936 2010-08-15 Robert Millan <rmh@gnu.org>
25937
25938 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25939 errors.
25940 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25941 grub_get_libzfs_handle() errors.
25942
25943 2010-08-14 Robert Millan <rmh@gnu.org>
25944
25945 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25946 filesystem is not ZFS.
25947
25948 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25949
25950 Fix for misspelled color names defaulting to black/black (bug
25951 reported by Doug Nazar)
25952
25953 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25954 status to prototype.
25955 * normal/color.c (grub_parse_color_name_pair): Return failure
25956 status.
25957 (grub_env_write_color_normal): Ignore bad color names.
25958 (grub_env_write_color_highlight): Likewise.
25959 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25960
25961 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25962
25963 "shift" command support to GRUB script.
25964
25965 * include/grub/script_sh.h (grub_script_shift): New prototype.
25966 * script/execute.c (grub_script_shift): New function.
25967 * script/main.c (grub_script_init): Register shift command.
25968 (grub_script_fini): Unregister shift command.
25969 * util/grub-script-check.c (grub_script_cmd_shift): New function.
25970
25971 * tests/grub_script_shift.in: New testcase.
25972 * conf/tests.rmk: Rules for new testcase.
25973
25974 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25975
25976 "continue" command support to GRUB script.
25977
25978 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
25979 (grub_script_break): Continue support.
25980 * script/main.c (grub_script_init): Register continue command.
25981 (grub_script_fini): Unregister continue command.
25982
25983 * tests/grub_script_continue.in: New testcase.
25984 * conf/tests.rmk: Rules for new testcase.
25985
25986 2010-08-12 BVK Chaitanya <bvk@dbook>
25987
25988 "break" command support to GRUB script.
25989
25990 * conf/common.rmk: Rule updates to grub-script-check.
25991 * include/grub/misc.h (grub_min): New function.
25992 * include/grub/script_sh.h (grub_script_init): New prototype.
25993 (grub_script_fini): New prototype.
25994 (grub_script_break): New prototype.
25995 * script/main.c (grub_script_init): New function.
25996 (grub_script_fini): New function.
25997 * script/execute.c (grub_script_break): New function.
25998 * normal/main.c: Calls to grub_script_{init,fini}.
25999 * util/grub-script-check.c (grub_script_break): New function.
26000
26001 * tests/grub_script_break.in: New testcase.
26002 * conf/tests.rmk: Rules for new test case.
26003
26004 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26005
26006 Function parameters support to GRUB script.
26007
26008 * script/yylex.l (VARIABLE): Regular expression update.
26009 * script/function.c (grub_script_function_call): Moved ...
26010 * script/execute.c (grub_script_function_call): ... to here.
26011 (grub_script_execute_arglist_to_argv): Removed.
26012 (grub_script_arglist_to_argv): New function.
26013 * script/argv.c: New file.
26014 (grub_script_argv_free): New function.
26015 (grub_script_argv_next): Likewise.
26016 (grub_script_argv_append): Likewise.
26017 (grub_script_argv_split_append): Likewise.
26018 * include/grub/script_sh.h (grub_script_argv): New struct.
26019 (grub_script_argv_free): New function.
26020 (grub_script_argv_next): Likewise.
26021 (grub_script_argv_append): Likewise.
26022 (grub_script_argv_split_append): Likewise.
26023
26024 * conf/common.rmk (normal.mod): New source script/argv.c.
26025
26026 * tests/grub_script_echo1.in: More tests.
26027 * tests/grub_script_vars1.in: Likewise.
26028 * tests/grub_script_functions.in: New test case.
26029 * conf/tests.rmk: Rules for new testcase.
26030
26031 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26032
26033 Remove grub_script_cmdblock struct.
26034
26035 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26036 * script/parser.y: Likewise.
26037 * script/execute.c: Rename cmdblock suffix to cmdlist.
26038 * script/script.c: Likewise.
26039 * util/grub-script-check.c: Likewise.
26040
26041 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26042
26043 * .bzrignore: add grub-macho2img
26044
26045 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26046
26047 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26048
26049 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26050
26051 Remove the dump of sm712 initialisation sequence.
26052
26053 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26054 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26055 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26056 (GRUB_VGA_CR_*): Added many registers.
26057 (GRUB_VGA_SR_*): Likewise.
26058 (GRUB_VGA_GR_*): Likewise.
26059 (grub_vga_write_arx): New function.
26060 (grub_video_hw_config): New struct.
26061 (grub_vga_set_geometry): New function.
26062 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26063 GRUB_PCI_CLASS_SUBCLASS_VGA.
26064 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26065 * video/sm712.c (grub_sm712_write_reg): New function
26066 (grub_sm712_read_reg): Likewise.
26067 (grub_sm712_sr_write): Likewise.
26068 (grub_sm712_gr_write): Likewise.
26069 (grub_sm712_cr_write): Likewise.
26070 (grub_sm712_write_arx): Likewise.
26071 (grub_sm712_cr_shadow_write): Likewise.
26072 (grub_sm712_write_dda_lookup): Likewise.
26073 (grub_video_sm712_setup): Initialise the video rather then
26074 blindly replay the dump.
26075 (main) [TEST]: Add a routine to be able to compile as standalone for
26076 tests.
26077 * video/sm712_init.c (sm712_init): Removed.
26078 (sm712_sr_seq1): New array.
26079 (sm712_sr_seq2): Likewise.
26080
26081 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26082
26083 * include/grub/vga.h: Add missing grub/pci.h include.
26084
26085 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26086
26087 * util/grub-macho2img.c (main): fix typo
26088
26089 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26090
26091 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26092 (grub_vga_gr_read): Likewise.
26093 (grub_vga_cr_write): Likewise.
26094 (grub_vga_cr_read): Likewise.
26095 (grub_vga_sr_write): Likewise.
26096 (grub_vga_sr_read): Likewise.
26097 (grub_vga_palette_read): Likewise.
26098 (grub_vga_palette_write): Likewise.
26099 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26100 (grub_sm712_sr_read): New function.
26101 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26102 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26103
26104 2010-08-09 Robert Millan <rmh@gnu.org>
26105
26106 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26107 out unused variables on non-ZFS build.
26108
26109 2010-08-08 Robert Millan <rmh@gnu.org>
26110
26111 Fix path generation for sub-filesystems in ZFS.
26112
26113 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26114 missing slash.
26115
26116 2010-08-08 Robert Millan <rmh@gnu.org>
26117
26118 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26119
26120 2010-08-08 Robert Millan <rmh@gnu.org>
26121
26122 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26123 exist, issue a proper error message (rely on `ls' for translated
26124 strings).
26125
26126 2010-08-08 Robert Millan <rmh@gnu.org>
26127
26128 Fix grub-probe invocation.
26129
26130 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26131
26132 2010-08-04 Robert Millan <rmh@gnu.org>
26133
26134 * configure.ac: Remove checks for getfsstat() and getmntany().
26135 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26136 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26137 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26138 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26139 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26140 function.
26141 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26142 via find_mount_point_from_dir() and getfsstat() / getmntany().
26143
26144 2010-08-04 Robert Millan <rmh@gnu.org>
26145
26146 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26147 (grub_find_zpool_from_mount_point): Merge into ...
26148 (grub_find_zpool_from_dir): ... this.
26149 * kern/emu/misc.c: Likewise.
26150
26151 * kern/emu/misc.c
26152 (grub_make_system_path_relative_to_its_root): Replace
26153 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26154 with grub_find_zpool_from_dir().
26155 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26156
26157 2010-08-04 Robert Millan <rmh@gnu.org>
26158
26159 Support OpenSolaris in ZFS device resolution.
26160
26161 * configure.ac: Check for getmntany().
26162 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26163 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26164 support.
26165
26166 2010-08-03 Robert Millan <rmh@gnu.org>
26167
26168 Fix grub-emu build.
26169
26170 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26171 * include/grub/emu/misc.h: ... here.
26172
26173 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26174 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26175
26176 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26177 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26178 (grub_get_libzfs_handle): Move to ...
26179 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26180 (grub_get_libzfs_handle): ... here.
26181
26182 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26183
26184 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26185 as command name case.
26186
26187 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26188
26189 * disk/raid.c (insert_array): Select unique numbers for named arrays
26190 as well, for use as keys in the disk cache.
26191
26192 2010-08-01 Robert Millan <rmh@gnu.org>
26193
26194 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26195 kFreeBSD device name, except on ZFS where the filesystem label is
26196 used.
26197 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26198 `/boot/zfs/zpool.cache'.
26199 Set mountfrom kernel variable using ${kfreebsd_device}.
26200
26201 2010-08-01 Robert Millan <rmh@gnu.org>
26202
26203 Make it even harder to use uninitialized `libzfs_handle' (and
26204 make the interface a bit simpler).
26205
26206 * include/grub/util/misc.h (grub_util_init_libzfs)
26207 (libzfs_handle): Remove.
26208 (grub_get_libzfs_handle): New prototype.
26209
26210 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26211 attribute.
26212 (grub_util_init_libzfs): Remove.
26213 (grub_get_libzfs_handle): New function.
26214
26215 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26216 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26217 accessing `libzfs_handle' directly.
26218
26219 2010-08-01 Robert Millan <rmh@gnu.org>
26220
26221 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26222 (grub_find_zpool_from_mount_point): New function prototypes.
26223
26224 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26225 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26226
26227 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26228 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26229 `static' attribute.
26230
26231 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26232 finding zpool from mount point into ...
26233 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26234
26235 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26236 requested path is part of a ZFS pool, use
26237 grub_find_zpool_from_mount_point() to detect its filesystem name,
26238 and generate a path with `/fsname@path' syntax.
26239
26240 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26241
26242 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26243 (void) rather than () so that this is a proper prototype.
26244
26245 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26246
26247 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26248
26249 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26250
26251 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26252 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26253
26254 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26255
26256 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26257
26258 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26259
26260 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26261
26262 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26263
26264 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26265 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26266 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26267 disable gfxpayload.
26268 (Shell-like scripting): Add real content.
26269 (Serial terminal): Suggest `terminal_input serial; terminal_output
26270 serial' rather than putting the two commands on separate lines,
26271 since console input will be inoperative after the first command.
26272 (menuentry): Document --class, --users, and --hotkey options.
26273 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26274 Vladimir Serbinenko).
26275
26276 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26277 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26278
26279 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26280
26281 2010-08-01 Robert Millan <rmh@gnu.org>
26282
26283 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26284 (grub_find_zpool_from_mount_point): New function prototypes.
26285
26286 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26287 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26288
26289 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26290 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26291 `static' attribute.
26292
26293 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26294 finding zpool from mount point into ...
26295 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26296
26297 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26298 requested path is part of a ZFS pool, use
26299 grub_find_zpool_from_mount_point() to detect its filesystem name,
26300 and generate a path with `/fsname@path' syntax.
26301
26302 2010-08-01 Robert Millan <rmh@gnu.org>
26303
26304 Prevent accidental use of uninitialized libzfs_handle.
26305
26306 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26307 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26308 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26309
26310 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26311
26312 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26313 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26314
26315 2010-08-01 Robert Millan <rmh@gnu.org>
26316
26317 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26318
26319 2010-07-31 Robert Millan <rmh@gnu.org>
26320
26321 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26322
26323 2010-07-31 Robert Millan <rmh@gnu.org>
26324
26325 * kern/emu/misc.c: Add missing license header.
26326
26327 2010-07-31 Robert Millan <rmh@gnu.org>
26328
26329 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26330
26331 * include/grub/util/libnvpair.h: Include `<config.h>'.
26332 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26333 declaring libnvpair prototypes ourselves.
26334 * include/grub/util/libzfs.h: Include `<config.h>'.
26335 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26336 declaring libzfs prototypes ourselves.
26337
26338 (libzfs_handle): Moved to ...
26339 * include/grub/util/misc.h (libzfs_handle): ... here.
26340 Include `<grub/util/libzfs.h>'.
26341
26342 2010-07-30 Robert Millan <rmh@gnu.org>
26343
26344 * include/grub/emu/misc.h: Add missing license header.
26345
26346 2010-07-30 Robert Millan <rmh@gnu.org>
26347
26348 Enable `grub-probe -t device' resolution on ZFS.
26349
26350 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26351 * include/grub/util/libnvpair.h: New file.
26352 * include/grub/util/libzfs.h: New file.
26353
26354 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26355 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26356 `<grub/util/libnvpair.h>'.
26357 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26358
26359 (find_mount_point_from_dir): New static function.
26360 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26361 function.
26362 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26363 find_root_device_from_libzfs() before ressorting to find_root_device().
26364
26365 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26366 prototype.
26367 * util/misc.c: Include `<grub/util/libzfs.h>'.
26368 (grub_util_init_libzfs): New function.
26369 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26370 [HAVE_LIBZFS] (fini_libzfs): New static function.
26371 (grub_util_init_libzfs): New function.
26372 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26373
26374 2010-07-30 Robert Millan <rmh@gnu.org>
26375
26376 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26377 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26378 `warn_unused_result' attribute.
26379 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26380 (grub_xasprintf, grub_xvasprintf): Likewise.
26381 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26382
26383 2010-07-29 Robert Millan <rmh@gnu.org>
26384
26385 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26386 (probe): Handle `PRINT_FS_LABEL'.
26387 (main): Handle `-t fs_label'.
26388
26389 2010-07-29 Robert Millan <rmh@gnu.org>
26390
26391 * configure.ac: Remove grub-mkisofs checks.
26392
26393 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26394
26395 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26396 Reported by: Lennart Sorensen.
26397
26398 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26399
26400 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26401 prior to terminal_input/terminal_output separation. It's been over 1.5
26402 years and those versions weren't widely deployed.
26403
26404 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26405
26406 * disk/raid.c (insert_array): Don't count named arrays when looking
26407 for unused array numbers.
26408 Reported and tested by: Michael Guntsche.
26409
26410 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26411
26412 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26413 implementation of this so that grub-emu links again, with a note
26414 that this should support hotplugging in the future.
26415
26416 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26417
26418 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26419
26420 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26421
26422 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26423 handle on failure.
26424 (grub_loopback_close): Remove empty function.
26425 (grub_loopback_dev): Remove close method.
26426
26427 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26428
26429 Disable EFI cursor when the EFI console becomes inactive.
26430
26431 * term/efi/console.c (grub_efi_console_init): New function.
26432 (grub_efi_console_fini): New function.
26433 (grub_console_term_output): Register init and fini methods.
26434
26435 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26436
26437 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26438 sh script.
26439
26440 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26441
26442 * disk/loopback.c (grub_loopback): Replace filename with file.
26443 (delete_loopback): Handle new semantics.
26444 (grub_cmd_loopback): Likewise.
26445 (grub_loopback_iterate): Likewise.
26446 (grub_loopback_close): Likewise.
26447
26448 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26449
26450 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26451 with -p "".
26452 Reported by: Tito Keitel.
26453
26454 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26455
26456 * docs/grub.texi (Naming convention): Document new naming convention.
26457
26458 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26459 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26460
26461 Generate device.map in something closer to the old ordering.
26462
26463 * util/deviceiter.c (struct device): New declaration.
26464 (compare_file_names): Rename to ...
26465 (compare_devices): ... this. Sort by kernel name in preference to
26466 the stable by-id name, but keep the latter as a fallback comparison.
26467 Update header comment.
26468 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26469 of `struct device' rather than of plain file names.
26470
26471 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26472
26473 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26474 on i386.
26475
26476 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26477
26478 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26479 hardcoding size.
26480 (setv1table): Likewise.
26481
26482 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26483
26484 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26485 removing the homehost if present.
26486 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26487 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26488 removing the homehost if present.
26489 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26490 if possible.
26491 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26492
26493 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26494 parameter. Set its pointer target to 0.
26495 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26496 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26497 `data_offset' value from the superblock for 1.x metadata.
26498 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26499 data on the device.
26500 (insert_array): Record the start sector of data on the device.
26501 (grub_raid_register): Pass start_sector parameters to
26502 grub_raid_list->detect and insert_array.
26503 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26504 member.
26505 (struct grub_raid): Add start_sector parameter to `detect'.
26506
26507 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26508 __attribute__ ((packed)), leaving a comment.
26509 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26510 (grub_mdraid_detect_09): ... here and ...
26511 (grub_mdraid_detect_1x): ... here.
26512
26513 2010-07-20 Peter Henn <peter.henn@web.de>
26514
26515 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26516 chunk size and disk size, which are already given as sector counts
26517 as distinct from the 0.90 units. Fetch the correct device number
26518 from the role table instead of using the table index.
26519
26520 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26521
26522 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26523 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26524 (WriteMostly1): New macro.
26525 Set array->name to NULL for metadata format 0.90. Add support for
26526 metadata 1.x. Fix some comments.
26527 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26528 few comments.
26529 * util/getroot.c (grub_util_get_grub_dev): Add support for
26530 /dev/md/name style devices.
26531
26532 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26533
26534 * .bzrignore: Ignore 20_linux_xen.
26535
26536 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26537
26538 * util/import_unicode.py: Remove unnecessary imports.
26539
26540 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26541
26542 Hotplugging and USB hub support.
26543
26544 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26545 (grub_ohci): Likewise.
26546 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26547 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26548 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26549 (GRUB_OHCI_CTRL_EDS): Likewise.
26550 (GRUB_OHCI_BULK_EDS): Likewise.
26551 (GRUB_OHCI_TDS): Likewise.
26552 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26553 (grub_ohci_ed_phys2virt): New function.
26554 (grub_ohci_virt_to_phys): Likewise.
26555 (grub_ohci_td_phys2virt): Likewise.
26556 (grub_ohci_td_virt2phys): Likewise.
26557 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26558 attachment.
26559 (grub_ohci_find_ed): New function.
26560 (grub_ohci_alloc_td): Likewise.
26561 (grub_ohci_free_td): Likewise.
26562 (grub_ohci_free_tds): Likewise.
26563 (grub_ohci_transfer): Use previously allocated memory.
26564 (grub_ohci_portstatus): Reset status changed bit.
26565 (grub_ohci_detect_dev): Supply status changed.
26566 (grub_ohci_fini_hw): Free memory.
26567 (grub_ohci_restore_hw): Reallocate memory.
26568 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26569 Reset status change.
26570 (grub_uhci_detect_dev): Supply status_change.
26571 * bus/usb/usb.c (attach_hooks): New var.
26572 (grub_usb_device_attach): New function.
26573 (grub_usb_register_attach_hook_class): Likewise.
26574 (grub_usb_unregister_attach_hook_class): Likewise.
26575 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26576 (grub_usb_add_hub): Reset connection changed bit.
26577 (attach_root_port): New function.
26578 (grub_usb_root_hub): Likewise.
26579 (poll_nonroot_hub): Likewise.
26580 (grub_usb_poll_devices): Likewise.
26581 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26582 * disk/usbms.c (grub_usbms_open): Use device hooks.
26583 (grub_usbms_iterate) :Poll devices.
26584 (grub_usbms_finddevs): Split into ...
26585 (grub_usbms_attach): ... this ...
26586 (grub_usbms_attach): ... and this.
26587 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26588 in detect_dev.
26589 (grub_usb_interface): New fields attached and detach_hook.
26590 (grub_usb_attach_hook_class): New type.
26591 (grub_usb_attach_desc): New struct.
26592 (grub_usb_register_attach_hook_class): New function.
26593 (grub_usb_unregister_attach_hook_class): Likewise.
26594 (grub_usb_poll_devices): Likewise.
26595 (grub_usb_device_attach): Likewise.
26596 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26597 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26598
26599 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26600
26601 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26602 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26603 delta determination style. Works with most NetBSD partitions too.
26604
26605 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26606
26607 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26608 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26609
26610 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26611
26612 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26613
26614 2010-07-14 Anton Blanchard <anton@samba.org>
26615
26616 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26617 ET_DYN files.
26618
26619 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26620
26621 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26622
26623 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26624
26625 * kern/partition.c (grub_partition_check_containment): New function to
26626 check that a partition is physically contained in a parent. Since
26627 offsets are relative (and non-negative), this reduces to checking that
26628 the partition ends before its parent.
26629 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26630 (grub_partition_iterate): Likewise.
26631 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26632 comments.
26633 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26634 partitions that start before their parent, and add debug printfs.
26635
26636 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26637
26638 * Makefile.in (.SUFFIX): Spell correctly, as ...
26639 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26640 bare module name without `.mod', e.g. `test') tried to invoke a
26641 Modula-2 compiler.
26642
26643 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26644
26645 * README: Point to the Info manual.
26646
26647 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26648
26649 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26650 2nd superblock position from partition size.
26651
26652 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26653
26654 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26655 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26656 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26657 outputs.
26658
26659 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26660
26661 Restructure SCSI .id handling.
26662 Reported and tested by: Aleš Nesrsta.
26663
26664 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26665 (grub_atapi_dev): Changed .name to "ata". New field .id.
26666 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26667 (grub_usbms_dev): New field .id.
26668 * disk/scsi.c (grub_scsi_iterate): Generate name.
26669 (grub_scsi_open): Parse name.
26670 * include/grub/scsi.h (grub_make_scsi_id): New function.
26671 (grub_scsi_dev): Change iterate and open to number instead of naming
26672 busses. All users updated.
26673 (grub_scsi): Remove name. Add .bus.
26674
26675 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26676
26677 * commands/help.c (grub_cmd_help): Fix a typo.
26678
26679 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26680
26681 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26682 Reported and tested by: Colin Watson.
26683
26684 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26685
26686 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26687 in this context.
26688
26689 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26690
26691 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26692
26693 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26694
26695 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26696 indentation.
26697
26698 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26699
26700 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26701 and disk/raid6_recover.c.
26702 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26703 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26704
26705 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26706
26707 * term/gfxterm.c (repaint_schedulded): Rename to ...
26708 (repaint_scheduled): ... this. Update all callers.
26709 (repaint_was_schedulded): Rename to ...
26710 (repaint_was_scheduled): ... this. Update all callers.
26711
26712 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26713
26714 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26715 which we expect to be handled by upper layers.
26716
26717 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26718
26719 * bus/usb/usbhub.c: #include time.h header.
26720
26721 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26722
26723 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26724 entry_name also for entries without stat blocks (e.g. ".."); fixes
26725 corruption of the first entry in a directory.
26726
26727 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26728
26729 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26730 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26731 doesn't work otherwise.
26732
26733 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26734
26735 * docs/grub.texi (Features): Update list of supported file systems.
26736 (GNU/Linux): Update for GRUB 2.
26737 (Serial terminal): Remove mention of --disable-serial, which was a
26738 GRUB Legacy configure option. Update instructions to use
26739 `terminal_input' and `terminal_output' rather than `terminal'.
26740 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26741 configuration' and `Installing GRUB using grub-install'.
26742 (Menu entry editor): Update for GRUB 2.
26743 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26744 Document new -a, -u, and -v options.
26745 (initrd): New section.
26746 (initrd16): New section.
26747 (linux): New section.
26748 (linux16): New section.
26749 (search): The `var' argument to `--set' is optional.
26750 (GRUB only offers a rescue shell): Go into a little more detail on
26751 drive ordering.
26752
26753 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26754
26755 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26756
26757 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26758
26759 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26760 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26761
26762 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26763
26764 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26765 install_prefix, in line with install_dos_part and install_bsd_part.
26766 Add new prefix variable, which is copied to install_prefix after
26767 comparing core.img in memory with the one read from disk in the
26768 no-embedding case, and use that rather than overwriting
26769 install_prefix immediately when installing to a partition.
26770 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26771 Bicakci.
26772
26773 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26774
26775 * configure.ac: Avoid == in test command, it's not portable.
26776 * util/grub.d/30_os-prober.in: Likewise.
26777
26778 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26779
26780 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26781
26782 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26783
26784 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26785 multiple (top-level) partmaps.
26786
26787 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26788
26789 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26790 Reported by: Tino Keitel.
26791
26792 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26793
26794 Bidi and diacritics support.
26795
26796 * Makefile.in (widthspec.bin): New target.
26797 (widthspec.h): Likewise.
26798 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26799 * autogen.sh: Generate unidata.c.
26800 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26801 * commands/ls.c (grub_ls_list_devices): Likewise.
26802 (grub_ls_list_files): Likewise.
26803 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26804 (grub_mini_cmd_lsmod): Likewise.
26805 * commands/read.c: Likewise.
26806 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26807 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26808 * lib/arg.c (grub_arg_show_help): Likewise.
26809 * lib/crypto.c (grub_password_get): Likewise.
26810 * normal/auth.c (grub_username_get): Likewise.
26811 * normal/misc.c (grub_normal_print_device_info): Likewise.
26812 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26813 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26814 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26815 (normal/charset.c_DEPENDENCIES): New variable.
26816 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26817 (pkglib_MODULES): Remove charset.mod.
26818 (charset_mod_SOURCES): Removed.
26819 (charset_mod_CFLAGS): Likewise.
26820 (charset_mod_LDFLAGS): Likewise.
26821 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26822 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26823 and term/tparm.c.
26824 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26825 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26826 (kernel_img_HEADERS): Add terminfo.h.
26827 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26828 Fill ->font. Reverse ascii bitmaps.
26829 (grub_font_get_xheight): New function.
26830 * font/font.c (grub_font_get_string_width): Moved from here ...
26831 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26832 * font/font.c (grub_font_draw_string): Moved from here ...
26833 * gfxmenu/font.c (grub_font_draw_string): ... here.
26834 * font/font.c (grub_font_dup_glyph): New function.
26835 (grub_font_blit_glyph): Likewise.
26836 (grub_font_blit_glyph_mirror): Likewise.
26837 (blit_comb): Likewise.
26838 (grub_font_construct_dry_run): Likewise.
26839 (grub_font_get_constructed_device_width): Likewise.
26840 (grub_font_construct_glyph): Likewise.
26841 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26842 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26843 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26844 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26845 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26846 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26847 (grub_font_get_xheight): New proto.
26848 (grub_font_get_constructed_device_width): Likewise.
26849 (grub_font_construct_glyph): Likewise.
26850 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26851 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26852 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26853 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26854 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26855 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26856 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26857 (grub_console_getcharwidth): Likewise.
26858 * include/grub/misc.h (grub_xputs): New proto.
26859 (grub_puts): Inlined.
26860 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26861 (grub_normal_get_line_counter): Removed.
26862 (grub_install_newline_hook): Likewise.
26863 (grub_normal_get_char_counter): New proto.
26864 (grub_normal_reset_more): Likewise.
26865 (grub_xputs_normal): Likewise.
26866 * include/grub/powerpc/ieee1275/console.h: Removed.
26867 * include/grub/sparc64/ieee1275/console.h: Likewise.
26868 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26869 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26870 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26871 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26872 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26873 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26874 (grub_term_input): Pass reference to self. All users updated.
26875 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26876 Pass reference to self. New fields normal_color, highlight_color and
26877 data. All users updated.
26878 (grub_putchar): Removed.
26879 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26880 (grub_unicode_estimate_width): New function.
26881 (grub_term_getcharwidth): Add defaults.
26882 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26883 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26884 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26885 (grub_cls): Remove EXPORT_FUNC.
26886 (grub_setcolorstate): Inline.
26887 (grub_newline_hook): Removed.
26888 * include/grub/terminfo.h: Rewritten. All users updated.
26889 * include/grub/unicode.h: New file.
26890 * include/grub/video.h (grub_video_signed_rect): New type.
26891 * kern/emu/console.c (grub_console_highlight_color): Removed.
26892 (grub_console_normal_color): Likewise.
26893 (grub_console_standard_color): Made static.
26894 (grub_ncurses_putchar): Remove mapping.
26895 (grub_ncurses_getcharwidth): Removed.
26896 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26897 (grub_ncurses_setcolor): Removed.
26898 (grub_ncurses_getcolor): Likewise.
26899 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26900 (grub_console_putchar): ... this.
26901 (grub_console_putchar): Handle argument difference.
26902 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26903 console_init_early and console_init_lately.
26904 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26905 * kern/misc.c (grub_puts): Removed.
26906 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26907 (grub_vsnprintf_real): Remove str = NULL support.
26908 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26909 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26910 * kern/term.c (grub_putcode): Renamed to ...
26911 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26912 (grub_putchar): Removed.
26913 (grub_xputs_dumb): New function.
26914 (grub_xputs): New variable.
26915 * lib/charset.c: Move from here ...
26916 * normal/charset.c: ... to here.
26917 (grub_ucs4_to_utf8): New function.
26918 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26919 (join_types): New variable.
26920 (unpack_join): New function.
26921 (bidi_types): New variable.
26922 (unpack_bidi): New function.
26923 (get_bidi_type): Likewise.
26924 (get_join_type): Likewise.
26925 (is_mirrored): Likewise.
26926 (grub_unicode_get_comb_type): Likewise.
26927 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26928 (is_type_after): Likewise.
26929 (grub_unicode_aglomerate_comb): Likewise.
26930 (bidi_line_wrap): Likewise.
26931 (grub_bidi_line_logical_to_visual): Likewise.
26932 (grub_bidi_logical_to_visual): Likewise.
26933 (grub_unicode_mirror_code): Likewise.
26934 (grub_unicode_shape_code): Likewise.
26935 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26936 Don't use grub_putchar.
26937 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26938 (grub_normal_reader_init): Likewise.
26939 (grub_xputs_saved): New variable.
26940 (GRUB_MOD_INIT): Set grub_xputs.
26941 (GRUB_MOD_FINI): Restore grub_xputs.
26942 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26943 (menu_init): Avoid printing gfxmenu error.
26944 (show_menu): Use grub_normal_get_char_counter.
26945 * normal/menu_entry.c (update_screen): Fix out-of-array.
26946 (complete): Avoid NULL dereferencing.
26947 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26948 * normal/menu_text.c (print_spaces): Removed.
26949 (grub_print_ucs4): Likewise.
26950 (grub_print_message_indented): Use grub_print_ucs4.
26951 (print_message): Use grub_putcode.
26952 (print_entry): Hanlde diacritics.
26953 * normal/term.c (term_state): New type.
26954 (grub_more_lines): Removed.
26955 (term_states): New variable.
26956 (grub_normal_line_counter): Renamed to ..
26957 (grub_normal_char_counter): ...this. All users updated.
26958 (grub_normal_get_line_counter): Renamed to ...
26959 (grub_normal_get_char_counter): ... this.
26960 (grub_normal_reset_more): New function.
26961 (process_newline): Removed.
26962 (print_more): New function.
26963 (grub_install_newline_hook): Removed.
26964 (map_code): New function.
26965 (grub_puts_terminal): Use grub_print_ucs4.
26966 (putglyph): New function.
26967 (putcode_real): Likewise.
26968 (grub_putcode): Use putcode_real.
26969 (get_maxwidth): New function.
26970 (get_startwidth): Likewise.
26971 (print_ucs4_terminal): Likewise.
26972 (find_term_state): Likewise.
26973 (put_glyphs_terminal): Likewise.
26974 (print_backlog): Likewise.
26975 (print_ucs4_real): Likewise.
26976 (grub_print_ucs4): Likewise.
26977 (grub_xputs_normal): Likewise.
26978 * term/efi/console.c (grub_console_putchar): Output diacritics.
26979 (grub_console_getcharwidth): Removed.
26980 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26981 * term/gfxterm.c (clear_char): Free chars.
26982 (scroll_up): Avoid leaking memory.
26983 (grub_gfxterm_putchar): Support diacritics.
26984 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
26985 * term/i386/pc/console.c (grub_console_term_output): Declare as
26986 GRUB_TERM_CODE_TYPE_VGA.
26987 * term/i386/pc/vga.c (grub_vga_term): Declare as
26988 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
26989 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
26990 GRUB_TERM_CODE_TYPE_VGA.
26991 * term/i386/vga_common.c (map_char): Removed.
26992 (grub_console_putchar): Likewise.
26993 (grub_console_getcharwidth): Likewise.
26994 * term/ieee1275/ofconsole.c: Simplify using terminfo.
26995 (colors): Reordered to match terminfo.
26996 (grub_ofconsole_normal_color): Removed.
26997 (grub_ofconsole_writeesc): Likewise.
26998 (grub_ofconsole_highlight_color): Likewise.
26999 (grub_ofconsole_getcharwidth): Likewise.
27000 (grub_ofconsole_setcolorstate): Likewise.
27001 (grub_ofconsole_setcolor): Likewise.
27002 (grub_ofconsole_getcolor): Likewise.
27003 (grub_ofconsole_readkey): Renamed to ...
27004 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27005 key.
27006 (grub_ofconsole_checkkey): Removed.
27007 (grub_ofconsole_getkey): Likewise.
27008 (grub_ofconsole_getxy): Likewise.
27009 (grub_ofconsole_gotoxy): Likewise.
27010 (grub_ofconsole_cls): Likewise.
27011 (grub_ofconsole_refresh): Likewise.
27012 (grub_ofconsole_terminfo_input): New struct.
27013 (grub_ofconsole_terminfo_output): Likewise.
27014 (grub_ofconsole_term_input): Use terminfo.
27015 (grub_ofconsole_term_output): Likewise.
27016 (grub_console_init): Split into ...
27017 (grub_console_init_early): ...this and ...
27018 (grub_console_init_lately): ...this. Use terminfo.
27019 (grub_ofconsole_putchar): Renamed to ...
27020 (put): ... this. Remove mapping.
27021 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27022 * term/serial.c: Simplify using terminfo.
27023 (xpos): Removed.
27024 (ypos): Likewise.
27025 (keep_track): Likewise.
27026 (registered): Likewise.
27027 (input_buf): Likewise.
27028 (npending): Likewise.
27029 (serial_translate_key_sequence): Likewise.
27030 (fill_input_buf): Likewise.
27031 (grub_serial_checkkey): Likewise.
27032 (grub_serial_getkey): Likewise.
27033 (grub_serial_getxy): Likewise.
27034 (grub_serial_gotoxy): Likewise.
27035 (grub_serial_putchar): Likewise.
27036 (grub_serial_cls): Likewise.
27037 (grub_serial_setcolorstate): Likewise.
27038 (grub_serial_setcursor): Likewise.
27039 (serial_hw_init): Use serial_hw_fetch.
27040 (grub_serial_terminfo_input): New variable.
27041 (grub_serial_terminfo_output): Likewise.
27042 (grub_serial_term_input): Use terminfo.
27043 (grub_serial_term_output): Likewise.
27044 * term/terminfo.c (putstr): Use put.
27045 (grub_terminfo_all_free): New function
27046 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27047 (grub_terminfo_output_register): New function.
27048 (grub_terminfo_output_unregister): Likewise.
27049 (grub_terminfo_getxy): Likewise.
27050 (grub_terminfo_readkey): Likewise.
27051 (grub_terminfo_checkkey): Likewise.
27052 (grub_terminfo_getkey): Likewise.
27053 (grub_terminfo_input_init): Likewise.
27054 (print_terminfo): Likewise.
27055 (grub_cmd_terminfo): Handle encoding.
27056 (grub_terminfo_gotoxy): Track position.
27057 (grub_terminfo_cls): Likewise.
27058 (grub_terminfo_putchar): Likewise.
27059 (grub_terminfo_setcolorstate): Handle colors
27060 (grub_terminfo_cursor_on): This ...
27061 (grub_terminfo_cursor_off): ... and this merged into ...
27062 (grub_terminfo_setcursor): ... this.
27063 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27064 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27065 * unicode/BidiMirroring.txt: Likewise.
27066 * unicode/UnicodeData.txt: Likewise.
27067 * unicode/COPYING: Likewise.
27068 * util/grub-editenv.c (grub_putchar): Removed.
27069 (grub_xputs_real): New function.
27070 (grub_xputs): New variable.
27071 * util/grub-fstest.c (grub_putchar): Removed.
27072 (grub_xputs_real): New function.
27073 (grub_xputs): New variable.
27074 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27075 (grub_xputs_real): New function.
27076 (grub_xputs): New variable.
27077 * util/grub-probe.c (grub_putchar): Removed.
27078 (grub_xputs_real): New function.
27079 (grub_xputs): New variable.
27080 * util/grub-script-check.c (grub_putchar): Removed.
27081 (grub_xputs_real): New function.
27082 (grub_xputs): New variable.
27083 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27084 (grub_xputs_real): New function.
27085 (grub_xputs): New variable.
27086 * util/import_unicode.py: New file.
27087 * util/grub-mkfont.c (ft_errmsgs): New array.
27088 (grub_glyph_info): Make bitmap a pointer.
27089 (file_formats): New type WIDTH_SPEC.
27090 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27091 (options): Add width-spec.
27092 (help): Likewise.
27093 (add_char): Renamed to ...
27094 (add_glyph): ... this.
27095 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27096 (glyph_replace): New type.
27097 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27098 (add_char): New function.
27099 (add_subst): Likewise.
27100 (process_cursive): Likewise.
27101 (add_font): Handle GSUB.
27102 (write_font_width_spec): New function.
27103 (main): Sort glyphs.
27104 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27105 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27106 * kern/term.c (grub_cls): Moved from here...
27107 * normal/term.c (grub_cls): ... here.
27108
27109 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27110
27111 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27112 suitable for using within the format argument of printf when
27113 converting grub_size_t.
27114 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27115 "x" to convert grub_size_t arguments.
27116
27117 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27118
27119 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27120 too long captions.
27121 (list_get_minimal_size): Take selection box into account.
27122
27123 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27124
27125 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27126 NULL font.
27127
27128 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27129
27130 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27131 devices when iterating over /dev/disk/by-id; they will be handled
27132 later if appropriate, which they aren't always (e.g. LVM).
27133
27134 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27135
27136 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27137 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27138 fails.
27139 (grub_halt): Likewise.
27140 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27141 reset-all fails.
27142 (grub_halt): Don't return, even if all of shut-down, power-off, and
27143 poweroff fail.
27144
27145 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27146
27147 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27148 arguments, not three.
27149
27150 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27151
27152 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27153 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27154 LVM-on-RAID is handled correctly.
27155
27156 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27157
27158 * docs/grub.texi (Changes from GRUB Legacy): New section.
27159 (Future): Fix typo.
27160
27161 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27162
27163 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27164 grub.d/README accidentally ends up executable for one reason or
27165 another. Ignore it.
27166
27167 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27168
27169 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27170 (gpt_partition_map_iterate): Support non-512B sectors.
27171
27172 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27173
27174 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27175 Tested by: Seth Goldberg.
27176
27177 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27178
27179 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27180 Properly align mbi.
27181 Reported by: Seth Goldberg.
27182
27183 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27184
27185 * util/grub-mkrescue.in: Avoid module duplication.
27186
27187 2010-07-01 Sean Finney <seanius@seanius.net>
27188
27189 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27190
27191 2010-07-01 Sean Finney <seanius@seanius.net>
27192
27193 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27194
27195 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27196
27197 * disk/lvm.c (grub_lvm_checkvalue): New function.
27198 (grub_lvm_check_flag): Likewise.
27199
27200 2010-07-01 Robert Millan <rmh@gnu.org>
27201
27202 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27203 Support 'p' as partition separator on kernel of FreeBSD (used
27204 with GPT labels).
27205 (grub_util_biosdisk_get_grub_dev): Likewise.
27206
27207 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27208
27209 Yeeloong firmware port.
27210
27211 * boot/mips/yeeloong/fwstart.S: New file.
27212 * bus/cs5536.c (gpiodump): New const.
27213 (set_io_space): New function.
27214 (set_iod): Likewise.
27215 (set_p2d): Likewise.
27216 (grub_cs5536_init_geode): Likewise.
27217 * commands/mips/yeeloong/lsspd.c: New file.
27218 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27219 (serial_mod_SOURCES): New variable.
27220 (serial_mod_CFLAGS): Likewise.
27221 (serial_mod_LDFLAGS): Likewise.
27222 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27223 term/terminfo.c and term/tparm.c.
27224 (pkglib_IMAGES): Add fwstart.img.
27225 (fwstart_img_SOURCES): New variable.
27226 (fwstart_img_CFLAGS): Likewise.
27227 (fwstart_img_ASFLAGS): Likewise.
27228 (fwstart_img_LDFLAGS): Likewise.
27229 (fwstart_img_FORMAT): Likewise.
27230 (pkglib_MODULES): Add lsspd.mod.
27231 (lsspd_mod_SOURCES): New variable.
27232 (lsspd_mod_CFLAGS): Likewise.
27233 (lsspd_mod_LDFLAGS): Likewise.
27234 (pkglib_MODULES): Add halt.mod.
27235 (halt_mod_SOURCES): New variable.
27236 (halt_mod_CFLAGS): Likewise.
27237 (halt_mod_LDFLAGS): Likewise.
27238 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27239 (serial_mod_SOURCES): Removed.
27240 (serial_mod_CFLAGS): Likewise.
27241 (serial_mod_LDFLAGS): Likewise.
27242 * disk/ata.c (check_device): New function.
27243 (grub_ata_device_initialize): Use check_device.
27244 (grub_ata_iterate): Recheck devices.
27245 (grub_ata_open): Likewise.
27246 (grub_atapi_iterate): Likewise.
27247 (grub_atapi_open): Likewise.
27248 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27249 (GRUB_ATA_CH1_PORT1): Likewise.
27250 (GRUB_ATA_CH0_PORT2): Likewise.
27251 (GRUB_ATA_CH1_PORT2): Likewise.
27252 * include/grub/mips/loongson.h: New file.
27253 * include/grub/mips/yeeloong/ec.h: Likewise.
27254 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27255 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27256 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27257 * include/grub/misc.h (grub_halt): Declare as noreturn.
27258 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27259 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27260 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27261 (UART_ENABLE_DTRRTS): Likewise.
27262 (UART_ENABLE_MODEM): Removed.
27263 (UART_ENABLE_OUT2): New const.
27264 * include/grub/term.h (grub_term_register_input_active): New function.
27265 (grub_term_register_output_active): Likewise.
27266 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27267 argument.
27268 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27269 (init_pci): New function.
27270 (grub_machine_init): Execute platform init when firmware. Init serial.
27271 (grub_halt): Implement.
27272 (grub_exit): Likewise.
27273 (grub_reboot): Likewise.
27274 * term/serial.c (serial_hw_init): Update macros.
27275 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27276 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27277 (image_targets): New target mipsel-yeeloong-flash.
27278 (generate_image): Support IMAGE_YEELOONG_FLASH.
27279 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27280 (grub_video_sm712_setup): Init card.
27281 (grub_video_sm712_set_palette): Removed.
27282 * video/sm712_init.c: New file.
27283
27284 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27285
27286 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27287 PATH when running help2man and then run it on the unadorned
27288 executable names, rather than passing $(builddir)/* paths to
27289 help2man. This avoids the build directory ending up in generated
27290 manual pages.
27291
27292 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27293
27294 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27295 to avoid accidents when debugging with 'sh -x'.
27296 * util/grub-mkrescue.in: Likewise.
27297 * util/grub.d/00_header.in: Likewise.
27298 * util/grub.d/10_hurd.in: Likewise.
27299 * util/grub.d/10_kfreebsd.in: Likewise.
27300 * util/grub.d/10_linux.in: Likewise.
27301 * util/grub.d/10_netbsd.in: Likewise.
27302 * util/grub.d/10_windows.in: Likewise.
27303 * util/grub.d/20_linux_xen.in: Likewise.
27304 * util/grub.d/30_os-prober.in: Likewise.
27305 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27306
27307 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27308
27309 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27310 last character in the buffer.
27311 Reported by: Vladimir Serbinenko.
27312
27313 2010-06-29 Robert Millan <rmh@gnu.org>
27314
27315 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27316 (Command-line and menu entry commands): Document `badram' command.
27317
27318 2010-06-28 Robert Millan <rmh@gnu.org>
27319
27320 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27321 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27322 command using ${GRUB_BADRAM} as parameter.
27323
27324 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27325
27326 * docs/grub.texi (Device map): New section.
27327 (Themes): New section (stub).
27328 * Makefile.in (docs/grub.info): The info documentation now builds
27329 without errors. Make sure it stays that way.
27330
27331 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27332
27333 Use normal parser for menu entries.
27334 Reported by: Thomas Frauendorfer
27335
27336 * include/grub/parser.h (grub_parser_execute): Don't export.
27337 * normal/menu.c (grub_menu_execute_entry_real): New function.
27338 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27339
27340 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27341
27342 * docs/grub.texi (Embedded configuration): New section (replacing
27343 old "Preset Menu" stub).
27344 (Images): New section.
27345 (configfile): Note that any menu entries defined in `file' are shown
27346 immediately.
27347
27348 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27349
27350 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27351
27352 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27353
27354 * util/grub-install.in: Add --debug-image= option.
27355
27356 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27357
27358 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27359 possible on Linux.
27360
27361 * util/deviceiter.c (check_device): Rename to ...
27362 (check_device_readable_unique): ... this. Update all callers.
27363 Maintain and check a list of which devices (by canonicalized name)
27364 have already been seen.
27365 (clear_seen_devices): New function.
27366 (compare_file_names) [__linux__]: New function.
27367 (grub_util_iterate_devices): Clear the list of seen devices on exit
27368 and (just in case) on entry.
27369 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27370 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27371 seen-devices list, superseded by general code in check_device.
27372
27373 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27374
27375 * commands/cat.c (options): New variable.
27376 (grub_cmd_cat): Parse options. If the --dos option is given, print
27377 DOS-style "\r\n" line endings as simple newlines (Debian bug
27378 #586358).
27379 (GRUB_MOD_INIT): Use extcmd.
27380 (GRUB_MOD_FINI): Likewise.
27381 * docs/grub.texi (cat): Document --dos.
27382
27383 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27384
27385 XEN with Linux grub-mkconfig support.
27386
27387 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27388 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27389 GRUB_CMDLINE_XEN_DEFAULT.
27390 * util/grub.d/20_linux_xen.in: New file.
27391
27392 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27393
27394 Initialise VGA video on qemu ourselves.
27395
27396 * boot/i386/qemu/boot.S: Don't call 0xc000.
27397 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27398 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27399 (kernel_img_HEADERS): Add pci.h.
27400 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27401 * configure.ac: Force unifont on qemu and yeeloong.
27402 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27403 (grub_vga_palette_write): Use correct register.
27404 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27405 Call grub_qemu_init_cirrus.
27406 * kern/i386/qemu/init.c: New file.
27407 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27408
27409 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27410
27411 2010-06-26 Pavel Roskin <proski@gnu.org>
27412
27413 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27414 13.
27415
27416 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27417
27418 * docs/grub.texi (Simple configuration): Explain that
27419 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27420 set to `true' to disable their respective recovery entries, not
27421 merely set.
27422
27423 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27424
27425 Make the `source' command slightly faster.
27426
27427 * normal/main.c (grub_normal_execute): Don't re-read list files when
27428 nested.
27429
27430 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27431
27432 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27433 field position and mask size to red fields from mode_info, not
27434 green.
27435 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27436 Remove redundant tag->common.framebuffer_type assignment.
27437 Reported by: Seth Goldberg.
27438
27439 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27440
27441 Sync up other versions of the Linux loader with Robert Millan's
27442 change of 2010-01-09, "Make loader output a bit more user-friendly".
27443
27444 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27445 grub_dprintf().
27446 (grub_cmd_linux): Likewise.
27447 (grub_cmd_initrd): Likewise.
27448 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27449 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27450
27451 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27452
27453 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27454 larger than MEMORY_MAP_SIZE.
27455
27456 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27457
27458 Fix parallel build.
27459
27460 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27461 dependency.
27462 * script/parser.y: #include grub_script.tab.h header.
27463
27464 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27465
27466 Support >3GiB and <16MiB RAM in i386-qemu.
27467
27468 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27469 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27470 (grub_lower_mem): Removed.
27471 (grub_upper_mem): Likewise.
27472 (mem_size): Made static.
27473 (above_4g): New variable.
27474 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27475 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27476 support.
27477
27478 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27479
27480 Cirrus 5446 and Bochs video cards support.
27481
27482 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27483 video_bochs.mod
27484 (video_cirrus_mod_SOURCES): New variable.
27485 (video_cirrus_mod_CFLAGS): Likewise.
27486 (video_cirrus_mod_LDFLAGS): Likewise.
27487 (video_bochs_mod_SOURCES): Likewise.
27488 (video_bochs_mod_CFLAGS): Likewise.
27489 (video_bochs_mod_LDFLAGS): Likewise.
27490 * include/grub/vga.h: New file.
27491 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27492 (grub_video_fb_set_page_t): New type.
27493 (grub_video_fb_setup): New prototype.
27494 (grub_video_fb_swap_buffers): Likewise.
27495 (grub_video_fb_get_info_and_fini): Likewise.
27496 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27497 (CRTC_DATA_PORT): Likewise.
27498 (CRTC_CURSOR): Likewise.
27499 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27500 (CRTC_CURSOR_ADDR_LOW): Likewise.
27501 (CRTC_CURSOR_DISABLE): Likewise.
27502 (update_cursor): Use grub_vga_cr_write.
27503 (grub_vga_text_setcursor): Likewise.
27504 * video/bochs.c: New file.
27505 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27506 (palette): Likewise.
27507 (palette_size): Likewise.
27508 (framebuffer): New variable.
27509 (grub_video_fb_init): Use 'framebuffer'.
27510 (grub_video_fb_fini): Likewise.
27511 (grub_video_fb_get_info): Likewise.
27512 (grub_video_fb_get_palette): Likewise.
27513 (grub_video_fb_set_palette): Likewise.
27514 (grub_video_fb_set_viewport): Likewise.
27515 (grub_video_fb_get_viewport): Likewise.
27516 (grub_video_fb_map_color): Likewise.
27517 (grub_video_fb_map_rgb): Likewise.
27518 (grub_video_fb_map_rgba): Likewise.
27519 (grub_video_fb_unmap_color): Likewise.
27520 (grub_video_fb_unmap_color_int): Likewise.
27521 (grub_video_fb_fill_rect): Likewise.
27522 (grub_video_fb_blit_bitmap): Likewise.
27523 (grub_video_fb_blit_render_target): Likewise.
27524 (grub_video_fb_scroll): Likewise.
27525 (grub_video_fb_create_render_target): Likewise.
27526 (grub_video_fb_doublebuf_blit_init): Likewise.
27527 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27528 (doublebuf_pageflipping_update_screen): New function.
27529 (doublebuf_pageflipping_init): Likewise.
27530 (grub_video_fb_setup): Likewise.
27531 (grub_video_fb_swap_buffers): Likewise.
27532 (grub_video_fb_get_info_and_fini): Likewise.
27533 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27534 All users updated.
27535 (doublebuf_pageflipping_commit): Restructured into ...
27536 (doublebuf_pageflipping_set_page): ... this.
27537 (doublebuf_pageflipping_update_screen): Removed.
27538 (doublebuf_pageflipping_init): Likewise.
27539 (double_buffering_init): Likewise.
27540 (grub_video_vbe_setup): Use grub_video_fb_setup.
27541 (grub_video_vbe_swap_buffers): Removed.
27542 (grub_video_vbe_set_active_render_target): Likewise.
27543 (grub_video_vbe_get_active_render_target): Likewise.
27544 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27545 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27546 grub_video_fb_set_active_render_target and
27547 grub_video_fb_get_active_render_target.
27548 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27549 (SEQUENCER_DATA_PORT): Likewise.
27550 (MAP_MASK_REGISTER): Likewise.
27551 (CRTC_ADDR_PORT): Likewise.
27552 (CRTC_DATA_PORT): Likewise.
27553 (START_ADDR_HIGH_REGISTER): Likewise.
27554 (START_ADDR_LOW_REGISTER): Likewise.
27555 (GRAPHICS_ADDR_PORT): Likewise.
27556 (GRAPHICS_DATA_PORT): Likewise.
27557 (READ_MAP_REGISTER): Likewise.
27558 (INPUT_STATUS1_REGISTER): Likewise.
27559 (INPUT_STATUS1_VERTR_BIT): Likewise.
27560 (get_map_mask): Use grub_vga_sr_read.
27561 (set_map_mask): Use grub_vga_sr_write.
27562 (set_read_map): Use grub_vga_gr_write.
27563 (set_start_address): Use grub_vga_cr_write.
27564 * video/sm712.c (framebuffer): Remove leftover fields.
27565
27566 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27567
27568 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27569 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27570 instead. Replace the gfxterm backend check with a check that
27571 ${GRUB_PREFIX}/video.lst is non-empty.
27572 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27573 again.
27574 (load_video): New generated function. Call it before loading
27575 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27576 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27577 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27578 * docs/grub.texi (Simple configuration): Document
27579 GRUB_VIDEO_BACKEND.
27580
27581 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27582
27583 Use video functions in linux and xnu loaders.
27584
27585 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27586 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27587 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27588 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27589 loader/i386/pc/linux.c.
27590 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27591 (find_line_len): Removed.
27592 (find_framebuf): Likewise.
27593 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27594 * loader/i386/efi/xnu.c: Removed.
27595 * loader/i386/pc/xnu.c: Moved from here...
27596 * loader/i386/xnu.c: ...here.
27597
27598 Enable priorities in video drivers.
27599
27600 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27601 (grub_video_adapter): New field prio.
27602 (grub_video_register): Respect prio when inserting.
27603 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27604 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27605 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27606 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27607 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27608 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27609 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27610
27611 Fix SDL driver ID.
27612
27613 * include/grub/video.h (grub_video_driver_id_t): New value
27614 GRUB_VIDEO_DRIVER_SDL.
27615 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27616
27617 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27618
27619 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27620 argument to printf.
27621 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27622
27623 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27624
27625 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27626 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27627
27628 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27629
27630 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27631 directly, and recommend grub-install instead.
27632 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27633
27634 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27635
27636 Fix i386-pc prefix handling with nested partitions (Debian bug
27637 #585068). Note that the case where the core image is booted using
27638 multiboot and relocated from its original location still requires
27639 more work.
27640
27641 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27642 with "(,", fill the boot drive in between those two characters, but
27643 expect that a full partition specification including partition map
27644 names will follow.
27645 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27646 specified, write a prefix without the drive name but including a
27647 full partition specification.
27648
27649 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27650
27651 * util/grub-mkconfig.in: Ignore non-option arguments, for
27652 compatibility with older versions (before 2010-06-12) which did the
27653 same. In particular, this makes it easier to ship an update-grub
27654 wrapper which is compatible with that used with GRUB Legacy (Debian
27655 bug #586056).
27656
27657 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27658
27659 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27660 for manual page generation.
27661
27662 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27663
27664 * po/POTFILES: Remove leftover commands/handler.c.
27665
27666 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27667
27668 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27669 left this script non-functional.
27670
27671 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27672
27673 * docs/man/grub-emu.h2m: New file.
27674
27675 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27676
27677 * docs/grub.texi (Commands): Document reduced command set in rescue
27678 mode.
27679 (cpuid): New section.
27680
27681 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27682
27683 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27684 new partition naming style.
27685 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27686
27687 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27688
27689 Add "-o grub.iso" like cmdline options support.
27690
27691 * util/grub-install.in: Improve cmdline option parsing.
27692 * util/grub-mkconfig.in: Likewise.
27693 * util/grub-mkrescue.in: Likewise.
27694 * util/grub-reboot.in: Likewise.
27695 * util/grub-set-default.in: Likewise.
27696 * util/i386/efi/grub-install.in: Likewise.
27697 * util/ieee1275/grub-install.in: Likewise.
27698 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27699
27700 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27701
27702 * .bzrignore: Ignore 41_custom.
27703
27704 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27705
27706 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27707
27708 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27709
27710 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27711 prototype declarations.
27712
27713 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27714 generating fs, partmap, and video lists.
27715 * include/grub/fs.h (grub_fs_register): Omit prototype if
27716 GRUB_LST_GENERATOR is defined.
27717 * include/grub/partition.h (grub_partition_map_register): Likewise.
27718 * include/grub/video.h (grub_video_register): Likewise.
27719
27720 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27721
27722 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27723
27724 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27725
27726 * util/grub-mkrescue.in: Support --xorriso argument.
27727
27728 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27729
27730 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27731 Suggested by: Thomas Schmitt.
27732
27733 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27734
27735 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27736 Suggested by: Thomas Schmitt.
27737
27738 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27739
27740 custom.cfg support.
27741
27742 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27743 * util/grub.d/41_custom.in: New file.
27744
27745 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27746
27747 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27748 been merged back into normal.
27749
27750 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27751
27752 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27753 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27754
27755 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27756
27757 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27758 when generating manual pages.
27759 * docs/man/grub-bin2h.h2m: New file.
27760 * docs/man/grub-editenv.h2m: New file.
27761 * docs/man/grub-fstest.h2m: New file.
27762 * docs/man/grub-install.h2m: New file.
27763 * docs/man/grub-macho2img.h2m: New file.
27764 * docs/man/grub-mkconfig.h2m: New file.
27765 * docs/man/grub-mkdevicemap.h2m: New file.
27766 * docs/man/grub-mkfont.h2m: New file.
27767 * docs/man/grub-mkimage.h2m: New file.
27768 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27769 * docs/man/grub-mkrelpath.h2m: New file.
27770 * docs/man/grub-mkrescue.h2m: New file.
27771 * docs/man/grub-ofpathname.h2m: New file.
27772 * docs/man/grub-pe2elf.h2m: New file.
27773 * docs/man/grub-probe.h2m: New file.
27774 * docs/man/grub-reboot.h2m: New file.
27775 * docs/man/grub-script-check.h2m: New file.
27776 * docs/man/grub-set-default.h2m: New file.
27777 * docs/man/grub-setup.h2m: New file.
27778
27779 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27780
27781 Use FOR_* macros instead of *_iterate whenever possible.
27782
27783 * commands/handler.c: Removed.
27784 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27785 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27786 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27787 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27788 (grub_probe_SOURCES): Remove kern/parser.c.
27789 (util/grub-script-check.c_DEPENDENCIES): Removed.
27790 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27791 and grub_script_check_init.c.
27792 (grub_script_check_init.lst): Removed.
27793 (grub_script_check_init.h): Likewise.
27794 (grub_script_check_init.c): Likewise.
27795 (pkglib_MODULES): Remove handler.mod and sh.mod.
27796 (handler_mod_SOURCES): Removed.
27797 (handler_mod_CFLAGS): Likewise.
27798 (handler_mod_LDFLAGS): Likewise.
27799 (normal_mod_SOURCES): Remove normal/handler.c.
27800 Add script/main.c, script/script.c, script/execute.c,
27801 script/function.c, script/lexer.c, grub_script.tab.c
27802 and grub_script.yy.c.
27803 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27804 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27805 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27806 (grub_setup_SOURCES): Remove kern/parser.c.
27807 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27808 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27809 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27810 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27811 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27812 (grub_setup_SOURCES): Remove kern/parser.c.
27813 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27814 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27815 * include/grub/command.h (grub_command_iterate): Removed.
27816 (FOR_COMMANDS): New macro.
27817 * include/grub/dl.h (grub_dl): New member next.
27818 (grub_dl_iterate): Removed.
27819 (grub_dl_head): New variable declaration.
27820 (FOR_DL_MODULES): New macro.
27821 * include/grub/fs.h: Include list.h.
27822 (grub_fs): Make next first element.
27823 (grub_fs_list): New variable declaration.
27824 (grub_fs_register): Make inline.
27825 (grub_fs_unregister): Likewise.
27826 (grub_fs_iterate): Removed.
27827 (FOR_FILESYSTEMS): New macro.
27828 * include/grub/handler.h: Removed.
27829 * include/grub/list.h (grub_list_hook_t): Removed.
27830 (grub_list_test_t): Likewise.
27831 (grub_list_pop): Likewise.
27832 (grub_list_iterate): Likewise.
27833 (grub_list_insert): Likewise.
27834 (FOR_LIST_ELEMENTS): New macro.
27835 * include/grub/parser.h (grub_parser_class): Removed.
27836 (grub_parser_register): Likewise.
27837 (grub_parser_unregister): Likewise.
27838 (grub_parser_get_current): Likewise.
27839 (grub_parser_set_current): Likewise.
27840 (grub_register_rescue_parser): Likewise.
27841 (grub_rescue_parse_line): New function.
27842 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27843 * include/grub/script_sh.h (grub_script_function_list): New variable
27844 declaration.
27845 (FOR_SCRIPT_FUNCTIONS): New macro.
27846 (grub_script_function_iterate): Removed.
27847 (grub_normal_parse_line): New prototype.
27848 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27849 (FOR_DISABLED_TERM_INPUTS): Likewise.
27850 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27851 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27852 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27853 element.
27854 (grub_video_register): Inline.
27855 (grub_video_unregister): Likewise.
27856 (grub_video_adapter_list): New variable declaration.
27857 (grub_video_iterate): Removed.
27858 (FOR_VIDEO_ADAPTERS): New macro.
27859 * kern/dl.c (grub_dl_list): Removed. All users updated.
27860 (grub_dl_iterate): Removed.
27861 * kern/fs.c (grub_fs_list): Make global.
27862 (grub_fs_register): Removed.
27863 (grub_fs_unregister): Likewise.
27864 (grub_fs_iterate): Likewise.
27865 * kern/handler.c: Removed.
27866 * kern/list.c (grub_list_pop): Removed.
27867 (grub_list_iterate): Likewise.
27868 (grub_list_insert): Likewise.
27869 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27870 (grub_prio_list_insert): Don't use grub_list_insert.
27871 * kern/main.c (grub_register_rescue_parser): Don't call
27872 grub_register_rescue_parser.
27873 * kern/parser.c (grub_parser_class): Removed.
27874 (grub_parser_execute): Use grub_rescue_parse_line.
27875 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27876 (grub_rescue_parser): Removed.
27877 (grub_register_rescue_parser): Likewise.
27878 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27879 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27880 (grub_auth_check_authentication): Likewise.
27881 * normal/completion.c (iterate_command): Removed.
27882 (grub_normal_do_completion): Use FOR_COMMANDS.
27883 * normal/handler.c: Removed.
27884 * normal/main.c (read_config_file): Remove parser changing.
27885 (grub_normal_execute): Don't call read_handler_list.
27886 (grub_normal_read_line_real): Statically allocate prompt.
27887 (grub_cmdline_run): Use grub_normal_parse_line.
27888 (GRUB_MOD_FINI): Don't call free_handler_list.
27889 * normal/menu_entry.c (run): Likewise.
27890 * script/function.c (grub_script_function_list): Make global.
27891 (grub_script_function_iterate): Removed.
27892 * script/main.c (grub_normal_parse_line): Make global.
27893 (grub_sh_parser): Removed.
27894 (GRUB_MOD_INIT): Likewise.
27895 (GRUB_MOD_FINI): Likewise.
27896 * tests/lib/functional_test.c (grub_functional_test): Use
27897 FOR_LIST_ELEMENTS.
27898 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27899 (grub_test_run): Use FOR_LIST_ELEMENTS.
27900 * tests/lib/unit_test.c (main): Likewise.
27901 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27902 grub_list_pop.
27903 * util/grub-fstest.c (grub_term_input_class): Removed.
27904 (grub_term_output_class): Likewise.
27905 * util/grub-probe.c: Likewise.
27906 * util/i386/pc/grub-setup.c: Likewise.
27907 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27908 * util/grub-script-check.c (main): Don't call grub_init_all and
27909 grub_fini_all.
27910 * video/video.c (grub_video_adapter_list): Make global.
27911 (grub_video_register): Removed.
27912 (grub_video_unregister): Likewise.
27913 (grub_video_iterate): Likewise.
27914
27915 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27916
27917 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27918 reported by Henrique Ferreiro.
27919
27920 2010-06-09 Robert Millan <rmh@gnu.org>
27921
27922 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27923 ones, when both are available.
27924
27925 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27926
27927 Make --version uniform and avoid hard-coded program name.
27928
27929 * util/grub-mkimage.c (main): Use `program_name' instead of
27930 hard-coded string.
27931 * util/i386/pc/grub-setup.c (main): Likewise.
27932 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27933 * util/grub-install.in: Save the basename of $0 in $self, and use the
27934 latter in informational messages. Use the same format for --version
27935 as the binary programs.
27936 * util/grub-mkconfig.in: Likewise.
27937 * util/grub-mkrescue.in: Likewise.
27938 * util/grub-reboot.in: Likewise.
27939 * util/grub-set-default.in: Likewise.
27940 * util/i386/efi/grub-install.in: Likewise.
27941 * util/ieee1275/grub-install.in: Likewise.
27942 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27943
27944 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27945
27946 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27947 embedding area. Use <= instead of == when checking for non-emptiness.
27948
27949 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27950
27951 * configure.ac: Add `.' to the directories searched for unifont.
27952
27953 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27954
27955 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27956 grub_script.yy.h.
27957
27958 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27959
27960 * docs/grub.texi (History): Expand to cover GRUB 2.
27961 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27962 commands, not `terminal'.
27963 (serial): Likewise.
27964 (terminal_input): New section.
27965 (terminal_output): New section.
27966 (uppermem): New section (stub).
27967 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
27968
27969 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27970
27971 * docs/grub.texi (Security): Menu entries are unrestricted by
27972 default, not restricted to superusers as I had previously thought.
27973 Reword to account for this.
27974
27975 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27976
27977 * kern/emu/misc.c (device_mapper_null_log): New function.
27978 (grub_device_mapper_supported): New function.
27979 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
27980 prototype.
27981 * kern/emu/hostdisk.c (find_partition_start): Check whether
27982 device-mapper is supported before trying to use it.
27983 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
27984
27985 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27986
27987 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
27988 (File name syntax): Likewise.
27989 (help): --all is no longer supported in GRUB 2. Be more precise
27990 about pattern matching.
27991
27992 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27993
27994 * normal/completion.c (grub_normal_do_completion): When completing
27995 arguments to "set" and the current word contains an equals sign,
27996 skip to after the equals sign before starting completion.
27997
27998 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
27999
28000 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28001
28002 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28003
28004 * docs/grub.texi (Network): New section.
28005 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28006 `(nd)' as in GRUB Legacy.
28007 (pxe_unload): New section.
28008
28009 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28010
28011 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28012 in the rescue shell, so recommend using `set' instead. Thanks,
28013 Jordan Uggla.
28014
28015 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28016
28017 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28018 (password): New section.
28019 (password_pbkdf2): New section.
28020 (search): New section.
28021 (Security): New section.
28022 (Troubleshooting): New section, currently very incomplete.
28023 (Invoking grub-mkpasswd-pbkdf2): New section.
28024 (Internals): New section, currently very incomplete.
28025
28026 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28027
28028 * util/grub.d/00_header.in: Add some more quoting (of
28029 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28030 work again.
28031 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28032
28033 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28034
28035 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28036 to `count', fixing variable shadowing that broke the -c option.
28037
28038 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28039
28040 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28041 in case they contain spaces.
28042
28043 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28044
28045 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28046 "part_" to partmap module names, in line with grub-install.
28047 Reported by: Jindřich Makovička (Debian bug #584426).
28048
28049 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28050
28051 * util/grub-mkimage.c: Make target-related error messages slightly
28052 more helpful; -O talks about "format". Explicitly point to the use
28053 of -O if no target is specified.
28054 Reported by: Didier Raboud (Debian bug #584415).
28055
28056 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28057
28058 * INSTALL: Document several build requirements for optional features
28059 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28060
28061 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28062
28063 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28064 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28065 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28066
28067 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28068
28069 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28070 Thanks to Jordan Uggla for spotting this.
28071
28072 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28073
28074 Finally make USB usable.
28075
28076 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28077 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28078 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28079 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28080 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28081 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28082 (GRUB_OHCI_FSMPS): Likewise.
28083 (GRUB_OHCI_PERIODIC_START): Likewise.
28084 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28085 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28086 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28087 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28088 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28089 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28090 (grub_ohci_transaction): Likewise.
28091 (grub_ohci_transfer): Improve condition detection algorithms.
28092 Handle toggle property. Program the transactions correctly.
28093 Improve error handling. Various important fixups.
28094 (grub_ohci_portstatus): Put register writes in right order.
28095 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28096 (grub_uhci_transfer): Don't show "failed" message on success.
28097 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28098 array.
28099 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28100 determine its size.
28101 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28102 before initialization is completed. Use IN direction for empty
28103 transfers. Use last_trans and compute toggle.
28104 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28105 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28106 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28107 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28108 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28109 (grub_usb_device): Increase toggle to 256.
28110 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28111 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28112 GRUB_USBMS_SUBCLASS_SFF8070.
28113 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28114 (grub_scsi_inquiry): New member page and alloc_length.
28115 (grub_scsi_request_sense): New structure.
28116 (grub_scsi_request_sense_data): Likewise.
28117 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28118 control.
28119 * disk/scsi.c (grub_scsi_request_sense): New function.
28120 (grub_scsi_test_unit_ready): Likewise.
28121 (grub_scsi_inquiry): Fill new fields.
28122 (grub_scsi_read_capacity): Likewise.
28123 (grub_scsi_read10): Add request sense at the end.
28124 (grub_scsi_read12): Likewise.
28125 (grub_scsi_write10): Likewise.
28126 (grub_scsi_write12): Likewise.
28127 (grub_scsi_open): Add Test Unit Ready.
28128 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28129 Support additional subclasses. Con't clear halt yet. Activate the
28130 proper config. Calculate LUNs correctly.
28131 (grub_usbms_transfer): Various important fixups.
28132
28133 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28134
28135 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28136 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28137 (grub_ohci_fini_hw): New function.
28138 (grub_ohci_restore_hw): Likewise.
28139 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28140 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28141 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28142
28143 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28144
28145 Dedicated DMA allocations.
28146
28147 * bus/pci.c (grub_memalign_dma32): New function
28148 (grub_dma_free): Likewise.
28149 (grub_dma_get_virt): Likewise.
28150 (grub_dma_get_phys): Likewise.
28151 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28152 (grub_ohci_pci_iter): Use dma32_alloc.
28153 (grub_ohci_transfer): Likewise.
28154 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28155 (grub_usb_bulk_readwrite): Likewise.
28156 * include/grub/pci.h: Add declarations.
28157
28158 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28159
28160 CS5536 support.
28161
28162 * bus/cs5536.c: New file.
28163 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28164 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28165 (cs5536_mod_SOURCES): New variable.
28166 (cs5536_mod_CFLAGS): Likewise.
28167 (cs5536_mod_LDFLAGS): Likewise.
28168 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28169 machine/pci.h.
28170 (kernel_img_SOURCES): Add bus/cs5536.c.
28171 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28172 usb_keyboard.mod.
28173 (usb_mod_SOURCES): New variable.
28174 (usb_mod_CFLAGS): New variable.
28175 (usb_mod_LDFLAGS): New variable.
28176 (usbtest_mod_SOURCES): New variable.
28177 (usbtest_mod_CFLAGS): New variable.
28178 (usbtest_mod_LDFLAGS): New variable.
28179 (ohci_mod_SOURCES): New variable.
28180 (ohci_mod_CFLAGS): New variable.
28181 (ohci_mod_LDFLAGS): New variable.
28182 (usbms_mod_SOURCES): New variable.
28183 (usbms_mod_CFLAGS): New variable.
28184 (usbms_mod_LDFLAGS): New variable.
28185 (usb_keyboard_mod_SOURCES): New variable.
28186 (usb_keyboard_mod_CFLAGS): New variable.
28187 (usb_keyboard_mod_LDFLAGS): New variable.
28188 * include/grub/smbus.h: New file.
28189 * include/grub/cs5536.h: New file.
28190
28191 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28192
28193 * util/grub.d/00_header.in: Add safety check to make sure that
28194 ${locale_dir} exists before trying to probe it.
28195
28196 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28197
28198 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28199 per the GNU Coding Standards; this is now too obscure to be worth
28200 documenting.
28201 (QNX): Likewise.
28202 (chainloader): Remove cross-reference to `SCO UnixWare'.
28203
28204 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28205
28206 * docs/grub.texi (Chain-loading): New section.
28207 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28208 adjusted for GRUB 2.
28209 (SCO UnixWare): Likewise.
28210 (QNX): Likewise.
28211 (chainloader): Add reference to `Block list syntax'.
28212 (drivemap): New section.
28213 (parttool): New section.
28214
28215 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28216
28217 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28218 the grub shell'.
28219 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28220 (Installing GRUB using grub-install): Remove reference to the grub
28221 shell; mention `grub-mkimage' and `grub-setup' instead.
28222 (Invoking grub-install): Likewise.
28223 (Interface): Add reference to `Menu entry editor'.
28224 (serial): Remove `--device' option.
28225
28226 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28227
28228 * docs/grub.texi (Configuration): New section, documenting
28229 configuration file generation using grub-mkconfig. I've left a slot
28230 for documenting the full shell scripting format but have not yet
28231 started on writing that up.
28232 (Invoking grub-mkconfig): New section.
28233
28234 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28235
28236 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28237 (GNU GRUB manual): Likewise.
28238 (General commands): Update description of `terminfo' for GRUB 2.
28239
28240 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28241
28242 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28243 (GRUB_MOD_INIT): Fix capitalisation.
28244 * docs/grub.texi (Command-line and menu entry commands): Document
28245 gettext and gptsync commands.
28246
28247 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28248
28249 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28250 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28251
28252 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28253
28254 Add btrfs probing support, currently only in the single-device case.
28255
28256 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28257 function.
28258 (grub_guess_root_device): Call find_root_device_from_mountinfo
28259 before looking in /dev.
28260
28261 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28262
28263 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28264 GRUB_DISK_SIZE_UNKNOWN.
28265 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28266
28267 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28268
28269 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28270 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28271 corrupted or not synced properly.
28272
28273 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28274
28275 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28276 Reported by: Seth Goldberg.
28277
28278 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28279
28280 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28281 addition of dest.
28282 Reported by: Seth Goldberg.
28283
28284 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28285
28286 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28287 Reported by: Seth Goldberg.
28288
28289 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28290
28291 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28292 64-bit address as signed on MIPS.
28293
28294 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28295
28296 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28297 to the empty string.
28298
28299 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28300
28301 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28302
28303 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28304 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28305 * kern/misc.c (__enable_execute_stack): Disable on
28306 GRUB_MACHINE_EMU.
28307
28308 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28309
28310 Make grub-probe work with symbolic links under /dev/mapper as well
28311 as with real block devices. The Linux world seems to be (at best)
28312 in transition here, and GRUB shouldn't get caught in the middle.
28313
28314 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28315 /dev/mapper.
28316
28317 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28318
28319 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28320 input files (in which case exit zero).
28321
28322 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28323
28324 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28325 return NULL for various reasons even if it has a maximum-length
28326 buffer: for example, there might be a symlink loop, or the path
28327 might exceed PATH_MAX. If this happens, return NULL.
28328
28329 2010-05-27 Robert Millan <rmh@gnu.org>
28330
28331 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28332 partmap module to handle cross-partmap setups.
28333 Reported by Orestes Mas. Gràcies!
28334
28335 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28336
28337 * util/grub-mkrescue.in: Initialise override_dir rather than
28338 assuming that it's unset or empty in the environment.
28339
28340 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28341
28342 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28343 variable index into p_index to suppress a warning with -Wshadow.
28344
28345 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28346
28347 * INSTALL: Added flex >= 2.5.35 requirement.
28348
28349 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28350
28351 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28352
28353 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28354
28355 cmostest support.
28356
28357 * commands/i386/cmostest.c: New file.
28358 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28359 (cmostest_mod_SOURCES): New variable.
28360 (cmostest_mod_CFLAGS): Likewise.
28361 (cmostest_mod_LDFLAGS): Likewise.
28362 * conf/i386-pc.rmk: Likewise.
28363 * docs/grub.texi (Vendor power-on keys): New section.
28364 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28365 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28366 and GRUB_BUTTON_CMOS_ADDRESS.
28367 * util/grub.d/00_header.in: Handle powering-on by separate button.
28368
28369 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28370
28371 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28372 Removed drawing_scrollbar argument. All users updated
28373 Fixes #29792.
28374 Reported by Jo Shields
28375
28376 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28377
28378 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28379 buffer since gfxterm handles double repaint.
28380
28381 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28382
28383 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28384 * term/gfxterm.c (real_scroll): Likewise.
28385
28386 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28387
28388 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28389 before calling BIOS.
28390
28391 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28392
28393 * include/grub/i18n.h: Always enable grub_gettext.
28394
28395 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28396
28397 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28398 partition naming style.
28399
28400 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28401
28402 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28403 not the first option.
28404
28405 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28406
28407 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28408
28409 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28410
28411 * util/misc.c: Move inclusion of <limits.h> to ...
28412 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28413
28414 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28415
28416 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28417 Fix merge error in NetBSD code.
28418 (find_partition_start) [__NetBSD__]: Likewise.
28419
28420 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28421
28422 Fix grub-mkrescue usage unit testing.
28423
28424 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28425
28426 2010-05-18 Christian Franke <franke@computer.org>
28427
28428 * util/grub.d/10_windows.in: Use path names instead of
28429 drive letters to prevent warning from Cygwin 1.7.
28430 Add drivemap command to menuentry if needed.
28431
28432 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28433
28434 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28435 gnumach and gnumach.gz.
28436
28437 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28438
28439 * include/grub/i18n.h (gettext): Inline instead of using #define.
28440 (grub_gettext): Likewise.
28441 (_): Likewise.
28442
28443 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28444
28445 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28446 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28447 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28448 (main): Add a slash after pkglibdirroot.
28449
28450 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28451
28452 * util/grub-install.in: Add missing "in" keyword.
28453
28454 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28455
28456 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28457 Reported by: Seth Goldberg.
28458
28459 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28460
28461 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28462
28463 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28464
28465 * configure.ac: Check for Linux device-mapper support.
28466
28467 * util/hostdisk.c (device_is_mapped): New function.
28468 (find_partition_start): New function, partly broken out from
28469 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28470 device-mapper support added.
28471 (linux_find_partition): Use find_partition_start.
28472 (convert_system_partition_to_system_disk): Add `st' argument.
28473 Support Linux /dev/mapper/* devices if device-mapper support is
28474 available; only DM-RAID devices are understood at present.
28475 (find_system_device): Add `st' argument. Pass it to
28476 convert_system_partition_to_system_disk.
28477 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28478 find_system_device and convert_system_partition_to_system_disk. Use
28479 find_partition_start.
28480
28481 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28482 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28483 * util/deviceiter.c [__linux__]: Define MINOR.
28484 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28485 * util/mkdevicemap.c (grub_putchar): New function.
28486 (grub_getkey): New function.
28487 (grub_refresh): New function.
28488 (main): Set debug=all if -v -v is used.
28489
28490 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28491
28492 Fix build with non-GNU libcs.
28493
28494 * util/misc.c (canonicalize_file_name): Move to ...
28495 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28496 grub_make_system_path_relative_to_its_root.
28497
28498 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28499
28500 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28501 we handle finding grub-mkimage. Default to finding grub-mkimage in
28502 ${bindir} with program_transform_name applied, and provide a
28503 --grub-mkimage option to override this.
28504
28505 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28506
28507 Remove grub-mkisofs.
28508
28509 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28510 (grub_mkisofs_SOURCES): Removed.
28511 (grub_mkisofs_CFLAGS): Removed.
28512 * util/mkisofs/defaults.h: Removed.
28513 * util/mkisofs/eltorito.c: Likewise.
28514 * util/mkisofs/exclude.h: Likewise.
28515 * util/mkisofs/hash.c: Likewise.
28516 * util/mkisofs/include/: Likewise.
28517 * util/mkisofs/include/fctldefs.h: Likewise.
28518 * util/mkisofs/include/mconfig.h: Likewise.
28519 * util/mkisofs/include/prototyp.h: Likewise.
28520 * util/mkisofs/include/statdefs.h: Likewise.
28521 * util/mkisofs/iso9660.h: Likewise.
28522 * util/mkisofs/joliet.c: Likewise.
28523 * util/mkisofs/match.c: Likewise.
28524 * util/mkisofs/match.h: Likewise.
28525 * util/mkisofs/mkisofs.c: Likewise.
28526 * util/mkisofs/mkisofs.h: Likewise.
28527 * util/mkisofs/msdos_partition.h: Likewise.
28528 * util/mkisofs/multi.c: Likewise.
28529 * util/mkisofs/name.c: Likewise.
28530 * util/mkisofs/rock.c: Likewise.
28531 * util/mkisofs/tree.c: Likewise.
28532 * util/mkisofs/write.c: Likewise.
28533
28534 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28535
28536 Unify grub-mkimage accross platforms.
28537
28538 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28539 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28540 (grub_mkelfimage_SOURCES): Removed.
28541 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28542 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28543 (bin_UTILITIES): Add grub-mkimage.
28544 (grub_mkimage_SOURCES): New variable.
28545 (kernel_img_HEADERS): Remove machine/kernel.h.
28546 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28547 (pkglib_PROGRAMS): Add kernel.img.
28548 (kernel_img_HEADERS): Add machine/kernel.h.
28549 (kernel_img_FORMAT): Removed.
28550 (bin_UTILITIES): Remove grub-mkimage.
28551 (grub_mkimage_SOURCES): Removed.
28552 (grub_mkimage_CFLAGS): Likewise.
28553 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28554 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28555 (pkglib_PROGRAMS): Add kernel.img.
28556 (bin_UTILITIES): Remove grub-mkimage.
28557 (grub_mkimage_SOURCES): Removed.
28558 (grub_mkimage_CFLAGS): Likewise.
28559 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28560 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28561 (pkglib_PROGRAMS): Add kernel.img.
28562 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28563 (pkglib_PROGRAMS): Add kernel.img.
28564 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28565 (grub_mkimage_SOURCES): Removed.
28566 (grub_mkimage_CFLAGS): Likewise.
28567 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28568 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28569 (pkglib_PROGRAMS): Add kernel.img.
28570 (bin_UTILITIES): Remove grub-mkimage.
28571 (grub_mkimage_SOURCES): Removed.
28572 (grub_mkimage_CFLAGS): Likewise.
28573 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28574 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28575 (grub_mkimage_SOURCES): Removed.
28576 (grub_mkimage_CFLAGS): Likewise.
28577 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28578 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28579 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28580 (grub_pe32_optional_header): ... this.
28581 (grub_pe64_optional_header): ... and this. All users updated.
28582 (GRUB_PE32_PE32_MAGIC): Split into ..
28583 (GRUB_PE32_PE32_MAGIC): .. this.
28584 (GRUB_PE32_PE64_MAGIC): .. and this.
28585 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28586 * include/grub/elf.h (PT_GNU_STACK): New definition.
28587 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28588 * include/grub/i386/efi/kernel.h: Likewise.
28589 * include/grub/i386/kernel.h: Likewise.
28590 * include/grub/i386/pc/kernel.h: Likewise.
28591 * include/grub/i386/qemu/boot.h: Likewise.
28592 * include/grub/mips/kernel.h: Likewise.
28593 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28594 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28595 * include/grub/powerpc/kernel.h: Likewise.
28596 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28597 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28598 * include/grub/sparc64/kernel.h: Likewise.
28599 * include/grub/x86_64/efi/kernel.h: Likewise.
28600 * include/grub/x86_64/kernel.h: Likewise.
28601 * include/grub/offsets.h: New file.
28602 * include/grub/kernel.h (grub_module_info): Split into ...
28603 (grub_module_info32): ... this.
28604 (grub_module_info64): ... and this.
28605 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28606 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28607 (grub_boot_blocklist): Moved from here ...
28608 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28609 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28610 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28611 * include/grub/types.h (grub_target_to_host16): Removed.
28612 (grub_target_to_host32): Likewise.
28613 (grub_target_to_host64): Likewise.
28614 (grub_host_to_target16): Likewise.
28615 (grub_host_to_target32): Likewise.
28616 (grub_host_to_target64): Likewise.
28617 (grub_host_to_target_addr): Likewise.
28618
28619 Support grub-mkrescue for efi, coreboot and qemu.
28620
28621 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28622 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28623 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28624 * util/grub-mkrawimage.c: Moved from here ...
28625 * util/grub-mkimage.c: ... here. All users updated.
28626 (ALIGN_ADDR): Use image_target.
28627 (TARGET_NO_FIELD): New const.
28628 (image_target_desc): New type.
28629 (image_targets): New array.
28630 (grub_target_to_host64): Use image_target.
28631 (grub_target_to_host32): Likewise.
28632 (grub_target_to_host16): Likewise.
28633 (grub_host_to_target64): Likewise.
28634 (grub_host_to_target32): Likewise.
28635 (grub_host_to_target16): Likewise.
28636 (grub_host_to_target_addr): Likewise.
28637 (generate_image): Handle multiimage.
28638 (main): Require -O parameter. All users updated.
28639 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28640 util/efi/grub-mkimage.c
28641 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28642 New option --rom-directory.
28643 Use xorriso.
28644 * util/i386/efi/grub-mkimage.c: Removed.
28645 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28646 (grub_target_to_host32): Likewise.
28647 (grub_target_to_host64): Likewise.
28648 (grub_host_to_target16): Likewise.
28649 (grub_host_to_target32): Likewise.
28650 (grub_host_to_target64): Likewise.
28651 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28652 (grub_target_to_host32): Likewise.
28653 (grub_target_to_host64): Likewise.
28654 (grub_host_to_target16): Likewise.
28655 (grub_host_to_target32): Likewise.
28656 (grub_host_to_target64): Likewise.
28657
28658 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28659
28660 Source tree is reorganized for emu build.
28661
28662 * include/grub/util/console.h: Move from here...
28663 * include/grub/emu/console.h: ...to here.
28664 * include/grub/util/getroot.h: Move from here...
28665 * include/grub/emu/getroot.h: ...to here.
28666 * include/grub/util/hostdisk.h: Move from here...
28667 * include/grub/emu/hostdisk.h: ...to here.
28668 * util/console.c: Move from here...
28669 * kern/emu/console.c: ...to here.
28670 * util/getroot.c: Move from here...
28671 * kern/emu/getroot.c: ...to here.
28672 * util/grub-emu.c: Move from here...
28673 * kern/emu/main.c: ...to here.
28674 * util/hostdisk.c: Move from here...
28675 * kern/emu/hostdisk.c: ...to here.
28676 * util/hostfs.c: Move from here...
28677 * kern/emu/hostfs.c: ...to here.
28678 * util/mm.c: Move from here...
28679 * kern/emu/mm.c: ...to here.
28680 * util/pci.c: Move from here...
28681 * bus/emu/pci.c: ...to here.
28682 * util/sdl.c: Move from here...
28683 * video/emu/sdl.c: ...to here.
28684 * util/time.c: Move from here...
28685 * kern/emu/time.c: ...to here.
28686 * util/usb.c: Move from here...
28687 * bus/usb/emu/usb.c: ...to here.
28688
28689 * include/grub/emu/misc.h: New header for grub-emu functions.
28690 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28691
28692 * conf/any-emu.rmk: Rule updates for above renames.
28693 * conf/common.rmk: Likewise.
28694 * conf/i386-pc.rmk: Likewise.
28695 * conf/i386-qemu.rmk: Likewise.
28696 * conf/mips.rmk: Likewise.
28697 * conf/sparc64-ieee1275.rmk: Likewise.
28698 * conf/x86-efi.rmk: Likewise.
28699
28700 * disk/lvm.h: #include updates for above renames.
28701 * util/grub-mkrelpath.c: Likewise.
28702 * util/grub-probe.c: Likewise.
28703 * util/i386/pc/grub-setup.c: Likewise.
28704 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28705 * kern/emu/console.c: Likewise.
28706 * kern/emu/getroot.c: Likewise.
28707 * kern/emu/hostdisk.c: Likewise.
28708 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28709
28710 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28711 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28712 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28713 * util/misc.c: Remove grub-emu functions.
28714
28715 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28716
28717 Fix gfxmenu crash.
28718 Reported by: Thorsten Grützmacher.
28719
28720 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28721 timeout hook.
28722 (circprog_set_property): Register and unregister timeout hook.
28723 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28724 (label_destroy): Free template. and unregister hook.
28725 (label_set_state): New function.
28726 (label_set_property): Handle templates and hooks.
28727 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28728 timeout hook.
28729 (progress_bar_set_property): Register and unregister timeout hook.
28730 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28731 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28732 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28733 (update_timeout_visit): Removed.
28734 (update_timeouts): New function.
28735 (redraw_timeouts): Likewise.
28736 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28737 (grub_gfxmenu_clear_timeout): Likewise.
28738 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28739 (grub_gfxmenu_timeout_notify): Likewise.
28740 (grub_gfxmenu_timeout_notifications): New external variable.
28741 (grub_gfxmenu_timeout_register): New function.
28742 (grub_gfxmenu_timeout_unregister): Likewise.
28743
28744 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28745
28746 Transform (broken) vga terminal into (working) vga video driver.
28747
28748 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28749 video/i386/pc/vga.c.
28750 * include/grub/video.h (grub_video_driver_id):
28751 Add GRUB_VIDEO_DRIVER_VGA.
28752 * term/i386/pc/vga.c: Renamed to ...
28753 * video/i386/pc/vga.c: ...this
28754 (DEBUG_VGA): Removed.
28755 (CHAR_WIDTH): Likewise.
28756 (CHAR_HEIGHT): Likewise.
28757 (TEXT_WIDTH): Likewise.
28758 (TEXT_HEIGHT): Likewise.
28759 (DEFAULT_FG_COLOR): Likewise.
28760 (DEFAULT_BG_COLOR): Likewise.
28761 (colored_char): Likewise.
28762 (xpos): Likewise.
28763 (ypos): Likewise.
28764 (cursor_state): Likewise.
28765 (fg_color): Likewise.
28766 (bg_color): Likewise.
28767 (text_buf): Likewise.
28768 (page): Likewise.
28769 (font): Likewise.
28770 (framebuffer): New variable.
28771 (set_read_map): Disabled.
28772 (setup): New variable.
28773 (is_target): Likewise.
28774 (grub_vga_mod_init): Likewise.
28775 (grub_vga_mod_fini): Likewise.
28776 (check_vga_mem): Likewise.
28777 (write_char): Likewise.
28778 (write_cursor): Likewise.
28779 (scroll_up): Likewise.
28780 (grub_vga_putchar): Likewise.
28781 (grub_vga_getcharwidth): Likewise.
28782 (grub_vga_getwh): Likewise.
28783 (grub_vga_getxy): Likewise.
28784 (grub_vga_gotoxy): Likewise.
28785 (grub_vga_cls): Likewise.
28786 (grub_vga_setcolorstate): Likewise.
28787 (grub_vga_setcursor): Likewise.
28788 (grub_video_vga_init): New function.
28789 (grub_video_vga_setup): Likewise.
28790 (grub_video_vga_fini): Likewise.
28791 (update_target): Likewise.
28792 (grub_video_vga_blit_bitmap): Likewise.
28793 (grub_video_vga_blit_render_target): Likewise.
28794 (grub_video_vga_set_active_render_target): Likewise.
28795 (grub_video_vga_get_active_render_target): Likewise.
28796 (grub_video_vga_swap_buffers): Likewise.
28797 (grub_video_vga_set_palette): Likewise.
28798 (grub_video_vga_get_info_and_fini): Likewise.
28799 (grub_vga_term): Removed.
28800 (grub_video_vga_adapter): New variable.
28801 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28802 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28803
28804 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28805
28806 * video/readers/jpeg.c: Indented.
28807
28808 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28809
28810 Various jpeg cleanups.
28811
28812 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28813 (grub_jpeg_decode_quan_table): Use sizeof.
28814 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28815
28816 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28817
28818 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28819 tables. Ignore non-last ac bit.
28820 (grub_jpeg_decode_quan_table): Likewise.
28821
28822 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28823
28824 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28825 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28826 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28827 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28828 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28829 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28830
28831 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28832
28833 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28834 error.
28835
28836 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28837
28838 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28839
28840 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28841
28842 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28843 condition.
28844
28845 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28846
28847 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28848 part.
28849
28850 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28851
28852 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28853 pointers.
28854
28855 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28856
28857 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28858
28859 2010-05-01 Christian Franke <franke@computer.org>
28860
28861 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28862 Remove broken Cygwin path conversion.
28863 * util/misc.c: [__CYGWIN__] Add include and define.
28864 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28865 for Cygwin 1.7.
28866 (make_system_path_relative_to_its_root): Simplify loop, replace early
28867 return by break.
28868 [__CYGWIN__] Add conversion to win32 path.
28869 Include "/" case in trailing slash removal.
28870
28871 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28872
28873 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28874 Reported by: Seth Goldberg
28875
28876 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28877
28878 * commands/help.c (grub_cmd_help): Fix a typo.
28879 Reported by: Seth Goldberg
28880
28881 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28882
28883 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28884 name and add N_.
28885 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28886 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28887 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28888 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28889 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28890 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28891 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28892 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28893 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28894 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28895 * normal/context.c (GRUB_MOD_INIT): Likewise.
28896 * normal/main.c (GRUB_MOD_INIT): Likewise.
28897 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28898 * term/serial.c (GRUB_MOD_INIT): Likewise.
28899 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28900
28901 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28902
28903 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28904 extra == 0.
28905
28906 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28907
28908 * commands/iorw.c: New file.
28909 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28910 (iorw_mod_SOURCES): New variable.
28911 (iorw_mod_CFLAGS): Likewise.
28912 (iorw_mod_LDFLAGS): Likewise.
28913
28914 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28915
28916 Hotkey support
28917
28918 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28919 * normal/main.c (hotkey_aliases): New variable.
28920 (grub_normal_add_menu_entry): Parse "--hotkey".
28921 * normal/menu_text.c (run_menu): Handle hotkeys.
28922
28923 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28924
28925 * kern/i386/coreboot/init.c (grub_machine_init): Call
28926 grub_machine_mmap_init on qemu.
28927
28928 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28929
28930 * boot/i386/qemu/boot.S: Add a missing .code16.
28931
28932 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28933
28934 Use LBIO on coreboot.
28935
28936 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28937 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28938 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28939 New declaration.
28940 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28941 grub_machine_mmap_init on coreboot.
28942 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28943 GRUB_LINUXBIOS_MEMBER_LINK.
28944 (grub_machine_mmap_iterate): Fix declaration.
28945 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28946
28947 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28948
28949 Split coreboot and multiboot ports.
28950
28951 * conf/i386-multiboot.rmk: New file.
28952 * configure.ac: Add multiboot port.
28953 * include/grub/i386/multiboot/boot.h: New file.
28954 * include/grub/i386/multiboot/console.h: Likewise.
28955 * include/grub/i386/multiboot/init.h: Likewise.
28956 * include/grub/i386/multiboot/kernel.h: Likewise.
28957 * include/grub/i386/multiboot/loader.h: Likewise.
28958 * include/grub/i386/multiboot/memory.h: Likewise.
28959 * include/grub/i386/multiboot/serial.h: Likewise.
28960 * include/grub/i386/multiboot/time.h: Likewise.
28961 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28962 * loader/multiboot.c: Likewise.
28963 * loader/multiboot_mbi2.c: Likewise.
28964 * util/grub-mkrescue.in: Generate multiboot rescue.
28965
28966 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28967
28968 * kern/parser.c (grub_parser_execute): Cope with read-only config.
28969
28970 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28971
28972 Merge handling of input and output terminals. Fix a hang.
28973
28974 * commands/terminal.c (abstract_terminal): New struct.
28975 (handle_command): New function. Based on grub_cmd_terminal_input.
28976 (grub_cmd_terminal_input): Use handle_command.
28977 (grub_cmd_terminal_output): Use handle_command.
28978
28979 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
28980
28981 Fix comment handling.
28982
28983 * tests/grub_script_comments.in: New testcase.
28984 * conf/tests.rmk: Rules for new testcase.
28985 * script/yylex.l: Updated flex rules.
28986
28987 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
28988
28989 * docs/grub.texi (play): Document that zero pitches produce rests.
28990 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
28991 if argc is 1.
28992
28993 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
28994
28995 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
28996 autogen issues.
28997
28998 2010-04-26 Christian Franke <franke@computer.org>
28999
29000 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29001 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29002 (grub_get_prefix): Remove function.
29003 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29004 make_system_path_relative_to_its_root ().
29005 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29006
29007 2010-04-24 Christian Franke <franke@computer.org>
29008
29009 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29010 (kernel_img_LDFLAGS): Remove -static-libgcc.
29011
29012 2010-04-24 Christian Franke <franke@computer.org>
29013
29014 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29015 and CHECK_END_SYMBOL if grub-emu is built.
29016 Unset TARGET_OBJ2ELF if grub-emu is built
29017 without module support.
29018
29019 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29020
29021 Nilfs2 support.
29022
29023 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29024 (grub_fstest_SOURCES): Likewise.
29025 (pkglib_MODULES): Add nilfs2.mod.
29026 (nilfs2_mod_SOURCES): New variable.
29027 (nilfs2_mod_CFLAGS): Likewise.
29028 (nilfs2_mod_LDFLAGS): Likewise.
29029 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29030 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29031 * fs/nilfs2.c: New file.
29032
29033 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29034
29035 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29036 is not supported.
29037
29038 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29039
29040 Add grub-mkconfig support for NetBSD.
29041
29042 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29043 * util/grub-mkconfig.in: export new NetBSD specific variables.
29044 * po/POTFILES-shell: added 10_netbsd.in.
29045 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29046
29047 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29048
29049 Fix emu build with grub-emu-pci and grub-emu-modules.
29050
29051 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29052 functions.
29053 * include/grub/libpciaccess.h: New file.
29054 * conf/any-emu.rmk: Update kernel headers for emu build.
29055
29056 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29057
29058 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29059
29060 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29061
29062 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29063
29064 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29065
29066 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29067 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29068 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29069 util/ieee1275/ofpath.c.
29070 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29071 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29072 * include/grub/sparc64/ieee1275/boot.h
29073 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29074 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29075 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29076 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29077 const char *.
29078 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29079 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29080 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29081 install.
29082
29083 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29084
29085 * util/grub-mkconfig.in: Corrected two == equality tests.
29086 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29087 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29088 expect a number appended to it.
29089 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29090 expects a number appended to it.
29091
29092 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29093
29094 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29095
29096 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29097
29098 * util/hostdisk.c (make_device_name): Change to new partition naming.
29099
29100 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29101
29102 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29103
29104 2010-04-17 Christian Franke <franke@computer.org>
29105
29106 * Makefile.in: Add missing localedir setting.
29107
29108 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29109
29110 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29111 mistake in r2156. Noticed by Anthony Fok.
29112
29113 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29114 @localedir@.
29115 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29116
29117 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29118
29119 Fix a spurious, uninitialized variable warning.
29120
29121 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29122 Initialize variable, shdr.
29123 (grub_freebsd_load_elfmodule): Likewise.
29124 (grub_freebsd_load_elf_meta): Likewise.
29125
29126 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29127
29128 Fix for escaped dollar in double quoted strings.
29129
29130 * script/yylex.l: Updated flex rules.
29131 * conf/tests.rmk: Rule for new testcase.
29132 * tests/grub_script_dollar.in: New testcase.
29133
29134 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29135 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29136
29137 Enclose all translated strings in grub.cfg in single quotes, and
29138 escape them appropriately (Ubuntu bug #552921).
29139
29140 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29141 * util/grub.d/10_hurd.in: Use it.
29142 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29143 * util/grub.d/10_linux.in (linux_entry): Likewise.
29144
29145 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29146
29147 Fix cygwin compilation.
29148
29149 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29150 * include/grub/misc.h (__register_frame_info)
29151 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29152 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29153 * kern/misc.c (__register_frame_info)
29154 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29155 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29156
29157 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29158
29159 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29160
29161 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29162
29163 Unify libgcc processing.
29164
29165 * Makefile.in (kernel_img_LDFLAGS): New variable.
29166 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29167 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29168 overwriting.
29169 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29170 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29171 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29172 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29173 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29174 overwriting. Remove -lgcc and -static-libgcc
29175 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29176 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29177 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29178 (kernel_img_LDFLAGS): Append instead of overwriting.
29179 Remove -lgcc and -static-libgcc
29180 * conf/sparc64-ieee1275.rmk: Likewise.
29181 * include/grub/powerpc/libgcc.h: Move to ...
29182 * include/grub/libgcc.h: .. this.
29183 * include/grub/libgcc.h: Don't export most of the function on x86.
29184 (__bswapsi2): New export.
29185 (__bswapdi2): Likewise.
29186 * include/grub/mips/libgcc.h: Removed.
29187 * include/grub/sparc64/libgcc.h: Likewise.
29188
29189 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29190
29191 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29192 disk_info_msg (conflicts with gettexting into languages with cases).
29193
29194 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29195
29196 Add grub-probe support for NetBSD.
29197
29198 * util/getroot.c (find_root_device): Convert block device to
29199 character device on NetBSD.
29200 * util/probe.c (probe): Require character device on NetBSD.
29201 * util/hostdisk.c: NetBSD specific headers.
29202 (configure_device_driver): new function to tune device driver
29203 parameters (currently only for NetBSD floppy driver).
29204 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29205 via disklabel ioctl).
29206 (open_device): call configure_device_driver on NetBSD.
29207 (convert_system_partition_to_system_disk): NetBSD specific code.
29208 (device_is_wholedisk): Likewise.
29209 (grub_util_biosdisk_get_grub_dev): Likewise.
29210 (make_device_name): Fixed a typo in bsd_part_str.
29211 * configure.ac: check for opendisk() and getrawpartition() on
29212 NetBSD and set LIBUTIL.
29213 * Makefile.in: add LIBUTIL to LIBS.
29214
29215 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29216
29217 Documentation fix.
29218
29219 * util/grub-script-check.c: Better help message.
29220
29221 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29222
29223 Fix FreeBSD build.
29224
29225 * configure.ac: Flex version check.
29226 * conf/common.rmk: Add -Wno-error to sh.mod.
29227 * script/yylex.l: Remove all #pragma.
29228
29229 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29230
29231 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29232 prototype.
29233 Reported by: Seth Goldberg.
29234
29235 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29236
29237 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29238 Rename "module" to "module2".
29239 Reported by: Seth Goldberg.
29240
29241 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29242
29243 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29244 EXPORT_FUNC.
29245 Reported by: Seth Goldberg.
29246
29247 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29248
29249 * lib/posix_wrap/locale.h: Add missing file.
29250 Reported by: Seth Goldberg.
29251
29252 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29253
29254 grub-emu module load support.
29255
29256 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29257 NO_DYNAMIC_MODULES switched to this.
29258 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29259 (CFLAGS): Likewise.
29260 * conf/any-emu.rmk: Generate symlist.
29261 (kernel_img_HEADERS): Add util/datetime.h.
29262 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29263 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29264 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29265 kern/$(target_cpu)/cache.S.
29266 * configure.ac (grub-emu-modules): New option.
29267 * genmk.rb: Handle multiple source lists.
29268 * include/grub/sdl.h: New file.
29269 * include/grub/libusb.h: Likewise.
29270 * util/grub-emu.c (main): Hanle (host) root.
29271 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29272 GRUB_ERR_UNKNOWN_DEVICE.
29273 * util/misc.c: Move mm functions to ...
29274 * util/mm.c: ... here. All users updated.
29275
29276 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29277
29278 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29279 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29280 missing files.
29281 (maintainer-clean): Remove libgcrypt-grub.
29282
29283 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29284
29285 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29286
29287 2010-04-09 EFI Coder <eficoder@hotmail.com>
29288
29289 * normal/menu_text.c (print_message): Clean up the message and show
29290 the Fn information when on EFI
29291 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29292
29293 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29294
29295 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29296 All users updated.
29297 * normal/crypto.c (read_crypto_list): Likewise.
29298 * normal/dyncmd.c (read_command_list): Likewise.
29299 * normal/term.c (read_terminal_list): Likewise.
29300 * normal/main.c (read_lists): Use explicit prefix.
29301 (read_lists_hook): Use read_lists.
29302 (grub_normal_execute): Likewise.
29303
29304 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29305
29306 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29307 Reported by: Thomas Schmitt.
29308 Add -no-emul-boot to grub-mkisofs parameters.
29309
29310 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29311
29312 * font/font.c: Indented.
29313
29314 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29315
29316 Elif support to GRUB script (by Deepak Vankadaru).
29317
29318 * tests/grub_script_if.in: New testcase.
29319 * conf/tests.rmk: Rule for new testcase.
29320 * script/parser.y: Grammar rules for elif.
29321
29322 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29323
29324 While and until loops support to GRUB script.
29325
29326 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29327 (grub_script_create_cmdwhile): New function prototype.
29328 (grub_script_execute_cmdwhile): New function prototype.
29329 * script/execute.c (grub_script_execute_cmdwhile): New function.
29330 * script/parser.y (command): New commands.
29331 (whilecmd): New grammar rule.
29332 (untilcmd): New grammar rule.
29333 * script/script.c (grub_script_create_cmdwhile): New function.
29334 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29335 function.
29336
29337 * tests/grub_script_while1.in: New testcase.
29338 * conf/tests.rmk: Rule for new testcase.
29339
29340 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29341
29342 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29343 as *.jpg.
29344
29345 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29346
29347 GRUB_BACKGROUND support.
29348
29349 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29350 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29351
29352 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29353
29354 Load fonts and modules for gfxmenu in grub-mkconfig.
29355 Idea by: Mario Vazquez
29356
29357 * util/grub.d/00_header.in: Load pf2 and image modules.
29358
29359 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29360
29361 grub-mkconfig multiple terminal support.
29362
29363 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29364 * util/grub.d/00_header.in: Likewise.
29365
29366 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29367
29368 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29369 we use cd $(srcdir).
29370
29371 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29372
29373 * util/grub.d/10_linux.in: Only use the first word of
29374 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29375 spaces in GRUB_DISTRIBUTOR.
29376 * util/grub.d/10_kfreebsd.in: Likewise.
29377 * util/grub.d/10_hurd.in: Likewise.
29378
29379 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29380
29381 Fix unit testing framework for Qemu 0.12.
29382
29383 * tests/util/grub-shell.in: Remove -serial stdio option.
29384
29385 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29386
29387 POSIX header file wrappers.
29388
29389 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29390 equivalents.
29391 * lib/posix_wrap/ctype.h: Likewise.
29392 * lib/posix_wrap/errno.h: Likewise.
29393 * lib/posix_wrap/langinfo.h: Likewise.
29394 * lib/posix_wrap/limits.h: Likewise.
29395 * lib/posix_wrap/localcharset.h: Likewise.
29396 * lib/posix_wrap/stdint.h: Likewise.
29397 * lib/posix_wrap/stdio.h: Likewise.
29398 * lib/posix_wrap/stdlib.h: Likewise.
29399 * lib/posix_wrap/string.h: Likewise.
29400 * lib/posix_wrap/sys/types.h: Likewise.
29401 * lib/posix_wrap/unistd.h: Likewise.
29402 * lib/posix_wrap/wchar.h: Likewise.
29403 * lib/posix_wrap/wctype.h: Likewise.
29404 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29405 (grub_script.yy.h): Likewise.
29406 * script/yylex.l: Remove POSIX emulation #defines.
29407 * Makefile.in (POSIX_CFLAGS): New variable.
29408 (GNULIB_UTIL_CFLAGS): Likewise.
29409
29410 Regexp support.
29411
29412 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29413 (regexp_mod_SOURCES): New variable.
29414 (regexp_mod_CFLAGS): Likewise.
29415 (regexp_mod_LDFLAGS): Likewise.
29416 * commands/regexp.c: New file.
29417 * gnulib/regcomp.c: New file. Imported from gnulib.
29418 * gnulib/regex.c: Likewise.
29419 * gnulib/regex_internal.c: Likewise.
29420 * gnulib/regex_internal.h: Likewise.
29421 * gnulib/regexec.c: Likewise.
29422 * gnulib/regex.h: Likewise.
29423
29424 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29425
29426 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29427 unsupported video mode types.
29428
29429 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29430
29431 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29432
29433 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29434
29435 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29436 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29437
29438 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29439
29440 Remove unused grub_vga_get_font.
29441
29442 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29443 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29444
29445 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29446
29447 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29448 * include/grub/misc.h: Likewise.
29449
29450 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29451
29452 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29453 for which failure is fatal.
29454
29455 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29456
29457 * util/grub-install.in: Use mkdir -p to create grub directory.
29458 * util/i386/efi/grub-install.in: Likewise.
29459 * util/ieee1275/grub-install.in: Likewise.
29460
29461 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29462
29463 * Makefile.in (LEX): new variable.
29464
29465 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29466
29467 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29468 `=' and added double quotes on operands of this equality test.
29469
29470 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29471
29472 * Makefile.in (uninstall): Remove a leftover debug echo.
29473 Reported by: Grégoire Sutre
29474
29475 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29476
29477 MIPS multiboot2 support.
29478
29479 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29480 (multiboot2_mod_SOURCES): New variable.
29481 (multiboot2_mod_CFLAGS): Likewise.
29482 (multiboot2_mod_LDFLAGS): Likewise.
29483 (multiboot2_mod_ASFLAGS): Likewise.
29484 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29485 definition.
29486 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29487 (MULTIBOOT_MBI_REGISTER): Likewise.
29488 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29489 (MULTIBOOT_ELF32_MACHINE): Likewise.
29490 (MULTIBOOT_ELF64_MACHINE): Likewise.
29491 * include/grub/mips/multiboot.h: New file.
29492 * include/grub/video.h (grub_video_driver_id): New type
29493 GRUB_VIDEO_DRIVER_SM712.
29494 (grub_video_get_info_and_fini): Export.
29495 (grub_video_get_palette): Likewise.
29496 (grub_video_get_driver_id): Likewise.
29497 * include/multiboot2.h: Resynced with spec.
29498 * loader/i386/multiboot.c: Moved from here ...
29499 * loader/multiboot.c: ... here. All users updated.
29500 (grub_multiboot_boot): Use platform-specific macros.
29501 * loader/i386/multiboot_elfxx.c: Moved from here ...
29502 * loader/multiboot_elfxx.c: ... here. All users updated.
29503 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29504 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29505 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29506
29507 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29508
29509 Import gnulib argp module.
29510
29511 * gnulib/argp-ba.c: New file.
29512 * gnulib/argp-eexst.c: Likewise.
29513 * gnulib/argp-fmtstream.c: Likewise.
29514 * gnulib/argp-fmtstream.h: Likewise.
29515 * gnulib/argp-fs-xinl.c: Likewise.
29516 * gnulib/argp-help.c: Likewise.
29517 * gnulib/argp-namefrob.h: Likewise.
29518 * gnulib/argp-parse.c: Likewise.
29519 * gnulib/argp-pin.c: Likewise.
29520 * gnulib/argp-pv.c: Likewise.
29521 * gnulib/argp-pvh.c: Likewise.
29522 * gnulib/argp-version-etc.c: Likewise.
29523 * gnulib/argp-version-etc.h: Likewise.
29524 * gnulib/argp-xinl.c: Likewise.
29525 * gnulib/argp.h: Likewise.
29526
29527 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29528
29529 * kern/device.c (grub_device_iterate): Clear errors after failed
29530 opening device.
29531
29532 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29533
29534 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29535 returned by firmware.
29536
29537 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29538
29539 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29540 compilation on coreboot and qemu
29541
29542 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29543
29544 * include/multiboot2.h: Resync with spec.
29545
29546 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29547
29548 Multiboot2 tag support
29549
29550 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29551 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29552 Remove loader/multiboot_loader.c.
29553 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29554 (grub_multiboot2_real_boot): Likewise.
29555 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29556 (grub_get_multiboot_mmap_count): New proto.
29557 (grub_fill_multiboot_mmap): Likewise.
29558 (grub_multiboot_set_video_mode): Likewise.
29559 (grub_multiboot_set_console): Likewise.
29560 (grub_multiboot_load): Likewise.
29561 (grub_multiboot_load_elf): Likewise.
29562 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29563 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29564 * include/multiboot.h: Resynced with specification.
29565 * include/multiboot2.h: Resynced with specification.
29566 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29567 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29568 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29569 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29570 users updated.
29571 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29572 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29573 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29574 Removed.
29575 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29576 Moved from here...
29577 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29578 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29579 Moved from here...
29580 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29581 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29582 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29583 All users updated.
29584 * loader/i386/multiboot_mbi2.c: New file.
29585
29586 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29587
29588 Resync with gnulib.
29589
29590 * Makefile.in (GNULIB_CFLAGS): New variable.
29591 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29592 (grub_script_check_CFLAGS): New variable.
29593 * gnulib/alloca.h: Resync with gnulib.
29594 * gnulib/error.c: Likewise.
29595 * gnulib/error.h: Likewise.
29596 * gnulib/fnmatch.c: Likewise.
29597 * gnulib/fnmatch_loop.c: Likewise.
29598 * gnulib/getdelim.c: Likewise.
29599 * gnulib/getline.c: Likewise.
29600 * gnulib/getopt.c: Likewise.
29601 * gnulib/getopt1.c: Likewise.
29602 * gnulib/getopt_int.h: Likewise.
29603 * gnulib/gettext.h: Likewise.
29604 * gnulib/progname.c: Likewise.
29605 * gnulib/progname.h: Likewise.
29606
29607 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29608
29609 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29610 which is the case with --disabled-nls.
29611
29612 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29613 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29614 * util/misc.c: Likewise.
29615 * util/mkisofs/mkisofs.c: Likewise.
29616 * util/mkisofs/mkisofs.h: Likewise.
29617
29618 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29619
29620 Simplify Apple CC support.
29621
29622 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29623 Add 0 byte at the end not to have a symbol with empty target.
29624 * mmap/i386/pc/mmap_helper.S: Likewise.
29625 * genmk.rb: Ignore errors 2030 and 2050.
29626 * kern/i386/pc/startup.S: Use LOCAL when possible.
29627
29628 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29629
29630 Testcase and the fix for final semicolon on cmdline.
29631
29632 * tests/grub_script_final_semicolon.in: New testcase.
29633 * conf/tests.rmk: Rules for the new testcase.
29634 * script/parser.y: Grammar fix.
29635
29636 2010-03-26 BVK Chaitanya <bvk@localhost>
29637
29638 Blank lines testcase for GRUB script.
29639
29640 * tests/grub_script_blanklines.in: New testcase.
29641 * conf/tests.rmk: Rules for the new testcase.
29642
29643 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29644
29645 Don't use __FILE__.
29646
29647 * genmk.rb: Add -DGRUB_FILE to all C targets.
29648 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29649 * include/grub/list.h: Likewise.
29650 * include/grub/misc.h: Likewise.
29651 * include/grub/mm.h: Likewise.
29652 * include/grub/test.h: Likewise.
29653 * kern/mm.c: Likewise.
29654 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29655
29656 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29657
29658 Sunpc partitions support.
29659
29660 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29661 (grub_fstest_SOURCES): Likewise.
29662 (pkglib_MODULES): Add part_sunpc.mod.
29663 (part_sunpc_mod_SOURCES): New variable.
29664 (part_sunpc_mod_CFLAGS): Likewise.
29665 (part_sunpc_mod_LDFLAGS): Likewise.
29666 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29667 * partmap/sunpc.c: New file.
29668
29669 2010-03-26 BVK Chaitanya <bvk@localhost>
29670
29671 For loop support to GRUB script.
29672
29673 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29674 (grub_script_create_cmdfor): New function prototype.
29675 (grub_script_execute_cmdfor): New function prototype.
29676 * script/execute.c (grub_script_execute_cmdfor): New function.
29677 * script/parser.y (command): New for command.
29678 (forcmd): New grammar rule.
29679 * script/script.c (grub_script_create_cmdfor): New function.
29680 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29681 function.
29682 * tests/grub_script_for1.in: New testcase.
29683 * conf/tests.rmk: Rules for new testcase.
29684
29685 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29686
29687 Nested partitions
29688
29689 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29690 'partition' is NULL, grub_partition_get_start already does that.
29691 * commands/loadenv.c (check_blocklists): Likewise.
29692 (write_blocklists): Likewise.
29693 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29694 (grub_fstest_SOURCES): Likewise.
29695 (pkglib_MODULES): Add part_bsd.mod.
29696 (part_bsd_mod_SOURCES): New variable.
29697 (part_bsd_mod_CFLAGS): Likewise.
29698 (part_bsd_mod_LDFLAGS): Likewise.
29699 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29700 (grub_emu_SOURCES): Likewise.
29701 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29702 * include/grub/bsdlabel.h: New file.
29703 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29704 'get_name'.
29705 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29706 (grub_partition_map_list): New variable.
29707 (grub_partition_map_register): Inline.
29708 (grub_partition_map_unregister): Likewise.
29709 (FOR_PARTITION_MAPS): New macro.
29710 (grub_partition_map_iterate): Removed.
29711 (grub_partition_get_start): Handle nested partitions.
29712 * include/grub/msdos_partition.h: Remove bsd-related entries.
29713 (grub_pc_partition): Remove.
29714 * kern/disk.c (grub_disk_close): Free partition data.
29715 (grub_disk_adjust_range): Handle nested partitions.
29716 * kern/partition.c (grub_partition_map_probe): New function.
29717 (grub_partition_probe): Parse name to number, handle subpartitions.
29718 (get_partmap): New function.
29719 (grub_partition_iterate): Handle subpartitions.
29720 (grub_partition_get_name): Likewise.
29721 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29722 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29723 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29724 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29725 Set 'number'.
29726 (acorn_partition_map_probe): Remove.
29727 (acorn_partition_map_get_name): Likewise.
29728 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29729 Set 'number'.
29730 Set 'index' to 0 since there can be only one partition entry per sector.
29731 (amiga_partition_map_probe): Remove.
29732 (amiga_partition_map_get_name): Likewise.
29733 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29734 Set 'number'.
29735 Set 'offset' and 'index' to real positions of partitions.
29736 (apple_partition_map_probe): Remove.
29737 (apple_partition_map_get_name): Likewise.
29738 * partmap/bsdlabel.c: New file.
29739 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29740 Set 'number'.
29741 Allocate 'data' so it can be correctly freed.
29742 Set 'index' to offset inside sector.
29743 (gpt_partition_map_probe): Remove.
29744 (gpt_partition_map_get_name): Likewise.
29745 * partmap/msdos.c (grub_partition_parse): Remove.
29746 (pc_partition_map_iterate): Don't force raw access.
29747 Set 'number'.
29748 Make 'ext_offset' a local variable.
29749 (pc_partition_map_probe): Remove.
29750 (pc_partition_map_get_name): Remove.
29751 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29752 Set 'number'.
29753 (sun_partition_map_probe): Remove.
29754 (sun_partition_map_get_name): Likewise.
29755 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29756 (grub_pcpart_type): Likewise.
29757 * util/hostdisk.c (open_device): Handle new numbering scheme.
29758 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29759 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29760 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29761 * util/grub-install.in: Insert all subpartition modules.
29762 * util/ieee1275/grub-install.in: Likewise.
29763
29764 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29765
29766 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29767 grammar.
29768
29769 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29770
29771 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29772
29773 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29774
29775 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29776 match where 'make install' puts them.
29777 * util/i386/efi/grub-install.in: Likewise.
29778
29779 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29780
29781 * .bzrignore: Add gentrigtables, grub-script-check,
29782 grub_script_check_init.c, grub_script_check_init.h, and
29783 trigtables.c.
29784
29785 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29786
29787 * kern/parser.c: Indented.
29788
29789 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29790
29791 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29792
29793 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29794
29795 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29796 alpha_mask_size == 0 case.
29797
29798 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29799
29800 GRUB shell lexer and parser improvements.
29801
29802 * conf/any-emu.rmk: Build rule updates.
29803 * conf/common.rmk: Likewise.
29804 * conf/i386-coreboot.rmk: Likewise.
29805 * conf/i386-efi.rmk: Likewise.
29806 * conf/i386-ieee1275.rmk: Likewise.
29807 * conf/i386-pc.rmk: Likewise.
29808 * conf/powerpc-ieee1275.rmk: Likewise.
29809 * conf/x86_64-efi.rmk: Likewise.
29810
29811 * configure.ac: Configure check for flex.
29812
29813 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29814 types.
29815 (grub_lexer_param): Struct member updates.
29816 (grub_parser_param): Likewise.
29817 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29818 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29819 (grub_script_lexer_init): Prototype update.
29820 (grub_script_lexer_record_start): Likewise.
29821 (grub_script_lexer_record_stop): Likewise.
29822 (grub_script_lexer_yywrap): New function prototype.
29823 (grub_script_lexer_fini): Likewise.
29824 (grub_script_execute_argument_to_string): Removed by...
29825 (grub_script_execute_argument_to_argv): ...better version.
29826
29827 * script/execute.c (ROUND_UPTO): New macro.
29828 (grub_script_execute_cmdline): Out of memory fixes.
29829 (grub_script_execute_menuentry): Likewise.
29830 (grub_script_execute_argument_to_string): Removed. Update all
29831 users by...
29832 (grub_script_execute_argument_to_argv): ...better version.
29833 * script/function.c (grub_script_function_create): Use
29834 grub_script_execute_argument_to_argv instead of
29835 grub_script_execute_argument_to_string.
29836
29837 * script/lexer.c (check_varstate): Removed.
29838 (check_textstate): Removed.
29839 (grub_script_lexer_record_start): Likewise.
29840 (grub_script_lexer_record_stop): Likewise.
29841 (recordchar): Replaced with...
29842 (grub_script_lexer_record): ...new function.
29843 (nextchar): Removed.
29844 (grub_script_lexer_init): Rewritten.
29845 (grub_script_yylex): Rewritten.
29846 (append_newline): New function.
29847 (grub_script_lexer_yywrap): New function.
29848 (grub_script_lexer_fini): New function.
29849 (grub_script_yyerror): Sets error flag.
29850
29851 * script/yylex.l: New file.
29852 (grub_lexer_yyfree): Wrapper for flex yyffre.
29853 (grub_lexer_yyalloc): Likewise.
29854 (grub_lexer_yyrealloc): Likewise.
29855 * script/parser.y: Refactored.
29856
29857 * script/script.c (grub_script_arg_add): Out of memory fixes.
29858 (grub_script_add_arglist): Likewise.
29859 (grub_script_create_cmdline): Likewise.
29860 (grub_script_create_cmdmenu): Likewise.
29861 (grub_script_add_cmd): Likewise.
29862 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29863 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29864 unnecessary code.
29865
29866 * tests/grub_script_echo1.in: New testcase.
29867 * tests/grub_script_vars1.in: New testcase.
29868 * tests/grub_script_echo_keywords.in: New testcase.
29869
29870 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29871
29872 Remove some redundancy in build system.
29873
29874 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29875 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29876 (TARGET_LDFLAGS): Add -nostdlib.
29877 (TARGET_IMG_LDFLAGS): Likewise.
29878 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29879 anything since mmap isn't available.
29880 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29881 Add util/time.c.
29882 (pkglib_MODULES): Remove reboot.mod.
29883 (reboot_mod_SOURCES): Removed.
29884 (reboot_mod_CFLAGS): Likewise.
29885 (reboot_mod_LDFLAGS): Likewise.
29886 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29887 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29888 (DEFSYMFILES): Add kernel_syms.lst.
29889 (kernel_img_HEADERS): Add common headers.
29890 (symlist.c): New target.
29891 (kernel_syms.lst): Likewise.
29892 (pkglib_MODULES): Add memdisk.mod.
29893 (memdisk_mod_SOURCES): New variable.
29894 (memdisk_mod_CFLAGS): Likewise.
29895 (memdisk_mod_LDFLAGS): Likewise.
29896 (pkglib_MODULES): Add reboot.mod.
29897 (reboot_mod_SOURCES): New variable.
29898 (reboot_mod_CFLAGS): Likewise.
29899 (reboot_mod_LDFLAGS): Likewise.
29900 (pkglib_MODULES): Add date.mod.
29901 (date_mod_SOURCES): New variable.
29902 (date_mod_CFLAGS): Likewise.
29903 (date_mod_LDFLAGS): Likewise.
29904 (pkglib_MODULES): Add datehook.mod.
29905 (datehook_mod_SOURCES): New variable.
29906 (datehook_mod_CFLAGS): Likewise.
29907 (datehook_mod_LDFLAGS): Likewise.
29908 (pkglib_MODULES): Add lsmmap.mod.
29909 (lsmmap_mod_SOURCES): New variable.
29910 (lsmmap_mod_CFLAGS): Likewise.
29911 (lsmmap_mod_LDFLAGS): Likewise.
29912 (pkglib_MODULES): Add boot.mod.
29913 (boot_mod_SOURCES): New variable.
29914 (boot_mod_CFLAGS): Likewise.
29915 (boot_mod_LDFLAGS): Likewise.
29916 * conf/i386-coreboot.rmk: Removed redundant parts.
29917 * conf/i386-ieee1275.rmk: Likewise.
29918 * conf/i386-pc.rmk: Likewise.
29919 * conf/mips-yeeloong.rmk: Likewise.
29920 * conf/mips.rmk: Likewise.
29921 * conf/powerpc-ieee1275.rmk: Likewise.
29922 * conf/sparc64-ieee1275.rmk: Likewise.
29923 * conf/x86_64-efi.rmk: Likewise.
29924 * conf/i386-coreboot.rmk: Moved qemu parts ..
29925 * conf/i386-qemu.rmk: ... here
29926 * conf/i386-efi.rmk: Moved common parts to...
29927 * conf/x86-efi.rmk: ... here.
29928 * conf/i386.rmk: Added modules common to all x86 variants.
29929 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29930 * disk/memdisk.c: Remove grub/machine/kernel.h.
29931 * gensymlist.sh.in: Include symbol.h.
29932 * hook/datehook.c: Correct module name.
29933 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29934 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29935 * include/grub/i386/efi/serial.h: New file.
29936 * include/grub/x86_64/efi/serial.h: Likewise.
29937 * util/time.c: Likewise.
29938 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29939
29940 2010-03-14 Colin King <colin.king@ubuntu.com>
29941 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29942
29943 Shrink the pre-partition-table part of boot.img by eight bytes.
29944
29945 * boot/i386/pc/boot.S (ERR): New macro.
29946 (chs_mode): Use ERR.
29947 (geometry_error): Likewise.
29948 (hd_probe_error): Remove. This is only used once, so we wrwite
29949 it inline instead.
29950 (read_error): Instead of printing read_error_string, just set up
29951 %si and fall through to ...
29952 (error_message): ... this new function, also used by ERR.
29953
29954 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29955
29956 Speed up consecutive hostdisk operations on the same device.
29957
29958 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29959 (grub_util_biosdisk_open): Initialise disk->data.
29960 (struct linux_partition_cache): New structure.
29961 (linux_find_partition): Cache partition start positions; these are
29962 expensive to compute on every read and write.
29963 (open_device): Cache open file descriptor in disk->data, so that we
29964 don't have to reopen it and flush the buffer cache for consecutive
29965 operations on the same device.
29966 (grub_util_biosdisk_close): New function.
29967 (grub_util_biosdisk_dev): Set `close' member.
29968
29969 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
29970 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
29971 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29972 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
29973 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
29974
29975 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29976
29977 Compile parts of grub-emu as modules.
29978
29979 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
29980 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
29981 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
29982 (all-local): Add $(GRUB_EMU).
29983 (install-local): Install $(GRUB_EMU).
29984 (uninstall): Uninstall $(GRUB_EMU).
29985 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
29986 * kern/dl.c: Likewise.
29987 * commands/sleep.c: Not include machine/time.h.
29988 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
29989 (COMMON_CFLAGS): Likewise.
29990 (sbin_UTILITIES): Remove grub-emu.
29991 (grub_emu_SOURCES): Removed.
29992 (kernel_img_RELOCATABLE): New variable.
29993 (pkglib_PROGRAMS): Add kernel.img.
29994 (kernel_img_SOURCES): New variable
29995 (kernel_img_CFLAGS): Likewise.
29996 (kernel_img_LDFLAGS): Likewise.
29997 (TARGET_NO_STRIP): Likewise.
29998 (TARGET_NO_DYNAMIC_MODULES): Likewise.
29999 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30000 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30001 (grub-emu): New target.
30002 (GRUB_EMU): New variable.
30003 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30004 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30005 * loader/xnu.c: Likewise.
30006 * include/grub/pci.h: Likewise.
30007 * genemuinit.sh: New file.
30008 * genemuinitheader.sh: Likewise.
30009 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30010 Support TARGET_NO_DYNAMIC_MODULES.
30011 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30012 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30013 * disk/loopback.c: Likewise.
30014 * font/font_cmd.c: Likewise.
30015 * partmap/acorn.c: Likewise.
30016 * partmap/amiga.c: Likewise.
30017 * partmap/apple.c: Likewise.
30018 * partmap/gpt.c: Likewise.
30019 * partmap/msdos.c: Likewise.
30020 * partmap/sun.c: Likewise.
30021 * parttool/msdospart.c: Likewise.
30022 * term/gfxterm.c: Likewise.
30023 * video/bitmap.c: Likewise.
30024 * video/readers/jpeg.c: Likewise.
30025 * video/readers/png.c: Likewise.
30026 * video/readers/tga.c: Likewise.
30027 * video/video.c: Likewise.
30028 * util/grub-emu.c (read_command_list): Removed.
30029 (main): Don't call util_init_nls.
30030 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30031 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30032
30033 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30034
30035 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30036 date.mod, datehook.mod.
30037 (datetime_mod_SOURCES): New variable.
30038 (datetime_mod_CFLAGS): Likewise.
30039 (datetime_mod_LDFLAGS): Likewise.
30040 (date_mod_SOURCES): Likewise.
30041 (date_mod_CFLAGS): Likewise.
30042 (date_mod_LDFLAGS): Likewise.
30043 (datehook_mod_SOURCES): Likewise.
30044 (datehook_mod_CFLAGS): Likewise.
30045 (datehook_mod_LDFLAGS): Likewise.
30046 * conf/sparc64-ieee1275.rmk: Likewise.
30047 * lib/ieee1275/datetime.c: New file.
30048
30049 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30050
30051 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30052 (ieee1275_fb_mod_SOURCES): New variable.
30053 (ieee1275_fb_mod_CFLAGS): Likewise.
30054 (ieee1275_fb_mod_LDFLAGS): Likewise.
30055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30056 New proto.
30057 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30058 (HEAP_MAX_ADDR): Likewise.
30059 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30060 type.
30061 Correct stop condition.
30062 (grub_ieee1275_devices_iterate): New function.
30063 * video/ieee1275.c: New file.
30064
30065 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30066
30067 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30068
30069 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30070 as scratch.
30071 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30072 SCRATCH_PAD_DISKBOOT as scratch.
30073 (bootit): Pass Openfirmware pointer in %o4.
30074 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30075 of 0x200000.
30076 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30077 with util/grub-mkrawimage.c.
30078 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30079 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30080 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30081 (grub_aout_load) [GRUB_UTIL]: Likewise.
30082 * include/grub/kernel.h (grub_modules_get_end): New proto.
30083 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30084 (SCRATCH_PAD_BOOT): New definition.
30085 (SCRATCH_PAD_DISKBOOT): Likewise.
30086 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30087 * include/grub/sparc64/ieee1275/ieee1275.h
30088 (grub_ieee1275_original_stack): New variable
30089 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30090 New definition
30091 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30092 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30093 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30094 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30095 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30096 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30097 (grub_platform_image_format_t): New type.
30098 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30099 * kern/main.c (grub_modules_get_end)
30100 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30101 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30102 (codestart): Switch stacks.
30103 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30104 variable.
30105 (grub_heap_init): Use grub_modules_get_end.
30106 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30107 stack.
30108 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30109 (main): Likewise.
30110 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30111
30112 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30113
30114 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30115
30116 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30117
30118 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30119 bug #559005).
30120
30121 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30122
30123 * genmoddep.awk: Output all missing symbols and not only first.
30124
30125 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30126
30127 * NEWS: Put the date of 1.98 release.
30128
30129 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30130
30131 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30132 ft2build.h.
30133
30134 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30135
30136 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30137 completition in the middle of string.
30138
30139 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30140
30141 * util/grub-mkrescue.in: Use mktemp with explicit template.
30142
30143 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30144
30145 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30146
30147 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30148
30149 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30150 right pointer.
30151
30152 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30153
30154 Fix FreeBSD compilation.
30155
30156 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30157 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30158
30159 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30160
30161 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30162
30163 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30164
30165 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30166
30167 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30168
30169 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30170
30171 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30172
30173 Support relative image path in theme file.
30174
30175 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30176 (image_set_property): Handle theme_dir and relative path.
30177
30178 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30179
30180 * configure.ac: Alias amd64 to x86_64.
30181
30182 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30183
30184 * NEWS: mention multiboot on EFI.
30185
30186 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30187
30188 * kern/main.c (grub_load_modules): Handle errors from init functions of
30189 embeded modules.
30190
30191 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30192
30193 * normal/autofs.c (autoload_fs_module): Handle errors.
30194
30195 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30196
30197 Disable linux.mod on qemu-mips since it's not functional and leads
30198 to compilation failure.
30199
30200 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30201 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30202 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30203 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30204 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30205 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30206 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30207 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30208 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30209 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30210 Reported by: BVK Chaitanya
30211
30212 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30213
30214 * INSTALL: Add gettext as a dependency and add qemu to a new section
30215 "Prerequisites for make-check".
30216
30217 2010-03-04 Christian Franke <franke@computer.org>
30218
30219 * util/grub-pe2elf.c: Add missing include "progname.h".
30220
30221 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30222
30223 * normal/crypto.c (read_crypto_list): Fix a typo.
30224 Reported by: Seth Goldberg.
30225
30226 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30227
30228 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30229 Reported by: Seth Goldberg.
30230
30231 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30232
30233 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30234 ascii.bitmaps.
30235
30236 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30237
30238 * genmk.rb: Remove terminal*.lst in make clean.
30239 Reported by: Seth Goldberg.
30240
30241 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30242
30243 * util/i386/efi/grub-install.in: Copy gettext files.
30244
30245 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30246
30247 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30248
30249 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30250
30251 Wait for user entry basing on presence of output rather than on errors.
30252
30253 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30254 (grub_install_newline_hook): Likewise.
30255 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30256 * normal/menu.c (show_menu): Check line_counter to determine presence
30257 of output.
30258 * normal/term.c (grub_normal_line_counter): New variable.
30259 (grub_normal_get_line_counter): New function.
30260 (grub_install_newline_hook): Likewise.
30261
30262 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30263
30264 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30265
30266 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30267
30268 * configure.ac: Update version to 1.98.
30269
30270 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30271
30272 * util/grub.d/10_linux.in (linux_entry): Don't default to
30273 gfxpayload=keep if Linux doesn't support video handover.
30274
30275 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30276
30277 Don't compile video modules on yeeloong since video subsystem is part
30278 of kernel.
30279
30280 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30281 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30282 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30283 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30284 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30285 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30286 * include/grub/bitmap_scale.h: Likewise.
30287 * include/grub/bufio.h: Likewise.
30288 * include/grub/font.h: Likewise.
30289 * include/grub/gfxterm.h: Likewise.
30290 * include/grub/video.h: Likewise.
30291 * include/grub/vbe.h: Don't include video_fb.h.
30292 * video/i386/pc/vbe.c: Include video_fb.h.
30293 * commands/i386/pc/vbetest.c: Include video.h.
30294
30295 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30296
30297 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30298 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30299 default entry if GRUB_SAVEDEFAULT=true. This allows using
30300 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30301 saving a new default on every boot.
30302
30303 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30304
30305 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30306 * normal/term.c (read_terminal_list): Likewise.
30307 * normal/main.c (grub_normal_init_page): Likewise.
30308 (grub_normal_read_line_real): Likewise.
30309
30310 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30311
30312 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30313 memory leak.
30314 Reported by: Seth Goldberg.
30315
30316 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30317
30318 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30319 duplicate declaration of `start'.
30320
30321 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30322
30323 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30324 filename.
30325 Reported by: Georgy Buranov
30326
30327 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30328
30329 * util/grub-mkrawimage.c (usage): Change string formatting to
30330 improve gettext.
30331
30332 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30333
30334 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30335 backspace keys.
30336
30337 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30338
30339 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30340 Reported by: Michael Suchanek.
30341
30342 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30343
30344 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30345 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30346
30347 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30348
30349 Remove any reference to non-free fonts.
30350
30351 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30352 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30353 uses non-free components.
30354 * font/font.c (grub_font_get_name): Remove example name.
30355 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30356 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30357 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30358 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30359
30360 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30361
30362 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30363
30364 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30365
30366 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30367 Double divisor.
30368 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30369 features.
30370 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30371
30372 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30373
30374 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30375
30376 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30377
30378 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30379 * docs/grub.texi (Command-line and menu entry commands): Document play
30380 command.
30381
30382 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30383
30384 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30385 parse arguments as inline tempo and notes. Move code for playing notes
30386 to...
30387 (play): ... new function.
30388
30389 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30390
30391 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30392 grub_uint16_t instead of short.
30393 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30394 disk from little endian to cpu endianness.
30395
30396 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30397
30398 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30399 GRUB_TICKS_PER_SECOND instead of 120.
30400
30401 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30402
30403 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30404 escape sequence after \e.
30405
30406 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30407
30408 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30409 non-ASCII characters.
30410
30411 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30412
30413 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30414 set root in single quotes to prevent \, from being unescaped.
30415
30416 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30417
30418 Prevent unknown commands from stopping menuentry execution.
30419
30420 * script/execute.c (grub_script_execute_cmdline): Print error after
30421 unknown command.
30422
30423 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30424
30425 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30426 Reported by: Pavel Pisa.
30427
30428 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30429
30430 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30431
30432 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30433
30434 Merge grub_ieee1275_map_physical into grub_map and rename to
30435 grub_ieee1275_map
30436
30437 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30438 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30439 Remove.
30440 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30441 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30442 necessary.
30443 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30444
30445 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30448 opening and not after.
30449
30450 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30451
30452 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30453 constants.
30454
30455 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30456
30457 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30458 (alloc_phys): Use ALIGN_UP instead of align_addr.
30459
30460 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30461
30462 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30463
30464 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30465
30466 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30467
30468 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30469
30470 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30471 verbose dprintf.
30472
30473 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30474
30475 Fix over-4GiB seek on sparc64.
30476
30477 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30478 Replace pos_i and pos_lo with pos. All users updated.
30479 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30480 New constant.
30481 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30482 Likewise.
30483 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30484 and pos_lo.
30485
30486 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30487
30488 * util/grub-mkrawimage.c (main): Call set_program_name.
30489
30490 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30491
30492 Properly align 64-bit targets.
30493
30494 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30495 (generate_image): Use ALIGN_ADDR.
30496
30497 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30498
30499 Properly create cross-endian images.
30500
30501 * include/grub/types.h (grub_host_to_target_addr): New macro
30502 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30503
30504 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30505
30506 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30507
30508 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30509
30510 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30511
30512 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30513 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30514 (grub_linux_boot): Divide by 64K when on VESA.
30515
30516 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30517
30518 Support GRUB_GFXPAYLOAD_LINUX.
30519
30520 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30521 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30522
30523 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30524
30525 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30526 to show messages instead of discarding them.
30527 Process errors after executing command and not before. Keep old method
30528 too as precaution.
30529
30530 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30531
30532 * configure.ac: Check for ft2build.h.
30533
30534 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30535
30536 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30537
30538 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30539
30540 * genkernsyms.sh.in: Use TARGET_CC.
30541
30542 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30543
30544 * NEWS: Update.
30545
30546 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30547
30548 * include/grub/multiboot2.h: Remove leftover file.
30549 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30550 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30551
30552 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30553
30554 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30555
30556 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30557
30558 Fix warnings in grub-emu when compiling with maximum warning options.
30559
30560 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30561 (grub_arch_modules_addr): Return 0 and not NULL.
30562 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30563 (xstrdup): Use newstr instead of dup.
30564 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30565 of disk to dsk to avoid shadowing.
30566 (find_free_slot): Fix prototype.
30567 * util/getroot.c (grub_util_is_dmraid): Make static.
30568 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30569 Add missing prototype.
30570 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30571
30572 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30573
30574 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30575 appropriately.
30576
30577 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30578
30579 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30580 code out.
30581
30582 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30583
30584 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30585 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30586 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30587 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30588 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30589 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30590
30591 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30592
30593 * include/grub/err.h (grub_err_printf): Don't export.
30594
30595 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30596
30597 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30598
30599 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30600
30601 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30602 * kern/misc.c (grub_gettext_dummy): Make static.
30603
30604 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30605
30606 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30607 by non-valid ones.
30608 * kern/term.c (grub_putchar): Likewise.
30609
30610 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30611
30612 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30613 buggy hook call and memory leak.
30614
30615 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30618
30619 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30620
30621 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30622
30623 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30624
30625 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30626 modevar.
30627 Return grub_errno on allocation error.
30628
30629 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30630
30631 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30632
30633 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30634
30635 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30636 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30637
30638 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30639
30640 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30641 non-pxe disk.
30642 (grub_pxefs_open): Likewise.
30643
30644 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30645
30646 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30647 * util/grub.d/10_kfreebsd.in: Likewise.
30648 * util/grub.d/10_linux.in: Likewise.
30649
30650 2010-02-06 Colin D Bennett <colin@gibibit.com>
30651
30652 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30653 (gfxmenu_mod_SOURCES): New variable.
30654 (gfxmenu_mod_CFLAGS): Likewise.
30655 (gfxmenu_mod_LDFLAGS): Likewise.
30656 * include/grub/term.h (grub_term_set_current_output): Declare
30657 argument as const.
30658 * docs/gfxmenu-theme-example.txt: New file.
30659 * gfxmenu/gfxmenu.c: Likewise.
30660 * gfxmenu/gui_box.c: Likewise.
30661 * gfxmenu/gui_canvas.c: Likewise.
30662 * gfxmenu/gui_circular_progress.c: Likewise.
30663 * gfxmenu/gui_image.c: Likewise.
30664 * gfxmenu/gui_label.c: Likewise.
30665 * gfxmenu/gui_list.c: Likewise.
30666 * gfxmenu/gui_progress_bar.c: Likewise.
30667 * gfxmenu/gui_string_util.c: Likewise.
30668 * gfxmenu/gui_util.c: Likewise.
30669 * gfxmenu/icon_manager.c: Likewise.
30670 * gfxmenu/model.c: Likewise.
30671 * gfxmenu/named_colors.c: Likewise.
30672 * gfxmenu/theme_loader.c: Likewise.
30673 * gfxmenu/view.c: Likewise.
30674 * gfxmenu/widget-box.c: Likewise.
30675 * include/grub/gfxmenu_model.h: Likewise.
30676 * include/grub/gfxmenu_view.h: Likewise.
30677 * include/grub/gfxwidgets.h: Likewise.
30678 * include/grub/gui.h: Likewise.
30679 * include/grub/gui_string_util.h: Likewise.
30680 * include/grub/icon_manager.h: Likewise.
30681
30682 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30683
30684 Agglomerate scrolling in gfxterm.
30685
30686 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30687 (grub_virtual_screen_setup): Initialise 'total_screen'.
30688 (write_char): Split to ...
30689 (paint_char): ... this ...
30690 (write_char): ... and this.
30691 (paint_char): Handle delayed scrolling.
30692 (draw_cursor): Likewise.
30693 (scroll_up): Split to ...
30694 (real_scroll): ... this ...
30695 (scroll_up): ... and this.
30696 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30697 characters.
30698 (grub_gfxterm_refresh): Call real_scroll.
30699
30700 2010-02-06 Colin D Bennett <colin@gibibit.com>
30701
30702 * include/grub/misc.h (grub_iscntrl): New inline function.
30703 (grub_isalnum): Likewise.
30704 (grub_strtol): Likewise.
30705
30706 2010-02-06 Colin D Bennett <colin@gibibit.com>
30707
30708 * normal/menu_text.c (get_entry_number): Move from here ...
30709 * normal/menu.c (get_entry_number): ... moved here.
30710 * include/grub/menu.h (grub_menu_get_default_entry_index):
30711 New prototype.
30712 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30713 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30714 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30715 (grub_menu_viewer_should_return): Likewise.
30716 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30717 * normal/menu_text.c (run_menu): Enable menu switching.
30718 * normal/menu_viewer.c (should_return): New variable.
30719 (menu_viewer_changed): Likewise.
30720 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30721 (grub_menu_viewer_should_return): New function.
30722 (menuviewer_write_hook): Likewise.
30723 (grub_menu_viewer_init): Likewise.
30724
30725 2010-02-06 Colin D Bennet <colin@gibibit.com>
30726 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30727
30728 Support for gfxterm in a window.
30729
30730 * include/grub/gfxterm.h: New file.
30731 * include/grub/video.h (struct grub_video_rect): New declaration.
30732 (grub_video_rect_t): Likewise.
30733 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30734 (refcount): New variable.
30735 (render_target): Likewise.
30736 (window): Likewise.
30737 (repaint_callback): Likewise.
30738 (grub_virtual_screen_setup): Use 'render_target'.
30739 (init_window): New function.
30740 (grub_gfxterm_init_window): Likewise.
30741 (grub_gfxterm_init): Check reference counter.
30742 Use init_window.
30743 (destroy_window): New function.
30744 (grub_gfxterm_destroy_window): Likewise.
30745 (grub_gfxterm_fini): Check reference counter.
30746 Use destroy_window.
30747 (redraw_screen_rect): Restore viewport.
30748 Use 'render_target' and 'window'.
30749 Call 'repaint_callback'.
30750 (write_char): Use 'render_target'.
30751 (draw_cursor): Likewise.
30752 (scroll_up): Restore viewport.
30753 Use 'render_target' and 'window'.
30754 Call 'repaint_callback'.
30755 (grub_gfxterm_cls): Likewise.
30756 (grub_gfxterm_refresh): Use 'window'.
30757 (grub_gfxterm_set_repaint_callback): New function.
30758 (grub_gfxterm_background_image_cmd): Use 'window'.
30759 (grub_gfxterm_get_term): New function.
30760 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30761
30762 2010-02-06 Colin D Bennett <colin@gibibit.com>
30763
30764 Bitmap scaling support.
30765
30766 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30767 (bitmap_scale_mod_SOURCES): New variable.
30768 (bitmap_scale_mod_CFLAGS): Likewise.
30769 (bitmap_scale_mod_LDFLAGS): Likewise.
30770 * include/grub/bitmap_scale.h: New file.
30771 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30772 (background_image_cmd_options): New variable.
30773 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30774 (cmd): Rename and change type to ...
30775 (background_image_cmd_handle): ... this. All users updated.
30776 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30777 * video/bitmap_scale.c: New file.
30778
30779 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30780
30781 SDL support.
30782
30783 * Makefile.in (LIBSDL): New variable.
30784 (enable_grub_emu_sdl): Likewise.
30785 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30786 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30787 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30788 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30789 * util/sdl.c: New file.
30790
30791 2010-02-06 Colin D Bennett <colin@gibibit.com>
30792 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30793
30794 Double buffering support.
30795
30796 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30797 * include/grub/video.h: Update comment.
30798 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30799 New type.
30800 (grub_video_fb_doublebuf_blit_init): New prototype.
30801 * term/gfxterm.c (scroll_up): Support double buffering.
30802 (grub_gfxterm_refresh): Likewise.
30803 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30804 (grub_video_fb_doublebuf_blit_init): Likewise.
30805 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30806 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30807 'displayed_page', 'render_page' and 'update_screen'.
30808 (grub_video_vbe_fini): Free offscreen buffer.
30809 (doublebuf_pageflipping_commit): New function.
30810 (doublebuf_pageflipping_update_screen): Likewise.
30811 (doublebuf_pageflipping_init): Likewise.
30812 (double_buffering_init): Likewise.
30813 (grub_video_vbe_setup): Enable doublebuffering.
30814 (grub_video_vbe_swap_buffers): Implement.
30815 (grub_video_vbe_set_active_render_target): Handle double buffering.
30816 (grub_video_vbe_get_active_render_target): Likewise.
30817 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30818 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30819 (grub_video_vbe_enable_double_buffering): Likewise.
30820 (grub_video_vbe_swap_buffers): Use update_screen.
30821 (grub_video_set_mode): Use double buffering.
30822
30823 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30824
30825 * maintainance/gentrigtables.py: Remove.
30826 * lib/trig.c: Likewise.
30827
30828 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30829
30830 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30831 `trigtables.c'.
30832 (trigtables.c): New rule.
30833 (gentrigtables): Likewise.
30834 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30835
30836 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30837
30838 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30839 integer constants.
30840
30841 2010-02-06 Colin D Bennet <colin@gibibit.com>
30842
30843 Trigonometry support.
30844
30845 * include/grub/trig.h: New file.
30846 * lib/trig.c: Likewise.
30847 * maintainance/gentrigtables.py: Likewise.
30848 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30849 (trig_mod_SOURCES): New variable.
30850 (trig_mod_CFLAGS): Likewise.
30851 (trig_mod_LDFLAGS): Likewise.
30852
30853 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30854
30855 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30856 disk devices.
30857
30858 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30859
30860 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30861 error.
30862
30863 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30864
30865 * util/hostdisk.c (open_device): Don't use partition device when reading
30866 before the partition.
30867 (grub_util_biosdisk_read): Don't read from partition and before the
30868 partition in single operation.
30869 (grub_util_biosdisk_write): Don't write to partition and before the
30870 partition in single operation.
30871
30872 2010-02-03 Torsten Landschoff <torsten@debian.org>
30873
30874 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30875 last sectors.
30876
30877 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30878
30879 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30880 CDROM reads.
30881 (grub_biosdisk_write): Refuse to write to CDROM.
30882
30883 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30884
30885 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30886
30887 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30888
30889 * font/font.c (find_glyph): Check that bmp_idx is available before
30890 using it.
30891 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30892 with (font == NULL).
30893
30894 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30895
30896 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30897
30898 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30899
30900 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30901 * util/grub-script-check.c (getline): Fix empty lines case.
30902
30903 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30904
30905 * Makefile.in (check): Exit with fail status when one of the tests
30906 fails.
30907 * tests/example_functional_test.c (example_test): Fix reversed assert.
30908 * tests/example_unit_test.c (example_test): Likewise.
30909
30910 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30911
30912 * util/grub.d/10_linux.in: This script does not use any of the
30913 contents of gettext.sh, only the external command `gettext', so stop
30914 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30915 the same prefix as GRUB.)
30916 * util/grub.d/10_kfreebsd.in: Likewise.
30917
30918 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30919
30920 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30921 of the line.
30922
30923 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30924
30925 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30926 last sectors.
30927
30928 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30929
30930 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30931 having a 4KiB and not 32KiB buffer size.
30932
30933 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30934
30935 * util/hostfs.c: Include `<errno.h>'.
30936 (grub_hostfs_read): Handle errors from fseeko() and fread().
30937
30938 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30939
30940 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30941 loop when using read hooks on files whose size isn't sector-aligned.
30942
30943 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30944
30945 Remove unused parameter.
30946
30947 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30948 (grub_iso9660_open): Remove initialization of `data->length'.
30949
30950 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30951
30952 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30953 memleak conditions.
30954
30955 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30956
30957 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30958 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30959
30960 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30961
30962 * util/bin2h.c (usage): Fix warning (space after backslash).
30963
30964 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30965
30966 * font/font.c: Include `grub/fontformat.h.
30967 Remove font file format constants.
30968 (grub_font_load): Use the new macros.
30969 * include/grub/fontformat.h: New file.
30970 * util/grub-mkfont.c: Include `grub/fontformat.c'.
30971 (write_font_pf2): Use the new macros.
30972
30973 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30974
30975 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
30976 does.
30977
30978 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
30979
30980 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
30981
30982 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
30983 (_start): Macroify `0x7F'.
30984
30985 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
30986 (make_install_device): Use "(pxe)" as fallback prefix when booting
30987 via PXE.
30988
30989 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
30990
30991 * configure.ac: Reset LIBS after check for libgcc symbols.
30992
30993 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
30994
30995 * util/hostdisk.c (open_device): Add trailing newline to debug
30996 message.
30997
30998 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
30999
31000 * configure.ac: Check for `limits.h'.
31001 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31002
31003 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31004
31005 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31006 capitalize error strings.
31007
31008 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31009
31010 * util/grub.d/10_hurd.in: Add a recovery mode.
31011
31012 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31013
31014 * configure.ac: Check for libgcc symbols with -nostdlib.
31015
31016 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31017
31018 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31019
31020 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31021
31022 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31023 stack since heap may be unavailable at that point.
31024 (grub_ofconsole_gotoxy): Likewise.
31025
31026 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31027
31028 * configure.ac: Check for _restgpr_14_x.
31029 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31030 and _savegpr_* prototypes.
31031
31032 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31033
31034 Use generic grub_reboot() for i386-efi.
31035
31036 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31037 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31038 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31039
31040 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31041
31042 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31043 presence of "prefix" variable as it breaks when normal.mod is
31044 embedded.
31045
31046 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31047
31048 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31049 stack since heap is unavailable at that point.
31050
31051 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31052
31053 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31054 (grub_freebsd_bootinfo): Rewritten.
31055 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31056
31057 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31058
31059 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31060
31061 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31062
31063 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31064 domain now.
31065
31066 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31067
31068 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31069 around for handling "/" to the correct fix. Fix a memory leak. Use
31070 xstrdup instead of strdup.
31071
31072 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31073
31074 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31075
31076 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31077
31078 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31079
31080 * font/font.c (struct grub_font): New member 'bmp_idx'.
31081 (font_init): Initialise 'bmp_idx'.
31082 (load_font_index): Fill 'bmp_idx'.
31083 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31084
31085 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31086
31087 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31088 unnecessary calls.
31089
31090 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31091
31092 Move context handling out of the kernel.
31093
31094 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31095 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31096 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31097 * conf/i386-efi.rmk: Likewise.
31098 * conf/i386-ieee1275.rmk: Likewise.
31099 * conf/i386-pc.rmk: Likewise.
31100 * conf/powerpc-ieee1275.rmk: Likewise.
31101 * conf/sparc64-ieee1275.rmk: Likewise.
31102 * conf/x86_64-efi.rmk: Likewise.
31103 * include/grub/env.h: Include grub/menu.h.
31104 (grub_env_var_type): Removed.
31105 (grub_env_var): Replaced field 'type' with 'global'.
31106 (grub_env_find): New prototype.
31107 (grub_env_context_open): Remove EXPORT_FUNC.
31108 (grub_env_context_close): Likewise.
31109 (grub_env_export): Likewise.
31110 (grub_env_set_data_slot): Removed.
31111 (grub_env_get_data_slot): Likewise.
31112 (grub_env_unset_data_slot): Likewise.
31113 (grub_env_unset_menu): New prototype.
31114 (grub_env_set_menu): Likewise.
31115 (grub_env_get_menu): Likewise.
31116 * include/grub/env_private.h: New file.
31117 * include/grub/normal.h (grub_context_init): New prototype.
31118 (grub_context_fini): Likewise.
31119 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31120 * normal/context.c (grub_cmd_export): ... to here.
31121 * kern/env.c: Include env_private.h.
31122 (HASHSZ): Moved to include/grub/env_private.h.
31123 (grub_env_context): Likewise.
31124 (grub_env_sorted_var): Likewise.
31125 (current_context): Renamed from this ...
31126 (grub_current_context): ...to this. 'static' removed. All users updated.
31127 (grub_env_find): Removed 'static'.
31128 (grub_env_context_open): Moved to normal/context.c.
31129 (grub_env_context_close): Likewise.
31130 (grub_env_export): Likewise.
31131 (mangle_data_slot_name): Removed.
31132 (grub_env_set_data_slot): Likewise.
31133 (grub_env_get_data_slot): Likewise.
31134 (grub_env_unset_data_slot): Likewise.
31135 * kern/main.c (grub_set_root_dev): Don't export root.
31136 It will be done later.
31137 (grub_main): Don't export prefix.
31138 It will be done later.
31139 * normal/context.c: New file.
31140 * normal/main.c (free_menu): Use grub_env_unset_menu.
31141 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31142 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31143 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31144 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31145
31146 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31147
31148 setpci support.
31149
31150 * commands/setpci.c: New file.
31151 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31152 (setpci_mod_SOURCES): New variable.
31153 (setpci_mod_CFLAGS): Likewise.
31154 (setpci_mod_LDFLAGS): Likewise.
31155
31156 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31157
31158 Byte-addressable PCI configuration space.
31159
31160 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31161 dword address.
31162 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31163 GRUB_PCI_REG_CACHELINE.
31164 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31165 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31166 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31167 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31168 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31169 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31170 grub_pci_make_address.
31171 (lock_rom_area): Likewise.
31172 * commands/lspci.c (grub_lspci_iter): Use macroses
31173 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31174 of grub_pci_make_address.
31175 * disk/ata.c (grub_ata_pciinit): Likewise.
31176 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31177 (GRUB_PCI_REG_VENDOR): Likewise.
31178 (GRUB_PCI_REG_DEVICE): Likewise.
31179 (GRUB_PCI_REG_COMMAND): Likewise.
31180 (GRUB_PCI_REG_STATUS): Likewise.
31181 (GRUB_PCI_REG_REVISION): Likewise.
31182 (GRUB_PCI_REG_CLASS): Likewise.
31183 (GRUB_PCI_REG_CACHELINE): Likewise.
31184 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31185 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31186 (GRUB_PCI_REG_BIST): Likewise.
31187 (GRUB_PCI_REG_ADDRESSES): Likewise.
31188 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31189 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31190 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31191 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31192 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31193 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31194 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31195 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31196 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31197 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31198 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31199 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31200 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31201 (GRUB_PCI_REG_MIN_GNT): Likewise.
31202 (GRUB_PCI_REG_MAX_LAT): Likewise.
31203 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31204 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31205 * video/efi_uga.c (find_framebuf): Likewise.
31206 * video/sm712.c (grub_video_sm712_setup): Likewise.
31207 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31208 space.
31209
31210 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31211
31212 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31213 can be reliably determined to be supported.
31214
31215 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31216
31217 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31218 that VESA is supported.
31219 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31220 supported.
31221
31222 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31223
31224 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31225
31226 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31227
31228 * util/misc.c (make_system_path_relative_to_its_root): Work around
31229 special-casing of "/", as previous incarnation of this routine did.
31230
31231 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31232
31233 Fix any-emu compilation.
31234
31235 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31236 * grub_bin2h_SOURCES: New variable.
31237
31238 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31239
31240 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31241
31242 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31243
31244 * util/grub.d/00_header.in: Fix handling of locale_dir.
31245
31246 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31247
31248 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31249 as possible unifont location (Gentoo).
31250 Reported by: Alexander Brüning
31251
31252 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31253
31254 Don't try to generate lists for kernel.img.
31255
31256 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31257 (pkglib_MODULES): Remove kernel.img.
31258 (kernel_img_EXPORTS): Removed.
31259 (kernel_img_RELOCATABLE): New variable.
31260 * conf/x86_64-efi.rmk: Likewise.
31261 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31262
31263 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31264
31265 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31266 grub_xasprintf or grub_snprintf.
31267 (grub_vsprintf): Likewise.
31268 (grub_snprintf): New proto.
31269 (grub_vsnprintf): Likewise.
31270 (grub_xasprintf): Likewise.
31271 (grub_xvasprintf): Likewise.
31272 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31273 (grub_sprintf): Removed.
31274 (grub_vsnprintf): New function.
31275 (grub_snprintf): Likewise.
31276 (grub_xvasprintf): Likewise.
31277 (grub_xasprintf): Likewise.
31278 (grub_vsprintf): Renamed to ...
31279 (grub_vsnprintf_real): ...this. New argument max_len.
31280
31281 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31282
31283 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31284 fix grub-script-check warning.
31285
31286 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31287
31288 * include/grub/font.h (grub_font_load): Fix prototype.
31289
31290 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31291
31292 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31293
31294 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31295
31296 * include/grub/x86_64/at_keyboard.h: New file.
31297
31298 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31299
31300 * loader/mips/linux.c: Include missing grub/i18n.h.
31301
31302 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31303
31304 * normal/menu.c (notify_execution_failure): Clarify error message.
31305
31306 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31307
31308 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31309 return value (and revert all return statements). Update users.
31310
31311 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31312
31313 * kern/device.c (grub_device_iterate): Allocate new part_ent
31314 structure based on sizeof (*p) rather than sizeof (p->next), to
31315 account for structure padding.
31316
31317 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31318 disk is NULL, which might happen for LVM physical volumes with no
31319 LVM signature.
31320
31321 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31322
31323 * loader/mips/linux.c (grub_cmd_initrd)
31324 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31325
31326 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31327
31328 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31329 (grub_video_video_init, grub_video_bitmap_init)
31330 (grub_font_manager_init, grub_term_gfxterm_init)
31331 (grub_at_keyboard_init): New extern declarations.
31332 (grub_machine_init): Initialize gfxterm and at_keyboard.
31333
31334 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31335
31336 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31337 `gfxterm.mod' into core image.
31338
31339 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31340 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31341 (kernel_img_FORMAT): Copy to ...
31342
31343 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31344 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31345 (kernel_img_FORMAT): ... here, and ...
31346
31347 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31348 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31349 (kernel_img_FORMAT): ... here.
31350
31351 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31352 and input (at_keyboard) terminals in kernel.
31353 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31354
31355 (pkglib_MODULES): Remove `pci.mod'.
31356 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31357 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31358 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31359 (at_keyboard_mod_LDFLAGS): Remove variables.
31360
31361 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31362
31363 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31364
31365 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31366
31367 * include/grub/mips/libgcc.h: Only export symbols for functions
31368 that libgcc provides.
31369
31370 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31371
31372 MIPS support.
31373
31374 * bus/bonito.c: New file.
31375 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31376 GRUB_PCI_NUM_DEVICES.
31377 * term/i386/pc/serial.c: Move to ...
31378 * term/serial.c: ... here. All users updated.
31379 * util/i386/pc/grub-mkimage.c: Move to ...
31380 * util/grub-mkrawimage.c: ... here. All users updated.
31381 * term/i386/pc/at_keyboard.c: Move to ...
31382 * term/at_keyboard.c: ... here. All users updated.
31383 * conf/mips-qemu-mips.rmk: New file.
31384 * conf/mips-yeeloong.rmk: Likewise.
31385 * conf/mips.rmk: Likewise.
31386 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31387 mipsel-qemu-mips.
31388 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31389 to port addresses.
31390 (grub_ata_pciinit): Support CS5536.
31391 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31392 * font/font_cmd.c (loadfont_command): Open file before passing it to
31393 grub_font_load.
31394 (pseudo_file_read): New function.
31395 (pseudo_file_close): Likewise.
31396 (pseudo_fs): New structure.
31397 (load_font_module): New function.
31398 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31399 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31400 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31401 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31402 * include/grub/i386/at_keyboard.h: Split into ...
31403 * include/grub/at_keyboard.h: ... this ...
31404 * include/grub/i386/at_keyboard.h: ... and this.
31405 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31406 New prototype.
31407 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31408 updated.
31409 (grub_elf64_size): Likewise.
31410 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31411 filename.
31412 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31413 * include/grub/i386/coreboot/serial.h: Rewritten.
31414 * include/grub/i386/ieee1275/serial.h: Include
31415 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31416 * include/grub/i386/pc/serial.h: Moved from here ...
31417 * include/grub/serial.h: ... to here. All users updated.
31418 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31419 (GRUB_PCI_NUM_BUS): Likewise.
31420 (GRUB_PCI_NUM_DEVICES): Likewise.
31421 (grub_pci_device_map_range): Add missing volatile keyword.
31422 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31423 * include/grub/mips/at_keyboard.h: New file.
31424 * include/grub/mips/cache.h: Likewise.
31425 * include/grub/mips/io.h: Likewise.
31426 * include/grub/mips/kernel.h: Likewise.
31427 * include/grub/mips/libgcc.h: Likewise.
31428 * include/grub/mips/pci.h: Likewise.
31429 * include/grub/mips/qemu-mips/boot.h: Likewise.
31430 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31431 * include/grub/mips/qemu-mips/loader.h: Likewise.
31432 * include/grub/mips/qemu-mips/memory.h: Likewise.
31433 * include/grub/mips/qemu-mips/serial.h: Likewise.
31434 * include/grub/mips/qemu-mips/time.h: Likewise.
31435 * include/grub/mips/relocator.h: Likewise.
31436 * include/grub/mips/time.h: Likewise.
31437 * include/grub/mips/types.h: Likewise.
31438 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31439 * include/grub/mips/yeeloong/boot.h: Likewise.
31440 * include/grub/mips/yeeloong/kernel.h: Likewise.
31441 * include/grub/mips/yeeloong/loader.h: Likewise.
31442 * include/grub/mips/yeeloong/memory.h: Likewise.
31443 * include/grub/mips/yeeloong/pci.h: Likewise.
31444 * include/grub/mips/yeeloong/serial.h: Likewise.
31445 * include/grub/mips/yeeloong/time.h: Likewise.
31446 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31447 * kern/elf.c (grub_elf32_size): New parameter. All users
31448 updated.
31449 (grub_elf64_size): Likewise.
31450 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31451 Load modules before saying "Welcome to GRUB!".
31452 Call grub_refresh after saying "Welcome to GRUB!".
31453 * kern/mips/cache.S: New file.
31454 * kern/mips/cache_flush.S: Likewise.
31455 * kern/mips/dl.c: Likewise.
31456 * kern/mips/init.c: Likewise.
31457 * kern/mips/qemu-mips/init.c: Likewise.
31458 * kern/mips/startup.S: Likewise.
31459 * kern/mips/yeeloong/init.c: Likewise.
31460 * kern/term.c (grub_putcode): Handle NULL terminal.
31461 (grub_getcharwidth): Likewise.
31462 (grub_getkey): Likewise.
31463 (grub_checkkey): Likewise.
31464 (grub_getkeystatus): Likewise.
31465 (grub_getxy): Likewise.
31466 (grub_getwh): Likewise.
31467 (grub_gotoxy): Likewise.
31468 (grub_cls): Likewise.
31469 (grub_setcolorstate): Likewise.
31470 (grub_setcolor): Likewise.
31471 (grub_getcolor): Likewise.
31472 (grub_refresh): Likewise.
31473 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31474 (write_jump): Add hatch nop.
31475 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31476 * lib/mips/setjmp.S: New file.
31477 * loader/mips/linux.c: Likewise.
31478 * term/i386/pc/at_keyboard.c: Move from here ...
31479 * term/at_keyboard.c: ... to here.
31480 * term/i386/pc/serial.c: Moved from here ...
31481 * term/serial.c: ... to here. All users updated.
31482 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31483 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31484 (serial_translate_key_sequence): Avoid deadlock.
31485 (grub_serial_getkey): Handle backspace.
31486 (grub_serial_putchar): Fix newline handling.
31487 * util/i386/pc/grub-mkimage.c: Move from here ...
31488 * util/grub-mkrawimage.c: ... to here. All users updated.
31489 (generate_image): New parameters 'font_path' and 'format'.
31490 Support embedding font.
31491 Use grub_host_to_target* instead of grub_cpu_to_le*.
31492 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31493 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31494 (options): New option "--font".
31495 (usage): Likewise.
31496 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31497 (main): Handle "--font".
31498 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31499 (grub_virtual_screen_setup): Set bg_color_display.
31500 (redraw_screen_rect): Use bg_color_display instead of incorrect
31501 bg_color.
31502 (grub_gfxterm_cls): Likewise.
31503 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31504 Support embedding config file.
31505 (add_segments): Likewise.
31506 (options): New option "--config".
31507 (main): Handle "--config".
31508 * video/sm712.c: New file.
31509
31510 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31511
31512 Fix parallel builds.
31513
31514 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31515 font.c depend on ascii.h).
31516
31517 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31518
31519 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31520
31521 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31522
31523 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31524 By default: disabled.
31525 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31526 parameter.
31527
31528 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31529
31530 * font/font.c: Update copyright years.
31531 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31532
31533 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31534
31535 * font/font.c: Include `ascii.h'.
31536 (ASCII_BITMAP_SIZE): New macro.
31537 (ascii_font_glyph): Define.
31538 (ascii_glyph_lookup): New function.
31539 (grub_font_get_string_width): Change comment. If glyph not found, use
31540 ascii_glyph_lookup.
31541 (grub_font_get_glyph_with_fallback): If glyph not available returns
31542 ascii_glyph_lookup.
31543 * util/grub-mkfont.c (file_formats): New enum.
31544 (options): Add `ascii-bitmaps' new option.
31545 (usage): Add `asii-bitmaps' new option.
31546 (write_font_ascii_bitmap): New function.
31547 (write_font): Rename to ...
31548 (write_font_p2): ... this. Remove print_glyphs call.
31549 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31550 used. Call print_glyphs.
31551 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31552
31553 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31554
31555 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31556 (grub_bin2h_SOURCES): New variable.
31557 * util/bin2h.c: New file.
31558
31559 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31560
31561 * include/multiboot.h: Resynced with spec.
31562 * include/multiboot2.h: Likewise.
31563 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31564 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31565
31566 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31567
31568 * include/grub/term.h (grub_term_register_input,
31569 grub_term_register_output): Check return of terminal init()
31570 routines, and abort if errors are raised.
31571
31572 * commands/terminal.c: Update copyright year.
31573
31574 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31575
31576 * commands/terminal.c (grub_cmd_terminal_input)
31577 (grub_cmd_terminal_output): Check return of terminal init()
31578 routines, and abort if errors are raised.
31579
31580 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31581
31582 * include/grub/i386/bsd.h: Fix include pathes.
31583
31584 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31585
31586 Add missing *BSD copyright headers.
31587
31588 * include/grub/aout.h: Add BSD licence.
31589 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31590 * include/grub/i386/freebsd_linker.h: ... here,
31591 * include/grub/i386/freebsd_reboot.h: ... here,
31592 * include/grub/i386/netbsd_bootinfo.h: ... here,
31593 * include/grub/i386/netbsd_reboot.h: ... here,
31594 * include/grub/i386/openbsd_bootarg.h: ... here,
31595 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31596 licence to each file.
31597
31598 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31599
31600 * acinclude.m4: Remove `nop' assembly instruction; it's not
31601 implemented by all architectures.
31602
31603 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31604
31605 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31606 ELILO. This is no longer necessary.
31607
31608 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31609
31610 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31611
31612 * util/grub-script-check.c: grub-script-check tool.
31613 * conf/common.rmk: Make rules for grub-script-check.
31614
31615 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31616
31617 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31618 spotting it back in 2008. Shame on me for forgetting he did.
31619
31620 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31621
31622 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31623
31624 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31625 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31626 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31627 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31628 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31629 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31630
31631 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31632
31633 * include/grub/test.h: Add license header.
31634 * tests/example_functional_test.c: Likewise.
31635 * tests/example_unit_test.c: Likewise.
31636 * tests/lib/functional_test.c: Likewise.
31637 * tests/lib/test.c: Likewise.
31638 * tests/lib/unit_test.c: Likewise.
31639
31640 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31641
31642 Use flag-based instead of hook-based video mode selection and "auto"
31643 keyword.
31644
31645 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31646 (grub_video_set_mode): Changed prototype. All users updated.
31647 (grub_video_check_mode_flag): New inline function.
31648 * video/video.c (parse_modespec): New function.
31649 (grub_video_set_mode): Parse flags and keywords.
31650
31651 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31652
31653 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31654 fprintf call.
31655
31656 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31657
31658 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31659
31660 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31661
31662 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31663 string.
31664 * util/grub-emu.c (usage): Likewise.
31665 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31666 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31667 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31668 * util/i386/pc/grub-setup.c (usage): Likewise.
31669
31670 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31671
31672 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31673 the message.
31674 (grub_util_info): Likewise.
31675 (grub_util_error): Likewise.
31676 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31677 and/or new lines in `grub_util_warna', `grub_util_info',
31678 `grub_util_error' calls.
31679 * util/getroot.c: Likewise.
31680 * util/grub-editenv.c: Likewise.
31681 * util/grub-emu.c: Likewise.
31682 * util/grub-fstest.c: Likewise.
31683 * util/grub-mkdevicemap.c: Likewise.
31684 * util/grub-mkfont.c: Likewise.
31685 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31686 * util/grub-mkrelpath.c: Likewise.
31687 * util/grub-pe2elf.c: Likewise.
31688 * util/grub-probe.c: Likewise.
31689 * util/hostdisk.c: Likewise.
31690 * util/i386/efi/grub-mkimage.c: Likewise.
31691 * util/i386/pc/grub-mkimage.c: Likewise.
31692 * util/i386/pc/grub-setup.c: Likewise.
31693 * util/ieee1275/ofpath.c: Likewise.
31694 * util/mkisofs/eltorito.c: Likewise.
31695 * util/mkisofs/rock.c: Likewise.
31696 * util/mkisofs/write.c: Likewise.
31697 * util/raid.c: Likewise.
31698 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31699 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31700
31701 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31702
31703 Enable multiboot on non-pc.
31704
31705 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31706 multiboot.mod and multiboot2.mod to ...
31707 * conf/i386.rmk (pkglib_MODULES): ... here.
31708 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31709 Moved to ...
31710 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31711 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31712 Moved to ...
31713 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31714 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31715 Moved to ...
31716 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31717 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31718 Moved to ...
31719 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31720 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31721 relocator.mod.
31722 (ata_mod_SOURCES): Removed.
31723 (ata_mod_CFLAGS): Likewise.
31724 (ata_mod_LDFLAGS): Likewise.
31725 (relocator_mod_SOURCES): Removed.
31726 (relocator_mod_CFLAGS): Likewise.
31727 (relocator_mod_ASFLAGS): Likewise.
31728 (relocator_mod_LDFLAGS): Likewise.
31729 Include i386.mk.
31730 * include/grub/x86_64/multiboot.h: New file.
31731 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31732 Terminate EFI.
31733
31734 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31735
31736 Video multiboot support.
31737
31738 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31739 New prototype.
31740 * include/multiboot.h: Resynced with multiboot specification.
31741 * include/multiboot2.h: Likewise.
31742 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31743 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31744 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31745 (HAS_VGA_TEXT): Likewise.
31746 (accepts_video): New variable.
31747 (grub_multiboot_set_accepts_video): New function.
31748 (grub_multiboot_get_mbi_size): Account for video structures.
31749 (set_video_mode): New function.
31750 (retrieve_video_parameters): Likewise.
31751 (grub_multiboot_make_mbi): Fill video fields.
31752
31753 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31754
31755 Video driver ids.
31756
31757 * include/grub/video.h (grub_video_driver_id): New type.
31758 (grub_video_adapter): New member 'id'. All users updated.
31759 (grub_video_get_driver_id): New proto.
31760 * video/video.c (grub_video_get_driver_id): New function.
31761
31762 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31763
31764 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31765 `var=val'.
31766
31767 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31768
31769 * normal/cmdline.c (print_completion): Gettextizze.
31770
31771 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31772
31773 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31774
31775 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31776
31777 * gettext/gettext.c (grub_gettext_translate): Push and pop
31778 grub_errno.
31779 (grub_gettext_delete_list): Change comment style.
31780 * kern/err.c (grub_error): Gettextizze.
31781 (grub_fatal): Gettextizze.
31782
31783 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31784
31785 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31786 (grub_linux16_real_boot): ... this.
31787 * kern/i386/loader.S: Likewise.
31788 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31789 (grub_linux16_boot): New function. Switches to text mode and calls
31790 grub_linux16_real_boot().
31791
31792 * loader/i386/bsd.c: Include `<grub/video.h>'.
31793 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31794 text mode before calling grub_unix_real_boot().
31795
31796 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31797 (grub_multiboot_boot): Switch to text mode before calling
31798 grub_relocator32_boot().
31799
31800 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31801 (grub_chainloader_boot): Switch to text mode before calling
31802 grub_chainloader_real_boot().
31803
31804 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31805 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31806
31807 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31808 non-empty value.
31809
31810 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31811 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31812
31813 * util/grub.d/00_header.in: Define a "savedefault" function for use
31814 in menu entries.
31815 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31816
31817 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31818 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31819
31820 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31821 saved_entry if boot_once is unset.
31822 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31823 previous saved entry (i.e. grub-reboot).
31824
31825 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31826
31827 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31828
31829 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31830
31831 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31832 `var=val'.
31833 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31834
31835 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31836
31837 * util/grub-reboot.in: Fix --version output.
31838 * util/grub-set-default.in: Likewise.
31839
31840 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31841
31842 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31843 blocks.
31844
31845 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31846
31847 * util/grub.d/00_header.in: Quote the value assigned to `default',
31848 in case it contains spaces.
31849
31850 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31851
31852 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31853 `save_default_entry' call from the macosx case to the linux case.
31854
31855 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31856 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31857
31858 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31859 in `chosen' environment variable.
31860 * normal/menu_text.c (get_entry_number): Check if the variable
31861 matches the title of a menu entry.
31862 (run_menu): Pass menu to get_entry_number.
31863
31864 * util/grub-reboot.in: New file.
31865 * util/grub-set-default.in: New file.
31866 * conf/common.rmk (grub-reboot): New utility.
31867 (grub-set-default): New utility.
31868
31869 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31870 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31871 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31872 move it to `saved_entry' for the next boot. Load environment on
31873 initialisation.
31874 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31875 * util/grub.d/10_hurd.in: Likewise.
31876 * util/grub.d/10_linux.in (linux_entry): Likewise.
31877 * util/grub.d/10_windows.in: Likewise.
31878 * util/grub.d/30_os-prober.in: Likewise.
31879
31880 * util/grub-install.in: Create environment block.
31881 * util/i386/efi/grub-install.in: Likewise.
31882 * util/ieee1275/grub-install.in: Likewise.
31883 * util/sparc64/ieee1275/grub-install.in: Likewise.
31884
31885 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31886
31887 Unit testing framework for GRUB.
31888
31889 * Makefile.in: Test framework build rules for 'make check'.
31890 * conf/tests.rmk: Build rules for individual tests and framework.
31891
31892 * include/grub/test.h: Header file for whitebox tests.
31893 * tests/lib/functional_test.c: Framework support for whitebox
31894 functional tests.
31895 * tests/lib/test.c: Common whitebox testing code for unit and
31896 functional tests.
31897 * tests/lib/unit_test.c: Framework support for whitebox unit
31898 tests.
31899
31900 * tests/util/grub-shell-tester.in: Support utility for grub-script
31901 tests.
31902 * tests/util/grub-shell.in: Utility to execute grub-script
31903 commands in a Qemu instance.
31904
31905 * tests/example_functional_test.c: Example whitebox functional
31906 test.
31907 * tests/example_grub_script_test.in: Example grub-script test.
31908 * tests/example_scripted_test.in: Example scripted test.
31909 * tests/example_unit_test.c: Example whitebox unit test.
31910
31911 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31912
31913 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31914 Add loader/i386/multiboot_mbi.c.
31915 (multiboot2_mod_SOURCES): Likewise.
31916 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31917 (multiboot2_mod_SOURCES): Likewise.
31918 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31919 (grub_multiboot_make_mbi): Likewise.
31920 (grub_multiboot_free_mbi): Likewise.
31921 (grub_multiboot_init_mbi): Likewise.
31922 (grub_multiboot_add_module): Likewise.
31923 (grub_multiboot_set_bootdev): Likewise.
31924 * loader/i386/multiboot.c (mbi): Removed.
31925 (mbi_dest): Likewise.
31926 (alloc_mbi): New variable.
31927 (grub_multiboot_payload_size): Removed. All users updated.
31928 (grub_multiboot_pure_size): New variable.
31929 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31930 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31931 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31932 (grub_fill_multiboot_mmap): Likewise.
31933 (grub_multiboot_get_bootdev): Likewise.
31934 (grub_multiboot): Use multiboot_mbi functions.
31935 * loader/i386/multiboot_mbi.c: New file.
31936
31937 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31938
31939 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31940 it would result in module crash.
31941
31942 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31943
31944 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31945 (grub_ofconsole_getwh): Split to ...
31946 (grub_ofconsole_getwh): ... this.
31947 (grub_ofconsole_dimensions): ...and this.
31948 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31949
31950 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31951
31952 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31953
31954 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31955
31956 * loader/i386/pc/multiboot2.c: Removed stalled file.
31957
31958 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31961 Reported by: Grégoire Sutre
31962
31963 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
31964
31965 * util/misc.c (canonicalize_file_name): New function.
31966 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
31967 instead of realpath().
31968
31969 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
31970
31971 * util/grub-install.in (usage): Clarify meaning of --root-directory,
31972 and make it clearer that it's optional. Based on confusion
31973 witnessed on IRC.
31974
31975 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31976
31977 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
31978 in premature implicit newline.
31979
31980 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
31981
31982 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
31983 which resulted in garbled command line at the end of screen.
31984
31985 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31986
31987 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
31988 initialization with similar approach as with other Linux loaders.
31989
31990 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31991
31992 Fix i386-ieee1275 build.
31993
31994 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
31995 and grub_term_height() for video_{width,height} initialization.
31996
31997 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
31998
31999 Fix grub-emu build.
32000
32001 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32002
32003 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32004 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32005
32006 Support for multiple terminals.
32007
32008 * Makefile.in (pkglib_DATA): terminal.lst.
32009 (terminal.lst): New target.
32010 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32011 (GRUB_MOD_INIT(handler)): Likewise.
32012 (GRUB_MOD_FINI(handler)): Likewise.
32013 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32014 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32015 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32016 (grub_cmd_sleep): Use grub_term_save_pos.
32017 * commands/terminal.c: New file.
32018 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32019 commands/terminal.c and lib/charset.c.
32020 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32021 (pkglib_MODULES): Add terminal.mod.
32022 (terminal_mod_SOURCES): New variable.
32023 (terminal_mod_CFLAGS): Likewise.
32024 (terminal_mod_LDFLAGS): Likewise.
32025 * genhandlerlist.sh: Don't handle terminals.
32026 * genmk.rb: Generate terminal-*.lst.
32027 * genterminallist.sh: New file.
32028 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32029 (grub_is_valid_utf8): Likewise.
32030 (grub_utf8_to_ucs4_alloc): Likewise.
32031 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32032 (grub_menu_register_viewer): Changed argument.
32033 (grub_menu_try_text): New proto.
32034 (grub_gfxmenu_try_hook): New declaration.
32035 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32036 (grub_menu_init_page): Additional argument term.
32037 (grub_normal_init_page): Likewise.
32038 (grub_cmdline_get): Arguments simplified.
32039 (grub_utf8_to_ucs4_alloc): Removed.
32040 (grub_print_ucs4): Additional argument term.
32041 (grub_getstringwidth): Likewise.
32042 (grub_print_message_indented): Likewise.
32043 (grub_menu_text_register_instances): New proto.
32044 (grub_show_menu): Likewise.
32045 (read_terminal_list): Likewise.
32046 (grub_set_more): Likewise.
32047 * include/grub/parser.h: Include handler.h.
32048 * include/grub/reader.h: Rewritten.
32049 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32050 (GRUB_TERM_WIDTH): Changed to function.
32051 (GRUB_TERM_HEIGHT): Likewise.
32052 (GRUB_TERM_BORDER_WIDTH): Likewise.
32053 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32054 (GRUB_TERM_NUM_ENTRIES): Likewise.
32055 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32056 (GRUB_TERM_CURSOR_X): Likewise.
32057 (grub_term_input_class): Likewise.
32058 (grub_term_output_class): Likewise.
32059 (grub_term_outputs_disabled): New declaration.
32060 (grub_term_inputs_disabled): Likewise.
32061 (grub_term_outputs): Likewise.
32062 (grub_term_inputs): Likewise.
32063 (grub_term_register_input): Rewritten.
32064 (grub_term_register_output): Likewise.
32065 (grub_term_unregister_input): Likewise.
32066 (grub_term_unregister_output): Likewise.
32067 (FOR_ACTIVE_TERM_INPUTS): New macro.
32068 (FOR_DISABLED_TERM_INPUTS): Likewise.
32069 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32070 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32071 * include/grub/terminfo.h: Add oterm argument to all protypes.
32072 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32073 Use grub_rescue_run.
32074 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32075 All users updated.
32076 * kern/reader.c: Removed. All users updated.
32077 * kern/rescue_reader.c (grub_rescue_init): Removed.
32078 (grub_rescue_reader): Likewise.
32079 (grub_register_rescue_reader): Likewise.
32080 (grub_rescue_run): New function based on kern/reader.c.
32081 * kern/term.c: Adapted for multiterm.
32082 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32083 (grub_is_valid_utf8): Likewise.
32084 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32085 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32086 right terminal.
32087 * loader/i386/linux.c (grub_linux_boot): Likewise.
32088 * normal/auth.c (grub_username_get): New function.
32089 (grub_auth_check_authentication): Use grub_username_get.
32090 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32091 * normal/color.c: Adapt for multiterm.
32092 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32093 (grub_normal_init_page): Additional argument term.
32094 (read_lists): Call read_terminal_lists.
32095 (grub_enter_normal_mode): Call grub_cmdline_run.
32096 Handle grub_normal_exit_level.
32097 (grub_cmd_normal): Make reentrant.
32098 (grub_cmd_normal_exit): New function.
32099 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32100 * normal/menu.c: Adapt for multiterm.
32101 * normal/menu_entry.c: Likewise.
32102 * normal/menu_text.c: Likewise.
32103 * normal/menu_viewer.c: Removed. All users updated.
32104 * normal/term.c: New file.
32105 * util/console.c: Change order of includes to workaround a bug in
32106 ncurses headers.
32107 * term/terminfo.c: New argument oterm on all exported functions.
32108 All users updated.
32109 * util/grub-editenv.c (grub_term_input_class): Removed.
32110 (grub_term_output_class): Likewise.
32111
32112 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32113
32114 Make loader output a bit more user-friendly.
32115
32116 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32117 is being loaded. Likewise for the Hurd.
32118
32119 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32120 that kernel of FreeBSD ${version} is being loaded.
32121
32122 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32123 grub_dprintf().
32124 (grub_cmd_initrd): Likewise.
32125 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32126 that Linux ${version} is being loaded. Likewise for initrd.
32127
32128 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32129
32130 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32131
32132 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32133
32134 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32135 (GRUB_MOD_INIT): Gettextizze.
32136 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32137 (GRUB_MOD_INIT): Gettextizze.
32138 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32139 (grub_cmd_linux): Capitalise Linux.
32140 (GRUB_MOD_INIT): Gettextizze.
32141 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32142 (grub_cmd_linux): Capitalise Linux.
32143 (GRUB_MOD_INIT): Gettextizze.
32144 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32145 (grub_cmd_linux): Capitalise Linux.
32146 (GRUB_MOD_INIT): Gettextizze.
32147 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32148 (GRUB_MOD_INIT): Gettextizze.
32149 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32150 (grub_cmd_linux): Capitalise Linux.
32151 (GRUB_MOD_INIT): Gettextizze.
32152 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32153 (grub_cpu_xnu_init): Gettextizze.
32154 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32155 (GRUB_MOD_INIT): Gettextizze.
32156 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32157 (GRUB_MOD_INIT): Gettextizze.
32158 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32159 (grub_linux_load64): Capitalise Linux.
32160 (GRUB_MOD_INIT): Gettextizze.
32161 * loader/xnu.c: Include `<grub/i18n.h>'.
32162 (GRUB_MOD_INIT): Gettextizze.
32163 * po/POTFILES: Add `loader/efi/appleloader.c',
32164 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32165 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32166 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32167 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32168 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32169 and `loader/xnu.c'.
32170
32171 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32172
32173 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32174
32175 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32176
32177 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32178 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32179 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32180
32181 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32182
32183 Reset Multiboot 2 support. New loader implements the draft in
32184 /branches/multiboot2 and shares as much code as possible with the
32185 production Multiboot 1 implementation.
32186
32187 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32188 * loader/multiboot2.c: Likewise.
32189 * loader/i386/multiboot_helper.S: Likewise.
32190 * include/multiboot2.h: Replace with latest version from the draft
32191 in /branches/multiboot2.
32192
32193 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32194 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32195 and `loader/multiboot2.c'.
32196 (pkglib_MODULES): Add `multiboot2.mod'.
32197 (multiboot2_mod_SOURCES): New variable.
32198 (multiboot2_mod_LDFLAGS): Likewise.
32199 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32200
32201 * conf/i386-pc.rmk: Likewise.
32202
32203 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32204 (multiboot_mod_SOURCES): Remove variable.
32205 (multiboot_mod_LDFLAGS): Likewise.
32206 (multiboot_mod_CFLAGS): Likewise.
32207
32208 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32209 `<multiboot2.h>' instead of `<multiboot.h>'.
32210 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32211 (MULTIBOOT_HEADER_MAGIC): New macros.
32212
32213 * loader/multiboot_loader.c (module_version_status): Remove variable.
32214 (find_multi_boot2_header): Remove function.
32215 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32216 logic. Always check for the Multiboot version we're compiling for.
32217 (grub_cmd_module_loader): Likewise.
32218 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32219 command instead of `multiboot'.
32220
32221 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32222
32223 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32224 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32225 all users.
32226
32227 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32228 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32229
32230 Fix breakage introduced with previous commit.
32231
32232 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32233 commands.
32234 * normal/handler.c (read_handler_list): Revert part of previous commit
32235 affecting this file.
32236 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32237 (grub_normal_execute): ... here.
32238
32239 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32240
32241 Merge prefix-redefinition-fix branch.
32242
32243 * normal/autofs.c (read_fs_list): Make function capable of being
32244 run multiple times, gracefuly replacing the previous data
32245 structures.
32246 * normal/dyncmd.c (read_command_list): Likewise.
32247 * normal/handler.c (read_handler_list): Likewise.
32248 * normal/main.c (read_lists): New function. Calls all the
32249 list reading functions.
32250 (grub_normal_execute): Use read_lists() instead of calling all
32251 list reading functions explicitly. Register read_lists() as a
32252 variable hook attached to ${prefix}.
32253
32254 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32255
32256 Merge crypto branch.
32257
32258 * Makefile.in (pkglib_DATA): Add crypto.lst.
32259 (crypto.lst): New target.
32260 * commands/hashsum.c: New file.
32261 * commands/password.c (check_password): Use grub_crypto_memcmp.
32262 * commands/password_pbkdf2.c: New file.
32263 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32264 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32265 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32266 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32267 -I$(srcdir)/lib/libgcrypt_wrap.
32268 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32269 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32270 password_pbkdf2.mod.
32271 (crypto_mod_SOURCES): New variable.
32272 (crypto_mod_CFLAGS): Likewise.
32273 (crypto_mod_LDFLAGS): Likewise.
32274 (hashsum_mod_SOURCES): New variable.
32275 (hashsum_mod_CFLAGS): Likewise.
32276 (hashsum_mod_LDFLAGS): Likewise.
32277 (pbkdf2_mod_SOURCES): New variable.
32278 (pbkdf2_mod_CFLAGS): Likewise.
32279 (pbkdf2_mod_LDFLAGS): Likewise.
32280 (password_pbkdf2_mod_SOURCES): New variable.
32281 (password_pbkdf2_mod_CFLAGS): Likewise.
32282 (password_pbkdf2_mod_LDFLAGS): Likewise.
32283 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32284 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32285 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32286 Include conf/gcry.rmk.
32287 * include/grub/auth.h: Rewritten.
32288 * include/grub/crypto.h: New file.
32289 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32290 * include/grub/normal.h (read_crypto_list): New prototype.
32291 * lib/crypto.c: New file.
32292 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32293 * lib/pbkdf2.c: Likewise.
32294 * normal/auth.c (grub_auth_strcmp): Removed.
32295 (grub_iswordseparator): Likewise.
32296 (grub_auth_strword): Likewise.
32297 (is_authenticated): Use grub_strword.
32298 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32299 and grub_strword. Pass entered password to authentication callback.
32300 * normal/crypto.c: New file.
32301 * normal/main.c: Call read_crypto_list.
32302 * util/grub-mkpasswd-pbkdf2.c: New file.
32303 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32304
32305 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32306
32307 Fix descent and ascent calculation.
32308
32309 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32310 (options): New option "asce".
32311 (usage): Likewise.
32312 (add_char): Ignore invalid glyphs for descent calculation.
32313 Calculate ascent from actual content.
32314 (print_glyphs): Use 'asce'.
32315 (write_font): Likewise. Allow ascent override.
32316 (main): Handle "asce" option.
32317
32318 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32319
32320 * kern/err.c: Include `<grub/i18n.h>'.
32321 (grub_print_error): Add full stop. Gettextizze.
32322 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32323 (grub_bsd_load_elf): Capitalise ELF.
32324 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32325 (grub_cmd_freebsd_module): Likewise.
32326 (grub_cmd_freebsd_module_elf): Likewise.
32327 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32328
32329 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32330
32331 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32332 * commands/search_file.c (HELP_MESSAGE): New macro.
32333 * commands/search_label.c (HELP_MESSAGE): Likewise.
32334 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32335 * po/POTFILES: Add `commands/search_file.c',
32336 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32337 `commands/search.c'.
32338
32339 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32340
32341 * config.rpath: Update from Gnulib.
32342
32343 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32344
32345 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32346
32347 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32348
32349 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32350
32351 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32352
32353 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32354 arguments to fread so that we get a return value in bytes, rather
32355 than something that will normally be rounded down to 0.
32356 Adjust error handling to avoid producing garbage when size_t is not
32357 the same size as long long.
32358
32359 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32360
32361 * util/mkisofs/write.c (padblock_write): Check return value of
32362 fread.
32363
32364 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32365
32366 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32367 floppy images now.
32368
32369 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32370
32371 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32372
32373 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32374 instead of manual alignment.
32375 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32376 verbose). Avoid attempts to read past end of the device
32377 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32378 but GRUB_DISK_CACHE_SIZE may exceed that).
32379
32380 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32381
32382 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32383 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32384 it to upper layer.
32385
32386 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32387
32388 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32389 New constant.
32390 (grub_efi_piwg_device_path): New structure
32391 (grub_efi_piwg_device_path_t): New type.
32392 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32393 (devpath_1): Transform to a structure. All users updated.
32394 (devpath_2): Likewise.
32395 (devpath_3): Likewise.
32396 (devpath_4): Likewise.
32397 (devpath_5): Likewise.
32398
32399 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32400
32401 * loader/efi/appleloader.c: Restored. Update all users.
32402
32403 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32404
32405 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32406
32407 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32408 (struct boot_blocklist): Move from here ...
32409 * include/grub/i386/pc/boot.h [ASM_FILE]
32410 (struct grub_boot_blocklist): ... to here. Update all users.
32411 (setup): Only initialize `start' member of `first_block'
32412 structure. Add assert() calls to verify the other members.
32413
32414 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32415 (generate_image): Fix broken blocklist length initialization.
32416 Add assert() call to verify blocklist `segment' field.
32417
32418 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32419
32420 * loader/efi/appleloader.c: Remove. Update all users.
32421
32422 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32423
32424 * boot/i386/pc/boot.S: Update copyright year.
32425 * boot/i386/pc/cdboot.S: Likewise.
32426 * boot/i386/pc/diskboot.S: Likewise.
32427 * boot/i386/pc/lnxboot.S: Likewise.
32428 * boot/i386/pc/pxeboot.S: Likewise.
32429 * bus/pci.c: Likewise.
32430 * commands/cmp.c: Likewise.
32431 * commands/help.c: Likewise.
32432 * commands/hexdump.c: Likewise.
32433 * commands/i386/pc/halt.c: Likewise.
32434 * commands/i386/pc/play.c: Likewise.
32435 * commands/i386/pc/vbeinfo.c: Likewise.
32436 * commands/ls.c: Likewise.
32437 * commands/test.c: Likewise.
32438 * disk/dmraid_nvidia.c: Likewise.
32439 * disk/i386/pc/biosdisk.c: Likewise.
32440 * disk/ieee1275/nand.c: Likewise.
32441 * disk/ieee1275/ofdisk.c: Likewise.
32442 * disk/lvm.c: Likewise.
32443 * disk/raid.c: Likewise.
32444 * disk/raid6_recover.c: Likewise.
32445 * disk/scsi.c: Likewise.
32446 * fs/affs.c: Likewise.
32447 * fs/cpio.c: Likewise.
32448 * fs/ext2.c: Likewise.
32449 * fs/hfs.c: Likewise.
32450 * fs/iso9660.c: Likewise.
32451 * fs/ntfs.c: Likewise.
32452 * fs/sfs.c: Likewise.
32453 * fs/udf.c: Likewise.
32454 * fs/ufs.c: Likewise.
32455 * fs/xfs.c: Likewise.
32456 * gencmdlist.sh: Likewise.
32457 * genmk.rb: Likewise.
32458 * include/grub/disk.h: Likewise.
32459 * include/grub/efi/api.h: Likewise.
32460 * include/grub/efi/efi.h: Likewise.
32461 * include/grub/efi/pe32.h: Likewise.
32462 * include/grub/elf.h: Likewise.
32463 * include/grub/fs.h: Likewise.
32464 * include/grub/i386/at_keyboard.h: Likewise.
32465 * include/grub/i386/pc/memory.h: Likewise.
32466 * include/grub/i386/pc/vbe.h: Likewise.
32467 * include/grub/i386/pci.h: Likewise.
32468 * include/grub/i386/tsc.h: Likewise.
32469 * include/grub/ieee1275/ieee1275.h: Likewise.
32470 * include/grub/ntfs.h: Likewise.
32471 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32472 * include/grub/sparc64/libgcc.h: Likewise.
32473 * include/grub/symbol.h: Likewise.
32474 * include/grub/types.h: Likewise.
32475 * include/multiboot2.h: Likewise.
32476 * io/gzio.c: Likewise.
32477 * kern/device.c: Likewise.
32478 * kern/disk.c: Likewise.
32479 * kern/efi/efi.c: Likewise.
32480 * kern/efi/mm.c: Likewise.
32481 * kern/elf.c: Likewise.
32482 * kern/file.c: Likewise.
32483 * kern/i386/dl.c: Likewise.
32484 * kern/i386/pc/init.c: Likewise.
32485 * kern/i386/pc/startup.S: Likewise.
32486 * kern/ieee1275/ieee1275.c: Likewise.
32487 * kern/ieee1275/init.c: Likewise.
32488 * kern/main.c: Likewise.
32489 * kern/mm.c: Likewise.
32490 * kern/powerpc/dl.c: Likewise.
32491 * kern/sparc64/dl.c: Likewise.
32492 * kern/x86_64/dl.c: Likewise.
32493 * lib/hexdump.c: Likewise.
32494 * loader/efi/appleloader.c: Likewise.
32495 * loader/i386/ieee1275/linux.c: Likewise.
32496 * loader/i386/pc/chainloader.c: Likewise.
32497 * loader/i386/pc/linux.c: Likewise.
32498 * loader/i386/pc/multiboot2.c: Likewise.
32499 * loader/ieee1275/multiboot2.c: Likewise.
32500 * loader/multiboot2.c: Likewise.
32501 * loader/multiboot_loader.c: Likewise.
32502 * loader/powerpc/ieee1275/linux.c: Likewise.
32503 * normal/completion.c: Likewise.
32504 * normal/menu_entry.c: Likewise.
32505 * partmap/apple.c: Likewise.
32506 * util/grub.d/10_hurd.in: Likewise.
32507 * util/hostfs.c: Likewise.
32508 * video/readers/png.c: Likewise.
32509
32510 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32511
32512 * include/grub/misc.h (GNUC_PREREQ): New macro.
32513 (ATTRIBUTE_ERROR): New macro.
32514 * include/grub/list.h (grub_bad_type_cast_real): Use
32515 ATTRIBUTE_ERROR.
32516
32517 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32518
32519 * normal/menu_text.c (print_message): Change messages.
32520
32521 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32522
32523 * normal/menu_entry.c (store_completion): Gettextizze.
32524
32525 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32526
32527 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32528
32529 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32530
32531 * po/POTFILES: Sort correctly.
32532
32533 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32534
32535 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32536 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32537 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32538 full stop.
32539 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32540 summary. Gettextizze the strings.
32541 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32542 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32543 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32544 full stop.
32545 (GRUB_MOD_INIT): Remove command name from summary.
32546 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32547 summary.
32548 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32549 * term/i386/pc/serial.c (options): Add full stops.
32550 (GRUB_MOD_INIT): Remove command name from the summary.
32551
32552 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32553
32554 * commands/acpi.c: Gettextizze help strings and/or options. Include
32555 `grub/i18n.h' if needed.
32556 * commands/blocklist.c: Likewise.
32557 * commands/boot.c: Likewise.
32558 * commands/cat.c: Likewise.
32559 * commands/cmp.c: Likewise.
32560 * commands/configfile.c: Likewise.
32561 * commands/crc.c: Likewise.
32562 * commands/date.c: Likewise.
32563 * commands/echo.c: Likewise.
32564 * commands/efi/fixvideo.c: Likewise.
32565 * commands/efi/loadbios.c: Likewise.
32566 * commands/gptsync.c: Likewise.
32567 * commands/halt.c: Likewise.
32568 * commands/handler.c: Likewise.
32569 * commands/hdparm.c: Likewise.
32570 * commands/hexdump.c: Likewise.
32571 * commands/i386/cpuid.c: Likewise.
32572 * commands/i386/pc/drivemap.c: Likewise.
32573 * commands/i386/pc/halt.c: Likewise.
32574 * commands/i386/pc/pxecmd.c: Likewise.
32575 * commands/i386/pc/vbeinfo.c: Likewise.
32576 * commands/i386/pc/vbetest.c: Likewise.
32577 * commands/ieee1275/suspend.c: Likewise.
32578 * commands/keystatus.c: Likewise.
32579 * commands/loadenv.c: Likewise.
32580 * commands/ls.c: Likewise.
32581 * commands/lsmmap.c: Likewise.
32582 * commands/lspci.c: Likewise.
32583 * commands/memrw.c: Likewise.
32584 * commands/minicmd.c: Likewise.
32585 * commands/parttool.c: Likewise.
32586 * commands/password.c: Likewise.
32587 * commands/probe.c: Likewise.
32588 * commands/read.c: Likewise.
32589 * commands/reboot.c: Likewise.
32590 * commands/search.c: Likewise.
32591 * commands/sleep.c: Likewise.
32592 * commands/test.c: Likewise.
32593 * commands/true.c: Likewise.
32594 * commands/usbtest.c: Likewise.
32595 * commands/videotest.c: Likewise.
32596 * commands/xnu_uuid.c: Likewise.
32597 * disk/loopback.c: Likewise.
32598 * hello/hello.c: Likewise.
32599 * loader/i386/bsd.c: Likewise.
32600 * term/i386/pc/serial.c: Likewise.
32601 * po/POTFILES: Add new files.
32602
32603 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32604
32605 * term/i386/pc/at_keyboard.c
32606 (keyboard_controller_wait_untill_ready): Rename to ...
32607 (keyboard_controller_wait_until_ready): ... this. Update all users.
32608
32609 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32610
32611 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32612 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32613 string using string width.
32614 * normal/menu_text.c (grub_print_message_indented): Use
32615 grub_print_spaces and not print_spaces.
32616 (print_timeout): Likewise.
32617 (print_spaces): Move to...
32618 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32619
32620 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32621
32622 Import from Gnulib.
32623
32624 * gnulib/getdelim.c: New file.
32625 * gnulib/getline.c: Likewise.
32626
32627 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32628
32629 * include/grub/list.h (grub_assert_fail): Removed.
32630 (grub_bad_type_cast_real): New function.
32631 (grub_bad_type_cast): New macro.
32632 (GRUB_AS_LIST): Use grub_bad_type_cast.
32633 (GRUB_AS_LIST_P): Likewise.
32634 (GRUB_AS_NAMED_LIST): Likewise.
32635 (GRUB_AS_NAMED_LIST_P): Likewise.
32636 (GRUB_AS_PRIO_LIST): Likewise.
32637 (GRUB_AS_PRIO_LIST_P): Likewise.
32638 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32639
32640 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32641
32642 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32643 Fix syntax error.
32644
32645 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32646
32647 * configure.ac: Check for TARGET_CFLAGS initialization before we
32648 initialize it ourselves (sigh).
32649 Move a few modifications to TARGET_CFLAGS to be unconditional
32650 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32651 eh_frame)
32652
32653 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32654 * term/i386/pc/at_keyboard.c
32655 (keyboard_controller_wait_untill_ready): Likewise.
32656 (keyboard_controller_led): Rename `led_status' paramter to avoid
32657 name conflict.
32658
32659 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32660
32661 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32662 quotes.
32663
32664 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32665
32666 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32667
32668 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32669
32670 * normal/menu_text.c (grub_print_message_indented): Prevent
32671 past-the-end-of-array dereference.
32672
32673 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32674
32675 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32676 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32677
32678 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32679
32680 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32681 * normal/main.c (grub_normal_read_line): Remove a space from the
32682 default prompt.
32683
32684 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32685
32686 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32687 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32688 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32689 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32690 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32691 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32692 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32693
32694 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32695
32696 * video/readers/jpeg.c (cmd): Declare.
32697 (grub_cmd_jpegtest): Use `grub_command_t' type.
32698 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32699 Assign to `cmd'.
32700 (GRUB_MOD_FINI): Use `cmd' to unregister.
32701 * video/readers/png.c (cmd): Declare.
32702 (grub_cmd_pngtest): Use `grub_command_t' type.
32703 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32704 Assign to `cmd'.
32705 (GRUB_MOD_FINI): Use `cmd' to unregister.
32706 * video/readers/tga.c (cmd): Declare.
32707 (grub_cmd_tgatest): Use `grub_command_t' type.
32708 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32709 Assign to `cmd'.
32710 (GRUB_MOD_FINI): Use `cmd' to unregister.
32711
32712 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32713
32714 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32715 stops.
32716 * kern/corecmd.c (grub_register_core_commands): Likewise.
32717 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32718 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32719 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32720 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32721 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32722 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32723 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32724 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32725 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32726 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32727 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32728 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32729 * normal/handler.c (insert_handler): Likewise.
32730 * normal/main.c (GRUB_MOD_INIT): Likewise.
32731 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32732
32733 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32734
32735 * commands/help.c (grub_cmd_help): Print the command name before the
32736 summary.
32737 (GRUB_MOD_INIT): Remove command name from the summary.
32738 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32739 string as summary.
32740 * lib/arg.c (find_long): Print the command name before the summary.
32741 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32742 summary.
32743 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32744 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32745 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32746 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32747 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32748 * commands/date.c (GRUB_MOD_INIT): Likewise.
32749 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32750 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32751 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32752 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32753 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32754 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32755 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32756 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32757 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32758 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32759 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32760 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32761 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32762 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32763 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32764 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32765 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32766 * commands/password.c (GRUB_MOD_INIT): Likewise.
32767 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32768 * commands/read.c (GRUB_MOD_INIT): Likewise.
32769 * commands/search.c (GRUB_MOD_INIT): Likewise.
32770 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32771 * commands/test.c (GRUB_MOD_INIT): Likewise.
32772 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32773 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32774 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32775 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32776 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32777 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32778 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32779 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32780 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32781 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32782 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32783 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32784 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32785 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32786
32787 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32788
32789 Use search command for preliminar UUID search.
32790
32791 * commands/search.c: Split into ...
32792 * commands/search_wrap.c: ...this
32793 * commands/search.c: ...and this.
32794 * commands/search_file.c: New file.
32795 * commands/search_label.c: New file.
32796 * commands/search_uuid.c: New file.
32797 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32798 Add commands/search_wrap.c, commands/search_file.c,
32799 commands/search_label.c and commands/search_uuid.c.
32800 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32801 (search_mod_SOURCES): Set to commands/search_wrap.c.
32802 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32803 search_label.mod.
32804 (search_fs_file_mod_SOURCES): New variable.
32805 (search_fs_file_mod_CFLAGS): Likewise.
32806 (search_fs_file_mod_LDFLAGS): Likewise.
32807 (search_label_mod_SOURCES): Likewise.
32808 (search_label_mod_CFLAGS): Likewise.
32809 (search_label_mod_LDFLAGS): Likewise.
32810 (search_fs_uuid_mod_SOURCES): New variable.
32811 (search_fs_uuid_mod_CFLAGS): Likewise.
32812 (search_fs_uuid_mod_LDFLAGS): Likewise.
32813 (fs_file_mod_SOURCES): Removed.
32814 (fs_file_mod_CFLAGS): Likewise.
32815 (fs_file_mod_LDFLAGS): Likewise.
32816 (fs_uuid_mod_SOURCES): Removed.
32817 (fs_uuid_mod_CFLAGS): Likewise.
32818 (fs_uuid_mod_LDFLAGS): Likewise.
32819 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32820 Set to util/grub-install.in.
32821 * disk/fs_file.c: Removed.
32822 * disk/fs_uuid.c: Likewise.
32823 * include/grub/search.h: New file.
32824 * util/grub-install.in: Handle sparc64.
32825 Create and use load.cfg.
32826 * util/sparc64/ieee1275/grub-install.in: Removed.
32827
32828 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32829
32830 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32831 Ignore return status if CF is cleared.
32832 (grub_biosdisk_get_diskinfo_standard): Likewise.
32833
32834 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32835
32836 * term/i386/pc/at_keyboard.c
32837 (keyboard_controller_wait_untill_ready): New function.
32838 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32839 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32840 for keyboard polling, rather than duplicate the same loop. This
32841 saves a few bytes in code size.
32842
32843 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32844
32845 Support for (pxe[:server[:gateway]]) syntax and
32846 use environment variable for PXE.
32847
32848 * commands/i386/pc/pxecmd.c (options): Removed.
32849 (print_ip): Removed.
32850 (grub_cmd_pxe): Removed
32851 (grub_cmd_pxe_unload): New function.
32852 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32853 (grub_pxe_your_ip): Made static.
32854 (grub_pxe_default_server_ip): Likewise.
32855 (grub_pxe_default_gateway_ip): Likewise.
32856 (grub_pxe_blksize): Likewise.
32857 (parse_ip): New function.
32858 (grub_pxe_open): Support server and gateway specification.
32859 (grub_pxe_close): Free disk->data.
32860 (grub_pxefs_open): Use disk->data.
32861 (grub_pxefs_read): Likewise.
32862 (grub_env_write_readonly): New function.
32863 (set_mac_env): Likewise.
32864 (set_env_limn_ro): Likewise.
32865 (parse_dhcp_vendor): Likewise.
32866 (grub_pxe_detect): Set the environment variables.
32867 (set_ip_env): New function.
32868 (write_ip_env): Likewise.
32869 (grub_env_write_pxe_default_server): Likewise.
32870 (grub_env_write_pxe_default_gateway): Likewise.
32871 (grub_env_write_pxe_blocksize): Likewise.
32872 (GRUB_MOD_INIT(pxe)): Set environment variables.
32873 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32874 (grub_pxe_mac_addr_t): ... this. All users updated.
32875 (grub_pxe_your_ip): Removed.
32876 (grub_pxe_server_ip): Likewise.
32877 (grub_pxe_gateway_ip): Likewise.
32878 (grub_pxe_blksize): Likewise.
32879
32880 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32881
32882 * commands/help.c: Include `<grub/i18n.h>'.
32883 (grub_cmd_help): Gettextizze.
32884 (GRUB_MOD_INIT): Likewise.
32885 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32886 (GRUB_MOD_INIT): Gettextizze.
32887 * commands/search.c: Include `<grub/i18n.h>'.
32888 (options): Gettextizze.
32889 (GRUB_MOD_INIT): Gettextizze.
32890 * lib/arg.c: Include `<grub/i18n.h>'.
32891 (help_options): Gettextizze.
32892 (find_long): Likewise.
32893 (grub_arg_show_help): Likewise.
32894 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32895 (read_command_list): Gettextizze.
32896 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32897 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32898
32899 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32900
32901 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32902 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32903 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32904 (led_status): New variable.
32905 (keyboard_controller_led): New function.
32906 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32907 update led status for caps lock, num lock and scroll lock.
32908
32909 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32910
32911 * util/hostdisk.c (open_device): Fix a comment.
32912
32913 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32914
32915 * util/grub-install.in (host_os): New variable.
32916 * util/i386/efi/grub-install.in (host_os): Likewise.
32917
32918 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32919
32920 * util/mkisofs/write.c (padblock_write): Abort when given an
32921 excedingly large embed image, instead of silently truncating it.
32922
32923 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32924
32925 * include/multiboot.h: Indentation fixes.
32926
32927 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32928
32929 * include/multiboot.h (struct multiboot_aout_symbol_table)
32930 (struct multiboot_elf_section_header_table): New structure
32931 declarations (stolen from GRUB Legacy).
32932 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32933 table information.
32934
32935 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32936 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32937 type aliases.
32938
32939 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32940
32941 * include/multiboot.h: Make comments src2texi-friendly.
32942
32943 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32944
32945 For consistency with [multiboot]/docs/boot.S.
32946
32947 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32948 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32949 (MULTIBOOT_MAGIC2): Rename from this ...
32950 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32951
32952 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32953
32954 * include/multiboot.h: Remove `<grub/types.h>'.
32955 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32956 types. Update all users.
32957
32958 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32959
32960 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32961 `couldn't' and `can not' by `cannot'.
32962 * commands/i386/pc/drivemap.c: Likewise.
32963 * disk/ata.c: Likewise.
32964 * disk/ieee1275/nand.c: Likewise.
32965 * fs/affs.c: Likewise.
32966 * fs/fat.c: Likewise.
32967 * fs/hfs.c: Likewise.
32968 * fs/hfsplus.c: Likewise.
32969 * fs/iso9660.c: Likewise.
32970 * fs/jfs.c: Likewise.
32971 * fs/minix.c: Likewise.
32972 * fs/reiserfs.c: Likewise.
32973 * fs/sfs.c: Likewise.
32974 * fs/udf.c: Likewise.
32975 * fs/ufs.c: Likewise.
32976 * fs/xfs.c: Likewise.
32977 * loader/powerpc/ieee1275/linux.c: Likewise.
32978 * loader/sparc64/ieee1275/linux.c: Likewise.
32979 * util/grub-probe.c: Likewise.
32980 * util/misc.c: Likewise.
32981
32982 2009-12-24 Carles Pina i Estany <carles@pina.cat>
32983
32984 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
32985 grub_errno calls.
32986 * commands/acpi.c: Likewise.
32987 * commands/blocklist.c: Likewise.
32988 * commands/efi/loadbios.c: Likewise.
32989 * commands/i386/pc/drivemap.c: Likewise.
32990 * commands/loadenv.c: Likewise.
32991 * commands/memrw.c: Likewise.
32992 * commands/password.c: Likewise.
32993 * commands/videotest.c: Likewise.
32994 * disk/ata.c: Likewise.
32995 * disk/ata_pthru.c: Likewise.
32996 * disk/dmraid_nvidia.c: Likewise.
32997 * disk/ieee1275/nand.c: Likewise.
32998 * disk/ieee1275/ofdisk.c: Likewise.
32999 * disk/loopback.c: Likewise.
33000 * disk/lvm.c: Likewise.
33001 * disk/mdraid_linux.c: Likewise.
33002 * disk/raid.c: Likewise.
33003 * disk/raid6_recover.c: Likewise.
33004 * disk/scsi.c: Likewise.
33005 * efiemu/main.c: Likewise.
33006 * efiemu/mm.c: Likewise.
33007 * efiemu/pnvram.c: Likewise.
33008 * efiemu/symbols.c: Likewise.
33009 * font/font.c: Likewise.
33010 * fs/cpio.c: Likewise.
33011 * fs/hfsplus.c: Likewise.
33012 * fs/iso9660.c: Likewise.
33013 * fs/jfs.c: Likewise.
33014 * fs/minix.c: Likewise.
33015 * fs/ntfs.c: Likewise.
33016 * fs/ntfscomp.c: Likewise.
33017 * fs/reiserfs.c: Likewise.
33018 * fs/ufs.c: Likewise.
33019 * fs/xfs.c: Likewise.
33020 * gettext/gettext.c: Likewise.
33021 * include/grub/auth.h: Likewise.
33022 * kern/elf.c: Likewise.
33023 * kern/file.c: Likewise.
33024 * kern/ieee1275/init.c: Likewise.
33025 * kern/ieee1275/mmap.c: Likewise.
33026 * kern/ieee1275/openfw.c: Likewise.
33027 * kern/powerpc/dl.c: Likewise.
33028 * kern/sparc64/dl.c: Likewise.
33029 * lib/arg.c: Likewise.
33030 * loader/i386/bsd.c: Likewise.
33031 * loader/i386/bsdXX.c: Likewise.
33032 * loader/i386/efi/linux.c: Likewise.
33033 * loader/i386/efi/xnu.c: Likewise.
33034 * loader/i386/ieee1275/linux.c: Likewise.
33035 * loader/i386/linux.c: Likewise.
33036 * loader/i386/multiboot.c: Likewise.
33037 * loader/i386/pc/linux.c: Likewise.
33038 * loader/i386/pc/multiboot2.c: Likewise.
33039 * loader/i386/xnu.c: Likewise.
33040 * loader/ieee1275/multiboot2.c: Likewise.
33041 * loader/macho.c: Likewise.
33042 * loader/machoXX.c: Likewise.
33043 * loader/multiboot2.c: Likewise.
33044 * loader/multiboot_loader.c: Likewise.
33045 * loader/powerpc/ieee1275/linux.c: Likewise.
33046 * loader/sparc64/ieee1275/linux.c: Likewise.
33047 * loader/xnu.c: Likewise.
33048 * loader/xnu_resume.c: Likewise.
33049 * mmap/i386/pc/mmap.c: Likewise.
33050 * normal/menu_viewer.c: Likewise.
33051 * partmap/acorn.c: Likewise.
33052 * partmap/amiga.c: Likewise.
33053 * partmap/apple.c: Likewise.
33054 * script/lexer.c: Likewise.
33055 * term/gfxterm.c: Likewise.
33056 * term/i386/pc/serial.c: Likewise.
33057 * term/i386/pc/vga.c: Likewise.
33058 * term/ieee1275/ofconsole.c: Likewise.
33059 * term/terminfo.c: Likewise.
33060 * video/bitmap.c: Likewise.
33061 * video/efi_gop.c: Likewise.
33062 * video/efi_uga.c: Likewise.
33063 * video/fb/video_fb.c: Likewise.
33064 * video/i386/pc/vbe.c: Likewise.
33065 * video/readers/tga.c: Likewise.
33066 * video/video.c: Likewise.
33067
33068 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33069
33070 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33071 * commands/lspci.c: Likewise.
33072 * commands/probe.c: Likewise.
33073 * commands/xnu_uuid.c: Likewise.
33074 * conf/i386-coreboot.rmk: Likewise.
33075 * conf/i386-efi.rmk: Likewise.
33076 * conf/i386-ieee1275.rmk: Likewise.
33077 * conf/i386-pc.rmk: Likewise.
33078 * conf/powerpc-ieee1275.rmk: Likewise.
33079 * conf/sparc64-ieee1275.rmk: Likewise.
33080 * conf/x86_64-efi.rmk: Likewise.
33081 * fs/i386/pc/pxe.c: Likewise.
33082 * gettext/gettext.c: Likewise.
33083 * include/grub/efi/graphics_output.h: Likewise.
33084 * include/grub/i386/pc/memory.h: Likewise.
33085 * kern/env.c: Likewise.
33086 * kern/i386/qemu/startup.S: Likewise.
33087 * lib/i386/pc/biosnum.c: Likewise.
33088 * lib/i386/relocator.c: Likewise.
33089 * lib/i386/relocator_asm.S: Likewise.
33090 * lib/relocator.c: Likewise.
33091 * loader/i386/bsd.c: Likewise.
33092 * loader/i386/multiboot.c: Likewise.
33093 * loader/i386/pc/chainloader.c: Likewise.
33094 * loader/i386/xnu.c: Likewise.
33095 * loader/xnu.c: Likewise.
33096 * normal/main.c: Likewise.
33097 * normal/menu_text.c: Likewise.
33098 * util/getroot.c: Likewise.
33099 * util/grub-mkconfig_lib.in: Likewise.
33100 * util/grub.d/00_header.in: Likewise.
33101 * util/i386/pc/grub-mkimage.c: Likewise.
33102 * util/mkisofs/eltorito.c: Likewise.
33103 * util/mkisofs/exclude.h: Likewise.
33104 * util/mkisofs/hash.c: Likewise.
33105 * util/mkisofs/iso9660.h: Likewise.
33106 * util/mkisofs/joliet.c: Likewise.
33107 * util/mkisofs/mkisofs.c: Likewise.
33108 * util/mkisofs/mkisofs.h: Likewise.
33109 * util/mkisofs/multi.c: Likewise.
33110 * util/mkisofs/name.c: Likewise.
33111 * util/mkisofs/rock.c: Likewise.
33112 * util/mkisofs/tree.c: Likewise.
33113 * util/mkisofs/write.c: Likewise.
33114 * video/efi_gop.c: Likewise.
33115
33116 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33117
33118 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33119 size counting.
33120
33121 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33122
33123 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33124 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33125
33126 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33127
33128 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33129 (GRUB_MOD_INIT(memrw)): Update help line.
33130
33131 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33132
33133 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33134 Use grub_extcmd_t. All users updated.
33135 (options): New variable.
33136 (grub_cmd_read): Restructure for readability. Support "-v" option.
33137 (grub_cmd_write): Restructure for readability.
33138
33139 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33140
33141 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33142
33143 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33144
33145 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33146 with the actual contents of the correspondending make variable.
33147 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33148 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33149 specifying `*.lst' and `efiemu??.o'
33150
33151 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33152
33153 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33154 after function name.
33155 Noticed by Rene Engelhard <rene@debian.org>.
33156
33157 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33158
33159 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33160 (options): New variable.
33161 (iospace): Likewise.
33162 (grub_lspci_iter): List IO spaces if "-i" was given.
33163 (grub_cmd_lspci): Parse options.
33164 (GRUB_MOD_INIT(lspci)): Use extcmd.
33165 (GRUB_MOD_FINI(lspci)): Likewise.
33166
33167 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33168
33169 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33170 `function' keyword.
33171 Patch by Tony Mancill <tmancill@debian.org>.
33172
33173 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33176 (grub_uhci_portstatus): Likewise.
33177 (grub_uhci_portstatus): Add necessary delay.
33178 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33179
33180 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33181
33182 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33183 (GRUB_MOD_INIT): Likewise.
33184 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33185 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33186 * commands/echo.c (options): Fix capitalizations and/or full stops.
33187 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33188 (enable_rom_area): Likewise.
33189 (GRUB_MOD_INIT): Likewise.
33190 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33191 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33192 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33193 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33194 * commands/hexdump.c (options): Likewise.
33195 * commands/i386/cpuid.c (options): Likewise.
33196 (GRUB_MOD_INIT): Likewise.
33197 * commands/i386/pc/drivemap.c (options): Likewise.
33198 (GRUB_MOD_INIT): Likewise.
33199 * commands/i386/pc/halt (options): Likewise.
33200 (GRUB_MOD_INIT): Likewise.
33201 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33202 * commands/i386/pc/pxecmd.c (options): Likewise.
33203 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33204 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33205 * commands/keystatus.c (options): Likewise.
33206 (GRUB_MOD_INIT): Likewise.
33207 * commands/loadenv.c (options): Likewise.
33208 * commands/ls.c (options): Likewise.
33209 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33210 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33211 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33212 * commands/parttool.c (helpmsg): Likewise.
33213 * commands/probe.c (options): Likewise.
33214 * commands/read.c (GRUB_MOD_INIT): Likewise.
33215 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33216 * commands/search.c (options): Likewise.
33217 * commands/sleep.c (options): Likewise.
33218 * commands/test.c (GRUB_MOD_INIT): Likewise.
33219 * commands/true.c (GRUB_MOD_INIT): Likewise.
33220 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33221 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33222 * lib/arg.c (help_options): Likewise.
33223 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33224 `$(XGETTEXT)'.
33225 * po/POTFILES: Add `commands/loadenv.c'.
33226
33227 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33228
33229 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33230 instead of specifying them explicit.
33231
33232 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33233
33234 * NEWS: Add grub-probe support for GNU/Hurd.
33235
33236 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33237
33238 * NEWS: gettext was added after 1.97.
33239
33240 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33241
33242 * util/mkisofs/msdos_partition.h: New file (based on
33243 include/grub/msdos_partition.h).
33244 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33245 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33246 (ld_options, main): Recognize --protective-msdos-label.
33247 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33248 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33249 (padblock_write): If `use_protective_msdos_label' is set, patch a
33250 protective DOS-style label in the output image.
33251
33252 * util/grub-mkrescue.in: Use --protective-msdos-label.
33253
33254 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33255
33256 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33257 boot.
33258
33259 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33260
33261 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33262 variables.
33263 (ld_options, main): Recognize `--embedded-boot'.
33264 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33265 declarations.
33266 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33267 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33268 (padblock_write): Likewise. Rewrite to support embedded boot image.
33269
33270 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33271 for BIOS-based disk boot instead of only ElTorito.
33272
33273 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33274
33275 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33276 build (not needed for bootstrap).
33277
33278 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33279
33280 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33281 from i386-pc build (not needed for bootstrap).
33282 Rewrite a pair of strings.
33283
33284 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33285
33286 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33287
33288 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33289
33290 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33291
33292 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33293
33294 * kern/env.c (grub_env_context_open): Mark exported variable for
33295 reexport.
33296
33297 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33298
33299 * kern/env.c (grub_env_export): Create nonexistent variables before
33300 exporting.
33301
33302 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33303
33304 * include/grub/auth.h: Include `<grub/i18n.h>'.
33305 (GRUB_GET_PASSWORD): Gettextizze string.
33306 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33307 menu_text.c.
33308 (grub_utf8_to_ucs4_alloc): Fix indentation.
33309 (grub_print_ucs4): Likewise.
33310 (grub_getstringwidth): Likewise.
33311 (print_message_indented): New declaration.
33312 * normal/auth.c: Include `<grub/i18n.h>'.
33313 (grub_auth_check_authentication): Gettexttize string.
33314 * normal/cmdline.c: Include `<grub/i18n.h>'.
33315 (grub_cmdline_get): Gettextizze.
33316 * normal/color.c: Include `<grub/i18n.h>'.
33317 (grub_parse_color_name_pair): Gettexttize strings.
33318 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33319 string (use `print_message_indented').
33320 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33321 `include/grub/normal.h'.
33322 (print_message_indented): Renamed to ...
33323 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33324 used in normal/main.c).
33325 (print_message): Use `grub_print_message_indented' instead of
33326 `print_message_indented'.
33327 (print_timeout): Likewise.
33328 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33329 (grub_normal_print_device_info): Gettexttize strings.
33330 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33331
33332 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33333
33334 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33335 of arguments. Return number of tokens and not arguments. All users
33336 updated.
33337
33338 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33339
33340 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33341 non-MSDOS paritions.
33342
33343 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33344
33345 * include/grub/types.h (UNUSED): Removed since it conflicts with
33346 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33347 Reported by Grégoire Sutre.
33348
33349 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33350
33351 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33352 (grub_print_ucs4_alloc): Likewise.
33353 (grub_getstringwidth): Likewise.
33354 * normal/main.c (grub_normal_init_page): Gettextize version string.
33355 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33356 (getstringwidth): Renamed to ...
33357 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33358 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33359 (grub_print_ucs4): Remove `static' qualifer (now used in
33360 normal/main.c).
33361 * po/POTFILES: Add normal/main.c.
33362
33363 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33364
33365 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33366 (print_message_indented): Add `margin_left' and `margin_right'
33367 parameters.
33368 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33369 strings.
33370 (print_timeout): Use `print_message_indented' to print the message.
33371 Deletes `second_stage' parameter.
33372 (run_menu): Update `print_timeout' calls.
33373
33374 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33375
33376 Fix console palette on OpenFirmware.
33377
33378 * term/ieee1275/ofconsole.c (MAX): Removed.
33379 (colors): Redone based on VGA palette.
33380 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33381 colors are supported.
33382 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33383
33384 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33385
33386 Fix potential EfiEmu double prepare.
33387
33388 * efiemu/main.c (prepared): New variable
33389 (grub_efiemu_unload): Set prepare to '0'.
33390 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33391
33392 set_virtual_address_map support.
33393
33394 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33395 prototype.
33396 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33397 prototype.
33398 (grub_efiemu_crc32): Likewise.
33399 (grub_efiemu_crc64): Likewise.
33400 (grub_efiemu_set_virtual_address_map): Likewise.
33401 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33402 New definition.
33403 (grub_autoefi_set_virtual_address_map): Likewise.
33404 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33405 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33406 Restructure flow to accomodate it.
33407 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33408 (grub_efiemu_crc): Recompute CRC32.
33409 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33410 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33411 * efiemu/symbols.c (relocated_handle): New variable.
33412 (grub_efiemu_free_syms): Free relocated_handle.
33413 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33414 (grub_efiemu_write_sym_markers): New function.
33415 (grub_efiemu_set_virtual_address_map): Likewise.
33416
33417 Newer XNU parameters.
33418
33419 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33420 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33421 (grub_xnu_fill_devicetree): New prototype.
33422 (grub_xnu_heap_real_start): New variable.
33423 * loader/xnu.c (get_name_ptr): New function.
33424 (grub_xnu_load_driver): Fill namelen and name.
33425
33426 64-bit xnu support.
33427
33428 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33429 and 'loader/macho64.c'.
33430 * conf/i386-pc.rmk: Likewise.
33431 * conf/x86_64-efi.rmk: Likewise.
33432 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33433 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33434 * include/grub/macho.h (grub_macho_segment64): New structure.
33435 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33436 (grub_macho_size32): ... to this.
33437 (grub_macho32_get_entry_point): Renamed from ...
33438 (grub_macho_get_entry_point32): ... to this.
33439 (grub_macho_contains_macho64): New prototype.
33440 (grub_macho_size64): Likewise.
33441 (grub_macho_get_entry_point64): Likewise.
33442 (grub_macho32_load): Renamed from ...
33443 (grub_macho_load32): ... to this.
33444 (grub_macho32_filesize): Renamed from ...
33445 (grub_macho_filesize32): ... to this.
33446 (grub_macho32_readfile): Renamed from ...
33447 (grub_macho_readfile32): ... to this.
33448 (grub_macho_filesize64): New prototype.
33449 (grub_macho_readfile64): Likewise.
33450 (grub_macho_parse32): Likewise.
33451 (grub_macho_parse64): Likewise.
33452 * loader/macho.c: Split into ...
33453 * loader/machoXX.c: ... and this. Replace 32 with XX.
33454 * loader/macho32.c: New file.
33455 * loader/macho64.c: Likewise.
33456 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33457 (grub_cmd_xnu_kernel): Make 32-bit only.
33458 (grub_cmd_xnu_kernel64): New function.
33459 (grub_xnu_load_driver): Support Mach-O 64.
33460 (grub_cmd_xnu_mkext): Likewise.
33461 * util/grub.d/30_os-prober.in (osx_entry): New function.
33462 Generate entries for 64-bit boot too.
33463
33464 Eliminate ad-hoc tree format in XNU and EfiEmu.
33465
33466 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33467 * efiemu/pnvram.c: Rewritten to use environment variables.
33468 All users updated.
33469
33470 Inline utf16_to_utf8.
33471
33472 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33473 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33474 All users updated.
33475 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33476
33477 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33478 * commands/usbtest.c (grub_usb_get_string): ... move here.
33479 (usb_print_str): Fix error handling.
33480 * include/grub/usb.h (grub_usb_get_string): Remove.
33481
33482 UTF-8 to UTF-16 transformation.
33483
33484 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33485 (charset_mod_SOURCES): New variable.
33486 (charset_mod_CFLAGS): Likewise.
33487 (charset_mod_LDFLAGS): Likewise.
33488 * include/grub/utf.h: New file.
33489 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33490
33491 Support for device properties.
33492
33493 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33494 (grub_xnu_devprop_device_header): Likewise.
33495 (grub_xnu_devprop_device_descriptor): Likewise.
33496 (grub_xnu_devprop_add_device): New prototype.
33497 (grub_xnu_devprop_remove_device): Likewise.
33498 (grub_xnu_devprop_remove_property): Likewise.
33499 (grub_xnu_devprop_add_property_utf8): Likewise.
33500 (grub_xnu_devprop_add_property_utf16): Likewise.
33501 (grub_cpu_xnu_init): Likewise.
33502 (grub_cpu_xnu_fini): Likewise.
33503 (grub_cpu_xnu_unload): Likewise.
33504 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33505 (property_descriptor): Likewise.
33506 (devices): New variable.
33507 (grub_xnu_devprop_remove_property): New function.
33508 (grub_xnu_devprop_add_device): Likewise.
33509 (grub_xnu_devprop_remove_device): Likewise.
33510 (grub_xnu_devprop_add_property): Likewise.
33511 (grub_xnu_devprop_add_property_utf8): Likewise.
33512 (grub_xnu_devprop_add_property_utf16): Likewise.
33513 (hextoval): Likewise.
33514 (grub_cpu_xnu_fill_devprop): Likewise.
33515 (grub_cmd_devprop_load): Likewise.
33516 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33517 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33518 (cmd_devprop_load): New variable.
33519 (grub_cpu_xnu_init): New function.
33520 (grub_cpu_xnu_fini): Likewise.
33521 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33522 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33523 (grub_cmd_xnu_devtree): Likewise.
33524 (hextoval): New function.
33525 (unescape): Likewise.
33526 (grub_xnu_fill_devicetree): Likewise.
33527
33528 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33529 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33530
33531 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33532
33533 Workaround for broken ATI VBE.
33534
33535 * video/i386/pc/vbe.c (last_set_mode): New variable.
33536 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33537 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33538 (grub_video_vbe_setup): Don't check for reserved flag.
33539
33540 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33541
33542 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33543 the `find' command.
33544
33545 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33546
33547 UUID support for HFS.
33548
33549 * fs/hfs.c (grub_hfs_uuid): New function.
33550 (grub_hfs_fs): New value .uuid.
33551 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33552
33553 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33554
33555 Fix a segfault with parsing unknown long options.
33556
33557 * util/grub-mkrelpath.c (options): Zero terminate it.
33558
33559 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33560
33561 * include/grub/misc.h (grub_puts): New declaration.
33562 (grub_puts_): Likewise.
33563 * kern/misc.c (grub_puts): New definition.
33564 (grub_puts_): Likewise.
33565
33566 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33567
33568 * util/grub-probe.c (probe): Improve error message.
33569
33570 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33571
33572 * loader/i386/multiboot_elfxx.c
33573 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33574 initialization.
33575
33576 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33577
33578 Relocator framework
33579
33580 * loader/i386/xnu_helper.S: Removed. All users updated.
33581 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33582 (relocator_mod_SOURCES): New variable.
33583 (relocator_mod_CFLAGS): Likewise.
33584 (relocator_mod_LDFLAGS): Likewise.
33585 (relocator_mod_ASFLAGS): Likewise.
33586 * conf/x86_64.rmk: Likewise.
33587 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33588 (grub_multiboot_payload_entry_offset): Likewise.
33589 (grub_multiboot_forward_relocator): Likewise.
33590 (grub_multiboot_forward_relocator_end): Likewise.
33591 (grub_multiboot_backward_relocator): Likewise.
33592 (grub_multiboot_backward_relocator_end): Likewise.
33593 (grub_multiboot_payload_eip): New variable.
33594 (grub_multiboot_payload_orig): Likewise.
33595 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33596 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33597 * include/grub/i386/memory.h
33598 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33599 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33600 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33601 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33602 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33603 * include/grub/i386/relocator.h: New file.
33604 * include/grub/x86_64/relocator.h: Likewise.
33605 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33606 (XNU_RELOCATOR): New macro.
33607 (grub_xnu_launcher_start): Remove.
33608 (grub_xnu_launcher_end): Likewise.
33609 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33610 (grub_xnu_heap_real_start): Remove.
33611 (grub_xnu_heap_start): Change to void *. All users updated.
33612 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33613 * lib/i386/relocator.c: New file.
33614 * lib/i386/relocator_asm.S: Likewise.
33615 * lib/i386/relocator_backward.S: Likewise.
33616 * lib/mips/relocator.c: Likewise.
33617 * lib/mips/relocator_asm.S: Likewise.
33618 * lib/relocator.c: Likewise.
33619 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33620 (entry): Removed.
33621 (playground): Likewise.
33622 (grub_multiboot_payload_orig): New variable.
33623 (grub_multiboot_payload_dest): Likewise.
33624 (grub_multiboot_payload_size): Likewise.
33625 (grub_multiboot_payload_eip): Likewise.
33626 (grub_multiboot_payload_esp): Likewise.
33627 (grub_multiboot_boot): Use grub_relocator32_boot.
33628 (grub_multiboot_unload): Free relocators.
33629 (grub_multiboot): Setup stack. Use relocators.
33630 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33631 (grub_multiboot_load_elfXX): Use relocators.
33632 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33633 (grub_multiboot_payload_size): Likewise.
33634 (grub_multiboot_payload_dest): Likewise.
33635 (grub_multiboot_payload_entry_offset): Likewise.
33636 (grub_multiboot_forward_relocator): Likewise.
33637 (grub_multiboot_backward_relocator): Likewise.
33638 (grub_multiboot_real_boot): Likewise.
33639 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33640 (grub_xnu_entry_point): Likewise.
33641 (grub_xnu_arg1): Likewise.
33642 (grub_xnu_stack): Likewise.
33643 (grub_xnu_launch): Removed.
33644 (grub_xnu_boot_resume): New function.
33645 (grub_xnu_boot): Use relocators.
33646 * loader/i386/xnu_helper.S: Removed.
33647 * loader/xnu.c (grub_xnu_heap_start): New variable.
33648 (grub_xnu_heap_size): Likewise.
33649 (grub_xnu_heap_malloc): Use relocators.
33650 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33651
33652 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33653
33654 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33655 anything.
33656
33657 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33658
33659 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33660 GRUB_ERR_NONE before calling grub_env_set.
33661
33662 2009-12-12 Robert Millan <rmh@aybabtu.com>
33663
33664 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33665 * genmk.rb (video): New variable.
33666 (CLEANFILES, VIDEOFILES): Add #{video}.
33667 (#{video}): New target rule.
33668 * genvideolist.sh: New file.
33669 * Makefile.in (pkglib_DATA): Add video.lst.
33670 (video.lst): New target rule.
33671 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33672 `video.lst'.
33673 * util/grub.d/30_os-prober.in: Replace `vbe' with
33674 ${GRUB_VIDEO_BACKEND}.
33675
33676 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33677
33678 * THANKS: Add David Miller.
33679
33680 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33681
33682 libpciaccess support.
33683
33684 * Makefile.in (LIBPCIACCESS): New variable.
33685 (enable_grub_emu_pci): Likewise.
33686 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33687 util/pci.c and commands/lspci.c.
33688 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33689 * configure.ac (grub-emu-pci): New option.
33690 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33691 (grub_pci_device_unmap_range): Likewise.
33692 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33693 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33694 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33695 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33696 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33697 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33698 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33699 * include/grub/pciutils.h: New file.
33700 * util/pci.c: Likewise.
33701
33702 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33703
33704 * util/misc.c: Don't include <errno.h> twice.
33705
33706 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33707
33708 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33709 name in an error message.
33710 (grub_biosdisk_rw): Likewise.
33711
33712 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33713
33714 Eliminate NTFS 4Gib barrier.
33715
33716 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33717 (read_run_data): Likewise.
33718 (grub_ntfs_read_run_list): Likewise.
33719 (grub_ntfs_read_block): Likewise.
33720 (grub_ntfs_iterate_dir): Likewise.
33721 (read_mft): Likewise.
33722 (read_data): Likewise.
33723 Use COM_LOG_LEN.
33724 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33725 to avoid 64-bit division
33726 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33727 (grub_ntfs_rlst): Use grub_disk_addr_t.
33728
33729 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33730
33731 Eliminate grub-fstest 4Gib barrier.
33732
33733 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33734 (read_file): Fix error reporting.
33735
33736 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33737
33738 Eliminate hexdump 4Gib barrier.
33739
33740 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33741 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33742
33743 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33744
33745 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33746 Fixes amarsh bug.
33747
33748 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33749
33750 Remove miscellaneous files in distclean target.
33751
33752 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33753
33754 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33755
33756 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33757 if they're already set. This resolves the conflict between my
33758 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33759 fixing the --grub-probe option again.
33760 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33761 change on 2009-10-06, so that we now once again source
33762 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33763
33764 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33765
33766 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33767 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33768 `util/devicemap.c'.
33769
33770 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33771
33772 * include/grub/misc.h (grub_printf_): New declaration.
33773 * kern/misc.c (grub_printf_): New definition.
33774 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33775 instead of `grub_printf' and `_'.
33776 * normal/menu_entry.c (store_completion): Likewise.
33777 (run): Likewise.
33778 (grub_menu_entry_run): Likewise.
33779 * normal/menu_text.c (grub_wait_after_message): Likewise.
33780 (notify_booting): Likewise.
33781 (notify_fallback): Likewise.
33782 (notify_execution_failure): Likewise.
33783
33784 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33785
33786 * configure.ac: Check for vasprintf.
33787 * util/misc.c (asprintf): Move allocation from here ...
33788 (vasprintf): ... to here. New function.
33789 (xasprintf): New function.
33790 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33791 prototypes.
33792 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33793 * util/grub-mkfont.c (write_font): Likewise.
33794 * util/grub-probe.c (probe): Likewise.
33795 * util/hostdisk.c (make_device_name): Likewise.
33796
33797 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33798
33799 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33800 anything even prefixed with 'cdrom' as a cdrom.
33801
33802 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33803
33804 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33805 mount points.
33806
33807 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33808
33809 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33810 grub_gettext_msg_list.
33811 (grub_gettext_gettranslation_from_position): Return const char *
33812 and not char *.
33813 (grub_gettext_translate): Add the translated strings into a list,
33814 returns from the list if existing there.
33815 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33816 (grub_gettext_delete_list): Delete the list.
33817 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33818 lang environment variable is changed.
33819 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33820
33821 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33822
33823 Rename kernel.mod to kernel.img.
33824
33825 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33826 (kernel_mod_EXPORTS): Rename to ...
33827 (kernel_img_EXPORTS): ... this.
33828 (kernel_mod_SOURCES): Rename to ...
33829 (kernel_img_SOURCES): ... this.
33830 (kernel_mod_HEADERS): Rename to ...
33831 (kernel_img_HEADERS): ... this. All users updated.
33832 (kernel_mod_CFLAGS): Rename to ...
33833 (kernel_img_CFLAGS): ... this.
33834 (kernel_mod_ASFLAGS): Rename to ...
33835 (kernel_img_ASFLAGS): ... this.
33836 (kernel_mod_LDFLAGS): Rename to ...
33837 (kernel_img_LDFLAGS): ... this.
33838 * conf/x86_64-efi.rmk: Likewise.
33839 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33840 (read_kernel_image): ... this. All users updated.
33841 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33842
33843 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33844
33845 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33846 (print_spaces): New function.
33847 (grub_print_ucs4): New function.
33848 (getstringwidth): New function.
33849 (print_message_indented): New function.
33850 (print_message): Gettexttize strings using print_message_indented.
33851 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33852 width.
33853 (get_entry_number): Gettextize and uses dynamic terminal width.
33854 (notify_booting, notify_fallback, notify_execution_failure):
33855 Gettextize.
33856 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33857 string.
33858 (run): Likewise.
33859 (grub_menu_entry_run): Likewise.
33860 * PO/POTFILES: Add normal/menu_entry.c.
33861
33862 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33863
33864 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33865
33866 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33867
33868 * util/grub-install.in: Install gettext .mo files.
33869 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33870
33871 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33872
33873 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33874 grub_dprintf.
33875
33876 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33877
33878 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33879 non-firmware-dependant one in realmode.S takes precedence.
33880
33881 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33882
33883 * commands/halt.c: Replace misc arch-specific headers with
33884 `<grub/misc.h>'.
33885 * commands/reboot.c: Likewise.
33886 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33887 `<grub/misc.h>'.
33888 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33889 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33890 (kernel_img_SOURCES): ... to here.
33891
33892 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33893 * include/grub/i386/pc/init.h: Likewise.
33894 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33895 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33896
33897 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33898
33899 * include/grub/i386/halt.h: Remove.
33900 * include/grub/i386/reboot.h: Likewise.
33901
33902 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33903
33904 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33905
33906 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33907 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33908 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33909 "progname.h"
33910 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33911 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33912 (usage): Add missing comma in printf.
33913
33914 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33915
33916 Use the same reboot approach on i386 coreboot and qemu as we do on
33917 BIOS.
33918
33919 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33920 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33921 * kern/i386/reboot.c: Remove.
33922 * include/grub/i386/reboot.h (grub_reboot): Export function.
33923 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33924 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33925 0xf000:0xfff0 instead of 0xffff:0x0000.
33926 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33927 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33928
33929 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33930
33931 Fix $srcdir != $objdir build.
33932
33933 * Makefile.in (po/%.po): Rewrite as ...
33934 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33935
33936 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33937
33938 Fix GNU/Hurd grub-install crash.
33939 * util/grub-probe.c (probe): Try to access `path' only when it is not
33940 NULL.
33941
33942 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33943
33944 Correct module naming.
33945
33946 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33947 (GRUB_MOD_INIT(efi_uga)): ... to this
33948 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33949 (GRUB_MOD_FINI(efi_uga)): ... to this
33950 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33951 (GRUB_MOD_INIT(efi_gop)): ... to this
33952 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33953 (GRUB_MOD_FINI(efi_gop)): ... to this
33954
33955 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33956
33957 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33958 translatable.
33959 (usage): Translate `arg' strings using gettext().
33960 Thanks to Jordi Mallach for the suggestion.
33961
33962 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33963
33964 GOP support. Based on patch from Bean
33965 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
33966
33967 * video/efi_gop.c: New file.
33968 * include/grub/efi/graphics_output.h: Likewise.
33969 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
33970 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
33971 variables.
33972 * conf/x86_64-efi.rmk: Likewise.
33973
33974 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33975
33976 Rename efi_fb to efi_uga.
33977
33978 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33979 'efi_uga.mod'.
33980 (efi_fb_mod_SOURCES): Rename this ...
33981 (efi_uga_mod_SOURCES): ... to this.
33982 (efi_fb_mod_CFLAGS): Rename this ...
33983 (efi_uga_mod_CFLAGS): ... to this.
33984 (efi_fb_mod_LDFLAGS): Rename this ...
33985 (efi_uga_mod_LDFLAGS): ... to this.
33986 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
33987 'efi_uga.mod'.
33988 (efi_fb_mod_SOURCES): Rename this ...
33989 (efi_uga_mod_SOURCES): ... to this.
33990 (efi_fb_mod_CFLAGS): Rename this ...
33991 (efi_uga_mod_CFLAGS): ... to this.
33992 (efi_fb_mod_LDFLAGS): Rename this ...
33993 (efi_uga_mod_LDFLAGS): ... to this.
33994 * video/efi_fb.c: Move this ...
33995 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
33996
33997 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
33998
33999 * po/README: New file. Explain our PO file workflow.
34000
34001 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34002
34003 * po/ChangeLog: Remove. Move relevant entries back to ...
34004 * ChangeLog: ... here.
34005 * po/ca.po: Remove (now handled by TLP).
34006 * po/id.po: Likewise.
34007 * po/zh_CN.po: Likewise.
34008 * Makefile.in (LINGUAS): Initialize in a way that supports
34009 empty set.
34010
34011 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34012
34013 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34014 reliing on po/LINGUAS.
34015 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34016 (po/%.po): ... this.
34017
34018 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34019
34020 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34021 (main): Use `program_name' instead of nonexistent `progname'.
34022
34023 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34024
34025 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34026 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34027
34028 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34029
34030 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34031 commit.
34032 * conf/i386-efi.rmk: Likewise.
34033 * conf/i386-ieee1275.rmk: Likewise.
34034 * conf/powerpc-ieee1275.rmk: Likewise.
34035 * conf/sparc64-ieee1275.rmk: Likewise.
34036 * conf/x86_64-efi.rmk: Likewise.
34037
34038 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34039
34040 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34041
34042 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34043
34044 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34045
34046 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34047
34048 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34049 (grub_mkdevicemap_SOURCES): New variable.
34050 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34051 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34052 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34053 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34054 (grub_mkdevicemap_SOURCES): Remove.
34055 * conf/i386-efi.rmk: Likewise.
34056 * conf/i386-ieee1275.rmk: Likewise.
34057 * conf/i386-pc.rmk: Likewise.
34058 * conf/powerpc-ieee1275.rmk: Likewise.
34059 * conf/sparc64-ieee1275.rmk: Likewise.
34060 * conf/x86_64-efi.rmk: Likewise.
34061 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34062 (usage): Fix strings to use `program_name'.
34063 (main): Initialize gettext.
34064 * util/grub-editenv.c: Likewise.
34065 * util/grub-emu.c: Likewise.
34066 * util/grub-fstest.c: Likewise.
34067 * util/grub-mkdevicemap.c: Likewise.
34068 * util/grub-mkfont.c: Likewise.
34069 * util/grub-mkrelpath.c: Likewise.
34070 * util/grub-pe2elf.c: Likewise.
34071 * util/grub-probe.c: Likewise.
34072 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34073 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34074 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34075
34076 * util/misc.c: Include `"progname.h"'.
34077 (progname): Remove variable.
34078 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34079
34080 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34081
34082 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34083 printf and print a newline after the menuentry header line.
34084 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34085
34086 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34087
34088 autoconf >= 2.60 support $(localedir).
34089
34090 * INSTALL: Note that autoconf 2.60 is required.
34091 * configure.ac (AC_PREREQ): Bump to 2.60.
34092 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34093 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34094
34095 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34096
34097 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34098 aclocal is run.
34099
34100 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34101
34102 * normal/main.c (grub_normal_read_line): Fix off-by-one
34103 buffer overflow.
34104
34105 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34106
34107 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34108 "parser.grub" in grub_command_execute() call.
34109
34110 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34111
34112 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34113 * conf/i386-efi.rmk: Likewise.
34114 * conf/i386-ieee1275.rmk: Likewise.
34115 * conf/i386-pc.rmk: Likewise.
34116 * conf/powerpc-ieee1275.rmk: Likewise.
34117 * conf/sparc64-ieee1275.rmk: Likewise.
34118 * conf/x86_64-efi.rmk: Likewise.
34119 * gettext/gettex.c: Include <grub/i18n.h>.
34120 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34121 here ...
34122 * include/grub/i18n.h: ... to here
34123 * include/grub/i18n.h: ... to here.
34124 * kern/misc.c: Include <grub/i18n.h>
34125 (grub_gettext_dummy): Move above user.
34126
34127 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34128
34129 * util/Makefile.in (install-local): Convert a `for' into a normal
34130 shell expansion.
34131
34132 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34133
34134 * autogen.sh: Add automake call.
34135 * config.guess: Remove.
34136 * config.sub: Likewise.
34137 * install-sh: Likewise.
34138
34139 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34140
34141 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34142
34143 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34144
34145 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34146 function to a normal shell `for'.
34147
34148 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34149
34150 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34151
34152 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34153
34154 * util/grub-mkrelpath.c: New file.
34155 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34156 (grub_mkrelpath_SOURCES): New variable.
34157 * include/grub/util/misc.h: New function prototype.
34158 * util/misc.c (make_system_path_relative_to_its_root): New function.
34159
34160 * util/grub-mkconfig_lib.in (bindir): New variable.
34161 (grub_mkrelpath): Likewise.
34162 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34163
34164 * util/probe.c (probe): Make the file path relative to its root.
34165 Change a info message to use the GRUB path. Enable again the
34166 check if we can read the file with GRUB facilities.
34167
34168 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34169 to its root.
34170
34171 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34172
34173 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34174 platform.
34175
34176 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34177
34178 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34179 strncmp().
34180
34181 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34182
34183 * util/getroot.c (grub_util_is_dmraid): New function.
34184 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34185 devices as normal ones, not as LVM.
34186
34187 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34188
34189 * conf/common.rmk: Add grub-gettext_lib target and updates
34190 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34191 LDFLAGS.
34192 * gettext/gettext.c: New file. (Reads mo files).
34193 * include/grub/file.h (grub_file_pread): New prototype.
34194 * include/grub/i18n.h (_): New prototype.
34195 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34196 prototypes.
34197 * kern/misc.c (grub_gettext_dummy): New function.
34198 * normal/menu_text.c: Include <grub/i18n.h>.
34199 * normal/menu_text.c (print_timeout): Gettexttize string.
34200 * normal/menu_text.c (print_message): Gettexttize string.
34201 * po/POTFILES: Add `normal/menu_text.c'.
34202 * po/ca.po: Add new translations.
34203 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34204 gettext module and defines locale_dir and lang in grub.cfg.
34205 * NEWS: Add gettext support.
34206
34207 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34208
34209 * util/hostdisk.c: Include `<grub/i18n.h>'.
34210 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34211 (make_device_name): Rewrite using asprintf.
34212 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34213 (find_system_device): If a device is not found, generate one just
34214 by reusing the OS path name.
34215 (read_device_map): Make it permissible for device.map not to exist.
34216
34217 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34218
34219 * script/sh/execute.c: Move from here ...
34220 * script/execute.c: ... to here. Update all users.
34221 * script/sh/function.c: Move from here ...
34222 * script/function.c: ... to here. Update all users.
34223 * script/sh/lexer.c: Move from here ...
34224 * script/lexer.c: ... to here. Update all users.
34225 * script/sh/main.c: Move from here ...
34226 * script/main.c: ... to here. Update all users.
34227 * script/sh/parser.y: Move from here ...
34228 * script/parser.y: ... to here. Update all users.
34229 * script/sh/script.c: Move from here ...
34230 * script/script.c: ... to here. Update all users.
34231
34232 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34233
34234 * configure.ac: Detect all `emu' platforms. Define
34235 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34236 --enable-grub-emu logic. Disable include/grub/machine
34237 symlink on `emu' platforms.
34238
34239 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34240 * gensymlist.sh.in: Likewise.
34241
34242 * include/grub/i386/coreboot/machine.h: Remove file.
34243 * include/grub/i386/efi/machine.h: Likewise.
34244 * include/grub/i386/ieee1275/machine.h: Likewise.
34245 * include/grub/i386/pc/machine.h: Likewise.
34246 * include/grub/i386/qemu/machine.h: Likewise.
34247 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34248 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34249 * include/grub/x86_64/efi/machine.h: Likewise.
34250
34251 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34252 * commands/halt.c: Likewise.
34253 * commands/reboot.c: Likewise.
34254 * include/grub/autoefi.h: Likewise.
34255 * include/grub/i386/at_keyboard.h: Likewise.
34256 * include/grub/i386/kernel.h: Likewise.
34257 * include/grub/i386/loader.h: Likewise.
34258 * include/grub/i386/pc/memory.h: Likewise.
34259 * kern/dl.c: Likewise.
34260 * kern/i386/coreboot/init.c: Likewise.
34261 * loader/i386/bsd.c: Likewise.
34262 * loader/i386/linux.c: Likewise.
34263 * loader/multiboot_loader.c: Likewise.
34264 * term/i386/pc/serial.c: Likewise.
34265 * term/usb_keyboard.c: Likewise.
34266
34267 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34268 `<grub/machine/machine.h>'
34269 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34270 * util/misc.c: Remove `<grub/machine/machine.h>' and
34271 `<grub/machine/time.h>'.
34272
34273 * Makefile.in (enable_grub_emu): Remove variable.
34274 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34275
34276 * conf/any-emu.rmk: New file.
34277 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34278 (grub_emu_init.c): Move from here ...
34279 * conf/any-emu.rmk: ... to here.
34280
34281 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34282 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34283 * conf/any-emu.rmk: ... to here.
34284
34285 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34286
34287 * include/grub/parser.h (grub_parser_register): Document need
34288 of `name' parameter.
34289 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34290 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34291 "sh" to "grub".
34292
34293 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34294
34295 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34296 `$(XGETTEXT)'.
34297 * include/grub/i18n.h (N_): New macro.
34298 * util/mkisofs/mkisofs.h: Likewise.
34299 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34300 around N_().
34301 (usage): Use gettext() to translate help strings when printing them.
34302
34303 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34304
34305 Based on patch from Bean
34306 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34307
34308 * video/efi_fb.c: New file.
34309 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34310 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34311 variables.
34312 * conf/x86_64-efi.rmk: Likewise.
34313
34314 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34315
34316 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34317 * util/i386/pc/grub-setup.c: Likewise.
34318
34319 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34320
34321 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34322 <hurd/fs.h>
34323 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34324 file_get_storage_info to implement grub_guess_root_device.
34325
34326 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34327
34328 * Makefile.in (target): Use make's builtin $(shell) function
34329 instead of calling directly $(SHELL) to create the locale directories,
34330 inside the $(foreach) function.
34331
34332 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34333
34334 * util/grub-mkrescue.in: Print an error and usage if output option
34335 has not been given.
34336
34337 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34338
34339 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34340 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34341 root and /boot are on different devices.
34342
34343 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34344
34345 Fix build for srcdir != objdir.
34346
34347 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34348 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34349 $(srcdir).
34350 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34351 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34352 reference for input.
34353
34354 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34355
34356 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34357 or hardlinking it). Remove -J option, Joliet is not compatible with
34358 multiple source directories.
34359
34360 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34361 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34362
34363 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34364 (process_input_dir): New function. Process an arbitrary input
34365 directory.
34366 Misc adjustments to support both "override mode" and system-wide mode.
34367
34368 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34369
34370 * configure.ac (UNIFONT_BDF): Rename to ...
34371 (FONT_SOURCE): ... this. Update all users.
34372
34373 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34374
34375 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34376 to the list of unifont files to look for.
34377
34378 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34379
34380 Patch from Joe Auricchio <jauricchio@gmail.com>
34381 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34382 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34383 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34384
34385 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34386
34387 * Makefile.in (install-local): Add a missing backslash.
34388
34389 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34390
34391 * include/grub/x86_64/io.h: New file.
34392
34393 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34394
34395 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34396 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34397 Include `"progname.h"'.
34398 (main): Initialize gettext.
34399 * util/i386/pc/grub-setup.c: Gettexttize.
34400 * util/i386/pc/grub-mkimage.c: Likewise.
34401
34402 * Makefile.in (po/*.po): Redefine as ...
34403 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34404
34405 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34406
34407 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34408
34409 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34410 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34411 (program_name): Remove.
34412 (main): Initialize gettext support.
34413 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34414 Include `<libintl.h>'.
34415 (_): New macro.
34416
34417 * util/mkisofs/eltorito.c: Gettexttize.
34418 * util/mkisofs/joliet.c: Likewise.
34419 * util/mkisofs/mkisofs.c: Likewise.
34420 * util/mkisofs/multi.c: Likewise.
34421 * util/mkisofs/rock.c: Likewise.
34422 * util/mkisofs/tree.c: Likewise.
34423 * util/mkisofs/write.c: Likewise.
34424
34425 * po/POTFILES: Update with new files.
34426
34427 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34428
34429 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34430 * util/mkisofs/iso9660.h: Likewise.
34431 * util/mkisofs/joliet.c: Likewise.
34432 * util/mkisofs/mkisofs.c: Likewise.
34433 * util/mkisofs/mkisofs.h: Likewise.
34434 * util/mkisofs/rock.c: Likewise.
34435 * util/mkisofs/tree.c: Likewise.
34436 * util/mkisofs/write.c: Likewise.
34437
34438 * util/mkisofs/eltorito.c (rcsid): Remove.
34439 * util/mkisofs/hash.c: Likewise.
34440 * util/mkisofs/joliet.c: Likewise.
34441 * util/mkisofs/name.c: Likewise.
34442 * util/mkisofs/rock.c: Likewise.
34443 * util/mkisofs/tree.c: Likewise.
34444 * util/mkisofs/write.c: Likewise.
34445
34446 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34447
34448 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34449 instead of static allocation.
34450 * util/mkisofs/match.h: Likewise.
34451
34452 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34453
34454 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34455 and `util/grub.d/10_linux.in'.
34456 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34457 translatable Shell files.
34458
34459 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34460
34461 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34462
34463 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34464
34465 * INSTALL: Document Automake is needed for bootstrap.
34466 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34467 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34468 Add gettext initialization.
34469 (kfreebsd_entry): Make menuentry output translatable.
34470
34471 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34472
34473 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34474 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34475 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34476 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34477 (LINGUAS): Auto-generate using `po/LINGUAS'.
34478 * po/LINGUAS: New file.
34479
34480 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34481
34482 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34483 other things).
34484 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34485 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34486 bindtextdomain() calls for gettext initialization.
34487
34488 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34489
34490 * gnulib/progname.c: New file (imported from Gnulib).
34491 * gnulib/progname.h: Likewise.
34492 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34493 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34494 (usage): Replace `progname' with `program_name'.
34495 (main): Use set_program_name() for program name initialization.
34496
34497 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34498
34499 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34500 from here ...
34501 * Makefile.in (CPPFLAGS): ... to here.
34502
34503 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34504
34505 * aclocal.m4: Move from here ...
34506 * acinclude.m4: ... to here.
34507 * autogen.sh: Add call to `aclocal'.
34508 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34509
34510 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34511
34512 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34513 (LINGUAS): New variable.
34514 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34515 (install-local): Install MO files.
34516 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34517 * include/grub/i18n.h: New file.
34518 * po/POTFILES: New file.
34519 * po/ca.po: New file.
34520 * util/grub.d/10_linux.in (bindir): New variable.
34521 Add gettext initialization.
34522 (linux_entry): Make menuentry output translatable.
34523 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34524 (usage): Make --help output translatable.
34525 (main): Initialize gettext.
34526
34527 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34528
34529 * import_gcry.py: New file (written by Vladimir with minor
34530 adjustments).
34531 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34532 ciphers.
34533 * INSTALL: Document that Python is required for bootstrap.
34534
34535 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34536
34537 Import ciphers from libgcrypt 1.4.4.
34538
34539 * lib/libgcrypt/cipher/ChangeLog
34540 * lib/libgcrypt/cipher/ac.c
34541 * lib/libgcrypt/cipher/arcfour.c
34542 * lib/libgcrypt/cipher/bithelp.h
34543 * lib/libgcrypt/cipher/blowfish.c
34544 * lib/libgcrypt/cipher/camellia-glue.c
34545 * lib/libgcrypt/cipher/camellia.c
34546 * lib/libgcrypt/cipher/camellia.h
34547 * lib/libgcrypt/cipher/cast5.c
34548 * lib/libgcrypt/cipher/cipher.c
34549 * lib/libgcrypt/cipher/crc.c
34550 * lib/libgcrypt/cipher/des.c
34551 * lib/libgcrypt/cipher/dsa.c
34552 * lib/libgcrypt/cipher/ecc.c
34553 * lib/libgcrypt/cipher/elgamal.c
34554 * lib/libgcrypt/cipher/hash-common.c
34555 * lib/libgcrypt/cipher/hash-common.h
34556 * lib/libgcrypt/cipher/hmac-tests.c
34557 * lib/libgcrypt/cipher/md.c
34558 * lib/libgcrypt/cipher/md4.c
34559 * lib/libgcrypt/cipher/md5.c
34560 * lib/libgcrypt/cipher/primegen.c
34561 * lib/libgcrypt/cipher/pubkey.c
34562 * lib/libgcrypt/cipher/rfc2268.c
34563 * lib/libgcrypt/cipher/rijndael-tables.h
34564 * lib/libgcrypt/cipher/rijndael.c
34565 * lib/libgcrypt/cipher/rmd.h
34566 * lib/libgcrypt/cipher/rmd160.c
34567 * lib/libgcrypt/cipher/rsa.c
34568 * lib/libgcrypt/cipher/seed.c
34569 * lib/libgcrypt/cipher/serpent.c
34570 * lib/libgcrypt/cipher/sha1.c
34571 * lib/libgcrypt/cipher/sha256.c
34572 * lib/libgcrypt/cipher/sha512.c
34573 * lib/libgcrypt/cipher/tiger.c
34574 * lib/libgcrypt/cipher/twofish.c
34575 * lib/libgcrypt/cipher/whirlpool.c
34576
34577 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34578
34579 Fix build for systems without error().
34580
34581 * gnulib/error.c: New file (imported from Gnulib).
34582 * gnulib/error.h: Likewise.
34583 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34584 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34585 (this variable is now used by error()).
34586
34587 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34588
34589 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34590 instead of relying that char is signed.
34591
34592 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34593
34594 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34595 blocksize different from specified.
34596 (grub_pxefs_read): Likewise.
34597
34598 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34599
34600 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34601
34602 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34603 (grub_ata_readwrite): Likewise. Update 2 format strings.
34604 (grub_atapi_read): Likewise.
34605
34606 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34607 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34608 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34609 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34610 (ata_mod_LDFLAGS): Move from here ...
34611 * conf/i386.rmk: ... to here ...
34612 * conf/x86_64-efi.rmk: ... and here.
34613 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34614 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34615
34616 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34617
34618 Relicense multiboot.h, with RMS' blessing.
34619
34620 * include/multiboot.h: Change to X11 license.
34621
34622 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34623
34624 Support --version in grub-mkisofs.
34625
34626 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34627 (OPTION_VERSION): New macro.
34628 (ld_options): Recognize --version.
34629 (usage): Move `program_name' from here ...
34630 (program_name): ... to here. Add `static' qualifier.
34631 (main): Recognize `OPTION_VERSION'.
34632
34633 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34634
34635 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34636 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34637
34638 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34639
34640 Fix help2man generation for mkisofs.
34641
34642 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34643 (usage): Send output to stdout (rather than stderr).
34644
34645 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34646
34647 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34648 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34649 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34650 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34651 (bin_SCRIPTS): Add `grub-mkfloppy'.
34652 (grub_mkfloppy_SOURCES): New variable.
34653
34654 * util/grub-mkrescue.in: New file.
34655 * util/i386/pc/grub-mkfloppy.in: New file.
34656
34657 * util/i386/coreboot/grub-mkrescue.in: Remove.
34658 * util/i386/pc/grub-mkrescue.in: Remove.
34659
34660 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34661
34662 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34663 from here ...
34664 * include/multiboot.h (struct multiboot_header): ... to here. Update
34665 all users.
34666 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34667 from here ...
34668 * include/multiboot.h (struct multiboot_info): ... to here. Update
34669 all users.
34670 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34671 from here ...
34672 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34673 Update all users.
34674 * include/grub/multiboot.h (struct grub_mod_list): Move
34675 from here ...
34676 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34677 Update all users.
34678
34679 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34680
34681 * include/multiboot2.h (multiboot_word): Rename from this ...
34682 (multiboot2_word): ... to this. Update all users.
34683 (multiboot_header): Rename from this ...
34684 (multiboot2_header): ... to this. Update all users.
34685 (multiboot_tag_header): Rename from this ...
34686 (multiboot2_tag_header): ... to this. Update all users.
34687 (multiboot_tag_start): Rename from this ...
34688 (multiboot2_tag_start): ... to this. Update all users.
34689 (multiboot_tag_name): Rename from this ...
34690 (multiboot2_tag_name): ... to this. Update all users.
34691 (multiboot_tag_module): Rename from this ...
34692 (multiboot2_tag_module): ... to this. Update all users.
34693 (multiboot_tag_memory): Rename from this ...
34694 (multiboot2_tag_memory): ... to this. Update all users.
34695 (multiboot_tag_unused): Rename from this ...
34696 (multiboot2_tag_unused): ... to this. Update all users.
34697 (multiboot_tag_end): Rename from this ...
34698 (multiboot2_tag_end): ... to this. Update all users.
34699
34700 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34701
34702 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34703 this platform we should support Multiboot1 first.
34704
34705 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34706 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34707 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34708
34709 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34710
34711 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34712 of write calls (converting them to fwrite() if they aren't already).
34713 (get_torito_desc): Likewise.
34714 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34715
34716 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34717
34718 * util/i386/pc/grub-install.in: Move from here ...
34719 * util/grub-install.in: ... to here. Update all users.
34720
34721 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34722
34723 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34724
34725 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34726
34727 Support for El Torito without floppy emulation.
34728
34729 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34730 (init_boot_catalog): Improve error handling.
34731 (get_torito_desc): Don't use floppy emulation unless requested by
34732 user. Patch boot information table when requested via
34733 `-boot-info-table'.
34734 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34735 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34736 (use_boot_info_table): New variables.
34737 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34738 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34739 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34740 `--eltorito-emul-floppy'.
34741 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34742 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34743 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34744 (use_boot_info_table, get_731): New prototypes.
34745 * util/mkisofs/write.c (get_731): New function.
34746
34747 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34748
34749 Fix the generation of the man page.
34750
34751 * util/pc/i386/grub-install.in: Source
34752 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34753
34754 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34755
34756 Large file support for grub-mkisofs.
34757
34758 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34759 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34760 (session_start): Upgrade type to `uint64_t'. Update all users.
34761 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34762 (struct directory_entry): Upgrade type of `starting_block' and
34763 `size' to `uint64_t'. Update all users.
34764 (struct deferred): Remove unused structure.
34765 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34766 Update all users.
34767 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34768 file is larger than `UINT32_MAX'.
34769 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34770 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34771 return value.
34772 (struct deferred_write): Upgrade type of `extent' and `size' to
34773 `uint64_t'. Update all users.
34774 (last_extent_written): Upgrade type to `uint64_t'. Update all
34775 users.
34776 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34777 Update all users. Upgrade type of `remain' to `int64_t' and
34778 `use' to `size_t'. Use error() to handle fread() errors.
34779 (write_files): Rely on write_one_file() rather than calling
34780 xfwrite() directly.
34781
34782 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34783
34784 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34785
34786 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34787
34788 * util/mkisofs/fnmatch.c: Remove.
34789 * util/mkisofs/getopt1.c: Likewise.
34790 * util/mkisofs/getopt.c: Likewise.
34791 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34792 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34793 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34794 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34795 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34796
34797 * configure.ac: Detect `mingw32msvc' host_os.
34798 Check for lstat(), getuid() and getgid().
34799
34800 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34801 instances of `u_char' with `uint8_t'.
34802
34803 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34804 [!HAVE_GETUID] (getuid): New function (stub).
34805 [!HAVE_GETGID] (getgid): Likewise.
34806 [!HAVE_LSTAT] (lstat): Likewise.
34807 [!S_IROTH] (S_IROTH): New macro (dummy).
34808 [!S_IRGRP] (S_IRGRP): Likewise.
34809
34810 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34811
34812 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34813 conditional expression).
34814
34815 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34816
34817 Import from Gnulib.
34818
34819 * gnulib/fnmatch.c: New file.
34820 * gnulib/fnmatch.h: Likewise.
34821 * gnulib/fnmatch_loop.c: Likewise.
34822 * gnulib/getopt.c: Likewise.
34823 * gnulib/getopt.h: Likewise.
34824 * gnulib/getopt1.c: Likewise.
34825 * gnulib/getopt_int.h: Likewise.
34826 * gnulib/gettext.h: Likewise.
34827
34828 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34829
34830 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34831 * normal/handler.c (read_handler_list): Likewise.
34832
34833 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34834
34835 Misc cleanup.
34836
34837 * kern/command.c (grub_register_command_prio): Use
34838 grub_zalloc() instead of explicitly zeroing data.
34839 * kern/list.c: Include `<grub/mm.h>'.
34840 (grub_named_list_find): Replace `0' with `NULL'.
34841 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34842 (fs_module_list): Change type to `grub_named_list_t'. Update all
34843 users.
34844 * normal/dyncmd.c (read_command_list): Add space between function
34845 call and parenthesis.
34846 * normal/handler.c (read_handler_list): Likewise.
34847
34848 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34849
34850 * normal/auth.c (punishment_delay): Moved from here ...
34851 (grub_auth_strcmp): ... to here (inside function).
34852
34853 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34854
34855 * include/grub/list.h (struct grub_named_list): Remove `const'
34856 qualifier from `name'.
34857 (struct grub_prio_list): Likewise.
34858
34859 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34860
34861 * normal/auth.c: Include `<grub/time.h>'.
34862 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34863
34864 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34865
34866 * normal/auth.c (punishment_delay): New variable.
34867 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34868 (grub_auth_check_authentication): Punish failed login attempts with
34869 an incremental (2^N) delay.
34870
34871 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34872
34873 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34874 path with $(srcdir).
34875
34876 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34877
34878 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34879
34880 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34881
34882 * util/i386/coreboot/grub-mkrescue.in: New file.
34883 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34884 variables.
34885
34886 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34887 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34888 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34889 requirements.
34890 * util/mkisofs/defaults.h: New file.
34891 * util/mkisofs/eltorito.c: Likewise.
34892 * util/mkisofs/exclude.h: Likewise.
34893 * util/mkisofs/fnmatch.c: Likewise.
34894 * util/mkisofs/getopt.c: Likewise.
34895 * util/mkisofs/getopt1.c: Likewise.
34896 * util/mkisofs/hash.c: Likewise.
34897 * util/mkisofs/include/fctldefs.h: Likewise.
34898 * util/mkisofs/include/mconfig.h: Likewise.
34899 * util/mkisofs/include/prototyp.h: Likewise.
34900 * util/mkisofs/include/statdefs.h: Likewise.
34901 * util/mkisofs/iso9660.h: Likewise.
34902 * util/mkisofs/joliet.c: Likewise.
34903 * util/mkisofs/match.c: Likewise.
34904 * util/mkisofs/match.h: Likewise.
34905 * util/mkisofs/mkisofs.c: Likewise.
34906 * util/mkisofs/mkisofs.h: Likewise.
34907 * util/mkisofs/multi.c: Likewise.
34908 * util/mkisofs/name.c: Likewise.
34909 * util/mkisofs/rock.c: Likewise.
34910 * util/mkisofs/tree.c: Likewise.
34911 * util/mkisofs/write.c: Likewise.
34912
34913 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34914
34915 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34916 being insecure.
34917
34918 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34919
34920 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34921 `grub-mkimage' (and use $0 when possible).
34922
34923 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34924
34925 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34926 error message for excessively large memory map.
34927
34928 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34929
34930 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34931 executable bit.
34932
34933 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34934
34935 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34936 message for coreboot users.
34937
34938 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34939
34940 Fix build with GNU gold.
34941
34942 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34943 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34944 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34945 link addresses.
34946 * aclocal.m4: Likewise.
34947
34948 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34949
34950 * configure.ac (AC_PREREQ): Bump to 2.59d.
34951 * INSTALL: Make it more clear when Autoconf and Ruby are
34952 needed and when to run `./autogen.sh'.
34953
34954 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34955
34956 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34957 OSes.
34958
34959 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34960
34961 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34962
34963 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34964
34965 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
34966 giving it to GNU Mach.
34967
34968 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34969
34970 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
34971 GNU partition number to get internal GRUB partition number.
34972
34973 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34974
34975 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
34976 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
34977
34978 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
34979
34980 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
34981 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
34982 case.
34983
34984 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
34985
34986 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
34987
34988 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34989
34990 Fix build problem.
34991
34992 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
34993 `-isystem=$(srcdir)/include'.
34994
34995 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
34996
34997 * util/i386/pc/grub-install.in: Remove hint that device.map should be
34998 checked (grub-install doesn't currently rely on it).
34999
35000 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35001
35002 Revert SVN r2660.
35003
35004 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35005 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35006 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35007 * conf/i386-ieee1275.rmk: Likewise.
35008 * conf/i386-pc.rmk: Likewise.
35009 * conf/powerpc-ieee1275.rmk: Likewise.
35010 * conf/sparc64-ieee1275.rmk: Likewise.
35011 * conf/x86_64-efi.rmk: Likewise.
35012
35013 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35014
35015 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35016
35017 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35018
35019 * include/grub/misc.h: Stop checking for APPLE_CC.
35020
35021 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35022
35023 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35024 doesn't cause an infinite call loop.
35025
35026 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35027
35028 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35029 strings.
35030
35031 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35032
35033 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35034 variable.
35035 * Makefile.in: Likewise.
35036
35037 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35038
35039 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35040
35041 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35042
35043 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35044
35045 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35046
35047 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35048
35049 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35050
35051 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35052 from here ...
35053 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35054
35055 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35056
35057 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35058 in $(MAKEINFO) invocation. This makes it clear in output that
35059 errors are being ignored.
35060
35061 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35062
35063 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35064 from here ...
35065 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35066 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35067 * conf/i386-ieee1275.rmk: Likewise.
35068 * conf/i386-pc.rmk: Likewise.
35069 * conf/powerpc-ieee1275.rmk: Likewise.
35070 * conf/sparc64-ieee1275.rmk: Likewise.
35071 * conf/x86_64-efi.rmk: Likewise.
35072
35073 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35074
35075 * util/grub-editenv.c (main): If only a command is given, use
35076 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35077 (usage): FILENAME is now optional and has a default.
35078
35079 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35080
35081 Improve grub-mkconfig performance when there are several menu
35082 entries on a single filesystem.
35083
35084 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35085 prepare_grub_to_access_device.
35086 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35087 * util/grub.d/30_os-prober.in: Likewise.
35088
35089 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35090
35091 * util/grub.d/10_freebsd.in: Remove.
35092 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35093 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35094
35095 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35096
35097 * docs/grub.cfg: Fix example usage of *BSD loaders.
35098
35099 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35100
35101 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35102 grub_util_error() call.
35103
35104 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35105
35106 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35107 `reserved_first_sector' member.
35108 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35109 `reserved_first_sector' to 1.
35110 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35111 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35112 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35113 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35114 filesystems which begin at first sector.
35115 (options): New option --skip-fs-probe.
35116 (main): Handle --skip-fs-probe and pass it to setup().
35117
35118 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35119
35120 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35121 (memset): Fix function prototype.
35122
35123 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35124 2009-10-25 Vasily Averin <vvs@parallels.com>
35125
35126 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35127 `dirent.direntlen == 0'.
35128
35129 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35130
35131 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35132 `cpio'.
35133 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35134
35135 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35136
35137 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35138 `__trampoline_setup' and `__ucmpdi2'.
35139 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35140 that libgcc provides.
35141
35142 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35143
35144 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35145 * include/grub/sparc64/libgcc.h (memset): Likewise.
35146 * include/grub/misc.h (memset, memcmp): New function prototypes.
35147
35148 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35149
35150 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35151 `cpio'.
35152 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35153
35154 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35155
35156 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35157 * docs/grub.cfg: Compensate for recent change in multiboot
35158 loader (since 2009-08-14 it won't pass filename to payload).
35159 * util/grub.d/10_hurd.in: Likewise.
35160
35161 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35162
35163 * config.guess: Update to latest version from config git
35164 repository.
35165 * config.sub: Likewise.
35166
35167 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35168
35169 Fix build on sparc64.
35170
35171 * configure.ac: Perform checks for libgcc symbols before
35172 adding `-nostdlib' to LDFLAGS.
35173
35174 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35175
35176 Let user specify OpenBSD root device.
35177
35178 * loader/i386/bsd.c (openbsd_root): New variable.
35179 (openbsd_opts): New option 'root'.
35180 (OPENBSD_ROOT_ARG): New macro.
35181 (grub_openbsd_boot): Use 'openbsd_root'.
35182 (grub_cmd_openbsd): Fill 'openbsd_root'.
35183
35184 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35185
35186 * NEWS: Misc adjustments.
35187
35188 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35189
35190 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35191
35192 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35193
35194 * configure.ac: Bump version to 1.97.
35195
35196 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35197
35198 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35199 -mno-3dnow on x86 architectures. Some toolchains enable these
35200 features by default, but they rely on registers that aren't enabled
35201 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35202
35203 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35204
35205 Make entry text a bit more readable.
35206
35207 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35208
35209 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35210
35211 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35212
35213 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35214
35215 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35216 operations.
35217
35218 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35219
35220 * configure.ac: Add missing dollar.
35221
35222 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35223
35224 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35225
35226 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35227 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35228 exports.
35229 * include/grub/sparc64/libgcc.h: Likewise. Use
35230 preprocessor conditionals.
35231
35232 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35233
35234 * conf/common.rmk (grub-dumpbios): Remove rule.
35235 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35236 * util/grub-dumpbios.in: Remove file.
35237
35238 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35239
35240 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35241 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35242
35243 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35244 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35245 users.
35246
35247 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35248 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35249 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35250 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35251 users.
35252
35253 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35254
35255 * term/tparm.c: Switch to GPLv3.
35256
35257 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35258
35259 * include/grub/i386/cpuid.h: Add header protection.
35260
35261 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35262
35263 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35264
35265 * include/grub/i386/cpuid.h: New file.
35266 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35267 (has_longmode): Rename to ...
35268 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35269 `static' attribute.
35270 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35271 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35272 on a CPU that doesn't implement AMD64 instruction set.
35273
35274 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35275
35276 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35277 that version.texi is rebuilt on version number changes.
35278
35279 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35280
35281 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35282 Fixes bug #27602.
35283
35284 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35285
35286 * util/i386/pc/grub-install.in: Source
35287 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35288 that the --grub-probe option will work.
35289 * util/sparc64/ieee1275/grub-install.in: Likewise.
35290
35291 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35292
35293 * configure.ac: Bump version to 1.97~beta4.
35294
35295 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35296
35297 Resync grub-mkdevicemap in x86_64-efi.
35298
35299 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35300 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35301 `util/devicemap.c'.
35302
35303 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35304
35305 * util/grub-editenv.c (create_envblk_file): Write new block with a
35306 .new suffix and then rename it into place, to ensure atomic
35307 creation.
35308
35309 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35310
35311 Do not automatically install headers.
35312
35313 * Makefile.in (include_DATA): Remove. Update all users.
35314
35315 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35316
35317 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35318 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35319
35320 * util/osdetect.lua: Remove.
35321 * script/lua/lauxlib.c: Likewise.
35322 * script/lua/ldebug.c: Likewise.
35323 * script/lua/grub_main.c: Likewise.
35324 * script/lua/lauxlib.h: Likewise.
35325 * script/lua/ldebug.h: Likewise.
35326 * script/lua/ltablib.c: Likewise.
35327 * script/lua/liolib.c: Likewise.
35328 * script/lua/lstrlib.c: Likewise.
35329 * script/lua/lualib.h: Likewise.
35330 * script/lua/ldo.c: Likewise.
35331 * script/lua/ldump.c: Likewise.
35332 * script/lua/ldo.h: Likewise.
35333 * script/lua/loslib.c: Likewise.
35334 * script/lua/lundump.c: Likewise.
35335 * script/lua/grub_lib.c: Likewise.
35336 * script/lua/ldblib.c: Likewise.
35337 * script/lua/lundump.h: Likewise.
35338 * script/lua/lmem.c: Likewise.
35339 * script/lua/grub_lib.h: Likewise.
35340 * script/lua/lmathlib.c: Likewise.
35341 * script/lua/lstate.c: Likewise.
35342 * script/lua/ltm.c: Likewise.
35343 * script/lua/lvm.c: Likewise.
35344 * script/lua/lmem.h: Likewise.
35345 * script/lua/lstate.h: Likewise.
35346 * script/lua/ltm.h: Likewise.
35347 * script/lua/ltable.c: Likewise.
35348 * script/lua/lvm.h: Likewise.
35349 * script/lua/llex.c: Likewise.
35350 * script/lua/lgc.c: Likewise.
35351 * script/lua/grub_lua.h: Likewise.
35352 * script/lua/loadlib.c: Likewise.
35353 * script/lua/lfunc.c: Likewise.
35354 * script/lua/lopcodes.c: Likewise.
35355 * script/lua/lparser.c: Likewise.
35356 * script/lua/ltable.h: Likewise.
35357 * script/lua/llex.h: Likewise.
35358 * script/lua/lgc.h: Likewise.
35359 * script/lua/lfunc.h: Likewise.
35360 * script/lua/lbaselib.c: Likewise.
35361 * script/lua/lopcodes.h: Likewise.
35362 * script/lua/lparser.h: Likewise.
35363 * script/lua/lzio.c: Likewise.
35364 * script/lua/linit.c: Likewise.
35365 * script/lua/lobject.c: Likewise.
35366 * script/lua/llimits.h: Likewise.
35367 * script/lua/lstring.c: Likewise.
35368 * script/lua/lzio.h: Likewise.
35369 * script/lua/lapi.c: Likewise.
35370 * script/lua/lcode.c: Likewise.
35371 * script/lua/lua.h: Likewise.
35372 * script/lua/lobject.h: Likewise.
35373 * script/lua/lstring.h: Likewise.
35374 * script/lua/lapi.h: Likewise.
35375 * script/lua/lcode.h: Likewise.
35376 * script/lua/luaconf.h: Likewise.
35377
35378 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35379
35380 * docs/grub.texi (Command-line and menu entry commands): Document
35381 date and echo commands.
35382
35383 2009-09-24 Pavel Roskin <proski@gnu.org>
35384
35385 * include/grub/kernel.h (struct grub_module_header): Remove
35386 `grub_module_header_types'. Make `type' unsigned. Make `size'
35387 32-bit on all platforms.
35388 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35389 8-bit field. Use grub_host_to_target32() for `size'.
35390 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35391 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35392 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35393
35394 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35395
35396 Fix "lost keypress" bug in at_keyboard.
35397
35398 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35399 Checks for readyness of input buffer (without flushing it).
35400 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35401 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35402
35403 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35404
35405 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35406 size check within GRUB_MACHINE_PCBIOS section.
35407
35408 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35409
35410 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35411 return value.
35412 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35413 KEYBOARD_ISREADY check.
35414 (grub_at_keyboard_checkkey): Rename to ...
35415 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35416 Remove gratuitous cast.
35417
35418 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35419
35420 * configure.ac: Call AC_PROG_MKDIR_P.
35421 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35422 version.texi in $(builddir) rather than $(srcdir).
35423 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35424 to makeinfo's @include search path.
35425
35426 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35427
35428 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35429
35430 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35431
35432 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35433 for `*.dpkg-new'.
35434
35435 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35436
35437 Build info documentation. Some code borrowed from Automake.
35438
35439 * configure.ac: Check for makeinfo.
35440 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35441 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35442 docs/version.texi.
35443 (MOSTLYCLEANFILES): Add vti.tmp.
35444 (docs/version.texi, docs/stamp-vti): Update automatically.
35445 (docs/grub.info): Build info documentation. Use --force and ignore
35446 errors for now.
35447 (all-local): Add $(INFOS).
35448 (install-local): Install info files.
35449 (uninstall): Uninstall info files.
35450 * docs/version.texi: Remove from revision control. This file is
35451 automatically generated on build now.
35452 * gendistlist.sh: Add `*.info'.
35453
35454 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35455
35456 * kern/term.c: Fix indentation.
35457
35458 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35459
35460 * util/hostdisk.c: Fix a comment.
35461
35462 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35463
35464 Fix regression introduced in r2539.
35465
35466 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35467 to 0xA1.
35468
35469 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35470
35471 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35472 os-prober. Under normal operation, it does not print anything to
35473 stderr; if it does, we need to debug it, and throwing away stderr
35474 makes that excessively difficult.
35475
35476 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35477
35478 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35479
35480 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35481
35482 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35483 AC_LANG_PROGRAM from autoconf.
35484 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35485 prototypes (fixes warning).
35486
35487 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35488 `--disable-werror' was used.
35489
35490 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35491
35492 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35493 uninitialized `lastaddr'.
35494
35495 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35496
35497 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35498
35499 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35500
35501 * commands/test.c (get_fileinfo): Return immediately if
35502 grub_fs_probe fails.
35503
35504 2009-09-14 José Martínez <xosemp@gmail.com>
35505
35506 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35507
35508 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35509
35510 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35511 output.
35512
35513 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35514
35515 * configure.ac: Remove --enable-grub-pe2elf. Only build
35516 grub-pe2elf when needed by the build system itself.
35517 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35518
35519 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35520
35521 * configure.ac: Bump version to 1.97~beta3.
35522 * docs/version.texi: Likewise.
35523
35524 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35525
35526 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35527 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35528 from here ...
35529 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35530 (grub_linux_setup_video): ... to here (with some adjustments).
35531
35532 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35533
35534 Fix memory corruption issue (spotted by Colin Watson).
35535
35536 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35537 causing returned size to be stored in an incorrect memory location.
35538 Fix use of uninitialized value when storing the returned size.
35539
35540 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35541
35542 Change clean rules to properly remove files
35543
35544 * genmk.rb: add new clean rules
35545 * Makefile.in (clean): add the new targets
35546 (mostlyclean): likewise
35547
35548 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35549
35550 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35551 to grub_uint64_t.
35552 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35553 non-resident files.
35554
35555 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35556
35557 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35558 part of bug #27349.
35559
35560 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35561
35562 * util/grub-mkconfig.in: Make the created config mode 400 and
35563 print a warning if it fails.
35564
35565 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35566
35567 * util/grub.d/40_custom.in: Ask user to type custom entries below
35568 comment, rather than below 'exec tail' line.
35569
35570 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35571
35572 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35573 visible in grub.cfg.
35574
35575 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35576
35577 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35578 file.
35579
35580 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35581
35582 * docs/grub.cfg: Add an example menu entry for memtest86+.
35583
35584 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35585
35586 * config.guess: Update to latest version from config git.
35587 * config.sub: Likewise.
35588
35589 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35590
35591 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35592 unknown-command case. Fixes bug #27320.
35593
35594 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35595
35596 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35597 `help' if the command exists.
35598
35599 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35600
35601 * INSTALL: Require GCC 4.1.3 or later.
35602
35603 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35604
35605 * Makefile.in (RMKFILES): add i386-qemu.rmk
35606 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35607 $(srcdir)/stamp-h.in
35608
35609 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35610
35611 * util/grub-probe.c (probe): Comment out buggy codepath, which
35612 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35613 should be re-enabled after 1.97.
35614
35615 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35616
35617 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35618 find searches for.
35619
35620 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35621
35622 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35623 unnecessary calls to grub_error.
35624
35625 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35626
35627 * NEWS: Mention `keystatus' and Unicode fonts.
35628
35629 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35630
35631 * configure.ac: Bump version to 1.97~beta2.
35632 * docs/version.texi: Likewise.
35633
35634 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35635
35636 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35637 containing unwind information in some cases where it previously did
35638 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35639 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35640 discussion.
35641
35642 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35643
35644 Embedding loadenv module into grub-emu
35645
35646 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35647 commands/loadenv.c
35648 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35649 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35650 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35652 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35653 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35654
35655 2009-09-03 Magnus Granberg <zorry@ume.nu>
35656
35657 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35658 include -fPIE in the default specs.
35659 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35660 to TARGET_CFLAGS.
35661
35662 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35663
35664 * INSTALL: Note that GNU Bison 2.3 or later is required.
35665
35666 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35667
35668 * kern/i386/pc/startup.S: Fix typo.
35669
35670 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35671
35672 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35673 according to GCS.
35674
35675 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35676
35677 * docs/grub.texi (Naming convention): Describe one-based partition
35678 numbering.
35679 (Device syntax): Likewise.
35680 (File name syntax): Likewise.
35681 (Block list syntax): Likewise.
35682 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35683 menu.lst.
35684 (File name syntax): Likewise.
35685 (Command-line and menu entry commands): Document acpi, blocklist,
35686 crc, export, insmod, keystatus, ls, set, and unset commands.
35687
35688 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35689
35690 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35691 to avoid implying that only one of --shift, --ctrl, or --alt may be
35692 used.
35693
35694 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35695
35696 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35697 rather than comparing against S_IFREG, which will almost never work.
35698
35699 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35700
35701 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35702 (write_blocklists): Likewise.
35703
35704 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35705
35706 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35707 argument to grub_printf.
35708
35709 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35710
35711 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35712 non GNU test.
35713
35714 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35715
35716 * kern/file.c (grub_file_read): Spelling fix
35717
35718 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35719
35720 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35721 loading of headers in some cases.
35722
35723 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35724
35725 * configure.ac: Bump version to 1.97~beta1.
35726 * docs/version.texi: Likewise.
35727
35728 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35729
35730 * include/grub/i386/xnu.h: Add license header.
35731 include grub/err.h explicitly.
35732
35733 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35734
35735 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35736 to `ufs' in the vfs.root.mountfrom kernel parameter.
35737
35738 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35739
35740 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35741
35742 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35743 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35744
35745 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35746 `ARRAY_SIZE' macro.
35747
35748 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35749
35750 * kern/file.c (grub_file_read): Check offset.
35751 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35752 * fs/jfs.c (grub_jfs_read_file): Likewise.
35753 * fs/ntfs.c (grub_ntfs_read): Likewise.
35754 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35755 * fs/minix.c (grub_minix_read_file): Correct offset check.
35756 * fs/ufs.c (grub_ufs_read_file): Likewise.
35757
35758 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35759
35760 * term/i386/pc/console.c (bios_data_area): Cast
35761 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35762
35763 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35764
35765 1-bit optimised blitters.
35766
35767 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35768 prototype.
35769 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35770 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35771 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35772 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35773 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35774 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35775 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35776 function.
35777 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35778 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35779 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35780 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35781 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35782 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35783 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35784 when possible.
35785 * video/video.c (grub_video_get_blit_format): Return
35786 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35787
35788 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35789
35790 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35791 the first argument to grub_printf.
35792
35793 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35794 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35795
35796 Add `getkeystatus' terminal method. Add a new `keystatus' command
35797 to query it.
35798
35799 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35800 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35801 modifier key bitmasks.
35802 (struct grub_term_input): Add `getkeystatus' member.
35803 (grub_getkeystatus): Add prototype.
35804 * kern/term.c (grub_getkeystatus): New function.
35805
35806 * include/grub/i386/pc/memory.h
35807 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35808 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35809 Data Area layout.
35810 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35811 (grub_console_term_input): Set `getkeystatus' member.
35812 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35813 constants.
35814 (grub_usb_keyboard_getreport): Likewise.
35815 (grub_usb_keyboard_checkkey): Likewise.
35816 (grub_usb_keyboard_getkeystatus): New function.
35817 (grub_usb_keyboard_term): Set `getkeystatus' member.
35818
35819 * commands/keystatus.c: New file.
35820 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35821 (keystatus_mod_SOURCES): New variable.
35822 (keystatus_mod_CFLAGS): Likewise.
35823 (keystatus_mod_LDFLAGS): Likewise.
35824 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35825 commands/keystatus.c.
35826 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35827 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35828 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35830 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35831 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35832
35833 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35834
35835 Split befs.mod and afs.mod into *_be.mod and *.mod
35836
35837 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35838 (grub_fstest_SOURCES): Likewise.
35839 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35840 (afs_be_mod_SOURCES): New variable.
35841 (afs_be_mod_CFLAGS): Likewise.
35842 (afs_be_mod_LDFLAGS): Likewise.
35843 (befs_be_mod_SOURCES): Likewise.
35844 (befs_be_mod_CFLAGS): Likewise.
35845 (befs_be_mod_LDFLAGS): Likewise.
35846 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35847 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35848 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35849 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35850 (grub_emu_SOURCES): Likewise.
35851 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35852 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35853 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35854 * fs/afs_be.c: New file.
35855 * fs/befs_be.c: New file.
35856 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35857 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35858 (U16): Replaced with ...
35859 (grub_afs_to_cpu16): ...this. All users updated.
35860 (U32): Replaced with ...
35861 (grub_afs_to_cpu32): ...this. All users updated.
35862 (U64): Replaced with ...
35863 (grub_afs_to_cpu64): ...this. All users updated.
35864 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35865 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35866 (grub_afs_validate_sblock): Check only one endianness.
35867 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35868 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35869 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35870 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35871 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35872 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35873 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35874 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35875
35876 2009-08-26 Bean <bean123ch@gmail.com>
35877
35878 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35879 64-bit number.
35880 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35881 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35882 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35883
35884 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35885
35886 NetBSD memory map support.
35887
35888 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35889 (grub_netbsd_btinfo_mmap_header): New structure.
35890 (grub_netbsd_btinfo_mmap_entry): Likewise.
35891 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35892
35893 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35894
35895 Enable bsd.mod on coreboot.
35896
35897 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35898 (bsd_mod_SOURCES): New variable.
35899 (bsd_mod_CFLAGS): Likewise.
35900 (bsd_mod_LDFLAGS): Likewise.
35901 (bsd_mod_ASFLAGS): Likewise.
35902 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35903 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35904
35905 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35906
35907 Cleanup NetBSD root support.
35908
35909 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35910 grub_bsd_get_device.
35911 Fix typo.
35912
35913 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35914
35915 * util/grub.d/00_header.in: Move check for the video backend of
35916 gfxterm from here ...
35917 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35918 a suitable video backend.
35919
35920 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35921
35922 Fix breakage in grub-setup.
35923
35924 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35925 "msdos_partition_map".
35926
35927 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35928
35929 Fix breakage in normal/auth.c.
35930
35931 * normal/auth.c (grub_iswordseparator): New function.
35932
35933 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35934
35935 Authentication support.
35936
35937 * commands/password.c: New file.
35938 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35939 (password_mod_SOURCES): New variable.
35940 (password_mod_CFLAGS): Likewise.
35941 (password_mod_LDFLAGS): Likewise.
35942 (normal_mod_SOURCES): Add normal/auth.c.
35943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35944 normal/auth.c.
35945 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35946 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35947 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35949 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35950 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35951 * include/grub/auth.h: New file.
35952 * include/grub/err.h (grub_err_t): New enum value
35953 GRUB_ERR_ACCESS_DENIED.
35954 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35955 'users'.
35956 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35957 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35958 users updated.
35959 * normal/auth.c: New file.
35960 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35961 (grub_cmdline_run): Don't allow to go to command line without
35962 authentication.
35963 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
35964 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
35965 menuentry without superuser rights.
35966 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
35967 user isn't a superuser.
35968
35969 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35970
35971 Save space by inlining misc.c functions.
35972
35973 * kern/misc.c (grub_iswordseparator): Made static.
35974 * kern/misc.c (grub_strcat): Moved from here ...
35975 * include/grub/misc.h (grub_strcat): ... here. Inlined.
35976 * kern/misc.c (grub_strncat): Moved from here ...
35977 * include/grub/misc.h (grub_strncat): ... here. Inlined.
35978 * kern/misc.c (grub_strcasecmp): Moved from here ...
35979 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
35980 * kern/misc.c (grub_strncasecmp): Moved from here ...
35981 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
35982 * kern/misc.c (grub_isalpha): Moved from here ...
35983 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
35984 * kern/misc.c (grub_isdigit): Moved from here ...
35985 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
35986 * kern/misc.c (grub_isgraph): Moved from here ...
35987 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
35988 * kern/misc.c (grub_tolower): Moved from here ...
35989 * include/grub/misc.h (grub_tolower): ... here. Inlined.
35990
35991 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
35992
35993 * script/sh/function.c (grub_script_function_find): Cut error message
35994 not to flood terminal.
35995 * script/sh/lexer.c (grub_script_yylex): Remove command line length
35996 limit.
35997 * script/sh/script.c (grub_script_arg_add): Duplicate string.
35998
35999 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36000
36001 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36002 `report' grub_uint8_t *.
36003 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36004 Use a 50-millisecond timeout rather than just repeating
36005 grub_usb_keyboard_getreport 50 times.
36006 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36007
36008 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36009
36010 Rename *_partition_map to part_*
36011
36012 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36013 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36014 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36015 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36016 All users updated.
36017 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36018 All users updated.
36019 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36020 * util/grub-probe.c (probe_partmap): Don't transform partition name
36021 to get module name.
36022
36023 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36024
36025 Fix OpenBSD and NetBSD support.
36026
36027 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36028 memory address conflict.
36029 (OPENBSD_MMAP_ACPI): New definition.
36030 (OPENBSD_MMAP_NVS): Likewise.
36031 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36032 and OPENBSD_MMAP_NVS.
36033 Add memory map terminator
36034 Explicit cast when calling grub_unix_real_boot.
36035 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36036
36037 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36038
36039 Let user specify NetBSD root device.
36040
36041 * loader/i386/bsd.c (netbsd_root): New variable.
36042 (netbsd_opts): New option 'root'.
36043 (NETBSD_ROOT_ARG): New macro.
36044 (grub_netbsd_boot): Use 'netbsd_root'.
36045 (grub_bsd_unload): Free 'netbsd_root'.
36046 (grub_cmd_netbsd): Fill 'netbsd_root'.
36047
36048 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36049
36050 Support for 64-bit NetBSD.
36051
36052 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36053 point when booting non-FreeBSD.
36054
36055 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36056
36057 Support --no-smp and --no-acpi for NetBSD.
36058
36059 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36060 (NETBSD_AB_NOACPI): Likewise.
36061 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36062 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36063
36064 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36065
36066 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36067 errors.
36068 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36069 errors. Call grub_error when needed.
36070
36071 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36072
36073 * commands/search.c (search_fs): Try searching without autoload first.
36074 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36075 filesystem module explicitly for faster booting.
36076
36077 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36078
36079 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36080
36081 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36082
36083 * util/grub.d/30_os-prober.in: Disable os-prober if
36084 `GRUB_DISABLE_OS_PROBER' was set to true.
36085
36086 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36087
36088 * partmap/pc.c: Rename to ...
36089 * partmap/msdos.c: ... this. Update all users.
36090 (grub_pc_partition_map): Rename to ...
36091 (grub_msdos_partition_map): ... this. Update all users.
36092
36093 * parttool/pcpart.c: Rename to ...
36094 * parttool/msdospart.c: ... this. Update all users.
36095
36096 * include/grub/pc_partition.h: Rename to ...
36097 * include/grub/msdos_partition.h: ... this. Update all users.
36098 (grub_pc_partition_bsd_entry): Rename to ...
36099 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36100 (grub_pc_partition_disk_label): Rename to ...
36101 (grub_msdos_partition_disk_label): ... this. Update all users.
36102 (grub_pc_partition_entry): Rename to ...
36103 (grub_msdos_partition_entry): ... this. Update all users.
36104 (grub_pc_partition_mbr): Rename to ...
36105 (grub_msdos_partition_mbr): ... this. Update all users.
36106 (grub_pc_partition): Rename to ...
36107 (grub_msdos_partition): ... this. Update all users.
36108 (grub_pc_partition_is_empty): Rename to ...
36109 (grub_msdos_partition_is_empty): ... this. Update all users.
36110 (grub_pc_partition_is_extended): Rename to ...
36111 (grub_msdos_partition_is_extended): ... this. Update all users.
36112 (grub_pc_partition_is_bsd): Rename to ...
36113 (grub_msdos_partition_is_bsd): ... this. Update all users.
36114
36115 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36116 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36117 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36118 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36119 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36120 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36121 (gpt_mod_LDFLAGS): Rename to ...
36122 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36123 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36124 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36125 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36126 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36127 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36128 (part_gpt_mod_LDFLAGS): ... this.
36129 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36130 `pcpart.mod' to `msdospart.mod'.
36131 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36132 to ...
36133 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36134 (msdospart_mod_LDFLAGS): ... this.
36135
36136 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36137
36138 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36139 (openbsd_opts): Likewise.
36140 (netbsd_opts): Likewise.
36141 (freebsd_flags): Added 0 terminator.
36142 (openbsd_flags): Likewise.
36143 (netbsd_flags): Likewise.
36144 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36145 (grub_cmd_freebsd): Transformed into extended command.
36146 (grub_cmd_openbsd): Likewise.
36147 (grub_cmd_netbsd): Likewise.
36148 (cmd_freebsd): Changed type to grub_extcmd_t.
36149 (cmd_openbsd): Likewise.
36150 (cmd_netbsd): Likewise.
36151 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36152 grub_cmd_openbsd as extended commands.
36153 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36154 cmd_netbsd and cmd_openbsd
36155
36156 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36157
36158 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36159
36160 2009-08-21 Pavel Roskin <proski@gnu.org>
36161
36162 * Makefile.in (install-local): When checking if a file is in the
36163 build directory, use "test -e" to detect symlinks.
36164
36165 * Makefile.in (install-local): Remove all files in
36166 $(DESTDIR)$(pkglibdir) before installing new files there.
36167
36168 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36169
36170 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36171 grub-mkelfimage.
36172
36173 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36174
36175 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36176 explicitly specified by the user.
36177
36178 2009-08-18 Pavel Roskin <proski@gnu.org>
36179
36180 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36181 grub_uint8_t pointer for data.
36182 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36183 Likewise.
36184 * video/fb/fbutil.c: Remove unnecessary casts.
36185
36186 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36187
36188 VBE cleanup.
36189
36190 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36191 (grub_vbe_set_video_mode): Save active mode info
36192 only after setting the mode.
36193 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36194 second argument.
36195
36196 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36197
36198 Rename variables for clarity.
36199
36200 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36201 (active_vbe_mode_info): ... this. All users updated.
36202 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36203 All users updated.
36204 (initial_mode): Rename to ...
36205 (initial_vbe_mode): ... this. All users updated.
36206 (mode_in_use): Rename to ..
36207 (vbe_mode_in_use): ... this. All users updated.
36208 (mode_list): Rename to ..
36209 (vbe_mode_list): ... this. All users updated.
36210 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36211 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36212 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36213 'mode_list_size' to 'vbe_mode_list_size'.
36214 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36215 'best_mode_info' to 'best_vbe_mode_info' and
36216 'best_mode' to 'best_vbe_mode'
36217
36218 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36219
36220 Remove duplicate grub_video_fb_get_video_ptr.
36221
36222 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36223 (grub_video_fb_get_video_ptr): ... this.
36224 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36225 * video/fb/fbutil.c: Add comment about addressing.
36226 (get_data_ptr): Rename to ...
36227 (grub_video_fb_get_video_ptr): ... this. All users updated.
36228 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36229
36230 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36231
36232 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36233 grub_dprintf() that was just added.
36234
36235 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36236
36237 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36238 (DEFAULT_VIDEO_MODE): Remove macros.
36239 (grub_linux_boot): Remove assumption that Linux has FB support,
36240 and use "text" as default video mode.
36241
36242 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36243
36244 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36245 grub_dprintf.
36246 * fs/fat.c (grub_fat_read_data): Likewise.
36247
36248 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36249
36250 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36251 payload.
36252 (grub_module): Likewise.
36253
36254 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36255
36256 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36257 mbi->cmdline but free playground.
36258
36259 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36260
36261 Handle group offset on UFS1.
36262
36263 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36264 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36265
36266 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36267
36268 Split ufs.mod into ufs1.mod and ufs2.mod.
36269
36270 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36271 (grub_fstest_SOURCES): Likewise.
36272 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36273 (ufs_mod_SOURCES): Remove.
36274 (ufs_mod_CFLAGS): Likewise.
36275 (ufs_mod_LDFLAGS): Likewise.
36276 (ufs1_mod_SOURCES): New variable.
36277 (ufs1_mod_CFLAGS): Likewise.
36278 (ufs1_mod_LDFLAGS): Likewise.
36279 (ufs2_mod_SOURCES): New variable.
36280 (ufs2_mod_CFLAGS): Likewise.
36281 (ufs2_mod_LDFLAGS): Likewise.
36282 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36283 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36284 Likewise.
36285 (grub_emu_SOURCES): Likewise.
36286 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36287 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36288 (grub_setup_SOURCES): Likewise.
36289 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36290 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36291 (grub_setup_SOURCES): Likewise.
36292 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36293 Likewise.
36294 * fs/ufs2.c: New file.
36295 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36296
36297 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36298
36299 Framebuffer split.
36300
36301 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36302 subsystem at the end.
36303 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36304 (video_fb_mod_SOURCES): New variable.
36305 (video_fb_mod_CFLAGS): Likewise.
36306 (video_fb_mod_LDFLAGS): Likewise.
36307 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36308 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36309 * video/i386/pc/vbeblit.c: Moved from here ...
36310 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36311 * video/i386/pc/vbefill.c: Moved from here ...
36312 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36313 * video/i386/pc/vbeutil.c: Moved from here ...
36314 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36315 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36316 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36317 * include/grub/i386/pc/vbefill.h: Moved from here ...
36318 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36319 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36320 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36321 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36322 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36323 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36324 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36325 (grub_video_adapter): Added 'get_info_and_fini'.
36326 (grub_video_get_info_and_fini): New prototype.
36327 (grub_video_set_mode): make modestring const char *.
36328 * loader/i386/linux.c (grub_linux_setup_video): Use
36329 grub_video_get_info_and_fini.
36330 (grub_linux_boot): Move modesetting just before booting.
36331 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36332 grub_video_get_info_and_fini.
36333 * video/i386/pc/vbe.c: Moved framebuffer part ...
36334 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36335 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36336 grub_video_fbstd_colors and grub_video_fb_set_palette.
36337 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36338 grub_video_fb_init.
36339 (grub_video_vbe_fini): Use grub_video_fb_fini.
36340 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36341 render_target and use grub_video_fb_set_active_render_target and
36342 grub_video_fb_set_palette.
36343 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36344 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36345 (grub_video_vbe_adapter): Use framebuffer.
36346 * video/video.c (grub_video_get_info_and_fini): New function.
36347 (grub_video_set_mode): Make modestring const char *.
36348 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36349 values are already initialised.
36350
36351 2009-08-14 Pavel Roskin <proski@gnu.org>
36352
36353 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36354 ABS and APPLE_CC.
36355 * boot/i386/pc/diskboot.S: Likewise.
36356 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36357 sectors allow compilation on MacOSX.
36358 * conf/i386-pc.rmk: Enable unconditional compilation of
36359 lnxboot.img.
36360
36361 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36362
36363 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36364 * util/grub.d/00_header.in: Enter interruptible sleep if
36365 GRUB_HIDDEN_TIMEOUT is set.
36366
36367 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36368
36369 * include/grub/symbol.h: Add the LOCAL macro.
36370 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36371 starting with "L_".
36372
36373 2009-08-13 Pavel Roskin <proski@gnu.org>
36374
36375 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36376 any modern compilers we support.
36377
36378 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36379 Use local labels starting with "L_" so that Apple assembler
36380 knows they are local.
36381
36382 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36383
36384 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36385 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36386 (bsd_kernel_types): ... this enum.
36387
36388 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36389 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36390 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36391
36392 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36393 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36394 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36395 messages.
36396
36397 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36398
36399 * util/grub-dumpdevtree: Moved from here ...
36400 * util/i386/efi/grub-dumpdevtree: ... to here.
36401 (hexify): New function. Converts a string to its hex version.
36402 Generate hex versions of "efi" and "device-properties" by calling
36403 hexify() on the ASCII strings rather than by hardcoding numbers.
36404
36405 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36406
36407 * fs/jfs.c: Update copyright year.
36408
36409 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36410
36411 * util/grub.d/00_header.in: Fix a comment.
36412 * util/grub.d/10_linux.in: Likewise.
36413 * util/grub.d/10_windows.in: Likewise.
36414 * util/grub.d/10_hurd.in: Likewise.
36415
36416 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36417
36418 * util/grub-mkconfig.in: Allow the user to specify the used font
36419 with GRUB_FONT.
36420
36421 2009-08-08 Pavel Roskin <proski@gnu.org>
36422
36423 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36424 available, xfs.mod needs it now.
36425
36426 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36427 the "g" modifier in sed when the intention is to strip something
36428 once. This fixes comparison of kernels with multiple dashes.
36429
36430 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36431 on it. Add missing space before closing bracket. Fix
36432 misleading formatting.
36433
36434 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36435
36436 * docs/grub.texi: Major overhaul. Remove all sections that are
36437 specific to GRUB Legacy, or mostly composed of Legacy-specific
36438 information.
36439
36440 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36441
36442 * docs/version.texi: New file. Provides version information for
36443 grub.texi.
36444
36445 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36446
36447 * docs/grub.texi: Update CVS information to SVN.
36448 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36449
36450 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36451
36452 * util/grub-mkconfig.in: Remove a wrong `fi'.
36453
36454 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36455
36456 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36457 (grub_jfs_uuid): New function.
36458 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36459
36460 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36461
36462 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36463 of it to ...
36464 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36465 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36466
36467 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36468
36469 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36470 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36471 Update all users.
36472
36473 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36474 not just "vmlinu[zx]".
36475 Moved from here ...
36476 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36477 all users.
36478
36479 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36480 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36481 all users.
36482
36483 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36484
36485 * util/grub.d/10_freebsd.in: Use an absolute device path for
36486 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36487
36488 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36489
36490 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36491 handling of multiple abstraction modules.
36492
36493 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36494
36495 Fix a bug resulting in black screen when loading Linux using a
36496 packed video mode.
36497
36498 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36499 function.
36500
36501 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36502 (grub_vbe_bios_getset_dac_palette_width): New function.
36503 (grub_vbe_bios_get_dac_palette_width)
36504 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36505 grub_vbe_bios_getset_dac_palette_width()).
36506
36507 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36508 check for return status.
36509 (grub_vbe_get_video_mode_info): When getting information for a packed
36510 mode (<= 8 bpp), obtain DAC palette width using
36511 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36512 {red,green,blue}_mark_size.
36513
36514 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36515
36516 * commands/search.c (options): Fix help output to match actual code.
36517
36518 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36519
36520 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36521 of homegrown code.
36522
36523 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36524
36525 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36526 on XFS or ReiserFS.
36527
36528 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36529
36530 Support Apple partition map with sector size different from 512 bytes.
36531
36532 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36533 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36534 and 'apart.partmap_size'.
36535
36536 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36537 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36538
36539 Fix cpuid command.
36540
36541 * commands/i386/cpuid.c (options): New variable.
36542 (grub_cmd_cpuid): Return real error.
36543 (GRUB_MOD_INIT(cpuid)): Declare options.
36544
36545 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36546
36547 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36548 valid.
36549
36550 2009-07-31 Bean <bean123ch@gmail.com>
36551
36552 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36553 log2_inode.
36554 (grub_fshelp_node): Move inode field to the end.
36555 (grub_xfs_data): Remove inode field.
36556 (grub_xfs_inode_block): Calculate inode size using sblock.
36557 (grub_xfs_inode_offset): Likewise.
36558 (grub_xfs_read_inode): Calculate inode size using sblock.
36559 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36560 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36561 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36562 to match inode size.
36563 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36564 not accessible when data is null.
36565 (grub_xfs_open): Likewise.
36566
36567 2009-07-31 Bean <bean123ch@gmail.com>
36568
36569 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36570 Don't change pv->disk if it's already set.
36571
36572 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36573 (grub_raid_register): ... here.
36574 (grub_raid_rescan): Removed.
36575
36576 * include/grub/raid.h (grub_raid_rescan): Removed.
36577
36578 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36579 (fstest): Replace grub_raid_rescan with module fini function followed
36580 by init function.
36581
36582 * util/grub-probe.c: Add include file <grub/raid.h>.
36583 (probe_raid_level): New function.
36584 (probe): Detect abstraction by walking the disk device, support two
36585 level of abstraction (LVM on RAID) when detecting partition map.
36586
36587 2009-07-31 Pavel Roskin <proski@gnu.org>
36588
36589 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36590 to grub_zalloc(), it was erroneous.
36591 Reported by Bean <bean123ch@gmail.com>
36592
36593 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36594
36595 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36596 embedding zone, not only the first one.
36597
36598 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36599
36600 * term/gfxterm.c (clear_char): New function.
36601 (grub_virtual_screen_setup): Use clear_char.
36602 (scroll_up): Likewise.
36603 (grub_virtual_screen_cls): Likewise.
36604
36605 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36606
36607 * util/deviceiter.c (get_acceleraid_disk_name): New static
36608 function.
36609 (grub_util_iterate_devices): Handle Accelraid devices.
36610 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36611
36612 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36613
36614 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36615 separator for the suggested gfxpayload string (';' collides with the
36616 parser and needs escaping).
36617
36618 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36619
36620 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36621 Clear direction flag before jumping to OS.
36622 (grub_multiboot2_real_boot): Likewise.
36623
36624 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36625
36626 * util/i386/pc/grub-install: Fix parsing of --disk-module
36627 option.
36628
36629 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36630
36631 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36632 when embedding.
36633
36634 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36635
36636 * util/grub-mkconfig.in (package_version): New variable.
36637 Use it do display the version.
36638
36639 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36640
36641 * kern/file.c (grub_file_open): Revert to previous check with
36642 grub_errno.
36643
36644 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36645
36646 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36647 from help line. It's out of sync with code.
36648
36649 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36650
36651 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36652 entries on failed boot.
36653
36654 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36655
36656 * kern/file.c (grub_file_open): Fix an error check.
36657
36658 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36659
36660 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36661 partition map couldn't be identified.
36662
36663 2009-07-23 Pavel Roskin <proski@gnu.org>
36664
36665 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36666 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36667 case of little endian words becomes just an optimization.
36668 Respect const modifier.
36669 (md5_final): Use code that doesn't depend on endianness.
36670
36671 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36672 to avoid loss of upper bits if align is unsigned and shorter
36673 than addr.
36674
36675 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36676
36677 UUID support for UFS
36678
36679 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36680 (grub_ufs_uuid): New function.
36681 (grub_ufs_fs): add .uuid
36682
36683 2009-07-21 Pavel Roskin <proski@gnu.org>
36684
36685 * kern/dl.c (grub_dl_check_header): Make static.
36686
36687 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36688
36689 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36690 add drivemap for Vista. It breaks Windows 7.
36691
36692 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36693
36694 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36695 128 bytes
36696
36697 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36698
36699 Add BFS support
36700
36701 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36702 (grub_fstest_SOURCES): Likewise.
36703 (pkglib_MODULES): Add befs.mod.
36704 (befs_mod_SOURCES): New variable.
36705 (befs_mod_CFLAGS): Likewise.
36706 (befs_mod_LDFLAGS): Likewise.
36707 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36708 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36709 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36710 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36711 (grub_setup_SOURCES): Likewise.
36712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36713 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36714 (grub_setup_SOURCES): Likewise.
36715 * fs/befs.c: New file.
36716 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36717 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36718 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36719 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36720 (B_KEY_INDEX_ALIGN): New declaration.
36721 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36722 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36723 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36724 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36725 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36726 (grub_afs_mount) [MODE_BFS]: Likewise.
36727 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36728 (grub_afs_fs): Use GRUB_AFS_FSNAME
36729 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36730 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36731 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36732 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36733
36734 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36735
36736 * util/getroot.c (find_root_device): Add support for MacOSX.
36737 * util/hostdisk.c: Likewise.
36738
36739 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36740
36741 * font/font.c (find_glyph): Check whether a font is present to avoid
36742 segmentation fault.
36743
36744 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36745
36746 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36747
36748 2009-07-20 Pavel Roskin <proski@gnu.org>
36749
36750 * configure.ac: Trim excessively wordy excuses.
36751
36752 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36753
36754 Add symlink, mtime and label support to AtheFS.
36755
36756 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36757 (grub_afs_iterate_dir): Handle symlinks.
36758 (grub_afs_open): Use grub_afs_read_symlink.
36759 (grub_afs_dir): Likewise.
36760 Pass mtime.
36761 (grub_afs_label): New function.
36762 (grub_afs_fs): Add grub_afs_label.
36763 (grub_afs_read_symlink): New function.
36764
36765 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36766
36767 Fix AtheFS support.
36768
36769 * fs/afs.c: Fix comments style.
36770 (grub_afs_blockrun): Declare as packed.
36771 (grub_afs_datastream): Likewise.
36772 (grub_afs_bnode): Likewise.
36773 (grub_afs_btree): Likewise.
36774 (grub_afs_sblock): Likewise.
36775 Declare `name' as char.
36776 (grub_afs_inode): Declare as packed.
36777 Change void *vnode to grub_uint32_t unused.
36778 (grub_afs_iterate_dir): Check that key_size is positive.
36779 (grub_afs_mount): Don't read superblock twice.
36780 (grub_afs_dir): Don't free node in case of error,
36781 grub_fshelp_find_file already handles this.
36782 (grub_afs_open): Likewise.
36783
36784 2009-07-19 Pavel Roskin <proski@gnu.org>
36785
36786 * Makefile.in: Remove LIBLZO and enable_lzo.
36787 * conf/i386-pc.rmk: Remove lzo support.
36788 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36789 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36790 support.
36791 * kern/i386/pc/lzo1x.S: Remove.
36792 * kern/i386/pc/startup.S: Remove lzo support.
36793 * util/i386/pc/grub-mkimage.c: Likewise.
36794
36795 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36796
36797 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36798 * fs/xfs.c (grub_xfs_dir): Likewise.
36799 * fs/afs.c (grub_afs_dir): Likewise.
36800 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36801 (grub_iso9660_open): Likewise.
36802 * fs/jfs.c (grub_jfs_open): Likewise.
36803 * fs/ext2.c (grub_ext2_dir): Likewise.
36804 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36805 * script/sh/lexer.c (grub_script_yylex): Likewise.
36806
36807 2009-07-16 Pavel Roskin <proski@gnu.org>
36808
36809 * configure.ac: Never add "-c" to CFLAGS.
36810
36811 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36812
36813 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36814 grub_cv_cc_efiemu should be used.
36815
36816 * configure.ac: Typo fixes.
36817
36818 * kern/mm.c (grub_zalloc): New function.
36819 (grub_debug_zalloc): Likewise.
36820 * include/grub/mm.h: Declare grub_zalloc() and
36821 grub_debug_zalloc().
36822 * util/misc.c (grub_zalloc): New function.
36823 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36824 instead of grub_malloc(), remove unneeded initializations.
36825 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36826 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36827 * commands/parttool.c (grub_cmd_parttool): Likewise.
36828 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36829 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36830 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36831 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36832 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36833 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36834 (grub_cmd_efiemu_pnvram): Likewise.
36835 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36836 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36837 (grub_iso9660_iterate_dir): Likewise.
36838 * fs/jfs.c (grub_jfs_opendir): Likewise.
36839 * fs/ntfs.c (list_file): Likewise.
36840 (grub_ntfs_mount): Likewise.
36841 * kern/disk.c (grub_disk_open): Likewise.
36842 * kern/dl.c (grub_dl_load_core): Likewise.
36843 * kern/elf.c (grub_elf_file): Likewise.
36844 * kern/env.c (grub_env_context_open): Likewise.
36845 (grub_env_set): Likewise.
36846 (grub_env_set_data_slot): Likewise.
36847 * kern/file.c (grub_file_open): Likewise.
36848 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36849 * loader/i386/multiboot.c (grub_module): Likewise.
36850 * loader/xnu.c (grub_xnu_create_key): Likewise.
36851 (grub_xnu_create_value): Likewise.
36852 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36853 (read_config_file): Likewise.
36854 * normal/menu_entry.c (make_screen): Likewise.
36855 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36856 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36857 * script/sh/script.c (grub_script_parse): Likewise.
36858 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36859 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36860 * video/readers/png.c (grub_png_output_byte): Likewise.
36861 (grub_video_reader_png): Likewise.
36862
36863 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36864
36865 Enable all targets that can be built by default
36866
36867 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36868 grub-mkfont and grub-fstest if they can be built
36869
36870 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36871
36872 Fix hang and segmentation fault in grub-emu-usb
36873
36874 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36875 * util/usb.c (grub_libusb_devices): likewise
36876 (grub_libusb_init): rename to ...
36877 (GRUB_MOD_INIT (libusb)):...this
36878 (grub_libusb_fini): rename to ..
36879 (GRUB_MOD_FINI (libusb)):...this
36880 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36881 * include/grub/disk.h (grub_raid_init): removed, it's useless
36882 (grub_raid_fini): likewise
36883 (grub_lvm_init): likewise
36884 (grub_lvm_fini): likewise
36885 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36886 by grub_init_all
36887
36888 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36889
36890 Fix libusb
36891
36892 * Makefile.in (LIBUSB): new macro
36893 * genmk.rb (Utility/print_tail): new method
36894 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36895 (top level): call util.print_tail at the end.
36896
36897 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36898
36899 Make FreeBSD accept zpool.cache
36900
36901 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36902 type is /boot/zfs/zpool.cache
36903
36904 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36905
36906 Fix 64-bit efiemu
36907
36908 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36909 correct wrong typedef
36910 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36911
36912 2009-07-15 Pavel Roskin <proski@gnu.org>
36913
36914 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36915 * kern/disk.c (struct grub_disk_cache): Likewise.
36916
36917 * commands/probe.c (options): Typo fix.
36918
36919 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36920 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36921 accordingly.
36922 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36923
36924 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36925 the end of "Error" to make the message more readable.
36926
36927 * boot/i386/pc/boot.S (kernel_segment): Remove.
36928 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36929 for destination.
36930
36931 * boot/i386/pc/boot.S (boot_version): Remove.
36932 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36933 Remove.
36934
36935 * include/grub/i386/pc/boot.h: Sort all offsets.
36936 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36937 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36938 * boot/i386/pc/boot.S: Assert location of every offset listed in
36939 include/grub/i386/pc/boot.h.
36940
36941 2009-07-13 Pavel Roskin <proski@gnu.org>
36942
36943 * include/grub/i386/coreboot/machine.h: Rename
36944 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36945 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36946 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36947
36948 * kern/dl.c: Force native word size to suppress warnings when
36949 compiling grub-emu.
36950
36951 * kern/device.c (grub_device_iterate): Change struct part_ent to
36952 hold the name, not a pointer to it. Use one grub_malloc() per
36953 partition, not two. Free partition_name if grub_malloc() fails.
36954 Set ents to NULL only before grub_partition_iterate() is called.
36955
36956 2009-07-11 Bean <bean123ch@gmail.com>
36957
36958 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36959 childname.
36960
36961 2009-07-10 Bean <bean123ch@gmail.com>
36962 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
36963
36964 * kern/ieee1275/openfw.c (grub_children_iterate)
36965 (grub_devalias_iterate): Fix size evaluation for property or path
36966 strings, which was broken since r2132.
36967
36968 2009-07-07 Pavel Roskin <proski@gnu.org>
36969
36970 * commands/search.c (search_file): Merge into ...
36971 (search_fs): ... this. Accept search type as argument.
36972 (grub_cmd_search): Pass search type to search_fs().
36973
36974 * include/grub/util/console.h: New file.
36975 * util/console.c: Use it instead of grub/machine/console.h.
36976 * util/grub-emu.c: Likewise.
36977
36978 * lib/arg.c (find_long_option): Remove.
36979 (find_long): Add `len' argument, make `s' const char *.
36980 (grub_arg_parse): Parse long options in place, not in a
36981 temporary buffer.
36982
36983 2009-07-06 Pavel Roskin <proski@gnu.org>
36984
36985 * commands/search.c (search_fs): Fix potential NULL pointer
36986 dereference.
36987
36988 * commands/search.c (search_fs): Replace QUID macro with quid_fn
36989 function pointer.
36990
36991 2009-07-06 Daniel Mierswa <impulze@impulze.org>
36992
36993 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
36994 comparison.
36995
36996 2009-07-05 Pavel Roskin <proski@gnu.org>
36997
36998 * include/grub/i386/linux.h (struct linux_kernel_params):
36999 Restore padding3, it's still needed.
37000
37001 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37002 FreeBSD.
37003 * util/osdetect.lua: Likewise.
37004
37005 2009-07-05 Bean <bean123ch@gmail.com>
37006
37007 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37008
37009 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37010 (grub_lua_getenv): Likewise.
37011 (grub_lua_setenv): Likewise.
37012 (save_errno): New function.
37013 (push_result): Likewise.
37014 (grub_lua_enum_device): Likewise.
37015 (grub_lua_enum_file): Likewise.
37016 (grub_lua_file_open): Likewise.
37017 (grub_lua_file_close): Likewise.
37018 (grub_lua_file_seek): Likewise.
37019 (grub_lua_file_read): Likewise.
37020 (grub_lua_file_getline): Likewise.
37021 (grub_lua_file_getsize): Likewise.
37022 (grub_lua_file_getpos): Likewise.
37023 (grub_lua_file_eof): Likewise.
37024 (grub_lua_file_exist): Likewise.
37025 (grub_lua_add_menu): Likewise.
37026
37027 * script/lua/grub_lua.h (isupper): New inline function.
37028 (islower): Likewise.
37029 (ispunct): Likewise.
37030 (isxdigit): Likewise.
37031 (strcspn): Change to normal function.
37032 (strpbkr): New function declaration.
37033 (memchr): Likewise.
37034
37035 * script/lua/grub_main.c (scan_str): New function.
37036 (strcspn): Likewise.
37037 (strpbrk): Likewise.
37038 (memchr): Likewise.
37039
37040 * script/lua/linit.c (lualibs): Enable the string library.
37041
37042 * util/osdetect.lua: New file.
37043
37044 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37045
37046 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37047 `capabilities' member.
37048
37049 2009-07-02 Pavel Roskin <proski@gnu.org>
37050
37051 * genparttoollist.sh: Add missing newline at the end.
37052
37053 2009-07-01 Pavel Roskin <proski@gnu.org>
37054
37055 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37056
37057 * util/hostdisk.c (open_device): Remove `const' from
37058 `sysctl_size', as sysctlbyname() can change it (in this case it
37059 doesn't actually happen).
37060
37061 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37062 using signed long int constants.
37063
37064 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37065 constant to avoid a warning on FreeBSD.
37066
37067 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37068 where it's needed.
37069
37070 * Makefile.in: Install include/grub/machine symlink.
37071
37072 * Makefile.in: When installing symlinks, use "cp -fR", which
37073 works on FreeBSD and MacOSX.
37074 From Yves Blusseau <cl7m42e02@sneakemail.com>
37075
37076 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37077 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37078
37079 * util/misc.c: Move grub_reboot() and grub_halt() ...
37080 * util/grub-emu.c: ... here. Make main_env static.
37081 * include/grub/util/misc.h: Remove main_env.
37082
37083 * kern/mm.c: Use correct format to print size_t.
37084
37085 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37086 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37087 * kern/powerpc/dl.c: Likewise.
37088 * kern/sparc64/dl.c: Likewise.
37089 * kern/x86_64/dl.c: Likewise.
37090
37091 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37092
37093 Fix grub-emu build on sparc64-ieee1275.
37094
37095 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37097
37098 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37099
37100 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37101 (grub_reboot, grub_halt): New functions.
37102
37103 * util/i386/pc/misc.c: Delete. Update all users.
37104 * util/sparc64/ieee1275/misc.c: Likewise.
37105 * util/powerpc/ieee1275/misc.c: Likewise.
37106
37107 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37108
37109 * conf/i386.rmk (setjmp_mod_SOURCES)
37110 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37111 * conf/common.rmk (setjmp_mod_SOURCES)
37112 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37113 to use $(target_cpu).
37114 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37115 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37116 * conf/powerpc-ieee1275.rmk: Likewise.
37117 * conf/sparc64-ieee1275.rmk: Likewise.
37118
37119 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37120 $(target_cpu) for kern/$(target_cpu)/dl.c.
37121 * conf/i386-efi.rmk: Likewise.
37122 * conf/i386-ieee1275.rmk: Likewise.
37123 * conf/x86_64-efi.rmk: Likewise.
37124 * conf/i386-coreboot.rmk: Likewise.
37125 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37126 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37127 kern/$(target_cpu)/cache.S.
37128 * conf/sparc64-ieee1275.rmk: Likewise.
37129
37130 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37131
37132 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37133 type to `grub_uint8_t', and adjust `padding9' accordingly.
37134
37135 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37136
37137 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37138
37139 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37140 assembly in final jump, using register constraints.
37141
37142 (grub_linux_boot): For text mode, initialize `have_vga' using
37143 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37144
37145 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37146 right before the final jump.
37147
37148 Set `video_mode' to 0x3.
37149
37150 Document initialization of `video_page', `video_mode' and
37151 `video_ega_bx'.
37152
37153 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37154
37155 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37156 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37157 and set GRUB_LINUX_FLAG_QUIET appropriately.
37158
37159 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37160
37161 Fix build on Debian / sparc.
37162
37163 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37164
37165 2009-06-28 Pavel Roskin <proski@gnu.org>
37166
37167 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37168 fix a warning.
37169
37170 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37171
37172 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37173
37174 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37175 `err'.
37176
37177 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37178
37179 Revert r2338.
37180
37181 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37182 file can't be opened. grub_file_open() is already supposed to set
37183 grub_errno / grub_errmsg appropriately.
37184 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37185
37186 2009-06-27 Pavel Roskin <proski@gnu.org>
37187 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37188
37189 * include/grub/dl.h: Include grub/elf.h.
37190 (struct grub_dl): Add symtab field.
37191 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37192 GRUB_MODULES_MACHINE_READONLY.
37193 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37194 of the header for read-only modules.
37195 (grub_dl_unload): Free mod->symtab for read-only modules.
37196 * kern/i386/dl.c: Use mod->symtab.
37197 * kern/powerpc/dl.c: Likewise.
37198 * kern/sparc64/dl.c: Likewise.
37199 * kern/x86_64/dl.c: Likewise.
37200
37201 * conf/i386-qemu.rmk: New file.
37202 * kern/i386/qemu/startup.S: Likewise.
37203 * kern/i386/qemu/mmap.c: Likewise.
37204 * boot/i386/qemu/boot.S: Likewise.
37205 * include/grub/i386/qemu/time.h: Likewise.
37206 * include/grub/i386/qemu/serial.h: Likewise.
37207 * include/grub/i386/qemu/kernel.h: Likewise.
37208 * include/grub/i386/qemu/console.h: Likewise.
37209 * include/grub/i386/qemu/boot.h: Likewise.
37210 * include/grub/i386/qemu/init.h: Likewise.
37211 * include/grub/i386/qemu/machine.h: Likewise.
37212 * include/grub/i386/qemu/loader.h: Likewise.
37213 * include/grub/i386/qemu/memory.h: Likewise.
37214
37215 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37216 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37217 [qemu] (pkglib_IMAGES): Add `boot.img'.
37218 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37219 [qemu] (boot_img_FORMAT): New variables.
37220 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37221 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37222 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37223 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37224 [qemu] (kernel_img_FORMAT): New variables.
37225
37226 * configure.ac: Recognise `i386-qemu'.
37227
37228 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37229 (for no compression).
37230 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37231 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37232 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37233 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37234 ifdefs).
37235
37236 2009-06-27 Pavel Roskin <proski@gnu.org>
37237
37238 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37239 read.
37240 * efiemu/prepare32.c: Likewise.
37241 * efiemu/prepare64.c: Likewise.
37242
37243 2009-06-26 Pavel Roskin <proski@gnu.org>
37244
37245 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37246 * include/grub/elf.h: Define symbols without "32" or "64" based
37247 on GRUB_TARGET_WORDSIZE.
37248 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37249 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37250 ELF definitions.
37251 * efiemu/loadcore64.c: Likewise.
37252 * loader/i386/bsd32.c: Likewise.
37253 * loader/i386/bsd64.c: Likewise.
37254 * kern/dl.c: Remove own ELF definitions.
37255 * util/i386/efi/grub-mkimage.c: Likewise.
37256
37257 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37258
37259 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37260 segment 0x0 unconditionally, because the reference generated by
37261 GAS is an absolute address.
37262
37263 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37264
37265 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37266 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37267
37268 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37269
37270 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37271 indexes. Check for -f explicitly.
37272 (search_file): Improve error message.
37273 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37274
37275 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37276
37277 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37278 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37279
37280 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37281
37282 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37283 * conf/i386-ieee1275.rmk: Likewise.
37284 * conf/i386-coreboot.rmk: Likewise.
37285
37286 * kern/i386/pc/startup.S (grub_stop): Remove function.
37287 * kern/i386/ieee1275/startup.S: Likewise.
37288 * kern/i386/coreboot/startup.S: Likewise.
37289 * kern/i386/misc.S (grub_stop): New function.
37290
37291 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37292
37293 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37294 * kern/i386/realmode.S (real_to_prot): ... to here.
37295
37296 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37297
37298 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37299 with `kernel.img'.
37300 (kernel_elf_SOURCES): Rename to ...
37301 (kernel_img_SOURCES): ... this.
37302 (kernel_elf_HEADERS): Rename to ...
37303 (kernel_img_HEADERS): ... this. Update all users.
37304 (kernel_elf_ASFLAGS): Rename to ...
37305 (kernel_img_ASFLAGS): ... this.
37306 (kernel_elf_CFLAGS): Rename to ...
37307 (kernel_img_CFLAGS): ... this.
37308 (kernel_elf_LDFLAGS): Rename to ...
37309 (kernel_img_LDFLAGS): ... this.
37310 * conf/i386-coreboot.rmk: Likewise.
37311 * conf/powerpc-ieee1275.rmk: Likewise.
37312
37313 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37314 with "kernel.img".
37315
37316 2009-06-21 Pavel Roskin <proski@gnu.org>
37317
37318 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37319 to match nested functions.
37320 * loader/sparc64/ieee1275/linux.c: Likewise.
37321
37322 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37323
37324 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37325
37326 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37327 all i386 platforms.
37328
37329 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37330
37331 Fix asm file handling on ELF, and remove workarounds.
37332
37333 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37334 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37335 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37336 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37337
37338 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37339
37340 Load BSD ELF modules
37341
37342 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37343 and loader/i386/bsd64.c
37344 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37345 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37346 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37347 (grub_freebsd_load_elfmodule32): New declaration
37348 (grub_freebsd_load_elfmoduleobj64): Likewise
37349 (grub_freebsd_load_elf_meta32): Likewise
37350 (grub_freebsd_load_elf_meta64): Likewise
37351 (grub_freebsd_add_meta): Likewise
37352 (grub_freebsd_add_meta_module): Likewise
37353 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37354 (grub_freebsd_add_meta_module): Likewise and move module-specific
37355 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37356 (grub_cmd_freebsd): Add elf-kernel specific parts
37357 based on grub_freebsd_add_meta_module
37358 (grub_cmd_freebsd_module): Add type parsing moved from
37359 grub_freebsd_add_meta_module
37360 (grub_cmd_freebsd_module_elf): New function
37361 (cmd_freebsd_module_elf): New variable
37362 (GRUB_MOD_INIT): Register freebsd_module_elf
37363 * loader/i386/bsd32.c: New file
37364 * loader/i386/bsd64.c: Likewise
37365 * loader/i386/bsdXX.c: Likewise
37366 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37367 (grub_elf64_load): Likewise
37368 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37369 All users updated
37370 (grub_elf64_load_hook_t): Likewise
37371
37372 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37373
37374 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37375 variable.
37376 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37377 don't write a menu entry for recovery mode.
37378
37379 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37380
37381 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37382 after it's no longer needed.
37383
37384 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37385
37386 * include/grub/i386/loader.h (grub_linux_prot_size)
37387 (grub_linux_tmp_addr, grub_linux_real_addr)
37388 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37389 GRUB_MACHINE_PCBIOS.
37390 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37391 common grub_util_info() call to ...
37392 (generate_image): ... here.
37393 Fix use of uninitialized memory, comparison of signed with
37394 unsigned integers and memory leak.
37395 Remove bogus module address message.
37396
37397 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37398
37399 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37400 grub_raid_register
37401 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37402
37403 2009-06-19 Pavel Roskin <proski@gnu.org>
37404
37405 * configure.ac: Remove stray AC_MSG_CHECKING.
37406
37407 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37408
37409 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37410
37411 2009-06-18 Pavel Roskin <proski@gnu.org>
37412
37413 * conf/common.rmk: Add fs_file.mod.
37414 * disk/fs_file.c: New file.
37415 * include/grub/disk.h (enum grub_disk_dev_id): Add
37416 GRUB_DISK_DEVICE_FILE_ID.
37417
37418 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37419
37420 Fix build with Apple's toolchain. Part 2
37421
37422 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37423 a fake start
37424
37425 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37426
37427 Fix build with Apple's toolchain. Part 1
37428
37429 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37430 for long calls
37431 * configure.ac: remove a leftover AC_MSG_RESULT
37432 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37433 Apple's toolchain
37434
37435 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37436
37437 Fix warnings
37438
37439 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37440 (decomp_block): initialize ch
37441 use grub_memcpy instead of memcpy
37442
37443 2009-06-17 Pavel Roskin <proski@gnu.org>
37444
37445 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37446 version, use declarations needed to use vga_text as the startup
37447 console.
37448
37449 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37450 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37451 the kernel.
37452 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37453 and grub_at_keyboard_fini(), it's done on module load and
37454 unload.
37455
37456 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37457
37458 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37459 file can't be found.
37460 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37461
37462 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37463
37464 Fix newline handling
37465
37466 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37467 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37468 (grub_script_yylex): don't segfault on unterminated script
37469 newline terminates command and variable
37470
37471 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37472
37473 avoid double grub_adjust_range call. Bug reported by David Simner
37474
37475 * kern/disk.c (grub_disk_write): change to raw disk access before
37476 calling disk_read
37477
37478 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37479
37480 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37481 spaces, for the benefit of help2man.
37482 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37483
37484 2009-06-16 Pavel Roskin <proski@gnu.org>
37485
37486 * kern/i386/halt.c: Include grub/machine/init.h.
37487 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37488
37489 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37490
37491 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37492 drivemap menuentry.
37493
37494 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37495
37496 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37497 `echo' command.
37498
37499 2009-06-16 Pavel Roskin <proski@gnu.org>
37500
37501 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37502 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37503 save %dx, we only need %dl and we never change it.
37504 * boot/i386/pc/cdboot.S: Don't set the root drive.
37505 * boot/i386/pc/pxeboot.S: Likewise.
37506 * include/grub/i386/pc/boot.h: Remove
37507 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37508 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37509 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37510 * kern/i386/pc/init.c (make_install_device): Remove references
37511 to grub_root_drive.
37512 * kern/i386/pc/startup.S: Likewise.
37513 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37514
37515 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37516
37517 xnu_uuid command
37518
37519 * commands/xnu_uuid.c: new file
37520 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37521 (xnu_uuid_mod_SOURCES): new variable
37522 (xnu_uuid_mod_CFLAGS): likewise
37523 (xnu_uuid_mod_LDFLAGS): likewise
37524 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37525 * conf/i386-ieee1275.rmk: likewise
37526 * conf/i386-pc.rmk: likewise
37527 * conf/powerpc-ieee1275.rmk: likewise
37528 * conf/sparc64-ieee1275.rmk: likewise
37529 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37530
37531 2009-06-16 Pavel Roskin <proski@gnu.org>
37532
37533 * configure.ac: Avoid '==' in test command, it's not portable.
37534
37535 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37536
37537 Probe command
37538
37539 * commands/probe.c: new file
37540 * conf/common.rmk (pkglib_MODULES): add probe.mod
37541 (probe_mod_SOURCES): new variable
37542 (probe_mod_CFLAGS): likewise
37543 (probe_mod_LDFLAGS): likewise
37544 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37545 * conf/i386-ieee1275.rmk: likewise
37546 * conf/i386-pc.rmk: likewise
37547 * conf/powerpc-ieee1275.rmk: likewise
37548 * conf/sparc64-ieee1275.rmk: likewise
37549
37550 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37551
37552 Fix handling of string like \"hello\" and "a
37553 b"
37554
37555 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37556 (grub_script_yylex): fix parsing of quoting, escaping and newline
37557
37558 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37559
37560 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37561 handling
37562
37563 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37564
37565 * util/grub-mkconfig.in: Fix parsing of --output option.
37566
37567 2009-06-12 Pavel Roskin <proski@gnu.org>
37568
37569 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37570 genmk.rb don't need to be generated or installed.
37571
37572 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37573
37574 * commands/i386/pc/drivemap_int13h.S: add more comments
37575
37576 2009-06-11 Pavel Roskin <proski@gnu.org>
37577
37578 * Makefile.in (uninstall): Uninstall manuals.
37579
37580 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37581 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37582 and update-grub_lib in two places.
37583 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37584
37585 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37586 a compiler warning.
37587
37588 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37589 `entry_lo' to fix variable shadowing.
37590
37591 2009-06-11 Christian Franke <franke@computer.org>
37592
37593 * kern/misc.c (__enable_execute_stack): Add missing return type
37594 to prevent gcc warning.
37595
37596 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37597
37598 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37599
37600 2009-06-11 Pavel Roskin <proski@gnu.org>
37601
37602 * Makefile.in: Don't rely on any scripts being executable.
37603 Always use $(SHELL) to run shell scripts.
37604
37605 * configure.ac: Always define ___main if using -nostdlib. This
37606 fixes tests on Cygwin.
37607
37608 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37609
37610 UDF fix
37611
37612 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37613 is in bytes and not in blocks
37614
37615 2009-06-11 Pavel Roskin <proski@gnu.org>
37616
37617 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37618 warning.
37619
37620 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37621
37622 * util/grub.d/30_os-prober.in: Fix a comment. Source
37623 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37624 to set the root device. Place drivemap command in the generated
37625 chain entry.
37626
37627 2009-06-11 Pavel Roskin <proski@gnu.org>
37628
37629 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37630 have long been resolved.
37631
37632 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37633
37634 * util/grub.d/10_linux.in: Capitalise "Linux".
37635
37636 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37637
37638 2009-06-11 Pavel Roskin <proski@gnu.org>
37639
37640 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37641 fix a gcc warning and ensure that the function won't ever exit.
37642
37643 * kern/i386/ieee1275/init.c: Add missing prototype for
37644 grub_stop_floppy().
37645
37646 * loader/ieee1275/multiboot2.c [__i386__]: Include
37647 grub/cpu/multiboot.h.
37648
37649 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37650 casts to short - they are not portable and cause warnings. Fix
37651 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37652
37653 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37654
37655 Drivemap fixes
37656
37657 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37658 new function
37659 (grub_get_root_biosnumber_saved): new variable
37660 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37661 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37662 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37663 %dx after the call if necessary
37664 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37665 (boot_mod_SOURCES): remove
37666 (boot_mod_CFLAGS): remove
37667 (boot_mod_LDFLAGS): remove
37668 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37669 (boot_mod_SOURCES): new variable
37670 (boot_mod_CFLAGS): likewise
37671 (boot_mod_LDFLAGS): likewise
37672 * conf/i386-efi.rmk: likewise
37673 * conf/i386-ieee1275.rmk: likewise
37674 * conf/i386-pc.rmk: likewise
37675 * conf/powerpc-ieee1275.rmk: likewise
37676 * conf/sparc64-ieee1275.rmk: likewise
37677 * conf/x86_64-efi.rmk: likewise
37678 * include/grub/i386/pc/biosnum.h: new file
37679 * lib/i386/pc/biosnum.c: likewise
37680 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37681 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37682 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37683
37684 2009-06-10 Pavel Roskin <proski@gnu.org>
37685
37686 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37687 Use separate variables. Read only the file size at the end, but
37688 not the checksum that we don't use.
37689
37690 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37691 Adjust all callers.
37692
37693 * kern/ieee1275/openfw.c: Remove libc includes.
37694 * kern/ieee1275/cmain.c: Likewise.
37695 * include/grub/ieee1275/ieee1275.h: Likewise.
37696
37697 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37698 compiler warnings.
37699
37700 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37701
37702 * Makefile.in: Remove all trailing whitespace.
37703 * conf/i386-pc.rmk: Likewise.
37704 * conf/powerpc-ieee1275.rmk: Likewise.
37705 * conf/sparc64-ieee1275.rmk: Likewise.
37706 * docs/grub.texi: Likewise.
37707 * docs/texinfo.tex: Likewise.
37708 * disk/fs_uuid.c: Likewise.
37709 * disk/lvm.c: Likewise.
37710 * disk/scsi.c: Likewise.
37711 * disk/ata.c: Likewise.
37712 * disk/ieee1275/ofdisk.c: Likewise.
37713 * disk/i386/pc/biosdisk.c: Likewise.
37714 * disk/host.c: Likewise.
37715 * disk/raid.c: Likewise.
37716 * disk/efi/efidisk.c: Likewise.
37717 * disk/usbms.c: Likewise.
37718 * disk/memdisk.c: Likewise.
37719 * disk/loopback.c: Likewise.
37720 * kern/powerpc/dl.c: Likewise.
37721 * kern/device.c: Likewise.
37722 * kern/dl.c: Likewise.
37723 * kern/sparc64/dl.c: Likewise.
37724 * kern/ieee1275/ieee1275.c: Likewise.
37725 * kern/term.c: Likewise.
37726 * kern/fs.c: Likewise.
37727 * kern/i386/dl.c: Likewise.
37728 * kern/i386/pc/startup.S: Likewise.
37729 * kern/i386/pc/init.c: Likewise.
37730 * kern/i386/pc/mmap.c: Likewise.
37731 * kern/i386/pc/lzo1x.S: Likewise.
37732 * kern/i386/ieee1275/init.c: Likewise.
37733 * kern/i386/realmode.S: Likewise.
37734 * kern/i386/tsc.c: Likewise.
37735 * kern/partition.c: Likewise.
37736 * kern/corecmd.c: Likewise.
37737 * kern/file.c: Likewise.
37738 * kern/efi/efi.c: Likewise.
37739 * kern/efi/init.c: Likewise.
37740 * kern/efi/mm.c: Likewise.
37741 * kern/main.c: Likewise.
37742 * kern/err.c: Likewise.
37743 * kern/env.c: Likewise.
37744 * kern/disk.c: Likewise.
37745 * kern/generic/millisleep.c: Likewise.
37746 * kern/generic/rtc_get_time_ms.c: Likewise.
37747 * kern/misc.c: Likewise.
37748 * kern/parser.c: Likewise.
37749 * genmk.rb: Likewise.
37750 * configure.ac: Likewise.
37751 * boot/i386/pc/diskboot.S: Likewise.
37752 * boot/i386/pc/pxeboot.S: Likewise.
37753 * boot/i386/pc/boot.S: Likewise.
37754 * boot/i386/pc/lnxboot.S: Likewise.
37755 * boot/i386/pc/cdboot.S: Likewise.
37756 * parttool/pcpart.c: Likewise.
37757 * video/readers/tga.c: Likewise.
37758 * video/video.c: Likewise.
37759 * video/bitmap.c: Likewise.
37760 * lib/envblk.c: Likewise.
37761 * lib/i386/setjmp.S: Likewise.
37762 * fs/xfs.c: Likewise.
37763 * fs/afs.c: Likewise.
37764 * fs/fat.c: Likewise.
37765 * fs/ntfs.c: Likewise.
37766 * fs/udf.c: Likewise.
37767 * fs/affs.c: Likewise.
37768 * fs/iso9660.c: Likewise.
37769 * fs/hfs.c: Likewise.
37770 * fs/fshelp.c: Likewise.
37771 * fs/ext2.c: Likewise.
37772 * fs/jfs.c: Likewise.
37773 * fs/reiserfs.c: Likewise.
37774 * fs/hfsplus.c: Likewise.
37775 * fs/minix.c: Likewise.
37776 * fs/cpio.c: Likewise.
37777 * fs/sfs.c: Likewise.
37778 * fs/ufs.c: Likewise.
37779 * efiemu/prepare.c: Likewise.
37780 * efiemu/loadcore_common.c: Likewise.
37781 * efiemu/runtime/efiemu.sh: Likewise.
37782 * efiemu/runtime/efiemu.S: Likewise.
37783 * efiemu/runtime/efiemu.c: Likewise.
37784 * efiemu/pnvram.c: Likewise.
37785 * efiemu/main.c: Likewise.
37786 * efiemu/i386/pc/cfgtables.c: Likewise.
37787 * efiemu/i386/loadcore64.c: Likewise.
37788 * efiemu/i386/loadcore32.c: Likewise.
37789 * efiemu/loadcore.c: Likewise.
37790 * efiemu/symbols.c: Likewise.
37791 * efiemu/mm.c: Likewise.
37792 * include/grub/autoefi.h: Likewise.
37793 * include/grub/datetime.h: Likewise.
37794 * include/grub/term.h: Likewise.
37795 * include/grub/hfs.h: Likewise.
37796 * include/grub/lvm.h: Likewise.
37797 * include/grub/i386/tsc.h: Likewise.
37798 * include/grub/i386/linux.h: Likewise.
37799 * include/grub/i386/xnu.h: Likewise.
37800 * include/grub/i386/efiemu.h: Likewise.
37801 * include/grub/i386/pc/biosdisk.h: Likewise.
37802 * include/grub/i386/pc/memory.h: Likewise.
37803 * include/grub/i386/pc/vbe.h: Likewise.
37804 * include/grub/parttool.h: Likewise.
37805 * include/grub/video.h: Likewise.
37806 * include/grub/memory.h: Likewise.
37807 * include/grub/fs.h: Likewise.
37808 * include/grub/partition.h: Likewise.
37809 * include/grub/xnu.h: Likewise.
37810 * include/grub/efi/api.h: Likewise.
37811 * include/grub/efi/pe32.h: Likewise.
37812 * include/grub/efi/memory.h: Likewise.
37813 * include/grub/multiboot.h: Likewise.
37814 * include/grub/usbdesc.h: Likewise.
37815 * include/grub/multiboot2.h: Likewise.
37816 * include/grub/acpi.h: Likewise.
37817 * include/grub/efiemu/efiemu.h: Likewise.
37818 * include/grub/disk.h: Likewise.
37819 * include/grub/ieee1275/ieee1275.h: Likewise.
37820 * include/grub/net.h: Likewise.
37821 * include/grub/machoload.h: Likewise.
37822 * include/grub/macho.h: Likewise.
37823 * include/multiboot.h: Likewise.
37824 * genmoddep.awk: Likewise.
37825 * normal/main.c: Likewise.
37826 * normal/menu_entry.c: Likewise.
37827 * normal/menu_viewer.c: Likewise.
37828 * normal/completion.c: Likewise.
37829 * normal/cmdline.c: Likewise.
37830 * normal/misc.c: Likewise.
37831 * normal/datetime.c: Likewise.
37832 * bus/usb/usbtrans.c: Likewise.
37833 * bus/usb/ohci.c: Likewise.
37834 * bus/usb/uhci.c: Likewise.
37835 * bus/usb/usb.c: Likewise.
37836 * mmap/efi/mmap.c: Likewise.
37837 * mmap/i386/pc/mmap_helper.S: Likewise.
37838 * mmap/i386/pc/mmap.c: Likewise.
37839 * mmap/i386/mmap.c: Likewise.
37840 * mmap/i386/uppermem.c: Likewise.
37841 * mmap/mmap.c: Likewise.
37842 * commands/acpi.c: Likewise.
37843 * commands/echo.c: Likewise.
37844 * commands/blocklist.c: Likewise.
37845 * commands/loadenv.c: Likewise.
37846 * commands/usbtest.c: Likewise.
37847 * commands/boot.c: Likewise.
37848 * commands/parttool.c: Likewise.
37849 * commands/search.c: Likewise.
37850 * commands/cat.c: Likewise.
37851 * commands/i386/pc/play.c: Likewise.
37852 * commands/i386/pc/drivemap.c: Likewise.
37853 * commands/i386/pc/vbeinfo.c: Likewise.
37854 * commands/i386/pc/acpi.c: Likewise.
37855 * commands/i386/pc/vbetest.c: Likewise.
37856 * commands/ls.c: Likewise.
37857 * commands/cmp.c: Likewise.
37858 * commands/test.c: Likewise.
37859 * commands/efi/acpi.c: Likewise.
37860 * commands/gptsync.c: Likewise.
37861 * commands/help.c: Likewise.
37862 * partmap/amiga.c: Likewise.
37863 * partmap/apple.c: Likewise.
37864 * partmap/acorn.c: Likewise.
37865 * partmap/pc.c: Likewise.
37866 * partmap/sun.c: Likewise.
37867 * partmap/gpt.c: Likewise.
37868 * script/sh/lexer.c: Likewise.
37869 * script/sh/function.c: Likewise.
37870 * font/font.c: Likewise.
37871 * font/font_cmd.c: Likewise.
37872 * loader/powerpc/ieee1275/linux.c: Likewise.
37873 * loader/efi/chainloader.c: Likewise.
37874 * loader/multiboot_loader.c: Likewise.
37875 * loader/macho.c: Likewise.
37876 * loader/i386/multiboot.c: Likewise.
37877 * loader/i386/linux.c: Likewise.
37878 * loader/i386/pc/linux.c: Likewise.
37879 * loader/i386/pc/multiboot2.c: Likewise.
37880 * loader/i386/pc/chainloader.c: Likewise.
37881 * loader/i386/pc/xnu.c: Likewise.
37882 * loader/i386/bsd_trampoline.S: Likewise.
37883 * loader/i386/efi/linux.c: Likewise.
37884 * loader/i386/multiboot_elfxx.c: Likewise.
37885 * loader/i386/bsd_helper.S: Likewise.
37886 * loader/i386/bsd.c: Likewise.
37887 * loader/i386/linux_trampoline.S: Likewise.
37888 * loader/i386/xnu_helper.S: Likewise.
37889 * loader/i386/xnu.c: Likewise.
37890 * loader/i386/bsd_pagetable.c: Likewise.
37891 * loader/i386/multiboot_helper.S: Likewise.
37892 * loader/xnu.c: Likewise.
37893 * loader/xnu_resume.c: Likewise.
37894 * io/gzio.c: Likewise.
37895 * term/efi/console.c: Likewise.
37896 * term/terminfo.c: Likewise.
37897 * term/ieee1275/ofconsole.c: Likewise.
37898 * term/i386/pc/serial.c: Likewise.
37899 * term/i386/pc/vesafb.c: Likewise.
37900 * term/i386/pc/vga.c: Likewise.
37901 * term/usb_keyboard.c: Likewise.
37902 * term/gfxterm.c: Likewise.
37903 * aclocal.m4: Likewise.
37904 * util/lvm.c: Likewise.
37905 * util/grub.d/30_os-prober.in: Likewise.
37906 * util/grub.d/10_hurd.in: Likewise.
37907 * util/console.c: Likewise.
37908 * util/grub-macho2img.c: Likewise.
37909 * util/grub-probe.c: Likewise.
37910 * util/hostfs.c: Likewise.
37911 * util/i386/pc/grub-mkimage.c: Likewise.
37912 * util/i386/pc/grub-setup.c: Likewise.
37913 * util/i386/efi/grub-mkimage.c: Likewise.
37914 * util/grub-mkconfig.in: Likewise.
37915 * util/raid.c: Likewise.
37916 * util/resolve.c: Likewise.
37917 * util/grub-mkdevicemap.c: Likewise.
37918 * util/grub-emu.c: Likewise.
37919 * util/getroot.c: Likewise.
37920 * util/hostdisk.c: Likewise.
37921 * util/usb.c: Likewise.
37922 * util/grub-editenv.c: Likewise.
37923 * util/misc.c: Likewise.
37924
37925 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37926
37927 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37928 `genparttoollist.sh'.
37929 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37930 Add `*.sh' to the list find searches for and change `mdate.sh'
37931 to `mdate-sh'.
37932
37933 2009-06-10 Pavel Roskin <proski@gnu.org>
37934
37935 * include/grub/multiboot2.h: Provide compatibility defines for
37936 multiboot2.h.
37937 * include/multiboot2.h: Include stdint.h only if needed, using
37938 angle brackets.
37939 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37940 grub/multiboot2.h.
37941 * loader/ieee1275/multiboot2.c: Likewise.
37942 * loader/multiboot2.c: Likewise.
37943 * loader/multiboot_loader.c: Likewise.
37944
37945 * configure.ac: Use -nostdlib when probing for the target. It
37946 should not be required to have libc for the target.
37947
37948 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37949 they fail without libc headers for the target.
37950 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37951 exports.
37952 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37953 preprocessor conditionals.
37954
37955 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37956 build system doesn't need to be aware of the tar.c internals.
37957
37958 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37959
37960 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37961
37962 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
37963
37964 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
37965 disk limit to 26 for IDE, Virtio, Xen and SCSI.
37966
37967 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
37968
37969 * util/i386/pc/grub-install.in: Change the error message if UUIDs
37970 aren't available if ata.mod gets used.
37971
37972 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
37973
37974 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
37975 initialising controller.
37976 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37977
37978 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
37979
37980 * util/i386/pc/grub-install.in: Add a parameter --disk-module
37981 to choose between ata and biosdisk module on i386-pc.
37982
37983 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
37984
37985 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
37986 Subclass and Programming Interface fields in terms of the 3 byte
37987 Class Code register.
37988 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
37989
37990 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
37991 interface is OHCI. Add grub_dprintf for symmetry with
37992 bus/usb/uhci.c.
37993 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
37994 interface is UHCI. Add interf variable for programming
37995 interface. Print interface with class/subclass.
37996
37997 * bus/usb/ohci.c: Set interf with correct field.
37998
37999 * bus/usb/uhci.c: Remove unneeded doubled lines.
38000 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38001 Remove whitespace inside comment.
38002
38003 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38004
38005 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38006 as fallback an equivalent option without depth.
38007
38008 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38009
38010 Not fail if unable to retrieve C/H/S on LBA disks
38011
38012 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38013 if unable to retrieve C/H/S on LBA disks
38014
38015 2009-06-08 Pavel Roskin <proski@gnu.org>
38016
38017 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38018 about aliasing.
38019
38020 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38021
38022 * Makefile.in (uninstall): Remove all $lib_DATA files.
38023
38024 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38025
38026 Bugfix: install on partitionless device
38027
38028 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38029 is a whole disk
38030
38031 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38032
38033 * Makefile.in (uninstall): Remove all $include_DATA files.
38034
38035 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38036
38037 * commands/true.c: New file. Implement the true and false commands.
38038 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38039 (true_mod_SOURCES): New variable.
38040 (true_mod_CFLAGS): Likewise.
38041 (true_mod_LDFLAGS): Likewise.
38042
38043 2009-06-05 Colin D Bennett <colin@gibibit.com>
38044
38045 Optimized font character lookup using binary search instead of linear
38046 search. Fonts now are required to have the character index ordered by
38047 code point.
38048
38049 * font/font.c (load_font_index): Verify that fonts have ordered
38050 character indices.
38051 (find_glyph): Use binary search instead of linear search to find a
38052 character in a font.
38053
38054 2009-06-05 Michael Scherer <misc@mandriva.org>
38055
38056 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38057 uses case sensitive btree.
38058 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38059 only for case insensitive filesystems.
38060
38061 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38062
38063 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38064 * conf/common.rmk (search_mod_CFLAGS): likewise
38065
38066 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38067
38068 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38069 compensate a compiler bug
38070
38071 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38072
38073 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38074 instead of '\b'
38075
38076 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38077
38078 Definitions for creating asm symbols with Apple's CC
38079
38080 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38081 [APPLE_CC] (VARIABLE): likewise
38082
38083 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38084
38085 Disable lnxboot.img when compiled
38086 with Apple's CC
38087
38088 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38089 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38090 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38091 [! APPLE_CC] (CODE_LENG): skip
38092 [! APPLE_CC] (setup_sects): likewise
38093 [! APPLE_CC]: skip filling
38094
38095 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38096
38097 Address in trampolines based on 32-bit registers when compiled
38098 with Apple's CC
38099
38100 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38101 for addresses
38102 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38103
38104 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38105
38106 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38107
38108 * kern/misc.c [APPLE_CC] (memcpy): new function
38109 [APPLE_CC] (memmove): likewise
38110 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38111 (memcpy): define alias conditionally on !APPLE_CC
38112 (memset): likewise
38113 (abort): likewise
38114 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38115 APPLE_CC are defined
38116 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38117 (grub_assert_fail): make prototype conditional
38118
38119 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38120
38121 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38122
38123 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38124 grub-macho2img
38125 (CLEANFILES): add grub-macho2img
38126 (grub_macho2img_SOURCES): new variable
38127 * kern/i386/pc/startup.S (bss_start): new variable
38128 (bss_end): likewise
38129 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38130 * util/grub-macho2img.c: new file
38131
38132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38133
38134 Use objconv when compiling with Apple's CC
38135
38136 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38137 (efiemu64.o): likewise
38138 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38139 when compiling with Apple's CC
38140 (efiemu64_s.o): likewise
38141 * configure.ac: check for objconv when compiling with Apple's CC
38142 * genmk.rb: use objconv for modules when compiled with Apple's CC
38143
38144 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38145
38146 Define segment as well as section when compiling with
38147 Apple's CC
38148
38149 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38150 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38151 (efiemu_convert_pointer): likewise
38152 (efiemu_set_virtual_address_map): likewise
38153 (efiemu_convert_pointer): likewise
38154 (efiemu_getcrc32): likewise
38155 (init_crc32_table): likewise
38156 (reflect): likewise
38157 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38158 (GRUB_MOD_DEP): likewise
38159
38160 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38161
38162 Allow a compilation without -mcmodel=large
38163
38164 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38165 when compiled without -mcmodel=large
38166 (filter_memory_map): remove memory post 4 GiB when compiled
38167 without -mcmodel=large
38168 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38169 TARGET_CFLAGS when -mcmodel=large isn't supported
38170
38171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38172
38173 Remove nested functions in efiemu core
38174
38175 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38176
38177 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38178
38179 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38180
38181 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38182 temporary storage
38183 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38184 using Apple's CC
38185 (grub_cpu_is_tsc_supported): likewise
38186 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38187
38188 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38189
38190 Absolute addressing through constant with Apple's cc
38191
38192 * kern/i386/pc/startup.S: Define necessary constants
38193 and address through it when using ABS with Apple's CC
38194 * boot/i386/pc/diskboot.S: likewise
38195 * boot/i386/pc/boot.S: likewise
38196 * boot/i386/pc/lnxboot.S: likewise
38197 * boot/i386/pc/cdboot.S: likewise
38198 * mmap/i386/pc/mmap_helper.S: likewise
38199 * commands/i386/pc/drivemap_int13h.S: likewise
38200
38201 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38202
38203 Check if compiler is apple cc
38204
38205 * Makefile.in (ASFLAGS): new variable
38206 (TARGET_ASFLAGS): likewise
38207 (TARGET_MODULE_FORMAT): likewise
38208 (TARGET_APPLE_CC): likewise
38209 (OBJCONV): likewise
38210 (TARGET_IMG_CFLAGS): likewise
38211 (TARGET_CPPFLAGS): add includedir
38212 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38213 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38214 Check for linker script only if compiler isn't Apple's CC
38215 (TARGET_MODULE_FORMAT): set
38216 (TARGET_APPLE_CC): likewise
38217 (TARGET_ASFLAGS): likewise
38218 (ASFLAGS): likewise
38219 Check for objcopy only if compiler isn't Apple's CC
38220 Check for BSS symbol only if compiler isn't Apple's CC
38221 * genmk.rb: adapt nm options if we use Apple's utils
38222 * aclocal.m4 (grub_apple_cc): new test
38223 (grub_apple_target_cc): likewise
38224
38225 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38226
38227 Simplify sed expressions and improve awk
38228
38229 * Makefile.in (install-local): simplify sed expression
38230 * gencmdlist.sh: likewise
38231 * genmoddep.awk: avoid adding module as a dependency of itself
38232
38233 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38234
38235 Add missing start symbols
38236
38237 * boot/i386/pc/boot.S: add start
38238 * boot/i386/pc/pxeboot.S: likewise
38239
38240 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38241
38242 Fix wrong assumptions with grub-mkimage on EFI
38243
38244 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38245 (relocate_addresses): consider both r_addend and value at offset
38246 (make_mods_section): zerofill modinfo and header
38247 (convert_elf): write prefix here
38248
38249 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38250
38251 Use .asciz instead of .string
38252
38253 * i386/pc/diskboot.S: use .asciz instead of .string
38254 * i386/pc/boot.S: likewise
38255 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38256 (GRUB_MOD_NAME): likewise
38257
38258 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38259
38260 gfxpayload support
38261
38262 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38263 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38264 (grub_video_setup): remove
38265 (grub_video_set_mode): new prototype
38266 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38267 (vid_mode): remove
38268 (linux_vesafb_res): compile only on PCBIOS
38269 (grub_linux_boot): support gfxpayload
38270 * loader/i386/pc/xnu.c (video_hook): new function
38271 (grub_xnu_set_video): support gfxpayload
38272 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38273 (DEFAULT_VIDEO_HEIGHT): likewise
38274 (DEFAULT_VIDEO_FLAGS): likewise
38275 (DEFAULT_VIDEO_MODE): new definition
38276 (video_hook): new function
38277 (grub_gfxterm_init): use grub_video_set_mode
38278 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38279 loading xnu
38280 * video/video.c (grub_video_setup): removed
38281 (grub_video_set_mode): new function based on grub_gfxterm_init and
38282 grub_video_setup
38283
38284 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38285
38286 Avoid calling biosdisk in drivemap
38287
38288 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38289 (revparse_biosdisk): likewise
38290 (list_mappings): derive name from id directly
38291 (grub_cmd_drivemap): use tryparse_diskstring
38292
38293 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38294
38295 Script fixes
38296
38297 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38298 (grub_lexer_param): add tokenonhold
38299 (grub_script_create_cmdline): remove cmdline. All callers updated
38300 (grub_script_function_create): make functionname
38301 grub_script_arg. All callers updated
38302 (grub_script_execute_argument_to_string): new prototype
38303 * kern/parser.c (state_transitions): reorder
38304 (grub_parser_cmdline_state): fix a bug and make more compact
38305 * script/sh/execute.c (grub_script_execute_argument_to_string):
38306 make global
38307 (grub_script_execute_cmdline): use new format
38308 * script/sh/function.c (grub_script_function_create): make functionname
38309 grub_script_arg. All callers updated
38310 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38311 (grub_script_yylex): remove
38312 (grub_script_yylex2): renamed to ...
38313 (grub_script_yylex): ...renamed
38314 parse the expressions like a${b}c
38315 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38316 (GRUB_PARSER_TOKEN_VAR): remove
38317 (GRUB_PARSER_TOKEN_NAME): likewise
38318 ("if"): declare as typeless
38319 ("while"): likewise
38320 ("function"): likewise
38321 ("else"): likewise
38322 ("then"): likewise
38323 ("fi"): likewise
38324 (text): remove
38325 (argument): likewise
38326 (script): accept empty scripts and make exit on error
38327 (arguments): use GRUB_PARSER_TOKEN_ARG
38328 (function): likewise
38329 (command): move error handling to script
38330 (menuentry): move grub_script_lexer_ref before
38331 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38332 argument. All callers updated
38333
38334 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38335
38336 Prevent GRUB from probing floppies during boot.
38337
38338 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38339 * commands/search.c (options): Add --no-floppy.
38340 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38341 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38342 --no-floppy when searching for UUIDs.
38343
38344 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38345
38346 Simplify the code duplication in commands/search.c.
38347
38348 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38349 (search_fs): ... this. Update all users.
38350
38351 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38352
38353 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38354
38355 2009-05-28 Pavel Roskin <proski@gnu.org>
38356
38357 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38358 Remove the original symlink explicitly.
38359
38360 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38361 just one slash. That's how grub_fshelp_find_file() does it.
38362
38363 2009-05-26 Pavel Roskin <proski@gnu.org>
38364
38365 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38366 to `str'.
38367
38368 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38369 possibly unused.
38370
38371 2009-05-25 Christian Franke <franke@computer.org>
38372
38373 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38374 register.
38375 (grub_atapi_identify): Add wait after drive select.
38376 (grub_ata_identify): Do more strict status register check before
38377 calling grub_atapi_identify (). Suppress error message if status
38378 register is 0x00 after command failure. Add status register
38379 check after PIO read to avoid bogus identify due to stuck DRQ.
38380 Thanks to Pavel Roskin for testing.
38381 (grub_device_initialize): Remove unsafe status register check.
38382 Thanks to 'phcoder' for problem report and patch.
38383 Prevent sign extension in debug message.
38384
38385 2009-05-23 Colin D Bennett <colin@gibibit.com>
38386
38387 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38388 definition file, and functions defined in `normal/menu.c' have had
38389 their prototypes moved to `include/grub/menu.h' for consistency.
38390
38391 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38392 from normal.h.
38393 (grub_menu_get_entry): Likewise.
38394 (grub_menu_get_timeout): Likewise.
38395 (grub_menu_set_timeout): Likewise.
38396 (grub_menu_execute_entry): Likewise.
38397 (grub_menu_execute_with_fallback): Likewise.
38398 (grub_menu_entry_run): Likewise.
38399
38400 * include/grub/normal.h: Re-ordered and grouped function
38401 prototypes by file that the function is defined in.
38402 (grub_menu_execute_callback): Removed; moved to menu.h.
38403 (grub_menu_get_entry): Likewise.
38404 (grub_menu_get_timeout): Likewise.
38405 (grub_menu_set_timeout): Likewise.
38406 (grub_menu_execute_entry): Likewise.
38407 (grub_menu_execute_with_fallback): Likewise.
38408 (grub_menu_entry_run): Likewise.
38409 (grub_menu_addentry): Renamed from this ...
38410 (grub_normal_add_menu_entry): ... to this.
38411
38412 * normal/main.c (grub_menu_addentry): Renamed from this ...
38413 (grub_normal_add_menu_entry): ... to this.
38414
38415 * script/sh/execute.c (grub_script_execute_menuentry): Update
38416 reference to renamed grub_menu_addentry function.
38417
38418 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38419
38420 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38421
38422 2009-05-22 Pavel Roskin <proski@gnu.org>
38423
38424 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38425 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38426 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38427 compiling for the i386 targets, but not for the utilities.
38428
38429 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38430 to grub_uint8_t.
38431 (grub_root_drive): Likewise.
38432 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38433 remove alignment.
38434 (grub_root_drive): Change size to byte.
38435 (grub_start_addr): Remove.
38436 (grub_end_addr): Likewise.
38437 (grub_apm_bios_info): Likewise.
38438
38439 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38440
38441 * normal/i386: Remove.
38442 * normal/powerpc: Likewise.
38443 * normal/sparc64: Likewise.
38444 * normal/x86_64: Likewise.
38445
38446 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38447
38448 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38449 * loader/i386/linux_trampoline.S: Fix indentation
38450 * loader/i386/xnu_helper.S: Likewise
38451
38452 2009-05-18 Colin D Bennett <colin@gibibit.com>
38453
38454 Display error messages when parsing a Lua statement fails.
38455 Previously, executing a syntactically invalid statement like
38456 ")foo" or "bar;" would silently fail.
38457
38458 * script/lua/grub_main.c (handle_lua_error): New function.
38459 (grub_lua_parse_line): Improved reporting of Lua parser and
38460 execution errors.
38461
38462 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38463
38464 Remove -Werror which causes build to fail on some systems
38465
38466 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38467 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38468 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38469
38470 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38471
38472 trampoline for linux on 64-bit platform
38473
38474 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38475 loader/i386/efi/linux_trampoline.S
38476 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38477 declaration
38478 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38479 here
38480 * loader/i386/linux_trampoline.S: moved here
38481 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38482 trampoline
38483 (jumpvector): removed
38484 (grub_linux_trampoline_start): new declaration
38485 (grub_linux_trampoline_end): likewise
38486 (grub_linux_boot): use trampoline when on 64-bit platform
38487 * loader/i386/linux.c: likewise
38488
38489 2009-05-16 Pavel Roskin <proski@gnu.org>
38490
38491 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38492 const to avoid a warning.
38493 (grub_lua_setenv): Likewise.
38494 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38495 lmsg to fix a warning.
38496
38497 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38498
38499 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38500 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38501 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38502 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38503 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38504 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38505 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38506 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38507
38508 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38509
38510 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38511
38512 2009-05-16 Bean <bean123ch@gmail.com>
38513
38514 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38515 (lua_mod_SOURCES): New variable.
38516 (lua_mod_CFLAGS): Likewise.
38517 (lua_mod_LDFLAGS): Likewise.
38518
38519 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38520 (setjmp_mod_SOURCES): New variable.
38521 (setjmp_mod_CFLAGS): Likewise.
38522 (setjmp_LDFLAGS): Likewise.
38523
38524 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38525 (setjmp_mod_SOURCES): New variable.
38526 (setjmp_mod_CFLAGS): Likewise.
38527 (setjmp_LDFLAGS): Likewise.
38528
38529 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38530 (setjmp_mod_SOURCES): New variable.
38531 (setjmp_mod_CFLAGS): Likewise.
38532 (setjmp_LDFLAGS): Likewise.
38533
38534 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38535 (setjmp_mod_SOURCES): New variable.
38536 (setjmp_mod_CFLAGS): Likewise.
38537 (setjmp_LDFLAGS): Likewise.
38538
38539 * normal/i386/setjmp.S: Moved from here ...
38540 * lib/i386/setjmp.S: ... Moved here
38541 * normal/x86_64/setjmp.S: Moved from here ...
38542 * lib/x86_64/setjmp.S: ... Moved here
38543 * normal/powerpc/setjmp.S: Moved from here ...
38544 * lib/powerpc/setjmp.S: ... Moved here
38545 * normal/sparc64/setjmp.S: Moved from here ...
38546 * lib/sparc64/setjmp.S: ... Moved here
38547
38548 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38549 returns_twice in mingw.
38550
38551 * script/lua/grub_lib.c: New file.
38552 * script/lua/grub_lib.h: Likewise.
38553 * script/lua/grub_lua.h: Likewise.
38554 * script/lua/grub_main.c: Likewise.
38555 * script/lua/lapi.c: Likewise.
38556 * script/lua/lapi.h: Likewise.
38557 * script/lua/lauxlib.c: Likewise.
38558 * script/lua/lauxlib.h: Likewise.
38559 * script/lua/lbaselib.c: Likewise.
38560 * script/lua/lcode.c: Likewise.
38561 * script/lua/lcode.h: Likewise.
38562 * script/lua/ldblib.c: Likewise.
38563 * script/lua/ldebug.c: Likewise.
38564 * script/lua/ldebug.h: Likewise.
38565 * script/lua/ldo.c: Likewise.
38566 * script/lua/ldo.h: Likewise.
38567 * script/lua/ldump.c: Likewise.
38568 * script/lua/lfunc.c: Likewise.
38569 * script/lua/lfunc.h: Likewise.
38570 * script/lua/lgc.c: Likewise.
38571 * script/lua/lgc.h: Likewise.
38572 * script/lua/linit.c: Likewise.
38573 * script/lua/liolib.c: Likewise.
38574 * script/lua/llex.c: Likewise.
38575 * script/lua/llex.h: Likewise.
38576 * script/lua/llimits.h: Likewise.
38577 * script/lua/lmathlib.c: Likewise.
38578 * script/lua/lmem.c: Likewise.
38579 * script/lua/lmem.h: Likewise.
38580 * script/lua/loadlib.c: Likewise.
38581 * script/lua/lobject.c: Likewise.
38582 * script/lua/lobject.h: Likewise.
38583 * script/lua/lopcodes.c: Likewise.
38584 * script/lua/lopcodes.h: Likewise.
38585 * script/lua/loslib.c: Likewise.
38586 * script/lua/lparser.c: Likewise.
38587 * script/lua/lparser.h: Likewise.
38588 * script/lua/lstate.c: Likewise.
38589 * script/lua/lstate.h: Likewise.
38590 * script/lua/lstring.c: Likewise.
38591 * script/lua/lstring.h: Likewise.
38592 * script/lua/lstrlib.c: Likewise.
38593 * script/lua/ltable.c: Likewise.
38594 * script/lua/ltable.h: Likewise.
38595 * script/lua/ltablib.c: Likewise.
38596 * script/lua/ltm.c: Likewise.
38597 * script/lua/ltm.h: Likewise.
38598 * script/lua/lua.h: Likewise.
38599 * script/lua/luaconf.h: Likewise.
38600 * script/lua/lualib.h: Likewise.
38601 * script/lua/lundump.c: Likewise.
38602 * script/lua/lundump.h: Likewise.
38603 * script/lua/lvm.c: Likewise.
38604 * script/lua/lvm.h: Likewise.
38605 * script/lua/lzio.c: Likewise.
38606 * script/lua/lzio.h: Likewise.
38607
38608 2009-05-16 Bean <bean123ch@gmail.com>
38609
38610 * include/grub/kernel.h (grub_module_header_types): Add type
38611 OBJ_TYPE_CONFIG.
38612
38613 * kern/main.c (grub_load_config): New function.
38614 (grub_main): Call grub_load_config to read boot config.
38615
38616 * grub-mkimage (generate_image): New parameter config_path.
38617 (options): New option --config.
38618 (main): Parse --config option, and pass it to generate_image.
38619
38620 2009-05-14 Christian Franke <franke@computer.org>
38621
38622 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38623 This fixes build on Cygwin.
38624
38625 2009-05-14 Pavel Roskin <proski@gnu.org>
38626
38627 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38628 jump. This saves two bytes, so the typical case of 2 swapped
38629 drives would fit 32 bytes.
38630
38631 2009-05-13 Pavel Roskin <proski@gnu.org>
38632
38633 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38634 grub_uint32_t to avoid a warning.
38635
38636 * loader/i386/linux.c (allocate_pages): When assigning
38637 real_mode_mem, cast through grub_size_t to fix a warning. The
38638 code already makes sure that the value would fit a pointer.
38639 (grub_linux_setup_video): Cast render_target->data to
38640 grub_size_t to fix a warning.
38641
38642 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38643
38644 * commands/i386/pc/drivemap.c: New file - implement drivemap
38645 command.
38646 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38647 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38648
38649 2009-05-13 Pavel Roskin <proski@gnu.org>
38650
38651 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38652 embedding_area_exists.
38653
38654 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38655
38656 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38657 it easier to understand / work with.
38658 Improve warning messages for cases where there's no embedding area,
38659 or when it is too small (or core.img too large).
38660
38661 2009-05-13 Pavel Roskin <proski@gnu.org>
38662
38663 * loader/i386/pc/multiboot2.c: Add necessary includes for
38664 grub_multiboot2_real_boot().
38665
38666 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38667 PX record is always little-endian. We only need the lower 2
38668 bytes of the mode.
38669
38670 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38671 facilitate code reuse.
38672 (grub_cpio_mount): Use "struct head", not a char buffer. This
38673 fixes a warning reported by gcc 4.4.
38674
38675 * kernel/disk.c (grub_disk_read): Use void pointer for the
38676 buffer.
38677 (grub_disk_write): Use const void pointer for the buffer.
38678 Adjust all callers. Remove unnecessary casts.
38679
38680 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38681
38682 * util/i386/pc/grub-install.in: Update copyright year.
38683
38684 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38685
38686 gptsync
38687
38688 * commands/gptsync.c: new file
38689 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38690 (gptsync_mod_SOURCES): new variable
38691 (gptsync_mod_CFLAGS): likewise
38692 (gptsync_mod_LDFLAGS): likewise
38693 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38694 new definition
38695 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38697 * conf/i386-ieee1275.rmk: likewise
38698 * conf/i386-pc.rmk: likewise
38699 * conf/powerpc-ieee1275.rmk: likewise
38700
38701 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38702
38703 Fixed grub-emu
38704
38705 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38706 (grub_dl_ref): likewise
38707
38708 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38709
38710 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38711 split in two functions (one for msdos and one for gpt).
38712
38713 2009-05-08 Pavel Roskin <proski@gnu.org>
38714
38715 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38716 not modified.
38717
38718 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38719 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38720 Initialize them with -1. Add sanity check for bad1. Eliminate
38721 nerr variable.
38722
38723 2009-05-08 David S. Miller <davem@davemloft.net>
38724
38725 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38726
38727 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38728
38729 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38730 existence.
38731
38732 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38733
38734 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38735 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38736
38737 2009-05-05 David S. Miller <davem@davemloft.net>
38738
38739 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38740
38741 2009-05-05 Pavel Roskin <proski@gnu.org>
38742
38743 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38744 of grub_dl_ref() and grub_dl_unref().
38745 * commands/parttool.c: Remove preprocessor conditionals around
38746 grub_dl_ref() and grub_dl_unref().
38747 * fs/affs.c: Likewise.
38748 * fs/afs.c: Likewise.
38749 * fs/cpio.c: Likewise.
38750 * fs/ext2.c: Likewise.
38751 * fs/fat.c: Likewise.
38752 * fs/hfs.c: Likewise.
38753 * fs/hfsplus.c: Likewise.
38754 * fs/iso9660.c: Likewise.
38755 * fs/jfs.c: Likewise.
38756 * fs/minix.c: Likewise.
38757 * fs/ntfs.c: Likewise.
38758 * fs/reiserfs.c: Likewise.
38759 * fs/sfs.c: Likewise.
38760 * fs/udf.c: Likewise.
38761 * fs/ufs.c: Likewise.
38762 * fs/xfs.c: Likewise.
38763 * include/grub/dl.h: Likewise.
38764 * loader/xnu.c: Likewise.
38765
38766 2009-05-04 Pavel Roskin <proski@gnu.org>
38767
38768 * commands/acpi.c: Remove unused variable my_mod.
38769 * partmap/amiga.c: Likewise.
38770 * partmap/apple.c: Likewise.
38771 * partmap/gpt.c: Likewise.
38772 * partmap/pc.c: Likewise.
38773 * partmap/sun.c: Likewise.
38774 * term/gfxterm.c: Likewise.
38775 * term/i386/pc/vesafb.c: Likewise.
38776 * term/i386/pc/vga.c: Likewise.
38777
38778 2009-05-04 David S. Miller <davem@davemloft.net>
38779
38780 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38781 pointer args to grub_ieee1275_get_property().
38782
38783 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38784
38785 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38786 devices, and do not traverse down under controller nodes.
38787
38788 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38789 (grub_ofdisk_open): Use it to un-escape "," characters.
38790 * kern/disk.c (find_part_sep): New.
38791 (grub_disk_open): Use it to find the first non-escaped ','
38792 character in the disk name.
38793 * util/ieee1275/devicemap.c (escape_of_path): New.
38794 (grub_util_emit_devicemap_entry): Use it.
38795 * util/sparc64/ieee1275/grub-install.in: Update script to
38796 strip partition specifiers properly by not triggering on
38797 '\' escaped ',' characters.
38798
38799 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38800
38801 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38802 to 0x300.
38803 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38804 resolutions.
38805 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38806 on documentation from Wikipedia).
38807
38808 2009-05-04 Pavel Roskin <proski@gnu.org>
38809
38810 * disk/ata.c: Spelling fixes.
38811 * disk/raid.c: Likewise.
38812 * disk/usbms.c: Likewise.
38813 * disk/dmraid_nvidia.c: Likewise.
38814 * kern/ieee1275/openfw.c: Likewise.
38815 * kern/ieee1275/init.c: Likewise.
38816 * kern/ieee1275/cmain.c: Likewise.
38817 * boot/i386/pc/cdboot.S: Likewise.
38818 * video/readers/png.c: Likewise.
38819 * video/i386/pc/vbe.c: Likewise.
38820 * fs/udf.c: Likewise.
38821 * fs/hfs.c: Likewise.
38822 * fs/reiserfs.c: Likewise.
38823 * efiemu/runtime/efiemu.c: Likewise.
38824 * efiemu/main.c: Likewise.
38825 * efiemu/mm.c: Likewise.
38826 * include/grub/elf.h: Likewise.
38827 * include/grub/xnu.h: Likewise.
38828 * include/grub/usbdesc.h: Likewise.
38829 * include/grub/usb.h: Likewise.
38830 * include/grub/script_sh.h: Likewise.
38831 * include/grub/lib/LzmaEnc.h: Likewise.
38832 * include/grub/efiemu/efiemu.h: Likewise.
38833 * include/grub/command.h: Likewise.
38834 * normal/menu.c: Likewise.
38835 * normal/main.c: Likewise.
38836 * normal/datetime.c: Likewise.
38837 * bus/usb/uhci.c: Likewise.
38838 * mmap/i386/uppermem.c: Likewise.
38839 * mmap/mmap.c: Likewise.
38840 * commands/acpi.c: Likewise.
38841 * commands/test.c: Likewise.
38842 * partmap/apple.c: Likewise.
38843 * font/font.c: Likewise.
38844 * loader/sparc64/ieee1275/linux.c: Likewise.
38845 * loader/macho.c: Likewise.
38846 * loader/i386/bsd_trampoline.S: Likewise.
38847 * loader/i386/bsd.c: Likewise.
38848 * loader/xnu.c: Likewise.
38849 * term/i386/pc/vesafb.c: Likewise.
38850 * term/usb_keyboard.c: Likewise.
38851 * util/resolve.c: Likewise.
38852 * util/getroot.c: Likewise.
38853
38854 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38855
38856 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38857
38858 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38859
38860 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38861 build error.
38862
38863 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38864
38865 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38866 parameter only available on BIOS.
38867
38868 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38869
38870 Removed wrong semicolon in declaration
38871
38872 * grub/misc.h (grub_dprintf): remove semicolon
38873
38874 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38875
38876 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38877 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38878 is done by grub_cmd_linux() now).
38879 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38880 restore video to text mode.
38881 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38882 indicates lack of "vga=" parameter. "vga=0" is mapped to
38883 `GRUB_LINUX_VID_MODE_NORMAL'.
38884
38885 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38886
38887 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38888 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38889 and `normal/script.c'. Add `kern/rescue_reader.c',
38890 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38891 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38892 `grub_script.tab.c'.
38893
38894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38895 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38897 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38898 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38899
38900 * Makefile.in: Remove duplicated 2008 in Copyright line.
38901
38902 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38903
38904 * util/misc.c (grub_util_warn): New function. Emits a warning
38905 unconditionally.
38906 * include/grub/util/misc.h (grub_util_warn): New declaration.
38907
38908 * util/i386/pc/grub-install.in: Understand --force and pass it down
38909 to grub-setup.
38910
38911 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38912 down to setup().
38913 (setup): Improve error messages and add warnings when requested to
38914 install in odd layouts. Refuse to install using blocklists unless
38915 --force was set.
38916
38917 2009-05-04 martin f. krafft <madduck@madduck.net>
38918
38919 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38920
38921 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38922
38923 Updated copyright year
38924
38925 * fs/hfsplus.c: updated copyright year
38926
38927 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38928
38929 HFS+ UUID
38930
38931 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38932 in the space previously used by unused3
38933 (grub_hfsplus_uuid): new function
38934 (grub_hfsplus_fs): added uuid field
38935
38936 2009-05-03 Pavel Roskin <proski@gnu.org>
38937
38938 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38939 suppress warnings. It's no longer needed.
38940 * disk/host.c: Likewise.
38941 * disk/ata_pthru.c: Likewise.
38942 * disk/loopback.c: Likewise.
38943 * hook/datehook.c: Likewise.
38944 * parttool/pcpart.c: Likewise.
38945 * fs/i386/pc/pxe.c: Likewise.
38946 * fs/ntfscomp.c: Likewise.
38947 * efiemu/main.c: Likewise.
38948 * mmap/mmap.c: Likewise.
38949 * commands/crc.c: Likewise.
38950 * commands/hexdump.c: Likewise.
38951 * commands/hdparm.c: Likewise.
38952 * commands/acpi.c: Likewise.
38953 * commands/echo.c: Likewise.
38954 * commands/minicmd.c: Likewise.
38955 * commands/blocklist.c: Likewise.
38956 * commands/memrw.c: Likewise.
38957 * commands/loadenv.c: Likewise.
38958 * commands/usbtest.c: Likewise.
38959 * commands/lsmmap.c: Likewise.
38960 * commands/boot.c: Likewise.
38961 * commands/parttool.c: Likewise.
38962 * commands/configfile.c: Likewise.
38963 * commands/search.c: Likewise.
38964 * commands/ieee1275/suspend.c: Likewise.
38965 * commands/cat.c: Likewise.
38966 * commands/i386/pc/pxecmd.c: Likewise.
38967 * commands/i386/pc/play.c: Likewise.
38968 * commands/i386/pc/halt.c: Likewise.
38969 * commands/i386/pc/vbeinfo.c: Likewise.
38970 * commands/i386/pc/vbetest.c: Likewise.
38971 * commands/lspci.c: Likewise.
38972 * commands/date.c: Likewise.
38973 * commands/handler.c: Likewise.
38974 * commands/ls.c: Likewise.
38975 * commands/test.c: Likewise.
38976 * commands/cmp.c: Likewise.
38977 * commands/efi/loadbios.c: Likewise.
38978 * commands/efi/fixvideo.c: Likewise.
38979 * commands/halt.c: Likewise.
38980 * commands/help.c: Likewise.
38981 * commands/reboot.c: Likewise.
38982 * hello/hello.c: Likewise.
38983 * script/sh/main.c: Likewise.
38984 * loader/xnu.c: Likewise.
38985 * term/terminfo.c: Likewise.
38986 * term/i386/pc/serial.c: Likewise.
38987 * term/usb_keyboard.c: Likewise.
38988
38989 2009-05-03 David S. Miller <davem@davemloft.net>
38990
38991 * normal/menu.c: Include grub/parser.h
38992
38993 2009-05-03 Pavel Roskin <proski@gnu.org>
38994
38995 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
38996 not char*.
38997 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
38998 Suggested by Javier Martín <lordhabbit@gmail.com>
38999
39000 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39001 efiemu??.o doesn't exist.
39002 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39003 copying.
39004
39005 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39006
39007 FreeBSD 64-bit support
39008
39009 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39010 and loader/i386/bsd_trampoline.S
39011 (bsd_mod_ASFLAGS): new variable
39012 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39013 (FREEBSD_MODTYPE_KERNEL64): likewise
39014 (grub_bsd64_trampoline_start): likewise
39015 (grub_bsd64_trampoline_end): likewise
39016 (grub_bsd64_trampoline_selfjump): likewise
39017 (grub_bsd64_trampoline_gdt): likewise
39018 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39019 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39020 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39021 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39022 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39023 of "attrib" member
39024 * loader/i386/bsd_pagetable.c: new file
39025 * loader/i386/bsd_trampoline.S: likewise
39026 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39027 (ALIGN_VAR): likewise
39028 (entry_hi): new variable
39029 (kern_end_mdofs): likewise
39030 (is_64bit): likewise
39031 (grub_freebsd_add_meta): use ALIGN_VAR
39032 (grub_e820_mmap): new declaration
39033 (grub_freebsd_add_mmap): new function
39034 (grub_freebsd_add_meta_module): support 64 bit kernels
39035 (grub_freebsd_list_modules): use ALIGN_VAR
39036 (gdt_descriptor): new declaration
39037 (grub_freebsd_boot): support 64 bit kernels
39038 (grub_bsd_elf64_hook): new function
39039 (grub_bsd_load_elf): support elf64
39040
39041 2009-05-03 Bean <bean123ch@gmail.com>
39042
39043 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39044 after we get the result of if statement.
39045
39046 2009-05-03 Bean <bean123ch@gmail.com>
39047
39048 * Makefile.in (enable_efiemu): New variable.
39049
39050 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39051 set.
39052 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39053 path.
39054 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39055 path, add -mno-red-zone option.
39056 (efiemu64_s.o): Likewise.
39057 (efiemu64.o): Use macro $^ for source file.
39058
39059 * configure.ac (--enable-efiemu): New option.
39060
39061 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39062
39063 xnu support
39064
39065 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39066 (pkglib_MODULES): add xnu.mod
39067 (xnu_mod_SOURCES): new variable
39068 (xnu_mod_CFLAGS): likewise
39069 (xnu_mod_LDFLAGS): likewise
39070 (xnu_mod_ASFLAGS): likewise
39071 * conf/i386-pc.rmk: likewise
39072 * conf/x86_64-efi.rmk: likewise
39073 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39074 new declaration
39075 * include/grub/i386/macho.h: new file
39076 * include/grub/i386/xnu.h: likewise
39077 * include/grub/macho.h: likewise
39078 * include/grub/machoload.h: likewise
39079 * include/grub/x86_64/macho.h: likewise
39080 * include/grub/x86_64/xnu.h: likewise
39081 * include/grub/xnu.h: likewise
39082 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39083 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39084 * loader/i386/efi/xnu.c: new file
39085 * loader/i386/pc/xnu.c: likewise
39086 * loader/i386/xnu.c: likewise
39087 * loader/i386/xnu_helper.S: likewise
39088 * loader/macho.c: likewise
39089 * loader/xnu.c: likewise
39090 * loader/xnu_resume.c: likewise
39091 * util/grub-dumpdevtree: likewise
39092 * include/grub/i386/pit.h: include grub/err.h
39093 (grub_pit_wait): export
39094 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39095
39096 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39097
39098 Efiemu
39099
39100 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39101 _linux_efi, linux_efi.
39102 new files in grub-emu
39103 new targets efiemu32.o and efiemu64.o
39104 * loader/linux_normal_efiemu.c: likewise
39105 * loader/i386/efi/linux.c: added preliminary efiemu support
39106 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39107 files to copy
39108 * include/grub/autoefi.h: new file
39109 * include/grub/i386/efiemu.h: likewise
39110 * include/grub/i386/pc/efiemu.h: likewise
39111 * include/grub/efi/api.h: add LL suffix when necessary
39112 new definitions relating to tables
39113 * include/grub/efiemu/efiemu.h: new file
39114 * include/grub/efiemu/runtime.h: likewise
39115 * efiemu/prepare.c: likewise
39116 * efiemu/loadcore_common.c: likewise
39117 * efiemu/loadcore64.c: likewise
39118 * efiemu/runtime/efiemu.sh: likewise
39119 * efiemu/runtime/efiemu.S: likewise
39120 * efiemu/runtime/efiemu.c: likewise
39121 * efiemu/runtime/config.h: likewise
39122 * efiemu/prepare32.c: likewise
39123 * efiemu/main.c: likewise
39124 * efiemu/modules/pnvram.c: likewise
39125 * efiemu/modules/i386: likewise
39126 * efiemu/modules/i386/pc: likewise
39127 * efiemu/modules/acpi.c: likewise
39128 * efiemu/i386/pc/cfgtables.c: likewise
39129 * efiemu/i386/loadcore64.c: likewise
39130 * efiemu/i386/loadcore32.c: likewise
39131 * efiemu/prepare64.c: likewise
39132 * efiemu/loadcore.c: likewise
39133 * efiemu/symbols.c: likewise
39134 * efiemu/mm.c: likewise
39135 * efiemu/loadcore32.c: likewise
39136
39137 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39138
39139 ACPI spoofing
39140
39141 * commands/acpi.c: new file
39142 * commands/i386/pc/acpi.c: likewise
39143 * commands/efi/acpi.c: likewise
39144 * include/grub/acpi.h: likewise
39145 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39146 (acpi_mod_SOURCES): new variable
39147 (acpi_mod_CFLAGS): likewise
39148 (acpi_mod_LDFLAGS): likewise
39149 * conf/i386-efi.rmk: likewise
39150 * conf/x86_64-efi.rmk: likewise
39151
39152 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39153
39154 Missing part from mmap patch
39155
39156 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39157 (grub_mmap_unregister)
39158 (grub_mmap_free_and_unregister): use grub_mmap_register
39159
39160 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39161
39162 Mmap services
39163
39164 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39165 * loader/i386/linux.c (find_mmap_size): likewise
39166 (allocate_pages): likewise
39167 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39168 (grub_fill_multiboot_mmap): likewise
39169 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39170 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39171 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39172 (OPENBSD_MMAP_RESERVED): likewise
39173 * include/grub/i386/pc/memory.h: include grub/memory.h
39174 (grub_lower_mem): removed
39175 (grub_upper_mem): likewise
39176 (GRUB_MACHINE_MEMORY_ACPI): new definition
39177 (GRUB_MACHINE_MEMORY_NVS): likewise
39178 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39179 (GRUB_MACHINE_MEMORY_HOLE): likewise
39180 (grub_machine_mmap_register): likewise
39181 (grub_machine_mmap_unregister): likewise
39182 (grub_machine_get_upper): likewise
39183 (grub_machine_get_lower): likewise
39184 (grub_machine_get_post64): likewise
39185 * include/grub/i386/efi/memory.h: new file
39186 * include/grub/x86_64/efi/memory.h: likewise
39187 * include/grub/efi/memory.h: likewise
39188 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39189 (mmap_mod_SOURCES): new variable
39190 (mmap_mod_LDFLAGS): likewise
39191 (mmap_mod_ASFLAGS): likewise
39192 * conf/i386-coreboot.rmk: likewise
39193 * conf/i386-ieee1275.rmk: likewise
39194 * conf/i386-efi.rmk: likewise
39195 * conf/x86_64-efi.rmk: likewise
39196 * include/grub/types.h (UINT_TO_PTR): new macro
39197 (PTR_TO_UINT32): likewise
39198 (PTR_TO_UINT64): likewise
39199 * include/grub/memory.h: new file
39200 * mmap/i386/pc/mmap.c: likewise
39201 * mmap/i386/pc/mmap_helper.S: likewise
39202 * mmap/i386/uppermem.c: likewise
39203 * mmap/mmap.c: likewise
39204 * mmap/efi/mmap.c: likewise
39205 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39206 grub_upper_mem
39207 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39208 (grub_upper_mem): likewise
39209 (grub_machine_init): don't use grub_upper_mem,
39210 make grub_lower_mem local
39211 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39212 grub_mmap_iterate and grub_mmap_get_upper
39213 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39214
39215 2009-05-02 Bean <bean123ch@gmail.com>
39216
39217 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39218 script/sh/parser.y.
39219 (pkglib_MODULES): Add normal.mod and sh.mod.
39220 (normal_SOURCES): New variable.
39221 (normal_mod_CFLAGS): Likewise.
39222 (normal_mod_LDFLAGS): Likewise.
39223 (sh_mod_SOURCES): Likewise.
39224 (sh_mod_CFLAGS): Likewise.
39225 (sh_mod_LDFLAGS): Likewise.
39226
39227 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39228 script/sh/lexer.c_DEPENDENCIES.
39229 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39230 kern/rescue_reader.c and kern/rescue_parser.c.
39231 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39232 (grub_emu_SOURCES): Change source files.
39233 (pkglib_MODULES): Remove normal.mod.
39234 (normal_SOURCES): Removed.
39235 (normal_mod_CFLAGS): Likewise.
39236 (normal_mod_LDFLAGS): Likewise.
39237 * conf/i386-coreboot.rmk: Likewise.
39238 * conf/i386-efi.rmk: Likewise.
39239 * conf/i386-ieee1276.rmk: Likewise.
39240 * conf/powerpc-ieee1275.rmk: Likewise.
39241 * conf/sparc64-ieee1275.rmk: Likewise.
39242 * conf/x86_64-efi.rmk: Likewise.
39243
39244 * include/grub/command.h (grub_command_execute): New inline function.
39245
39246 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39247
39248 * include/grub/normal.h: Remove <grub/setjmp.h>.
39249 (grub_fs_module_list): Moved to normal/autofs.c.
39250 (grub_exit_env): Removed.
39251 (grub_command_execute): Likewise.
39252 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39253 parameter script.
39254 (read_command_list): New function declaration.
39255 (read_fs_list): Likewise.
39256
39257 * include/parser.h: Include <grub/reader.h>.
39258 (grub_parser_split_cmdline): Change type of getline parameter.
39259 (grub_parser): New structure.
39260 (grub_parser_class): New variable.
39261 (grub_parser_execute): New function declaration.
39262 (grub_register_rescue_parser): Likewise.
39263 (grub_parser_register): New inline function.
39264 (grub_parser_unregister): Likewise.
39265 (grub_parser_get_current): Likewise.
39266 (grub_parser_set_current): Likewise.
39267
39268 * include/grub/reader.h: New file.
39269 * kern/reader.c: Likewise.
39270 * kern/rescue_parser.c: Likewise.
39271 * kern/rescue_reader.c: Likewise.
39272 * normal/autofs.c: Likewise.
39273 * normal/dyncmd.c: Likewise.
39274
39275 * include/grub/rescue.h: Removed.
39276 * normal/command.h: Likewise.
39277
39278 * include/grub/script.h: Moved to ...
39279 * include/grub/script_sh.h: ... Moved here.
39280 * normal/execute.c: Moved to ...
39281 * script/sh/execute.c: ... Moved here.
39282 * normal/function.c: Moved to ...
39283 * script/sh/function.c: ... Moved here.
39284 * normal/lexer.c: Moved to ...
39285 * script/sh/lexer.c: ... Moved here.
39286 * normal/parser.y: Moved to ...
39287 * script/sh/parser.y: ... Moved here.
39288 * normal/script.c: Moved to ...
39289 * script/sh/script.c: ... Moved here.
39290
39291 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39292 <grub/reader.h>.
39293 (grub_exit_env): Removed.
39294 (fs_module_list): Moved to normal/autofs.c.
39295 (grub_file_getline): Don't handle comment here.
39296 (free_menu): Skip removed field entry->commands.
39297 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39298 script parameter.
39299 (read_config_file): Removed nested parameter, change getline function.
39300 (grub_enter_normal_mode): Removed.
39301 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39302 (read_command_list): Likewise.
39303 (autoload_fs_module): Moved to normal/autofs.c.
39304 (read_fs_list): Likewise.
39305 (reader_nested): New variable.
39306 (grub_normal_execute): Run parser.sh to switch to sh parser.
39307 (grub_cmd_rescue): Removed.
39308 (cmd_normal): Removed.
39309 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39310 rescue command.
39311 (grub_cmdline_run): New function.
39312 (grub_normal_reader_init): Likewise.
39313 (grub_normal_read_line): Likewise.
39314 (grub_env_write_pager): Likewise.
39315 (cmdline): New variable.
39316 (grub_normal_reader): Likewise.
39317 (GRUB_MOD_INIT): Register normal reader and set as current, register
39318 pager hook, register normal command with grub_register_command_prio,
39319 so that it won't show up in command.lst.
39320 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39321 grub_fs_autoload_hook.
39322
39323 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39324 (grub_menu_execute_entry): Replace grub_script_execute with
39325 grub_parser_execute, change parameter to grub_command_execute.
39326
39327 * normal/menu_text.c: Remove <grub/script.h>.
39328
39329 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39330 and <grub/parser.h>.
39331 (run): Change editor_getline to use new parser interface. Change
39332 parameter to grub_command_execute.
39333
39334 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39335 <grub/reader.h> and <grub/parser.h>.
39336 (grub_load_normal_mode): Execute normal command.
39337 (grub_main): Call grub_register_core_commands,
39338 grub_register_rescue_parser and grub_register_rescue_reader, use
39339 grub_reader_loop to enter input loop.
39340
39341 * kern/parser.c (grub_parser_split_cmdline): Change type of
39342 getline parameter.
39343 (grub_parser_class): New variable.
39344 (grub_parser_execute): New function.
39345
39346 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39347 * loader/multiboot2.c: Likewise.
39348 * loader/sparc64/ieee1275/linux.c: Likewise.
39349
39350 * util/grub-emu.c (read_command_list): New dummy function.
39351
39352 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39353
39354 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39355 count to 16 for CCISS and IDA.
39356
39357 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39358
39359 * normal/menu_text.c (grub_wait_after_message): Print a newline
39360 after waiting for user input.
39361
39362 * loader/i386/linux.c: Include `<grub/normal.h>'.
39363 (grub_cmd_linux): Improve the error message about `ask' mode, by
39364 waiting for user input so it's not missed (we can do this, since
39365 user requested interaction).
39366
39367 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39368
39369 Added missing lst to grub-mkrescue
39370
39371 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39372 and ${input_dir}/parttool.lst
39373
39374 2009-04-30 David S. Miller <davem@davemloft.net>
39375
39376 * util/hostdisk.c (device_is_wholedisk): New function.
39377 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39378 zero only if device_is_wholedisk() returns true.
39379
39380 * util/hostdisk.c (convert_system_partition_to_system_disk):
39381 Handle virtual disk devices named /dev/vdiskX as found on sparc
39382 and powerpc.
39383
39384 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39385 lettered partition specifier is found, convert to numbered.
39386
39387 2009-04-29 David S. Miller <davem@davemloft.net>
39388
39389 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39390 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39391
39392 * normal/command.c: Add missing newline at end of file.
39393
39394 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39395 warnings.
39396 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39397 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39398 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39399 ihandles have a 32-bit type but need to be stored in a "void *".
39400
39401 2009-04-28 Pavel Roskin <proski@gnu.org>
39402
39403 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39404 not disk. Adjust all dependencies.
39405 (grub_fs_uuid_close): Use grub_device_close(), not
39406 grub_disk_close().
39407
39408 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39409 parent's partition, don't copy it by reference, as it gets freed
39410 on close.
39411
39412 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39413
39414 Preboot hooks support
39415
39416 * commands/boot.c (struct grub_preboot_t): new declaration
39417 (preboots_head): new variable
39418 (preboots_tail): likewise
39419 (grub_loader_register_preboot_hook): new function
39420 (grub_loader_unregister_preboot_hook): likewise
39421 (grub_loader_set): launch preboot hooks
39422 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39423 (grub_loader_register_preboot_hook): new declaration
39424 (grub_loader_unregister_preboot_hook): likewise
39425
39426 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39427
39428 Warning fix
39429
39430 * disk/scsi.c (grub_scsi_open): added missing cast when
39431 calling grub_dprintf
39432
39433 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39434
39435 Bug and warning fixes
39436
39437 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39438 declaration
39439 * commands/test.c (test_parse): fixed bug with file tests and corrected
39440 declaration of find_file
39441
39442 2009-04-26 Pavel Roskin <proski@gnu.org>
39443
39444 * Makefile.in: Don't install empty manual pages if help2man is
39445 missing. Use help2man option for output, not shell redirection.
39446
39447 2009-04-26 David S. Miller <davem@davemloft.net>
39448
39449 * util/grub-mkdevicemap.c (make_device_map): Add missing
39450 NESTED_FUNC_ATTR to process_device().
39451
39452 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39453
39454 Test command
39455
39456 * commands/test.c: rewritten to use bash-like test
39457
39458 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39459
39460 Parttool autoloading and improvements
39461
39462 * Makefile.in (pkglib_DATA): add parttool.lst
39463 (parttool.lst): new target
39464 * genmk.rb: generate parttool-*
39465 (CLEANFILES): add #{parttool}
39466 (PARTTOOLFILES): new variable
39467 * genparttoollist.sh: new file
39468 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39469 (grub_pcpart_type): likewise
39470 * commands/parttool.c (helpmsg): new variable
39471 (grub_cmd_parttool): output help if not enough arguments are supplied
39472 autoload modules
39473 (GRUB_MOD_INIT(parttool)): use helpmsg
39474
39475 2009-04-24 David S. Miller <davem@davemloft.net>
39476
39477 Avoiding opening same device multiple times in device iterator.
39478
39479 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39480 and use it to build a list of partitions in iterate_disk() and
39481 iterate_partition().
39482
39483 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39484 on disk->data.
39485
39486 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39487 grub_devalias_iterate() result instead of unconditional 0.
39488 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39489 Also, capture hook return value, either directly or via
39490 grub_children_iterate(), and propagate to caller.
39491 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39492 grub_children_iterate): Return value is now 'int' instead of
39493 'grub_err_t'.
39494 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39495 like a proper iterator, stopping when hooks return non-zero.
39496 (grub_devalias_iterate): Likewise.
39497
39498 2009-04-23 David S. Miller <davem@davemloft.net>
39499
39500 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39501
39502 2009-04-22 David S. Miller <davem@davemloft.net>
39503
39504 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39505 is larger than address_cells, use that value for address_cells too.
39506
39507 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39508 IEEE1275_MAX_PATH_LEN): Define.
39509 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39510 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39511 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39512 'devtype'. Explicitly NULL terminate devalias expansion.
39513
39514 * util/sparc64/ieee1275/misc.c: New file.
39515 * util/sparc64/ieee1275/grub-setup.c: New file.
39516 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39517 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39518 * util/sparc64/ieee1275/grub-install.in: New file.
39519 * util/ieee1275/ofpath.c: New file.
39520 * util/ieee1275/devicemap.c: New file.
39521 * util/devicemap.c: New file.
39522 * util/deviceiter.c: New file.
39523 * kern/sparc64/ieee1275/init.c: New file.
39524 * include/grub/util/ofpath.h: New file.
39525 * include/grub/util/deviceiter.h: New file.
39526 * util/grub-mkdevicemap.c: Include deviceiter.h.
39527 Implement using grub_util_emit_devicemap_entry and
39528 grub_util_iterate_devices.
39529 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39530 util/devicemap.c into grub-mkdevicemap
39531 * conf/i386-efi.rmk: Likewise.
39532 * conf/i386-ieee1275.rmk: Likewise.
39533 * conf/i386-pc.rmk: Likewise.
39534 * conf/powerpc-ieee1275.rmk: Likewise.
39535 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39536 images and installation utilities. Build kernel as image
39537 instead of as elf binary. Use common rules as much as possible.
39538
39539 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39540
39541 Correct GPT definition
39542
39543 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39544 of "attrib" member
39545
39546 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39547
39548 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39549
39550 2009-04-19 David S. Miller <davem@davemloft.net>
39551
39552 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39553 (grub_rescue_cmd_linux): Rename to...
39554 (grub_cmd_linux): and fix prototype.
39555 (grub_rescue_cmd_initrd): Rename to...
39556 (grub_cmd_initrd): and fix prototype.
39557 (cmd_linux, cmd_initrd): New.
39558 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39559 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39560
39561 2009-04-17 Pavel Roskin <proski@gnu.org>
39562
39563 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39564 format.
39565 (grub_ohci_transfer): Likewise.
39566
39567 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39568
39569 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39570 return without a value. Fix inconsistent indentation.
39571
39572 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39573 match struct grub_fs.
39574
39575 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39576 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39577 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39578 * commands/lspci.c (grub_lspci_iter): Likewise.
39579
39580 2009-04-16 Bean <bean123ch@gmail.com>
39581
39582 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39583 value.
39584
39585 2009-04-15 Pavel Roskin <proski@gnu.org>
39586
39587 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39588 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39589 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39590 definitions.
39591
39592 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39593
39594 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39595 that no multiple data or metadata areas are supported and `Unknown
39596 metadata header'.
39597
39598 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39599
39600 Move loader out of the kernel
39601
39602 * kern/loader.c: moved to ...
39603 * commands/boot.c: ... moved here
39604 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39605 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39606 * include/grub/kernel.h (grub_machine_fini): export
39607 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39608 (grub_loader_set): likewise
39609 (grub_loader_unset): likewise
39610 (grub_loader_boot): likewise
39611 * conf/common.rmk: new module boot.mod
39612 (pkglib_MODULES): add boot.mod
39613 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39614 (grub_emu_SOURCES): likewise
39615 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39616 (grub_emu_SOURCES): likewise
39617 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39618 (grub_emu_SOURCES): likewise
39619 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39620 (grub_emu_SOURCES): likewise
39621 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39622 (grub_emu_SOURCES): likewise
39623 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39624 (grub_emu_SOURCES): likewise
39625 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39626 (grub_emu_SOURCES): likewise
39627
39628 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39629
39630 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39631
39632 * kern/misc.c (grub_itoa): Removed function
39633 (grub_ltoa): likewise
39634 (grub_vsprintf): use grub_lltoa
39635
39636 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39637
39638 Restore grub-emu
39639
39640 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39641 * conf/i386-coreboot.rmk: likewise
39642 * conf/i386-ieee1275.rmk: likewise
39643 * conf/powerpc-ieee1275.rmk: likewise
39644
39645 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39646
39647 * INSTALL: Add that `./autogen.sh' needs to be run before
39648 `./configure.'.
39649
39650 2009-04-14 Bean <bean123ch@gmail.com>
39651
39652 * Makefile.in (pkglib_DATA): Add handler.lst.
39653 (handler.lst): New rule.
39654
39655 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39656 * conf/i386-coreboot.rmk: Likewise.
39657 * conf/i386-ieee1275.rmk: Likewise.
39658 * conf/i386-efi.rmk: Likewise.
39659 * conf/x86_64-efi.rmk: Likewise.
39660 * conf/powerpc-ieee1275.rmk: Likewise.
39661 * conf/sparc64-ieee1275.rmk: Likewise.
39662
39663 * genhandlerlist.sh: New file.
39664
39665 * genmk.rb: Add rules to generate handler.lst.
39666
39667 * include/grub/normal.h (grub_file_getline): New function definition.
39668 (read_handler_list): Likewise.
39669 (free_handler_list): Likewise.
39670
39671 * include/grub/term.h (grub_term_register_input): Add name parameter
39672 for auto generation of handler.lst.
39673 (grub_term_register_output): Likewise.
39674
39675 * normal/handler.c: New file.
39676
39677 * normal/main.c (get_line): Renamed to grub_file_getline.
39678 (read_config_file): Use the newly renamed grub_file_getline.
39679 (read_command_list): Likewise.
39680 (read_fs_list): Likewise.
39681 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39682 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39683
39684 * term/efi/console.c (grub_console_init): Add name parameter for auto
39685 generation of handler.lst.
39686 * term/gfxterm.c: Likewise.
39687 * term/i386/pc/at_keyboard.c: Likewise.
39688 * term/i386/pc/console.c: Likewise.
39689 * term/i386/pc/serial.c: Likewise.
39690 * term/i386/pc/vesafb.c: Likewise.
39691 * term/i386/pc/vga.c: Likewise.
39692 * term/i386/pc/vga_text.c: Likewise.
39693 * term/ieee1275/ofconsole.c: Likewise.
39694 * term/usb_keyboard.c: Likewise.
39695
39696 2009-04-14 Bean <bean123ch@gmail.com>
39697
39698 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39699 properly with null character.
39700
39701 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39702
39703 * configure: Remove.
39704 * config.h.in: Likewise.
39705 * stamp-h.in: Likewise.
39706 * DISTLIST: Likewise.
39707 * conf/common.mk: Likewise.
39708 * conf/i386-coreboot.mk: Likewise.
39709 * conf/i386-efi.mk: Likewise.
39710 * conf/i386-ieee1275.mk: Likewise.
39711 * conf/i386.mk: Likewise.
39712 * conf/i386-pc.mk: Likewise.
39713 * conf/powerpc-ieee1275.mk: Likewise.
39714 * conf/sparc64-ieee1275.mk: Likewise.
39715 * conf/x86_64-efi.mk: Likewise.
39716
39717 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39718 develop on GRUB.
39719
39720 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39721 David S. Miller <davem@davemloft.net>
39722
39723 * util/hostdisk.c (make_device_name): Fix buffer length
39724 calculations.
39725
39726 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39727
39728 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39729 <sys/param.h> and <sys/sysctl.h>.
39730 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39731 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39732 opening the device and reset them afterwards.
39733
39734 2009-04-13 Pavel Roskin <proski@gnu.org>
39735
39736 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39737 Reported by John Stanley <jpsinthemix@verizon.net>
39738
39739 2009-04-13 Robert Millan <rmh@aybabtu.com>
39740
39741 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39742 that name for menuentries when appropriate.
39743
39744 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39745
39746 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39747
39748 2009-04-13 Robert Millan <rmh@aybabtu.com>
39749
39750 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39751 to Linux, simply abort telling the user it's no longer supported.
39752
39753 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39754
39755 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39756 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39757 `freebsd_loadenv' only when devices.hints exist.
39758
39759 2009-04-13 Pavel Roskin <proski@gnu.org>
39760
39761 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39762
39763 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39764
39765 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39766 partition number.
39767 (grub_drive): Likewise.
39768
39769 2009-04-13 David S. Miller <davem@davemloft.net>
39770
39771 * kern/sparc64/ieee1275/ieee1275.c: New file.
39772 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39773 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39774 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39775 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39776 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39777 grub_ieee1275_alloc_physmem): Declare new exported functions.
39778
39779 * include/grub/sparc64/ieee1275/loader.h: New file.
39780 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39781 * include/grub/sparc64/kernel.h: Likewise.
39782 * loader/sparc64/ieee1275/linux.c: Likewise.
39783
39784 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39785 (grub_fstest_SOURCES): Likewise.
39786
39787 * util/hostdisk.c (make_device_name): Do not make any assumptions
39788 about the length of drive names.
39789
39790 * kern/dl.c (grub_dl_load_file): Close file immediately when
39791 we are done using it.
39792
39793 2009-04-12 David S. Miller <davem@davemloft.net>
39794
39795 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39796 values. Noticed by Pavel Roskin.
39797
39798 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39799 target compiler.
39800
39801 * genmk.rb: Add more flexible image type specification, also
39802 pass --strip-unneeded to objcopy.
39803 * conf/i386-pc.rmk: Use *_FORMAT.
39804 * conf/i386-pc.mk: Rebuilt.
39805
39806 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39807 (OFDISK_HASH_SZ): Define.
39808 (ofdisk_hash): New hash table.
39809 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39810 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39811 instead of device phandle which is not unique.
39812
39813 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39814 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39815 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39816 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39817 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39818 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39819 GRUB_KERNEL_MACHINE_DATA_END): Define.
39820 (grub_kernel_image_size, grub_total_module_size): Declare.
39821
39822 2009-04-12 Pavel Roskin <proski@gnu.org>
39823
39824 * configure.ac: Change the logic when we check for target tools.
39825 Do it when the target is specified and it's different from the
39826 specified value of the host.
39827
39828 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39829
39830 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39831 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39832 GNU/kFreeBSD. Check if a device is a character device. Use
39833 DIOCGMEDIASIZE to get the size.
39834 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39835 support for GNU/kFreeBSD.
39836 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39837 is a character device instead of a block device. Add support for
39838 FreeBSD device names.
39839
39840 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39841 is a character device instead of a block device.
39842
39843 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39844 is a character device instead of a block device.
39845
39846 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39847
39848 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39849 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39850 FreeBSD. Check if a device is a character device. Use
39851 DIOCGMEDIASIZE to get the size.
39852 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39853 support for FreeBSD.
39854 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39855 is a character device instead of a block device. Add support for
39856 FreeBSD device names.
39857
39858 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39859 a character device instead of a block device.
39860 (grub_util_check_char_device): New function.
39861
39862 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39863 a character device instead of a block device.
39864
39865 * include/grub/util/getroot.h (grub_util_check_char_device): New
39866 prototype.
39867
39868 2009-04-11 David S. Miller <davem@davemloft.net>
39869
39870 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39871 static libgcc.
39872 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39873 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39874 function, if present.
39875 (__bswapdi2): Likewise.
39876
39877 * include/grub/sparc64/ieee1275/boot.h: New file.
39878 * boot/sparc64/ieee1275/boot.S: Likewise.
39879 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39880
39881 * kern/misc.c (grub_ltoa): New function.
39882 (grub_vsprintf): Use it to format 'long' integers.
39883
39884 2009-04-10 David S. Miller <davem@davemloft.net>
39885
39886 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39887 slots are of type grub_ieee1275_cell_t.
39888 (grub_nand_read): Likewise.
39889 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39890 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39891 macros are used to compare values in arg/ret block of the call.
39892 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39893 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39894 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39895 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39896 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39897 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39898 grub_ieee1275_close, grub_ieee1275_set_property,
39899 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39900 grub_ieee1275_cell_t.
39901 * kern/ieee1275/openfw.c (grub_map): Likewise.
39902 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39903 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39904
39905 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39906 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39907 (grub_devalias_iterate): Likewise.
39908
39909 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39910
39911 UFS improvements
39912
39913 * fs/ufs.c (INODE_NBLOCKS): new definition
39914 (struct grub_ufs_dirent): added fields for non-BSD dirents
39915 (grub_ufs_get_file_block): fixed double indirect handling
39916 (grub_ufs_lookup_symlink): use more robust way to determine whether
39917 symlink is inline
39918 (grub_ufs_find_file): support for non-BSD dirents
39919 (grub_ufs_dir): support for non-BSD dirents
39920
39921 2009-04-10 Bean <bean123ch@gnail.com>
39922
39923 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39924 attribute, otherwise the size would be wrong for i386 platform.
39925
39926 * include/grub/pci.h (grub_pci_read_word): New inline function.
39927 (grub_pci_read_byte): Likewise.
39928 (grub_pci_write): Likewise.
39929 (grub_pci_write_word): Likewise.
39930 (grub_pci_write_byte): Likewise.
39931
39932 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39933
39934 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39935 (find_framebuf): Scan pci to locate the frame buffer address.
39936
39937 * commands/efi/fixvideo.c: New file.
39938
39939 * commands/efi/loadbios.c: Likewise.
39940
39941 * commands/memrw.c: Likewise.
39942
39943 * util/grub-dumpbios.in: Likewise.
39944
39945 * conf/common.rmk (grub-dumpbios): New utility.
39946 (pkglib_MODULES): New module memrw.mod.
39947 (memrw_mod_SOURCE): New macro.
39948 (memrw_mod_CFLAGS): Likewise.
39949 (memrw_mod_LDFLAGS): Likewise.
39950
39951 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39952 fixvideo.mod.
39953 (loadbios_mod_SOURCE): New macro.
39954 (loadbios_mod_CFLAGS): Likewise.
39955 (loadbios_mod_LDFLAGS): Likewise.
39956 (fixvideo_mod_SOURCE): Likewise.
39957 (fixvideo_mod_CFLAGS): Likewise.
39958 (fixvideo_mod_LDFLAGS): Likewise.
39959
39960 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39961 fixvideo.mod.
39962 (loadbios_mod_SOURCE): New macro.
39963 (loadbios_mod_CFLAGS): Likewise.
39964 (loadbios_mod_LDFLAGS): Likewise.
39965 (fixvideo_mod_SOURCE): Likewise.
39966 (fixvideo_mod_CFLAGS): Likewise.
39967 (fixvideo_mod_LDFLAGS): Likewise.
39968
39969 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
39970
39971 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
39972
39973 2009-04-07 David S. Miller <davem@davemloft.net>
39974
39975 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
39976 support for R_SPARC_OLO10 relocations. Fix compile warning for
39977 R_SPARC_WDISP30 case.
39978 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
39979
39980 2009-04-06 Pavel Roskin <proski@gnu.org>
39981
39982 * include/grub/misc.h (ARRAY_SIZE): New macro.
39983 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
39984 New macro.
39985 * loader/i386/linux.c (allocate_pages): Use free_pages().
39986 (grub_linux_unload): Don't use free_pages().
39987 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
39988 wrong index. Treat all other modes as text modes.
39989 (grub_cmd_linux): Initialize vid_mode unconditionally to
39990 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
39991
39992 * commands/help.c (print_command_help): Use cmd->prio, not
39993 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
39994
39995 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
39996
39997 Parttool
39998
39999 * parttool/pcpart.c: new file
40000 * commands/parttool.c: likewise
40001 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40002 (parttool_mod_SOURCES): new variable
40003 (parttool_mod_CFLAGS): likewise
40004 (parttool_mod_LDFLAGS): likewise
40005 (pcpart_mod_SOURCES): likewise
40006 (pcpart_mod_CFLAGS): likewise
40007 (pcpart_mod_LDFLAGS): likewise
40008 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40009 and parttool/pcpart.c
40010 * conf/i386-efi.rmk: likewise
40011 * conf/i386-ieee1275.rmk: likewise
40012 * conf/i386-pc.rmk: likewise
40013 * conf/powerpc-ieee1275.rmk: likewise
40014 * conf/sparc64-ieee1275.rmk: likewise
40015 * conf/x86_64-ieee1275.rmk: likewise
40016
40017 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40018
40019 Support for mtime and further expandability of dir command
40020
40021 * include/grub/lib/datetime.h: moved to ...
40022 * include/grub/datetime.h: ... moved here and added
40023 declaration of grub_unixtime2datetime. All users updated
40024 * include/grub/fs.h: new syntax for dir and mtime functions in
40025 struct grub_fs
40026 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40027 and GRUB_FSHELP_FLAGS_MASK
40028 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40029 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40030 (grub_ext2_mtime): new function
40031 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40032 (grub_hfsplus_mtime): new function
40033 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40034 (GRUB_UFS_ATTR_FILE): likewise
40035 (GRUB_UFS_ATTR_LNK): likewise
40036 (struct grub_ufs_sblock): new fields mtime
40037 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40038 all users updated
40039 (grub_ufs_dir): mtime support
40040 (grub_ufs_mtime): new function
40041 * fs/affs.c (grub_affs_dir): use new dir syntax
40042 * fs/afs.c (grub_afs_dir): likewise
40043 * fs/cpio.c (grub_cpio_dir): likewise
40044 * fs/fat.c (grub_fat_find_dir): likewise
40045 * fs/hfs.c (grub_hfs_dir): likewise
40046 * fs/iso9660.c (grub_iso9660_dir): likewise
40047 * fs/jfs.c (grub_jfs_dir): likewise
40048 * fs/minix.c (grub_minix_dir): likewise
40049 * fs/ntfs.c (grub_ntfs_dir): likewise
40050 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40051 * fs/sfs.c (grub_sfs_dir): likewise
40052 * fs/xfs.c (grub_xfs_dir): likewise
40053 * util/hostfs.c (grub_hostfs_dir): likewise
40054 * lib/datetime.c: moved to ...
40055 * normal/datetime.c: ... moved here
40056 (grub_unixtime2datetime): new function
40057 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40058 * normal/completion.c (iterate_dir): use new dir syntax
40059 * normal/misc.c (grub_normal_print_device_info): tell the
40060 last modification time of a volume
40061 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40062 * conf/common.rmk: added lib/datetime.c to ls.mod
40063 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40064 (normal_mod_SOURCES): likewise
40065 (datetime_mod_SOURCES): Removed lib/datetime.c
40066 * conf/i386-efi.rmk: likewise
40067 * conf/i386-ieee1275.rmk: likewise
40068 * conf/i386-pc.rmk: likewise
40069 * conf/powerpc-ieee1275.rmk: likewise
40070 * conf/sparc64-ieee1275.rmk: likewise
40071 * conf/x86_64-efi.rmk: likewise
40072
40073 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40074
40075 Trim trailing spaces in FAT label and support mtools-like labels
40076
40077 * fs/fat.c (grub_fat_iterate_dir): New function based
40078 on grub_fat_find_dir
40079 (grub_fat_find_dir): use grub_fat_iterate_dir
40080 (grub_fat_label): likewise
40081
40082 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40083
40084 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40085 and command.h
40086 remove extraneous kernel_elf_HEADERS
40087
40088 2009-04-04 Bean <bean123ch@gnail.com>
40089
40090 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40091
40092 * util/misc.c: Likewise.
40093
40094 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40095
40096 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40097 instead of grub_printf.
40098
40099 2009-04-03 Robert Millan <rmh@aybabtu.com>
40100
40101 * loader/i386/linux.c (grub_linux_setup_video): Fill
40102 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40103 values from `mode info' structure instead of hardcoded
40104 values.
40105
40106 2009-04-01 Pavel Roskin <proski@gnu.org>
40107
40108 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40109 unused now.
40110 * genmk.rb: Likewise.
40111 * configure.ac: Likewise.
40112
40113 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40114
40115 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40116 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40117
40118 2009-04-01 David S. Miller <davem@davemloft.net>
40119
40120 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40121 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40122 (grub_setjmp): Mark with 'returns_twice' attribute.
40123 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40124 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40125 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40126
40127 2009-04-01 Robert Millan <rmh@aybabtu.com>
40128
40129 Reapply fix from 2008-07-28 which was accidentally reverted; also
40130 perform the same fix to a similar check in same function.
40131
40132 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40133 with the same number are found, just use issue a warning with
40134 grub_dprintf(), as this error has been reported to be non-fatal.
40135
40136 2009-03-31 Pavel Roskin <proski@gnu.org>
40137
40138 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40139 for cross-compilation.
40140
40141 2009-03-30 Robert Millan <rmh@aybabtu.com>
40142
40143 Fix i386-ieee1275 build.
40144
40145 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40146 Remove declaration.
40147
40148 2009-03-30 Pavel Roskin <proski@gnu.org>
40149
40150 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40151 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40152 zero-terminated, rely only on the strlen value. Fix comparison
40153 of strings differing in length.
40154
40155 2009-03-30 Robert Millan <rmh@aybabtu.com>
40156
40157 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40158 checking for abi version. Improve error messages on BIOS to notify
40159 user about `linux16' command.
40160
40161 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40162
40163 Leak fixes
40164
40165 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40166 in case of collision
40167 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40168
40169 2009-03-29 Robert Millan <rmh@aybabtu.com>
40170
40171 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40172 set `vid_mode' accordingly.
40173 (grub_linux_boot): Process `vid_mode' and set video mode.
40174
40175 2009-03-29 Robert Millan <rmh@aybabtu.com>
40176
40177 * util/grub.d/10_linux.in (linux_entry): New function.
40178 Factorize generation of Linux boot entries.
40179
40180 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40181
40182 Make the format of Environment Block plain text. The boot loader
40183 part is not tested well yet.
40184
40185 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40186 (buffer): Removed.
40187 (envblk): Likewise.
40188 (usage): Remove "info" and "clear". Add "unset". Update the
40189 description of "set", as this does not delete variables any
40190 longer.
40191 (create_envblk_file): Complete rewrite.
40192 (open_envblk_file): Likewise.
40193 (cmd_info): Removed.
40194 (cmd_list): Likewise.
40195 (cmd_set): Likewise.
40196 (cmd_clear): Likewise.
40197 (list_variables): New function.
40198 (write_envblk): Likewise.
40199 (set_variables): Likewise.
40200 (unset_variables): Likewise.
40201 (main): Complete rewrite.
40202
40203 * commands/loadenv.c (buffer): Removed.
40204 (envblk): Likewise.
40205 (open_envblk_file): New function.
40206 (read_envblk_file): Complete rewrite.
40207 (grub_cmd_load_env): Likewise.
40208 (grub_cmd_list_env): Likewise.
40209 (struct blocklist): New struct.
40210 (free_blocklists): New function.
40211 (check_blocklists): Likewise.
40212 (write_blocklists): Likewise.
40213 (grub_cmd_save_env): Complete rewrite.
40214
40215 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40216 a plain text signature.
40217 (GRUB_ENVBLK_MAXLEN): Removed.
40218 (struct grub_envblk): Complete rewrite.
40219 (grub_envblk_find): Removed.
40220 (grub_envblk_insert): Likewise.
40221 (grub_envblk_open): New prototype.
40222 (grub_envblk_set): Likewise.
40223 (grub_envblk_delete): Put const to VALUE.
40224 (grub_envblk_iterate): Put const to NAME and VALUE.
40225 (grub_envblk_close): New prototype.
40226 (grub_envblk_buffer): New inline function.
40227 (grub_envblk_size): Likewise.
40228
40229 * lib/envblk.c: Include grub/mm.h.
40230 (grub_env_find): Removed.
40231 (grub_envblk_open): New function.
40232 (grub_envblk_close): Likewise.
40233 (escaped_value_len): Likewise.
40234 (find_next_line): Likewise.
40235 (grub_envblk_insert): Removed.
40236 (grub_envblk_set): New function.
40237 (grub_envblk_delete): Complete rewrite.
40238 (grub_envblk_iterate): Likewise.
40239
40240 2009-03-28 Robert Millan <rmh@aybabtu.com>
40241
40242 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40243 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40244 variables. Use 16-bit loader.
40245 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40246 loader.
40247 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40248 (grub_linux16_boot): ... this. Update all users.
40249 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40250 (grub_linux_boot): ... this. Update all users.
40251
40252 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40253 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40254 commands to `linux16' and `initrd16'.
40255 (GRUB_MOD_FINI(linux)): Rename to ...
40256 (GRUB_MOD_FINI(linux16)): ... this.
40257
40258 2009-03-24 Pavel Roskin <proski@gnu.org>
40259
40260 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40261 not just for compilation.
40262
40263 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40264
40265 Move multiboot helper out of kernel
40266
40267 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40268 `loader/i386/multiboot_helper.S'.
40269 * conf/i386-coreboot.rmk: Likewise
40270 * conf/i386-ieee1275.rmk: Likewise
40271
40272 * kern/i386/loader.S: Move multiboot helpers from here...
40273 * loader/i386/multiboot_helper.S: ...moved here
40274 * include/grub/i386/loader.h: Move declarations of multiboot
40275 helpers from here...
40276 * include/grub/i386/multiboot.h: ...moved here
40277 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40278
40279 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40280
40281 * kern/env.c (grub_env_context_open): Added an argument to specify
40282 whether a new context inherits exported variables from current
40283 one. This is useful when making a sandbox to interpret a config
40284 file.
40285 All callers updated.
40286
40287 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40288
40289 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40290
40291 * kern/env.c (grub_env_context_close): Fix memory leaks.
40292
40293 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40294
40295 * normal/main.c (grub_normal_execute): Added an argument
40296 BATCH to specify if an interactive interface should be provided
40297 after reading a config file.
40298 All callers updated.
40299 (read_command_list): Prevent being executed twice.
40300 (read_fs_list): Likewise.
40301
40302 * include/grub/normal.h (grub_normal_execute): Updated the
40303 prototype.
40304
40305 2009-03-22 Pavel Roskin <proski@gno.org>
40306
40307 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40308 _start.
40309 * kern/i386/pc/startup.S: Likewise.
40310 * kern/i386/efi/startup.S: Likewise.
40311 * kern/i386/ieee1275/startup.S: Likewise.
40312 * kern/i386/coreboot/startup.S: Likewise.
40313 * kern/x86_64/efi/startup.S: Likewise.
40314
40315 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40316 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40317 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40318
40319 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40320
40321 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40322
40323 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40324 limit detection.
40325 Use vaddr of correct segment for entry_point.
40326
40327 2009-03-21 Bean <bean123ch@gmail.com>
40328
40329 * commands/blocklist.c: Add include file <grub/command.h>, remove
40330 <grub/normal.h> and <grub/arg.h>.
40331 (grub_cmd_blocklist): Use the new command interface.
40332 (GRUB_MOD_INIT): Likewise.
40333 (GRUB_MOD_FINI): Likewise.
40334 * commands/boot.c: Likewise.
40335 * commands/cat.c: Likewise.
40336 * commands/cmp.c: Likewise.
40337 * commands/configfile.c: Likewise.
40338 * commands/crc.c: Likewise.
40339 * commands/echo.c: Likewise.
40340 * commands/halt.c: Likewise.
40341 * commands/handler.c: Likewise.
40342 * commands/hdparm.c: Likewise.
40343 * commands/help.c: Likewise.
40344 * commands/hexdump.c: Likewise.
40345 * commands/loadenv.c: Likewise.
40346 * commands/ls.c: Likewise.
40347 * commands/lsmmap.c: Likewise.
40348 * commands/lspci.c: Likewise.
40349 * commands/loadenv.c: Likewise.
40350 * commands/read.c: Likewise.
40351 * commands/reboot.c: Likewise.
40352 * commands/search.c: Likewise.
40353 * commands/sleep.c: Likewise.
40354 * commands/test.c: Likewise.
40355 * commands/usbtest.c: Likewise.
40356 * commands/videotest.c: Likewise.
40357 * commands/i386/cpuid.c: Likewise.
40358 * commands/i386/pc/halt.c: Likewise.
40359 * commands/i386/pc/play.c: Likewise.
40360 * commands/i386/pc/pxecmd.c: Likewise.
40361 * commands/i386/pc/vbeinfo.c: Likewise.
40362 * commands/i386/pc/vbetest.c: Likewise.
40363 * commands/ieee1275/suspend.c: Likewise.
40364 * disk/loopback.c: Likewise.
40365 * font/font_cmd.c: Likewise.
40366 * hello/hello.c: Likewise.
40367 * loader/efi/appleloader.c: Likewise.
40368 * loader/efi/chainloader.c: Likewise.
40369 * loader/i386/bsd.c: Likewise.
40370 * loader/i386/efi/linux.c: Likewise.
40371 * loader/i386/ieee1275/linux.c: Likewise.
40372 * loader/i386/linux.c: Likewise.
40373 * loader/i386/pc/chainloader.c: Likewise.
40374 * loader/i386/pc/linux.c: Likewise.
40375 * loader/powerpc/ieee1275/linux.c: Likewise.
40376 * loader/multiboot_loader.c: Likewise.
40377 * term/gfxterm.c: Likewise.
40378 * term/i386/pc/serial.c: Likewise.
40379 * term/terminfo.c: Likewise.
40380
40381 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40382 * term/i386/pc/vga.c: Likewise.
40383 * video/readers/jpeg.c: Likewise.
40384 * video/readers/png.c: Likewise.
40385 * video/readers/tga.c: Likewise.
40386
40387 * util/grub-fstest (cmd_loopback): Removed.
40388 (cmd_blocklist): Likewise.
40389 (cmd_ls): Likewise.
40390 (grub_register_command): Likewise.
40391 (grub_unregister_command): Likewise.
40392 (execute_command): Use grub_command_find to locate command and execute
40393 it.
40394
40395 * include/grub/efi/chainloader.h: Removed.
40396 * loader/efi/chainloader_normal.c: Likewise.
40397 * loader/i386/bsd_normal.c: Likewise.
40398 * loader/i386/pc/chainloader_normal.c: Likewise.
40399 * loader/i386/pc/multiboot_normal.c: Likewise.
40400 * loader/linux_normal.c: Likewise.
40401 * loader/multiboot_loader_normal.c: Likewise.
40402 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40403
40404 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40405 and grub_register_command_p1.
40406
40407 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40408 kern/command.c, lib/arg.c and commands/extcmd.c.
40409 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40410 (minicmd_mod_SOURCES): New variable.
40411 (minicmd_mod_CFLAGS): Likewise.
40412 (minicmd_mod_LDFLAGS): Likewise.
40413 (extcmd_mod_SOURCES): Likewise.
40414 (extcmd_mod_CFLAGS): Likewise.
40415 (extcmd_mod_LDFLAGS): Likewise.
40416 (boot_mod_SOURCES): Removed.
40417 (boot_mod_CFLAGS): Likewise.
40418 (boot_mod_LDFLAGS): Likewise.
40419
40420 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40421 kern/corecmd.c.
40422 (kernel_img_HEADERS): Add command.h.
40423 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40424 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40425 and lib/arg.c.
40426 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40427 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40428 remove the corresponding normal mode command.
40429 (normal_mod_SOURCES): Remove normal/arg.c.
40430 * conf/i386-coreboot.rmk: Likewise.
40431 * conf/i386-efi.rmk: Likewise.
40432 * conf/i386-ieee1275.rmk: Likewise.
40433 * conf/powerpc-ieee1275.rmk: Likewise.
40434 * conf/x86_64-efi.rmk: Likewise.
40435
40436 * include/grub/arg.h: Move from here ...
40437 * include/grub/lib/arg.h: ... to here.
40438
40439 * normal/arg.c: Move from here ...
40440 * lib/arg.c: ... to here.
40441
40442 * commands/extcmd.c: New file.
40443 * commands/minicmd.c: Likewise.
40444 * include/grub/command.h: Likewise.
40445 * include/grub/extcmd.h: Likewise.
40446 * kern/command.c: Likewise.
40447 * kern/corecmd.c: Likewise.
40448
40449 * kern/list.c (grub_list_iterate): Return int instead of void.
40450 (grub_list_insert): New function.
40451 (grub_prio_list_insert): Likewise.
40452
40453 * kern/rescue.c (grub_rescue_command): Removed.
40454 (grub_rescue_command_list): Likewise.
40455 (grub_rescue_register_command): Likewise.
40456 (grub_rescue_unregister_command): Likewise.
40457 (grub_rescue_cmd_boot): Move to minicmd.c
40458 (grub_rescue_cmd_help): Likewise.
40459 (grub_rescue_cmd_info): Likewise.
40460 (grub_rescue_cmd_boot): Likewise.
40461 (grub_rescue_cmd_testload): Likewise.
40462 (grub_rescue_cmd_dump): Likewise.
40463 (grub_rescue_cmd_rmmod): Likewise.
40464 (grub_rescue_cmd_lsmod): Likewise.
40465 (grub_rescue_cmd_exit): Likewise.
40466 (grub_rescue_print_devices): Moved to corecmd.c.
40467 (grub_rescue_print_files): Likewise.
40468 (grub_rescue_cmd_ls): Likewise.
40469 (grub_rescue_cmd_insmod): Likewise.
40470 (grub_rescue_cmd_set): Likewise.
40471 (grub_rescue_cmd_unset): Likewise.
40472 (attempt_normal_mode): Use grub_command_find to get normal module.
40473 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40474 commands, remove grub_rescue_register_command calls.
40475
40476 * normal/command.c (grub_register_command): Removed.
40477 (grub_unregister_command): Likewise.
40478 (grub_command_find): Likewise.
40479 (grub_iterate_commands): Likewise.
40480 (rescue_command): Likewise.
40481 (export_command): Moved to corecmd.c.
40482 (set_command): Removed.
40483 (unset_command): Likewise.
40484 (insmod_command): Likewise.
40485 (rmmod_command): Likewise.
40486 (lsmod_command): Likewise.
40487 (grub_command_init): Likewise.
40488
40489 * normal/completion.c (iterate_command): Use cmd->prio to check for
40490 active command.
40491 (complete_arguments): Use grub_extcmd_t structure to find options.
40492 (grub_normal_do_completion): Change function grub_iterate_commands to
40493 grub_command_iterate.
40494
40495 * normal/execute.c (grub_script_execute_cmd): No need to parse
40496 argument here.
40497
40498 * normal/main.c (grub_dyncmd_dispatcher): New function.
40499 (read_command_list): Register unload commands as dyncmd.
40500 (grub_cmd_normal): Use new command interface, register rescue,
40501 unregister normal at entry, register normal, unregister rescue at exit.
40502
40503 * include/grub/list.h (grub_list_test_t): New type.
40504 (grub_list_iterate): Return int instead of void.
40505 (grub_list_insert): New function.
40506 (GRUB_AS_NAMED_LIST_P): New macro.
40507 (GRUB_AS_PRIO_LIST): Likewise.
40508 (GRUB_AS_PRIO_LIST_P): Likewise.
40509 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40510 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40511 (grub_prio_list): New structure.
40512 (grub_prio_list_insert): New function.
40513 (grub_prio_list_remove): New inline function.
40514
40515 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40516 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40517 (GRUB_COMMAND_FLAG_MENU): Likewise.
40518 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40519 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40520 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40521 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40522 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40523 (grub_command): Likewise.
40524 (grub_register_command): Likewise.
40525 (grub_command_find): Likewise.
40526 (grub_iterate_commands): Likewise.
40527 (grub_command_init): Likewise.
40528 (grub_arg_parse): Likewise.
40529 (grub_arg_show_help): Likewise.
40530
40531 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40532 (grub_rescue_unregister_command): Likewise.
40533
40534 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40535 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40536 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40537
40538 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40539 grub_rescue_cmd_initrd.
40540 * include/grub/i386/loader.h: Likewise.
40541 * include/grub/x86_64/loader.h: Likewise.
40542
40543 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40544
40545 2009-03-21 Bean <bean123ch@gmail.com>
40546
40547 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40548 instead of stat in mingw environment.
40549
40550 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40551
40552 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40553
40554 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40555 AC_CONFIG_LINKS.
40556
40557 2009-03-21 Bean <bean123ch@gmail.com>
40558
40559 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40560 out of range error.
40561
40562 2009-03-18 Michel Dänzer <michel@daenzer.net>
40563
40564 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40565 checking inode flags for EXT4_EXTENTS_FLAG.
40566
40567 2009-03-18 Robert Millan <rmh@aybabtu.com>
40568
40569 * loader/i386/linux.c: Include `<grub/video.h>' and
40570 `<grub/i386/pc/vbe.h>'..
40571 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40572 (grub_linux32_boot): Attempt to configure video settings with
40573 grub_linux_setup_video().
40574 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40575 to avoid grub_console_fini() which would step out of graphical mode
40576 unconditionally.
40577
40578 2009-03-14 Robert Millan <rmh@aybabtu.com>
40579
40580 Fix build on powerpc.
40581 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40582
40583 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40584
40585 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40586 background image command.
40587
40588 2009-03-12 Colin D Bennett <colin@gibibit.com>
40589
40590 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40591 (grub_gfxterm_putchar): Extract pairs of identical calls to
40592 draw_cursor out of conditional blocks.
40593
40594 2009-03-11 Pavel Roskin <proski@gnu.org>
40595
40596 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40597 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40598
40599 2009-03-11 Robert Millan <rmh@aybabtu.com>
40600
40601 * loader/i386/multiboot_elfxx.c
40602 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40603
40604 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40605
40606 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40607 `kern/handler.c'.
40608
40609 2009-03-11 Robert Millan <rmh@aybabtu.com>
40610
40611 * loader/i386/multiboot.c (code_size): New variable.
40612 (grub_multiboot): Define offsets by adding to `code_size' rather
40613 than subtracting from `grub_multiboot_payload_size'. Provide
40614 4-byte alignment to MBI and others by increasing
40615 `boot_loader_name_length' appropriately.
40616
40617 * loader/i386/multiboot_elfxx.c
40618 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40619
40620 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40621
40622 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40623 `fs/ext2.c'.
40624
40625 2009-03-08 Robert Millan <rmh@aybabtu.com>
40626
40627 Make loader/i386/linux.c usable on i386-pc again.
40628
40629 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40630 memory to heap.
40631 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40632 `#error' stanza.
40633
40634 2009-03-07 Bean <bean123ch@gmail.com>
40635
40636 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40637 allocation.
40638
40639 2009-03-06 Robert Millan <rmh@aybabtu.com>
40640
40641 Fix display issue on terminals with screen size other than 80x25
40642 (e.g. gfxterm with resolution higher than 640x480).
40643
40644 * normal/main.c (grub_normal_init_page): Display title text in a
40645 position relative to the center of the terminal instead of relying
40646 on a hardcoded offset.
40647
40648 2009-03-04 Robert Millan <rmh@aybabtu.com>
40649
40650 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40651 installed.
40652
40653 * Makefile.in (host_kernel): New variable.
40654 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40655 scripts instead of just the windows one.
40656 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40657
40658 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40659
40660 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40661 `kern/handler.c'.
40662 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40663 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40664 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40665 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40666 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40667 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40668
40669 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40670
40671 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40672 or if there's no space for the disk label and print the partition number on a
40673 invalid magic.
40674
40675 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40676
40677 * util/misc.c: Include <time.h>.
40678 (grub_millisleep): New function.
40679
40680 2009-03-04 Bean <bean123ch@gmail.com>
40681
40682 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40683 another option -mno-red-zone.
40684
40685 * commands/handler.c: Change module description.
40686
40687 * kern/handler.c: Add missing space at the end of description line.
40688
40689 * kern/list.c: Likewise.
40690
40691 2009-03-03 Robert Millan <rmh@aybabtu.com>
40692
40693 Move more components to the relocation area, and fix mbi pointer
40694 handling to use the destination rather than the origin (thanks to
40695 Vladimir Serbinenko for spotting).
40696
40697 * loader/i386/multiboot.c (mbi_dest): New variable.
40698 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40699 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40700 relocation area.
40701
40702 2009-03-01 Bean <bean123ch@gmail.com>
40703
40704 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40705 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40706 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40707 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40708
40709 * loader/i386/efi/linux.c (acpi_guid): New variable.
40710 (acpi_guid): Likewise.
40711 (EBDA_SEG_ADDR): New constant.
40712 (LOW_MEM_ADDR): Likewise.
40713 (FAKE_EBDA_SEG): Likewise.
40714 (fake_bios_data): New function.
40715 (grub_linux_boot): Call fake_bios_data.
40716
40717 2009-03-01 Bean <bean123ch@gmail.com>
40718
40719 * commands/terminal.c: Removed.
40720
40721 * commands/handler.c: New file.
40722
40723 * include/grub/list.h: Likewise.
40724
40725 * include/grub/handler.h: Likewise.
40726
40727 * kern/list.c: Likewise.
40728
40729 * kern/handler.c: Likewise.
40730
40731 * kern/term.h: Include header file <grub/handler.h>.
40732 (grub_term_input): Move next field to the beginning.
40733 (grub_term_output): Likewise.
40734 (grub_term_input_class): New variable.
40735 (grub_term_output_class): Likewise.
40736 (grub_term_register_input): Changed to inline function.
40737 (grub_term_register_output): Likewise.
40738 (grub_term_unregister_input): Likewise.
40739 (grub_term_unregister_output): Likewise.
40740 (grub_term_set_current_input): Likewise.
40741 (grub_term_set_current_output): Likewise.
40742 (grub_term_get_current_input): Likewise.
40743 (grub_term_get_current_output): Likewise.
40744 (grub_term_iterate_input): Removed.
40745 (grub_term_iterate_output): Likewise.
40746
40747 * kern/term.c (grub_term_list_input): Removed.
40748 (grub_term_list_output): Likewise.
40749 (grub_term_input_class): New variable.
40750 (grub_term_output_class): Likewise.
40751 (grub_cur_term_input): Change variable as macro.
40752 (grub_cur_term_output): Likewise.
40753 (grub_term_register_input): Removed.
40754 (grub_term_register_output): Likewise.
40755 (grub_term_unregister_input): Likewise.
40756 (grub_term_unregister_output): Likewise.
40757 (grub_term_set_current_input): Likewise.
40758 (grub_term_set_current_output): Likewise.
40759 (grub_term_iterate_input): Likewise.
40760 (grub_term_iterate_output): Likewise.
40761 (grub_term_get_current_input): Likewise.
40762 (grub_term_get_current_output): Likewise.
40763
40764 * util/grub-editenv.c: Include header file <grub/handler.h>.
40765 (grub_term_get_current_input): Removed.
40766 (grub_term_get_current_output): Likewise.
40767 (grub_term_input_class): New variable.
40768 (grub_term_output_class): Likewise.
40769
40770 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40771 (grub_term_get_current_output): Likewise.
40772 (grub_term_input_class): New variable.
40773 (grub_term_output_class): Likewise.
40774
40775 * util/grub-probe.c (grub_term_get_current_input): Removed.
40776 (grub_term_get_current_output): Likewise.
40777 (grub_term_input_class): New variable.
40778 (grub_term_output_class): Likewise.
40779
40780 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40781 (grub_term_get_current_output): Likewise.
40782 (grub_term_input_class): New variable.
40783 (grub_term_output_class): Likewise.
40784
40785 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40786 (terminal_mod_SOURCES): Likewise.
40787 (terminal_mod_CFLAGS): Likewise.
40788 (terminal_mod_LDFLAGS): Likewise.
40789
40790 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40791 handler.c.
40792 (kernel_img_SOURCES): Add list.c and handler.c.
40793 (kernel_img_HEADERS): Add list.h and handler.h.
40794
40795 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40796 handler.c.
40797 (kernel_mod_SOURCES): Add list.c and handler.c.
40798 (kernel_mod_HEADERS): Add list.h and handler.h.
40799
40800 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40801 handler.c.
40802 (kernel_elf_SOURCES): Add list.c and handler.c.
40803 (kernel_elf_HEADERS): Add list.h and handler.h.
40804
40805 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40806 handler.c.
40807 (kernel_elf_SOURCES): Add list.c and handler.c.
40808 (kernel_elf_HEADERS): Add list.h and handler.h.
40809
40810 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40811 handler.c.
40812 (kernel_mod_SOURCES): Add list.c and handler.c.
40813 (kernel_mod_HEADERS): Add list.h and handler.h.
40814
40815 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40816 handler.c.
40817 (kernel_elf_SOURCES): Add list.c and handler.c.
40818 (kernel_elf_HEADERS): Add list.h and handler.h.
40819
40820 2009-02-27 Robert Millan <rmh@aybabtu.com>
40821
40822 Factorize elf32 / elf64 code in Multiboot loader. This will
40823 prevent it from getting out of sync again.
40824
40825 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40826 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40827 grub_multiboot_load_elf64): Move from here ...
40828 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40829 grub_multiboot_load_elf): ... to here (new file).
40830
40831 2009-02-27 Robert Millan <rmh@aybabtu.com>
40832
40833 * util/grub.d/10_linux.in: Rename "single-user mode" to
40834 "recovery mode".
40835
40836 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40837
40838 Don't leak in SCSI code.
40839 * disk/scsi.c (grub_scsi_close): free `scsi'.
40840
40841 2009-02-27 Robert Millan <rmh@aybabtu.com>
40842
40843 * loader/i386/pc/multiboot.c: Move from here ...
40844 * loader/i386/multiboot.c: ... to here. Update all users.
40845
40846 2009-02-27 Robert Millan <rmh@aybabtu.com>
40847
40848 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40849 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40850
40851 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40852
40853 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40854 b-tree.
40855
40856 2009-02-27 Robert Millan <rmh@aybabtu.com>
40857
40858 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40859 `0x' qualifier as 0 when base is specified as parameter).
40860
40861 2009-02-24 Bean <bean123ch@gmail.com>
40862
40863 * configure.ac: Check for -mcmodel=large in x86_64 target.
40864
40865 * include/grub/efi/api.h (efi_call_10): New macro.
40866 (efi_wrap_10): New function.
40867
40868 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40869 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40870 (GRUB_PE32_REL_BASED_LOW): Likewise.
40871 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40872 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40873 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40874 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40875 (GRUB_PE32_REL_BASED_REL): Likewise.
40876 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40877 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40878 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40879
40880 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40881 issue.
40882
40883 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40884 (efi_wrap_10): New function.
40885
40886 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40887
40888 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40889 MB/MBP model (NV chipset).
40890 (devdata_devs): Add devpath_5 to the list.
40891
40892 * load/i386/efi/linux.c (video_base): Remove variable.
40893 (RGB_MASK): New macro.
40894 (RGB_MAGIC): Likewise.
40895 (LINE_MIN): Likewise.
40896 (LINE_MAX): Likewise.
40897 (FBTEST_STEP): Likewise.
40898 (FBTEST_COUNT): Likewise.
40899 (fb_list): New variable.
40900 (grub_find_video_card): Remove function.
40901 (find_framebuf): New function.
40902 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40903 line length.
40904
40905 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40906 problem for x86_64.
40907
40908 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40909
40910 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40911
40912 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40913 coding tool name.
40914
40915 2009-02-22 Robert Millan <rmh@aybabtu.com>
40916
40917 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40918 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40919 in our relocation, instead of using it directly from heap. Also
40920 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40921
40922 2009-02-21 Robert Millan <rmh@aybabtu.com>
40923
40924 Implement USB keyboard support (based on patch by Marco Gerards)
40925
40926 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40927 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40928 (usb_keyboard_mod_LDFLAGS): New variables.
40929
40930 * term/usb_keyboard.c: New file.
40931
40932 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40933
40934 Corrected wrong declaration
40935
40936 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40937
40938 2009-02-14 Christian Franke <franke@computer.org>
40939
40940 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40941 (grub_lspci_iter): Print class code and programming interface byte.
40942
40943 2009-02-14 Christian Franke <franke@computer.org>
40944
40945 * gendistlist.sh: Ignore `.svn' directories.
40946
40947 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40948
40949 * fs/fat.c: Add 2009 to Copyright line.
40950
40951 2009-02-14 Christian Franke <franke@computer.org>
40952
40953 * commands/hdparm.c: New file. Provides `hdparm' command
40954 which sends ATA commands via grub_disk_ata_pass_through ().
40955
40956 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40957
40958 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40959 and <grub/cpu/io.h> to include/grub/ata.h.
40960 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40961 (GRUB_CDROM_SECTOR_SIZE): Remove.
40962 (GRUB_ATA_*): Move to include/grub/ata.h.
40963 (GRUB_ATAPI_*): Likewise.
40964 (enum grub_ata_commands): Likewise.
40965 (enum grub_ata_timeout_milliseconds): Likewise.
40966 (struct grub_ata_device): Likewise.
40967 (grub_ata_regset): Likewise.
40968 (grub_ata_regget): Likewise.
40969 (grub_ata_regset2): Likewise.
40970 (grub_ata_regget2): Likewise.
40971 (grub_ata_check_ready): Likewise.
40972 (grub_ata_wait_not_busy): Remove static, exported in
40973 include/grub/ata.h.
40974 (grub_ata_wait_drq): Likewise.
40975 (grub_ata_pio_read): Likewise.
40976
40977 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
40978 function for hdparm.mod.
40979
40980 * include/grub/ata.h: New file, contains declarations from
40981 disk/ata.c.
40982 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
40983
40984 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
40985 (grub_disk_ata_pass_through): New exported variable.
40986
40987 * kern/disk.c (grub_disk_ata_pass_through): New variable.
40988
40989 2009-02-13 Colin D Bennett <colin@gibibit.com>
40990
40991 Support multiple fallback entries, and provide an API to support
40992 executing default+fallback menu entries. Renamed the `terminal' menu
40993 viewer to `text'.
40994
40995 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
40996 variable declaration.
40997 (grub_menu_execute_callback): New structure declaration.
40998 (grub_menu_execute_callback_t): New typedef.
40999 (grub_menu_execute_with_fallback): New function declaration.
41000 (grub_menu_get_entry): Likewise.
41001 (grub_menu_get_timeout): Likewise.
41002 (grub_menu_set_timeout): Likewise.
41003
41004 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41005
41006 * normal/menu.c (grub_wait_after_message): Moved to
41007 `normal/menu_text.c'.
41008 (draw_border): Likewise.
41009 (print_message): Likewise.
41010 (print_entry): Likewise.
41011 (print_entries): Likewise.
41012 (grub_menu_init_page): Likewise.
41013 (get_entry_number): Likewise.
41014 (print_timeout): Likewise.
41015 (run_menu): Likewise.
41016 (grub_menu_execute_entry): Likewise.
41017 (show_text_menu): Likewise.
41018 (get_and_remove_first_entry_number): New function.
41019 (grub_menu_execute_with_fallback): Likewise.
41020 (get_entry): Renamed to ...
41021 (grub_menu_get_entry): .. this and made it global.
41022 (get_timeout): Renamed to ...
41023 (grub_menu_get_timeout): ... this and made it global.
41024 (set_timeout): Renamed to ...
41025 (grub_menu_set_timeout): ... this and made it global.
41026 (grub_normal_terminal_menu_viewer): Renamed to ...
41027 (grub_normal_text_menu_viewer): ... this.
41028
41029 * normal/menu_text.c: New file. Extracted text-menu-specific code
41030 from normal/menu.c.
41031
41032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41033 (normal_mod_SOURCES): Likewise.
41034
41035 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41036 (normal_mod_SOURCES): Likewise.
41037
41038 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41039 (normal_mod_SOURCES): Likewise.
41040
41041 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41042 (normal_mod_SOURCES): Likewise.
41043
41044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41045 (normal_mod_SOURCES): Likewise.
41046
41047 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41048 (normal_mod_SOURCES): Likewise.
41049
41050 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41051 (normal_mod_SOURCES): Likewise.
41052
41053 2009-02-11 Robert Millan <rmh@aybabtu.com>
41054
41055 * util/grub.d/00_header.in: Update old reference to `font' command.
41056
41057 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41058
41059 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41060
41061 Based on patch from Javier Martín.
41062
41063 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41064
41065 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41066 to avoid false positives with FAT.
41067 (grub_fstest_SOURCES): Likewise.
41068 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41069 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41071 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41073 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41074
41075 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41076
41077 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41078 bpb.version_specific.fat12_or_fat16.fstype and
41079 bpb.version_specific.fat32.fstype.
41080
41081 2009-02-08 Robert Millan <rmh@aybabtu.com>
41082
41083 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41084
41085 2009-02-08 Robert Millan <rmh@aybabtu.com>
41086
41087 * Makefile.in (host_os, host_cpu): New variables.
41088 (target_os): Remove. Update all users.
41089
41090 2009-02-08 Marco Gerards <marco@gnu.org>
41091
41092 * Makefile.in (enable_grub_emu_usb): New variable.
41093 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41094 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41095 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41096 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41097 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41098 `usbtest.mod' and `usbms.mod'.
41099 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41100 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41101 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41102 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41103 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41104 variables.
41105
41106 * disk/usbms.c: New file.
41107
41108 * include/grub/usb.h: Likewise.
41109
41110 * include/grub/usbtrans.h: Likewise.
41111
41112 * include/grub/usbdesc.h: Likewise.
41113
41114 * bus/usb/usbtrans.c: Likewise.
41115
41116 * bus/usb/ohci.c: Likewise.
41117
41118 * bus/usb/uhci.c: Likewise.
41119
41120 * bus/usb/usbhub.c: Likewise.
41121
41122 * bus/usb/usb.c: Likewise.
41123
41124 * commands/usbtest.c: Likewise.
41125
41126 * util/usb.c: Likewise.
41127
41128 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41129
41130 * configure.ac: Test for libusb presence.
41131
41132 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41133
41134 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41135
41136 * kern/mm.c: Add more comments.
41137
41138 2009-02-08 Robert Millan <rmh@aybabtu.com>
41139
41140 Patch from Javier Martín.
41141 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41142 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41143
41144 2009-02-08 Robert Millan <rmh@aybabtu.com>
41145
41146 * fs/cpio.c: Split tar functionality to ...
41147 * fs/tar.c: ... here (new file). Update all users.
41148
41149 2009-02-07 Robert Millan <rmh@aybabtu.com>
41150
41151 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41152 backward-incompatible features.
41153
41154 Based on patch from Javier Martín, with some adjustments.
41155
41156 2009-02-07 Michael Scherer <misc@mandriva.org>
41157
41158 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41159
41160 2009-02-07 Robert Millan <rmh@aybabtu.com>
41161
41162 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41163 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41164 after the RAID stuff.
41165
41166 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41167
41168 Fixes problem when running vbetest command as reported by
41169 Vladimir Serbinenko <phcoder@gmail.com>.
41170
41171 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41172
41173 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41174
41175 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41176 /dev/md/NpN style mdraid devices.
41177
41178 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41179
41180 * util/unifont2pff.rb: Remove.
41181
41182 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41183
41184 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41185 `#'.
41186
41187 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41188
41189 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41190 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41191 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41192 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41194 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41196
41197 2009-02-02 Christian Franke <franke@computer.org>
41198
41199 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41200
41201 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41202
41203 * INSTALL: Note that we now require at least autoconf 2.59 and
41204 that LZO is optional.
41205
41206 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41207
41208 Base on patch on bug #24154 created by Tomas Tintera
41209 <trosos@seznam.cz>.
41210
41211 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41212
41213 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41214
41215 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41216 <bero@arklinux.org>.
41217
41218 * normal/parser.y (script_init): Add missing semicolon.
41219
41220 2009-01-31 Colin D Bennett <colin@gibibit.com>
41221
41222 * normal/main.c: Add include to grub/menu_viewer.h.
41223 (free_menu_entry_classes): Added.
41224 (grub_normal_menu_addentry): Added class property handling.
41225 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41226 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41227
41228 * normal/menu_viewer.c: New file.
41229
41230 * normal/menu.c (run_menu_entry): Renamed to ...
41231 (grub_menu_execute_entry): ... this and made it as global.
41232 (grub_menu_run): Renamed to ...
41233 (show_text_menu): ... this and made it local.
41234 (show_text_menu): Adapt to new function names.
41235 (grub_normal_terminal_menu_viewer): New global variable.
41236
41237 * include/grub/menu.h: New file.
41238
41239 * include/grub/menu_viewer.h: New file.
41240
41241 * include/grub/normal.h: Added include to grub/menu.h.
41242 (grub_menu_entry): Moved to include/grub/menu.h.
41243 (grub_menu_entry_t): Likewise.
41244 (grub_menu): Likewise.
41245 (grub_menu_t): Likewise.
41246 (grub_normal_terminal_menu_viewer): Added.
41247 (grub_menu_execute_entry): Likewise.
41248 (grub_menu_run): Removed.
41249
41250 * DISTLIST: Added include/grub/menu.h.
41251 Added include/grub/menu_viewer.h.
41252 Added normal/menu_viewer.c.
41253
41254 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41255
41256 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41257 arglist for menutitle arguments.
41258
41259 * normal/main.c (grub_normal_menu_addentry): Likewise.
41260
41261 * normal/parser.y (menuentry): Likewise.
41262
41263 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41264
41265 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41266 (grub_script_create_cmdmenu): Likewise.
41267
41268 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41269
41270 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41271 changes.
41272
41273 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41274
41275 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41276
41277 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41278
41279 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41280
41281 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41282
41283 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41284
41285 2009-01-30 Christian Franke <franke@computer.org>
41286
41287 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41288 in option help text.
41289
41290 2009-01-27 Pavel Roskin <proski@gnu.org>
41291
41292 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41293
41294 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41295
41296 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41297
41298 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41299
41300 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41301 unregister function.
41302
41303 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41304
41305 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41306
41307 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41308
41309 * util/grub-mkfont.c (usage): Fix typo.
41310
41311 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41312
41313 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41314
41315 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41316
41317 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41318
41319 * kern/misc.c (grub_strcasecmp): New function.
41320 (grub_strcasecmp): Use grub_size_t instead of int for length.
41321 Fix return value.
41322 * include/grub/misc.h: Update function prototypes.
41323
41324 2009-01-26 Robert Millan <rmh@aybabtu.com>
41325
41326 * configure.ac: Fix cross-compilation check.
41327
41328 2009-01-22 Christian Franke <franke@computer.org>
41329
41330 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41331 (precision) digit string. Allow `.format2' without `format1' (width).
41332 Limit input chars for `%s' output to `format2' if specified. This is
41333 compatible with standard printf ().
41334
41335 2009-01-22 Christian Franke <franke@computer.org>
41336
41337 * disk/ata.c (grub_ata_wait_status): Replace by ...
41338 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41339 other status bits may be invalid while BSY is asserted.
41340 (grub_ata_check_ready): New function.
41341 (grub_ata_cmd): Removed.
41342 (grub_ata_wait_drq): New function.
41343 (grub_ata_strncpy): Remove inline.
41344 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41345 and error check now done by grub_ata_wait_drq ().
41346 (grub_ata_pio_write): Likewise.
41347 (grub_atapi_identify): Set DEV before check for !BSY. Use
41348 grub_ata_wait_drq () to wait for data.
41349 (grub_ata_device_initialize): Add status register check to
41350 detect missing SATA slave devices. Add debug messages.
41351 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41352 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41353 transfer loop by grub_ata_pio_write ().
41354 (grub_ata_identify): Set DEV before check for !BSY. Use
41355 grub_ata_wait_drq () to wait for data.
41356 (grub_ata_setaddress): Set DEV before check for !BSY.
41357 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41358 read/write in one loop. Fix invalid command on write. Fix incomplete
41359 command on (size % batch) == 0. Add missing error check after write of
41360 last block. Add debug messages.
41361 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41362
41363 2009-01-19 Christian Franke <franke@computer.org>
41364
41365 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41366 (GRUB_ATAPI_IREASON_*): Likewise.
41367 (grub_ata_pio_write): Fix timeout error return.
41368 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41369 (grub_atapi_wait_drq): New function.
41370 (grub_atapi_packet): New parameter `size'.
41371 Use grub_atapi_wait_drq () and direct write instead of
41372 grub_ata_pio_write ().
41373 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41374 reads the number of bytes requested by the device for each DRQ
41375 assertion.
41376 (grub_atapi_write): Remove old implementation, return not
41377 implemented instead.
41378
41379 2009-01-19 Christian Franke <franke@computer.org>
41380
41381 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41382 of 512 to calculate data size.
41383 (grub_scsi_read12): Likewise.
41384 (grub_scsi_write10): Likewise.
41385 (grub_scsi_write12): Likewise.
41386 (grub_scsi_read): Adjust size according to blocksize.
41387 Add checks for invalid blocksize and unaligned transfer.
41388
41389 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41390
41391 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41392
41393 * term/gfxterm.c (write_char): Fix background rendering for wide
41394 width glyphs.
41395
41396 2009-01-19 Robert Millan <rmh@aybabtu.com>
41397
41398 * config.guess: Update to latest version from config git.
41399 * config.sub: Likewise.
41400
41401 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41402
41403 * Makefile.in: Change font compilation to use new grub-mkfont instead
41404 of java version.
41405
41406 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41407 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41408 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41409 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41410 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41411 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41412 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41413 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41414 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41415
41416 2009-01-16 Christian Franke <franke@computer.org>
41417
41418 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41419 (enum grub_ata_timeout_milliseconds): New enum.
41420 (grub_ata_wait_status): Add parameter milliseconds.
41421 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41422 recovery from timed-out commands.
41423 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41424 return grub_errno instead of REG_ERROR.
41425 (grub_ata_pio_write): Add parameter milliseconds.
41426 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41427 Pass milliseconds to grub_ata_wait_status () and
41428 grub_ata_pio_read ().
41429 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41430 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41431 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41432 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41433 It is not suitable for device detection, because DEV bit is ignored,
41434 the command may run too long, and not all devices set the signature
41435 properly.
41436 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41437 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41438 Fix device selection, DEV bit must be set first to address the registers
41439 of the correct device.
41440 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41441 grub_ata_pio_read/write ().
41442 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41443 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41444
41445 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41446
41447 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41448
41449 2009-01-13 Bean <bean123ch@gmail.com>
41450
41451 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41452
41453 2009-01-13 Bean <bean123ch@gmail.com>
41454
41455 * Makefile.in: (enable_grub_mkfont): New variable.
41456 (freetype_cflags): Likewise.
41457 (freetype_libs): Likewise.
41458
41459 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41460 (grub_mkfont_SOURCES): New variable.
41461 (grub_mkfont_CFLAGS): Likewise.
41462 (grub_mkfont_LDFLAGS): Likewise.
41463
41464 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41465 library if `--enable-grub-mkfont' is requested.
41466 (enable_grub_mkfont): New variable.
41467 (freetype_cflags): Likewise.
41468 (freetype_libs): Likewise.
41469
41470 * util/grub-mkfont.c: New file.
41471
41472 2009-01-12 Christian Franke <franke@computer.org>
41473
41474 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41475 mode check. Fix setting of compat_use[].
41476
41477 2009-01-10 Robert Millan <rmh@aybabtu.com>
41478
41479 Update a few copyright years which we forgot to do in 2008 (only for
41480 files whose changes made in 2008 were copyright-significant)
41481
41482 * Makefile.in: Add 2008 to Copyright line.
41483 * disk/ieee1275/ofdisk.c: Likewise.
41484 * disk/efi/efidisk.c: Likewise.
41485 * kern/dl.c: Likewise.
41486 * kern/sparc64/ieee1275/init.c: Likewise.
41487 * kern/mm.c: Likewise.
41488 * kern/efi/mm.c: Likewise.
41489 * boot/i386/pc/boot.S: Likewise.
41490 * genfslist.sh: Likewise.
41491 * fs/iso9660.c: Likewise.
41492 * fs/hfs.c: Likewise.
41493 * fs/jfs.c: Likewise.
41494 * fs/minix.c: Likewise.
41495 * fs/ufs.c: Likewise.
41496 * gensymlist.sh.in: Likewise.
41497 * genkernsyms.sh.in: Likewise.
41498 * include/grub/misc.h: Likewise.
41499 * include/grub/types.h: Likewise.
41500 * include/grub/symbol.h: Likewise.
41501 * include/grub/elf.h: Likewise.
41502 * include/grub/kernel.h: Likewise.
41503 * include/grub/disk.h: Likewise.
41504 * include/grub/dl.h: Likewise.
41505 * include/grub/i386/linux.h: Likewise.
41506 * include/grub/i386/pc/biosdisk.h: Likewise.
41507 * include/grub/efi/api.h: Likewise.
41508 * include/grub/efi/pe32.h: Likewise.
41509 * include/grub/util/misc.h: Likewise.
41510 * normal/execute.c: Likewise.
41511 * normal/arg.c: Likewise.
41512 * normal/completion.c: Likewise.
41513 * normal/lexer.c: Likewise.
41514 * normal/parser.y: Likewise.
41515 * normal/misc.c: Likewise.
41516 * commands/i386/pc/vbeinfo.c: Likewise.
41517 * commands/hexdump.c: Likewise.
41518 * commands/terminal.c: Likewise.
41519 * commands/ls.c: Likewise.
41520 * commands/help.c: Likewise.
41521 * partmap/pc.c: Likewise.
41522 * loader/efi/chainloader.c: Likewise.
41523 * loader/multiboot_loader.c: Likewise.
41524 * loader/i386/pc/multiboot2.c: Likewise.
41525 * term/efi/console.c: Likewise.
41526 * term/i386/pc/serial.c: Likewise.
41527 * util/lvm.c: Likewise.
41528 * util/console.c: Likewise.
41529 * util/i386/efi/grub-mkimage.c: Likewise.
41530 * util/raid.c: Likewise.
41531
41532 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41533
41534 * commands/videotest.c: Removed include to grub/machine/memory.h.
41535
41536 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41537 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41538 (video_mod_SOURCES): Removed.
41539 (video_mod_CFLAGS): Likewise.
41540 (video_mod_LDFLAGS): Likewise.
41541 (gfxterm_mod_SOURCES): Likewise.
41542 (gfxterm_mod_CFLAGS): Likewise.
41543 (gfxterm_mod_LDFLAGS): Likewise.
41544 (videotest_mod_SOURCES): Likewise.
41545 (videotest_mod_CFLAGS): Likewise.
41546 (videotest_mod_LDFLAGS): Likewise.
41547 (bitmap_mod_SOURCES): Likewise.
41548 (bitmap_mod_CFLAGS): Likewise.
41549 (bitmap_mod_LDFLAGS): Likewise.
41550 (tga_mod_SOURCES): Likewise.
41551 (tga_mod_CFLAGS): Likewise.
41552 (tga_mod_LDFLAGS): Likewise.
41553 (jpeg_mod_SOURCES): Likewise.
41554 (jpeg_mod_CFLAGS): Likewise.
41555 (jpeg_mod_LDFLAGS): Likewise.
41556 (png_mod_SOURCES): Likewise.
41557 (png_mod_CFLAGS): Likewise.
41558 (png_mod_LDFLAGS): Likewise.
41559
41560 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41561 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41562 (video_mod_SOURCES): Added.
41563 (video_mod_CFLAGS): Likewise.
41564 (video_mod_LDFLAGS): Likewise.
41565 (videotest_mod_SOURCES): Likewise.
41566 (videotest_mod_CFLAGS): Likewise.
41567 (videotest_mod_LDFLAGS): Likewise.
41568 (bitmap_mod_SOURCES): Likewise.
41569 (bitmap_mod_CFLAGS): Likewise.
41570 (bitmap_mod_LDFLAGS): Likewise.
41571 (tga_mod_SOURCES): Likewise.
41572 (tga_mod_CFLAGS): Likewise.
41573 (tga_mod_LDFLAGS): Likewise.
41574 (jpeg_mod_SOURCES): Likewise.
41575 (jpeg_mod_CFLAGS): Likewise.
41576 (jpeg_mod_LDFLAGS): Likewise.
41577 (png_mod_SOURCES): Likewise.
41578 (png_mod_CFLAGS): Likewise.
41579 (png_mod_LDFLAGS): Likewise.
41580 (gfxterm_mod_SOURCES): Likewise.
41581 (gfxterm_mod_CFLAGS): Likewise.
41582 (gfxterm_mod_LDFLAGS): Likewise.
41583
41584 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41585 grub/machine/console.h.
41586
41587 2009-01-04 Jerone Young <jerone@gmail.com>
41588
41589 Make on screen instructions clearer
41590
41591 Based on patch created by Jidanni <jidanni@jidanni.org>
41592
41593 * normal/menu.c: print clearer instructions on the screen
41594
41595 2009-01-02 Colin D Bennett <colin@gibibit.com>
41596
41597 New font engine.
41598
41599 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41600 build system and fixed gfxterm.c to work with different sized fonts.
41601
41602 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41603
41604 * configure: Re-generated.
41605
41606 * DISTLIST: Removed font/manager.c.
41607 Added font/font.c.
41608 Added font/font_cmd.c.
41609
41610 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41611 compilation.
41612
41613 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41614
41615 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41616
41617 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41618
41619 * normal/menu.c: Likewise.
41620
41621 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41622 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41623
41624 * include/grub/font.h: Replaced with new file.
41625
41626 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41627 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41628 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41629 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41630 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41631 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41632 fg_red, fg_green, fg_blue, fg_alpha.
41633 (grub_video_adapter): Removed blit_glyph.
41634 (grub_video_blit_glyph): Removed.
41635
41636 * font/manager.c: Removed file.
41637
41638 * font/font.c: New file.
41639
41640 * font/font_cmd.c: Likewise.
41641
41642 * video/video.c (grub_video_blit_glyph): Removed.
41643
41644 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41645 (grub_video_vbe_map_rgba): Likewise.
41646 (grub_video_vbe_unmap_color_int): Likewise.
41647 (grub_video_vbe_blit_glyph): Removed.
41648 (grub_video_vbe_adapter): Removed blit_glyph.
41649
41650 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41651 (get_pixel): Likewise.
41652 (set_pixel): Likewise.
41653
41654 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41655
41656 * term/gfxterm.c: Adapted to new font engine.
41657
41658 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41659
41660 * term/i386/pc/vga.c: Likewise.
41661
41662 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41663
41664 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41665
41666 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41667
41668 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41669
41670 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41671
41672 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41673
41674 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41675
41676 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41677
41678 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41679
41680 * util/grub.d/00_header.in: Changed to use new loadfont command.
41681
41682 * util/grub-mkconfig_lib.in: Changed font extension.
41683
41684 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41685
41686 * util/getroot.c (grub_util_get_grub_dev): Add support for
41687 /dev/md/dNNpNN style partitionable mdraid devices.
41688
41689 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41690
41691 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41692 at a time limit of the PXE TFTP API correctly.
41693 (grub_pxefs_close): Likewise.
41694
41695 2008-11-29 Robert Millan <rmh@aybabtu.com>
41696
41697 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41698 grub_ata_device_initialize() calls.
41699
41700 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41701
41702 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41703 iteration failed.
41704 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41705
41706 2008-11-28 Robert Millan <rmh@aybabtu.com>
41707
41708 Fix build on powerpc-ieee1275. Based on patch created by
41709 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41710 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41711 `kern/ieee1275/mmap.c'.
41712 * include/grub/powerpc/ieee1275/memory.h: New file.
41713
41714 Provide grub-install on coreboot.
41715 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41716 (grub_install_SOURCES): New variable.
41717 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41718 usable on coreboot.
41719
41720 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41721
41722 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41723 to `grub_term_input_t'.
41724 (grub_term_get_current_output): Change return type to
41725 `grub_term_output_t'.
41726
41727 2008-11-22 Robert Millan <rmh@aybabtu.com>
41728
41729 Fix breakage on coreboot due to declaration mismatch.
41730 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41731 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41732 grub_vga_text_cls().
41733
41734 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41735 comments. Avoid copying one more byte than necessary (just in case).
41736
41737 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41738 to 0x200000 (avoids trouble with some OFW implementations, and matches
41739 with the one in Yaboot).
41740 Reported by Manoel Abranches
41741
41742 2008-11-20 Robert Millan <rmh@aybabtu.com>
41743
41744 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41745 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41746
41747 * util/grub-mkconfig_lib.in (grub_warn): New function.
41748 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41749 warnings, to obtain consistent formatting.
41750 * util/grub.d/00_header.in: Likewise.
41751 * util/update-grub_lib.in: Likewise.
41752
41753 * loader/i386/linux.c (allocate_pages): Fix a warning.
41754 Move comment text to `#error' stanza.
41755
41756 Harmonize ieee1275's grub_available_iterate() with the generic
41757 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41758 build problem on i386-ieee1275):
41759 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41760 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41761 parameter `type'. Update all users of this function.
41762 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41763 `kern/ieee1275/mmap.c'.
41764 * kern/ieee1275/init.c
41765 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41766 with ...
41767 (grub_machine_mmap_iterate): ... this.
41768 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41769 return type to `grub_err_t'. Update all implementations of this
41770 function prototype.
41771 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41772 Likewise.
41773
41774 Add `lsmmap' command (lists firmware-provided memory map):
41775 * commands/lsmmap.c: New file.
41776 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41777 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41778 variables.
41779 * conf/powerpc-ieee1275.rmk: Likewise.
41780 * conf/i386-coreboot.rmk: Likewise.
41781 * conf/i386-ieee1275.rmk: Likewise.
41782
41783 2008-11-19 Robert Millan <rmh@aybabtu.com>
41784
41785 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41786 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41787 constraints to initrd allocation (based on code from
41788 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41789 for Linux to find it.
41790
41791 2008-11-14 Robert Millan <rmh@aybabtu.com>
41792
41793 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41794 order to cope with duplicate slashes.
41795
41796 2008-11-14 Robert Millan <rmh@aybabtu.com>
41797
41798 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41799 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41800 don't want to mess with lower memory, because it is used in the Linux
41801 loader.
41802
41803 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41804 an appropriate place in lower memory, between 0x10000 and 0x90000,
41805 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41806 is in our heap (probably as a result of it being corrupted during
41807 decompression). Add #error instance with comment to explain why this
41808 loader isn't currently usable on PC/BIOS.
41809
41810 2008-11-14 Robert Millan <rmh@aybabtu.com>
41811
41812 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41813 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41814
41815 2008-11-12 Robert Millan <rmh@aybabtu.com>
41816
41817 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41818
41819 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41820 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41821 from here ...
41822 * include/grub/i386/pc/memory.h: ... to here.
41823
41824 2008-11-12 Robert Millan <rmh@aybabtu.com>
41825
41826 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41827 split).
41828
41829 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41830 (grub_console_cur_color, grub_console_real_putchar)
41831 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41832 (grub_console_setcolorstate, grub_console_setcolor)
41833 (grub_console_getcolor): Move from here ...
41834 * include/grub/i386/vga_common.h: ... to here (new file).
41835
41836 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41837 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41838 `<grub/i386/io.h>'.
41839 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41840 `<grub/i386/vga_common.h>'.
41841
41842 2008-11-12 Robert Millan <rmh@aybabtu.com>
41843
41844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41845 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41846 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41847 variables.
41848 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41849 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41850
41851 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41852 grub_console_init() with call to grub_vga_text_init().
41853 (grub_machine_fini): Replace call to
41854 grub_console_fini() with call to grub_vga_text_fini() and
41855 grub_at_keyboard_fini().
41856
41857 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41858 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41859 (grub_console_setcolorstate, grub_console_setcolor)
41860 (grub_console_getcolor): New function prototypes.
41861
41862 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41863 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41864 (grub_vga_text_setcursor): Static-ize.
41865 (grub_vga_text_term): New structure.
41866 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41867
41868 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41869 (grub_console_cur_color, grub_console_standard_color)
41870 (grub_console_normal_color, grub_console_highlight_color)
41871 (map_char, grub_console_putchar, grub_console_getcharwidth)
41872 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41873 (grub_console_getcolor): Move from here ...
41874 * term/i386/vga_common.c: ... to here (same function names).
41875
41876 2008-11-12 Robert Millan <rmh@aybabtu.com>
41877
41878 Use newly-added Multiboot support in coreboot.
41879
41880 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41881 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41882
41883 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41884 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41885 (codestart): Store the MBI in `startup_multiboot_info' when we're
41886 being loaded using Multiboot.
41887
41888 * kern/i386/coreboot/init.c (grub_machine_init): Move
41889 grub_at_keyboard_init() call to beginning of function (useful for
41890 debugging). Call grub_machine_mmap_init() before attempting to use
41891 grub_machine_mmap_iterate().
41892 (grub_lower_mem, grub_upper_mem): Move from here ...
41893 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41894 here (new file).
41895
41896 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41897 function prototype.
41898
41899 2008-11-12 Robert Millan <rmh@aybabtu.com>
41900
41901 Fix a regression introduced by the at_keyboard.mod split. Because
41902 some terminals are default on some platforms and non-default on
41903 others, the first terminal being registered determines which is
41904 going to be default.
41905
41906 * kern/term.c (grub_term_register_input): If this is the first
41907 terminal being registered, set it as the current one.
41908 (grub_term_register_output): Likewise.
41909
41910 * term/efi/console.c (grub_console_init): Do not call
41911 grub_term_set_current_output() or grub_term_set_current_input().
41912 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41913 * term/i386/pc/console.c (grub_console_init): Likewise.
41914 (grub_console_fini): Do not call grub_term_set_current_input()
41915 (but leave grub_term_set_current_output() to restore text mode).
41916
41917 2008-11-10 Robert Millan <rmh@aybabtu.com>
41918
41919 * util/grub.d/00_header.in: Add backward compatibility check for
41920 versions of terminal.mod that don't understand `terminal_input' or
41921 `terminal_output'.
41922
41923 2008-11-09 Robert Millan <rmh@aybabtu.com>
41924
41925 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41926 `terminal_input' / `terminal_output', not `terminal'.
41927
41928 2008-11-08 Robert Millan <rmh@aybabtu.com>
41929
41930 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41931 (DISTCLEANFILES): Add `build_env.mk'.
41932
41933 2008-11-08 Robert Millan <rmh@aybabtu.com>
41934
41935 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41936 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41937 members. Update all users.
41938 * util/console.c (grub_ncurses_term): Split in ...
41939 (grub_ncurses_term_input): ... this, and ...
41940 (grub_ncurses_term_output): ... this. Update all users.
41941 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41942
41943 2008-11-08 Robert Millan <rmh@aybabtu.com>
41944
41945 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41946 (PKGDATA): Add $(pkgdata_SRCDIR).
41947 (pkglib_BUILDDIR): New variable.
41948 (pkgdata_SRCDIR): New variable.
41949 (build_env.mk): New target.
41950 (include_DATA): New variable.
41951 (install-local): Install $(include_DATA) files in $(includedir).
41952
41953 2008-11-07 Pavel Roskin <proski@gnu.org>
41954
41955 * gendistlist.sh: Use C locale for sorting to ensure consistent
41956 output on all systems.
41957
41958 * util/grub.d/00_header.in: Remove incorrect space before
41959 "serial".
41960
41961 2008-11-07 Robert Millan <rmh@aybabtu.com>
41962
41963 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
41964 per specification.
41965 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
41966 * loader/multiboot_loader.c (find_multi_boot2_header): New function
41967 (based on find_multi_boot1_header).
41968 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
41969 using find_multi_boot2_header(), and abort if neither Multiboot or
41970 Multiboot headers were found.
41971
41972 2008-11-07 Robert Millan <rmh@aybabtu.com>
41973
41974 Modularize at_keyboard.mod:
41975
41976 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
41977 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
41978 (at_keyboard_mod_LDFLAGS): New variables.
41979
41980 Actual terminal split:
41981
41982 * include/grub/term.h (struct grub_term): Split in ...
41983 (struct grub_term_input): ... this, and ...
41984 (struct grub_term_output): ... this. Update all users.
41985 (grub_term_set_current): Split in ...
41986 (grub_term_set_current_input): ... this, and ...
41987 (grub_term_set_current_output): ... this.
41988 (grub_term_get_current): Split in ...
41989 (grub_term_get_current_input): ... this, and ...
41990 (grub_term_get_current_output): ... this.
41991 (grub_term_register): Split in ...
41992 (grub_term_register_input): ... this, and ...
41993 (grub_term_register_output): ... this.
41994 (grub_term_unregister): Split in ...
41995 (grub_term_unregister_input): ... this, and ...
41996 (grub_term_unregister_output): ... this.
41997 (grub_term_iterate): Split in ...
41998 (grub_term_iterate_input): ... this, and ...
41999 (grub_term_iterate_output): ... this.
42000
42001 * kern/term.c (grub_term_list): Split in ...
42002 (grub_term_list_input): ... this, and ...
42003 (grub_term_list_output): ... this. Update all users.
42004 (grub_cur_term): Split in ...
42005 (grub_cur_term_input): ... this, and ...
42006 (grub_cur_term_output): ... this. Update all users.
42007 (grub_term_set_current): Split in ...
42008 (grub_term_set_current_input): ... this, and ...
42009 (grub_term_set_current_output): ... this.
42010 (grub_term_get_current): Split in ...
42011 (grub_term_get_current_input): ... this, and ...
42012 (grub_term_get_current_output): ... this.
42013 (grub_term_register): Split in ...
42014 (grub_term_register_input): ... this, and ...
42015 (grub_term_register_output): ... this.
42016 (grub_term_unregister): Split in ...
42017 (grub_term_unregister_input): ... this, and ...
42018 (grub_term_unregister_output): ... this.
42019 (grub_term_iterate): Split in ...
42020 (grub_term_iterate_input): ... this, and ...
42021 (grub_term_iterate_output): ... this.
42022
42023 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42024 a check for input and one for output (and only attempt to get keys
42025 from user when input works).
42026
42027 * util/grub-probe.c (grub_term_get_current): Split in ...
42028 (grub_term_get_current_input): ... this, and ...
42029 (grub_term_get_current_output): ... this.
42030 * util/grub-fstest.c: Likewise.
42031 * util/i386/pc/grub-setup.c: Likewise.
42032 * util/grub-editenv.c: Likewise.
42033
42034 Portability adjustments:
42035
42036 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42037 `term/i386/pc/at_keyboard.c'.
42038 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42039 grub_keyboard_controller_init() (now handled by terminal .init).
42040 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42041 grub_at_keyboard_init().
42042 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42043 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42044 at_keyboard.mod via input terminal interface).
42045 * include/grub/i386/coreboot/console.h: Convert into a stub for
42046 `<grub/i386/pc/console.h>'.
42047
42048 Migrate full terminals to new API:
42049
42050 * term/efi/console.c (grub_console_term): Split into ...
42051 (grub_console_term_input): ... this, and ...
42052 (grub_console_term_output): ... this. Update all users.
42053 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42054 (grub_ofconsole_init): Split into ...
42055 (grub_ofconsole_init_input): ... this, and ...
42056 (grub_ofconsole_init_output): ... this.
42057 (grub_ofconsole_term): Split into ...
42058 (grub_ofconsole_term_input): ... this, and ...
42059 (grub_ofconsole_term_output): ... this. Update all users.
42060 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42061 (grub_serial_term_input): ... this, and ...
42062 (grub_serial_term_output): ... this. Update all users.
42063 * term/i386/pc/console.c (grub_console_term): Split into ...
42064 (grub_console_term_input): ... this, and ...
42065 (grub_console_term_output): ... this. Update all users.
42066 (grub_console_term_input): Only enable it on PC/BIOS platform.
42067 (grub_console_init): Remove grub_keyboard_controller_init() call.
42068
42069 Migrate input terminals to new API:
42070
42071 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42072 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42073 i386-specific anyway).
42074 (grub_console_checkkey): Rename to ...
42075 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42076 users.
42077 (grub_keyboard_controller_orig): New variable.
42078 (grub_console_getkey): Rename to ...
42079 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42080 users.
42081 (grub_keyboard_controller_init): Static-ize. Save original
42082 controller value so that it can be restored ...
42083 (grub_keyboard_controller_fini): ... here (new function).
42084 (grub_at_keyboard_term): New structure.
42085 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42086 functions.
42087
42088 Migrate output terminals to new API:
42089
42090 * term/i386/pc/vga.c (grub_vga_term): Change type to
42091 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42092 members. Update all users.
42093 * term/gfxterm.c (grub_video_term): Change type to
42094 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42095 members. Update all users.
42096 * include/grub/i386/pc/console.h (grub_console_checkkey)
42097 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42098 etc).
42099
42100 Migrate `terminal' command and userland tools to new API:
42101
42102 * commands/terminal.c (grub_cmd_terminal): Split into ...
42103 (grub_cmd_terminal_input): ... this, and ...
42104 (grub_cmd_terminal_output): ... this.
42105 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42106 `terminal_input' and `terminal_output'.
42107 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42108 `terminal_input' / `terminal_output' API.
42109 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42110 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42111 provided ${GRUB_TERMINAL}, convert it).
42112
42113 2008-11-04 Robert Millan <rmh@aybabtu.com>
42114
42115 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42116 for FreeBSD.
42117 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42118
42119 2008-11-03 Bean <bean123ch@gmail.com>
42120
42121 * kern/elf.c (grub_elf32_load): Revert to previous code.
42122 (grub_elf64_load): Likewise.
42123
42124 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42125
42126 2008-11-01 Robert Millan <rmh@aybabtu.com>
42127
42128 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42129 (TARGET_CPPFLAGS): Likewise.
42130 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42131
42132 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42133
42134 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42135
42136 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42137
42138 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42139 addition of objects until the code is not going to be able to fail.
42140
42141 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42142
42143 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42144 (add a missing NULL check, and correct them by moving the pointer
42145 operations after the actual check).
42146
42147 2008-10-29 Robert Millan <rmh@aybabtu.com>
42148
42149 * util/i386/pc/grub-install.in: Handle empty string as output from
42150 make_system_path_relative_to_its_root().
42151
42152 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42153
42154 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42155 circular metadata worst case scenario. If the metadata is circular
42156 then copy the wrap in place.
42157 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42158 project lib/format_text/layout.h
42159 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42160
42161 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42162
42163 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42164
42165 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42166
42167 * util/update-grub_lib.in: Mention filename in warning message.
42168
42169 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42170
42171 * NEWS: Update for rename of update-grub to grub-mkconfig.
42172
42173 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42174
42175 * util/update-grub_lib.in: Copy to ...
42176 * util/grub-mkconfig_lib.in: ... this. Update all users.
42177 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42178 * util/update-grub.in: Rename to ...
42179 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42180 option. Add `--output' option to allow users to specify the generated
42181 configuration file. Default to stdout.
42182 (update_grub_dir): Rename to ...
42183 (grub_mkconfig_dir): ... this.
42184 (grub_cfg): Default to an empty string.
42185 * conf/common.rmk (update-grub): Rename to ...
42186 (grub-mkconfig): ... this.
42187 (update-grub_lib): Copy to ...
42188 (grub-mkconfig_lib): ... this.
42189 (update-grub_SCRIPTS): Copy to ...
42190 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42191 (update-grub_DATA): Rename to ...
42192 (grub-mkconfig_DATA): ... this.
42193
42194 2008-09-28 Robert Millan <rmh@aybabtu.com>
42195
42196 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42197 to `modified'. Add the real `created' field.
42198 (grub_iso9660_uuid): Use `modified' rather than `created' for
42199 constructing the UUID.
42200
42201 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42202
42203 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42204 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42205
42206 2008-09-28 Bean <bean123ch@gmail.com>
42207
42208 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42209 Thanks to Christian Franke for finding this bug.
42210
42211 2008-09-25 Robert Millan <rmh@aybabtu.com>
42212
42213 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42214 instances of grub_util_get_disk_name() (see previous commit).
42215
42216 2008-09-25 Robert Millan <rmh@aybabtu.com>
42217
42218 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42219 `util/i386/get_disk_name.c'.
42220 * conf/i386-efi.rmk: Likewise.
42221 * conf/x86_64-efi.rmk: Likewise.
42222 * conf/i386-coreboot.rmk: Likewise.
42223 * conf/i386-ieee1275.rmk: Likewise.
42224 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42225 `util/ieee1275/get_disk_name.c'.
42226 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42227 * util/ieee1275/get_disk_name.c: Remove file.
42228 * util/i386/get_disk_name.c: Remove file.
42229 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42230 "hd%d" for device.map entries, rather than using
42231 grub_util_get_disk_name().
42232
42233 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42234
42235 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42236 warning.
42237 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42238
42239 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42240
42241 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42242 Changed to 0x5100.
42243 (GRUB_TERM_PPAGE): Changed to 0x4900.
42244
42245 2008-09-24 Robert Millan <rmh@aybabtu.com>
42246
42247 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42248 macros (they were i386-pc specific).
42249 * include/grub/sparc64/ieee1275/console.h: Likewise.
42250 * include/grub/efi/console.h: Likewise.
42251
42252 2008-09-22 Bean <bean123ch@gmail.com>
42253
42254 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42255 resident and in attribute list.
42256
42257 * include/grub/ntfs.h (BMP_LEN): Removed.
42258
42259 2008-09-22 Bean <bean123ch@gmail.com>
42260
42261 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42262 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42263
42264 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42265 error occurs, as grub_disk_open will call grub_disk_close, which will
42266 call p->close (scsi).
42267
42268 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42269
42270 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42271 (AC_PREREQ): Bumped to 2.59.
42272 (AC_TRY_COMPILE): Replace obsolete macro with ...
42273 (AC_COMPILE_IFELSE): ... this.
42274 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42275 (AC_LINK_IFELSE): ... this.
42276
42277 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42278
42279 * autogen.sh: Add a call to `gendistlist.sh'.
42280
42281 2008-09-19 Christian Franke <franke@computer.org>
42282
42283 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42284 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42285 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42286 Export __enable_execute_stack() to modules.
42287 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42288 New function.
42289
42290 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42291
42292 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42293 Sort the list.
42294
42295 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42296
42297 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42298 #include <grub/util/hostdisk.h>.
42299
42300 2008-09-08 Robert Millan <rmh@aybabtu.com>
42301
42302 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42303 segments when their filesz is zero (grub_file_read() interprets
42304 zero-size as "read until EOF", which results in memory corruption).
42305 Use `lowest_segment' rather than 0 for calculating the current
42306 segment load address.
42307
42308 2008-09-08 Robert Millan <rmh@aybabtu.com>
42309
42310 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42311 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42312 clobbered useful information.
42313
42314 2008-09-08 Robert Millan <rmh@aybabtu.com>
42315
42316 * include/grub/util/biosdisk.h: Move to ...
42317 * include/grub/util/hostdisk.h: ... here. Update all users.
42318 * util/biosdisk.c: Move to ...
42319 * util/hostdisk.c: ... here. Update all users.
42320
42321 2008-09-07 Robert Millan <rmh@aybabtu.com>
42322
42323 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42324 variables.
42325 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42326 and length can be stored directly in the `mbi->mmap_addr' and
42327 `mbi->mmap_length' struct fields.
42328
42329 2008-09-07 Robert Millan <rmh@aybabtu.com>
42330
42331 * conf/i386.rmk: New file. Provides declaration for building
42332 `cpuid.mod'.
42333 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42334 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42335 variables.
42336 Include `conf/i386.mk'.
42337 * conf/i386-efi.rmk: Likewise.
42338 * conf/x86_64-efi.rmk: Likewise.
42339 * conf/i386-coreboot.rmk: Likewise.
42340 * conf/i386-ieee1275.rmk: Likewise.
42341
42342 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42343
42344 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42345 Adds optimization support for BGR based modes.
42346
42347 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42348 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42349 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42350 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42351 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42352 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42353 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42354 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42355 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42356 (grub_video_i386_vbeblit_index_index): Likewise.
42357 (grub_video_i386_vbeblit_replace_directN): Added.
42358 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42359 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42360 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42361 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42362 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42363 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42364 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42365 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42366 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42367 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42368 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42369 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42370 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42371
42372 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42373 (grub_video_i386_vbefill_R8G8B8): Likewise.
42374 (grub_video_i386_vbefill_index): Likewise.
42375 (grub_video_i386_vbefill_direct32): Added.
42376 (grub_video_i386_vbefill_direct24): Likewise.
42377 (grub_video_i386_vbefill_direct16): Likewise.
42378 (grub_video_i386_vbefill_direct8): Likewise.
42379
42380 * include/grub/video.h (grub_video_blit_format): Removed
42381 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42382 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42383 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42384 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42385 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42386
42387 * video/video.c (grub_video_get_blit_format): Updated to use new
42388 blit formats. Added handling for 16 bit color modes.
42389
42390 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42391 fillers.
42392 (common_blitter): Updated to use new blitters.
42393
42394 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42395 Removed.
42396 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42397 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42398 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42399 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42400 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42401 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42402 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42403 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42404 (grub_video_i386_vbeblit_index_index): Likewise.
42405 (grub_video_i386_vbeblit_replace_directN): Added.
42406 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42407 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42408 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42409 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42410 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42411 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42412 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42413 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42414 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42415 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42416 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42417 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42418 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42419
42420 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42421 (grub_video_i386_vbefill_R8G8B8): Likewise.
42422 (grub_video_i386_vbefill_index): Likewise.
42423 (grub_video_i386_vbefill_direct32): Added.
42424 (grub_video_i386_vbefill_direct24): Likewise.
42425 (grub_video_i386_vbefill_direct16): Likewise.
42426 (grub_video_i386_vbefill_direct8): Likewise.
42427
42428 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42429 types.
42430
42431 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42432 types.
42433
42434 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42435 blitter types.
42436
42437 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42438 types.
42439
42440 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42441
42442 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42443 RAID level 1.
42444
42445 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42446
42447 * fs/iso9660.c (grub_iso9660_date): New structure.
42448 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42449 (grub_iso9660_uuid): New function.
42450
42451 2008-09-05 Bean <bean123ch@gmail.com>
42452
42453 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42454
42455 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42456 insensitive bit for names in Win32 and Win32 & DOS namespace.
42457
42458 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42459
42460 * include/grub/types.h (LONG_MAX): Likewise.
42461
42462 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42463
42464 * util/getroot.c: Include <config.h>.
42465 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42466 add support for /dev/md/N devices and handle LVM double dash escaping.
42467
42468 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42469
42470 * config.guess: Update to latest version from config git.
42471 * config.sub: Likewise.
42472
42473 2008-09-03 Robert Millan <rmh@aybabtu.com>
42474
42475 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42476 `disk->total_sectors'.
42477
42478 2008-09-01 Colin D Bennett <colin@gibibit.com>
42479
42480 * include/grub/normal.h: Fixed incorrect comment for
42481 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42482
42483 2008-09-01 Colin D Bennett <colin@gibibit.com>
42484
42485 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42486 values with defines.
42487
42488 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42489 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42490 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42491 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42492 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42493 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42494 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42495 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42496 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42497 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42498 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42499 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42500 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42501 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42502 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42503 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42504 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42505 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42506 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42507
42508 2008-08-31 Robert Millan <rmh@aybabtu.com>
42509
42510 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42511 declaration.
42512 (grub_multiboot): Fix a few warnings.
42513
42514 2008-08-31 Robert Millan <rmh@aybabtu.com>
42515
42516 * loader/i386/pc/multiboot.c: Update comment not to say that
42517 boot_device support is unimplemented.
42518
42519 2008-08-31 Robert Millan <rmh@aybabtu.com>
42520
42521 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42522 or memory map support are unimplemented.
42523
42524 2008-08-31 Colin D Bennett <colin@gibibit.com>
42525
42526 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42527
42528 2008-08-31 Colin D Bennett <colin@gibibit.com>
42529
42530 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42531 total video memory in 'vbeinfo' output; show color format details for
42532 each video mode.
42533
42534 2008-08-30 Pavel Roskin <proski@gnu.org>
42535
42536 * util/genmoddep.c: Remove for real this time.
42537 * DISTLIST: Remove util/genmoddep.c.
42538
42539 2008-08-30 Robert Millan <rmh@aybabtu.com>
42540
42541 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42542 as required by Multiboot spec (it was already 4-byte aligned, but
42543 only by chance).
42544
42545 2008-08-29 Pavel Roskin <proski@gnu.org>
42546
42547 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42548 * kern/powerpc/ieee1275/startup.S: ... this.
42549 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42550 * DISTLIST: Likewise.
42551
42552 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42553 grub/cpu/kernel.h. Add start label for consistency with other
42554 platforms. Add grub_prefix immediately after start. Add jump
42555 to the code after grub_prefix.
42556 * include/grub/powerpc/kernel.h: Provide valid values for
42557 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42558
42559 2008-08-29 Bean <bean123ch@gmail.com>
42560
42561 * configure.ac: Change host_os to cygwin for mingw.
42562 (asprintf): New check for function.
42563
42564 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42565 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42566
42567 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42568 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42569 sync, sleep and grub_util_get_disk_size for mingw.
42570
42571 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42572 to get size in mingw.
42573 (open_device): Use flag O_BINARY if it's defined.
42574 (find_root_device): Add dummy code for mingw.
42575
42576 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42577 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42578 (get_scsi_disk_name): Return 0 for mingw.
42579
42580 * util/hostfs.c: #include <grub/util/misc.h>.
42581 (grub_hostfs_open): Use "rb" flag to open file, use
42582 grub_util_get_disk_size to get disk size for mingw.
42583
42584 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42585 (asprintf): New function if HAVE_ASPRINTF is not set.
42586 (sync): New function for mingw.
42587 (sleep): Likewise.
42588 (grub_util_get_disk_size): Likewise.
42589
42590 2008-08-28 Pavel Roskin <proski@gnu.org>
42591
42592 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42593 kern/time.c.
42594
42595 2008-08-28 Robert Millan <rmh@aybabtu.com>
42596
42597 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42598
42599 2008-08-28 Robert Millan <rmh@aybabtu.com>
42600
42601 Change find_grub_drive() syntax so it doesn't prevent it from
42602 detecting NULL names as errors.
42603
42604 * util/biosdisk.c (find_grub_drive): Move free slot search code
42605 from here ...
42606 (find_free_slot): ... to here.
42607 (read_device_map): Use find_free_slot() to search for free slots.
42608
42609 2008-08-27 Marco Gerards <marco@gnu.org>
42610
42611 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42612 (scsi_mod_SOURCES): New variable.
42613 (scsi_mod_CFLAGS): Likewise
42614 (scsi_mod_LDFLAGS): Likewise.
42615
42616 * disk/scsi.c: New file.
42617
42618 * include/grub/scsi.h: Likewise.
42619
42620 * include/grub/scsicmd.h: Likewise.
42621
42622 * disk/ata.c: Include <grub/scsi.h>.
42623 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42624 instead.
42625 (grub_ata_iterate): Skip ATAPI devices.
42626 (grub_ata_open): Only handle ATAPI devices.
42627 (struct grub_atapi_read): Removed.
42628 (grub_atapi_readsector): Likewise.
42629 (grub_ata_read): No longer handle ATAPI devices.
42630 (grub_ata_write): Likewise.
42631 (grub_atapi_iterate): New function.
42632 (grub_atapi_read): Likewise.
42633 (grub_atapi_write): Likewise.
42634 (grub_atapi_open): Likewise.
42635 (grub_atapi_close): Likewise.
42636 (grub_atapi_dev): New variable.
42637 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42638 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42639
42640 * include/grub/disk.h (enum grub_disk_dev_id): Add
42641 `GRUB_DISK_DEVICE_SCSI_ID'.
42642
42643 2008-08-26 Robert Millan <rmh@aybabtu.com>
42644
42645 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42646 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42647 descriptive.
42648
42649 2008-08-23 Bean <bean123ch@gmail.com>
42650
42651 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42652 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42653 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42654 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42655 dm_nv.mod.
42656 (raid5rec_mod_SOURCES): New macro.
42657 (raid5rec_mod_CFLAGS): Likewise.
42658 (raid5rec_mod_LDFLAGS): Likewise.
42659 (raid6rec_mod_SOURCES): Likewise.
42660 (raid6rec_mod_CFLAGS): Likewise.
42661 (raid6rec_mod_LDFLAGS): Likewise.
42662 (mdraid_mod_SOURCES): Likewise.
42663 (mdraid_mod_CFLAGS): Likewise.
42664 (mdraid_mod_LDFLAGS): Likewise.
42665 (dm_nv_mod_SOURCES): Likewise.
42666 (dm_nv_mod_CFLAGS): Likewise.
42667 (dm_nv_mod_LDFLAGS): Likewise.
42668
42669 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42670 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42671 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42672
42673 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42674 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42675
42676 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42677
42678 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42679
42680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42681
42682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42683
42684 * disk/raid5_recover.c: New file.
42685
42686 * disk/raid6_recover.c: Likewise.
42687
42688 * disk/mdraid_linux.c: Likewise.
42689
42690 * disk/dmraid_nvidia.c: Likewise.
42691
42692 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42693 ULONG_MAX.
42694
42695 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42696 calculate the size of raid device.
42697 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42698 different layout of raid5.
42699 (grub_raid_scan_device): Remove code specific to mdraid.
42700 (grub_raid_list): New variable.
42701 (free_array): New function.
42702 (grub_raid_register): Likewise.
42703 (grub_raid_unregister): Likewise.
42704 (grub_raid_rescan): Likewise.
42705 (GRUB_MOD_INIT): Don't iterate device here.
42706 (GRUB_MOD_FINI): Use free_array to release resource.
42707
42708 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42709 (grub_raid5_recover_func_t): New function variable type.
42710 (grub_raid6_recover_func_t): Likewise.
42711 (grub_raid5_recover_func): New variable.
42712 (grub_raid6_recover_func): Likewise.
42713 (grub_raid_register): New function.
42714 (grub_raid_unregister): Likewise.
42715 (grub_raid_rescan): Likewise.
42716 (grub_raid_block_xor): Likewise.
42717
42718 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42719 (CMD_CRC): New macro.
42720 (part): Removed.
42721 (read_file): Handle device as well as file.
42722 (cmd_crc): New function.
42723 (fstest): Handle multiple disks.
42724 (options): Remove part, raw and long, add root and diskcount.
42725 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42726 (main): Find the first non option entry and ignore subsequent options,
42727 add handling for the new options, support multiple disks.
42728
42729 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42730
42731 2008-08-23 Bean <bean123ch@gmail.com>
42732
42733 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42734
42735 * genfslist.sh: Ignore kernel.mod.
42736
42737 * genpartmaplist.sh: Likewise.
42738
42739 2008-08-23 Robert Millan <rmh@aybabtu.com>
42740
42741 * util/getroot.c (find_root_device): Skip anything that starts with
42742 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42743
42744 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42745
42746 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42747 * util/grub.d/00_header.in: Allow the administrator to change default
42748 gfxmode via ${GRUB_GFXMODE}.
42749
42750 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42751
42752 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42753
42754 2008-08-21 Robert Millan <rmh@aybabtu.com>
42755
42756 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42757 loader.
42758 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42759 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42760
42761 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42762
42763 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42764 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42765
42766 2008-08-19 Robert Millan <rmh@aybabtu.com>
42767
42768 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42769 (struct grub_virtual_screen): Remove `cursor_color'.
42770 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42771 initialization.
42772 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42773
42774 2008-08-18 Robert Millan <rmh@aybabtu.com>
42775
42776 Unify (identical) linux_normal.c files.
42777 * loader/i386/efi/linux_normal.c: Move from here ...
42778 * loader/linux_normal.c: ... to here. Update all users.
42779 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42780 * loader/i386/ieee1275/linux_normal.c: Likewise.
42781
42782 2008-08-18 Robert Millan <rmh@aybabtu.com>
42783
42784 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42785 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42786 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42787 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42788 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42789 New macros.
42790 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42791 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42792 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42793 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42794 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42795 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42796 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42797 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42798 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42799 portably using grub_getxy().
42800 Replace `-EFI' with `-bzImage' in boot message.
42801
42802 2008-08-17 Robert Millan <rmh@aybabtu.com>
42803
42804 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42805
42806 2008-08-17 Robert Millan <rmh@aybabtu.com>
42807
42808 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42809
42810 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42811 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42812 (grub_machine_mmap_iterate): New function declaration.
42813 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42814 structure.
42815 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42816 macros.
42817
42818 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42819 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42820 Move e820 parsing from here ...
42821 * kern/i386/pc/mmap.c: New file.
42822 (grub_machine_mmap_iterate): ... to here.
42823
42824 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42825 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42826 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42827 (grub_available_iterate): Redeclare to return `void', and redeclare
42828 its hook to use grub_uint64_t as addr and size parameters, and rename
42829 to ...
42830 (grub_machine_mmap_iterate): ... this. Update all users.
42831
42832 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42833 to make it more readable. Rename to ...
42834 (grub_machine_mmap_iterate): ... this.
42835
42836 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42837 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42838 (grub_multiboot): Allocate an extra region after the payload, and fill
42839 it with a Multiboot memory map. Adjust a.out loader to calculate size
42840 with the extra space.
42841 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42842 with the extra space.
42843
42844 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42845
42846 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42847
42848 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42849
42850 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42851 mdate-sh to the list `find' searches for.
42852 * DISTLIST: Regenerated.
42853
42854 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42855
42856 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42857 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42858 genmoddep.awk, gensymlist.sh.in.
42859 (DISTDIRS): Add bus, docs, hook, lib.
42860 * DISTLIST: Regenerated.
42861 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42862
42863 2008-08-16 Robert Millan <rmh@aybabtu.com>
42864
42865 * disk/raid.c (grub_raid_init): Handle/report errors set by
42866 grub_device_iterate().
42867 * disk/lvm.c (grub_lvm_init): Likewise.
42868
42869 2008-08-15 Bean <bean123ch@gmail.com>
42870
42871 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42872 and datehook.mod.
42873 (datetime_mod_SOURCES): New macro.
42874 (datetime_mod_CFLAGS): Likewise.
42875 (datetime_mod_LDFLAGS): Likewise.
42876 (date_mod_SOURCES): Likewise.
42877 (date_mod_CFLAGS): Likewise.
42878 (date_mod_LDFLAGS): Likewise.
42879 (datehook_mod_SOURCES): Likewise.
42880 (datehook_mod_CFLAGS): Likewise.
42881 (datehook_mod_LDFLAGS): Likewise.
42882
42883 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42884 and datehook.mod.
42885 (datetime_mod_SOURCES): New macro.
42886 (datetime_mod_CFLAGS): Likewise.
42887 (datetime_mod_LDFLAGS): Likewise.
42888 (date_mod_SOURCES): Likewise.
42889 (date_mod_CFLAGS): Likewise.
42890 (date_mod_LDFLAGS): Likewise.
42891 (datehook_mod_SOURCES): Likewise.
42892 (datehook_mod_CFLAGS): Likewise.
42893 (datehook_mod_LDFLAGS): Likewise.
42894
42895 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42896 and datehook.mod.
42897 (datetime_mod_SOURCES): New macro.
42898 (datetime_mod_CFLAGS): Likewise.
42899 (datetime_mod_LDFLAGS): Likewise.
42900 (date_mod_SOURCES): Likewise.
42901 (date_mod_CFLAGS): Likewise.
42902 (date_mod_LDFLAGS): Likewise.
42903 (datehook_mod_SOURCES): Likewise.
42904 (datehook_mod_CFLAGS): Likewise.
42905 (datehook_mod_LDFLAGS): Likewise.
42906
42907 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42908 and datehook.mod.
42909 (datetime_mod_SOURCES): New macro.
42910 (datetime_mod_CFLAGS): Likewise.
42911 (datetime_mod_LDFLAGS): Likewise.
42912 (date_mod_SOURCES): Likewise.
42913 (date_mod_CFLAGS): Likewise.
42914 (date_mod_LDFLAGS): Likewise.
42915 (datehook_mod_SOURCES): Likewise.
42916 (datehook_mod_CFLAGS): Likewise.
42917 (datehook_mod_LDFLAGS): Likewise.
42918
42919 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42920 and datehook.mod.
42921 (datetime_mod_SOURCES): New macro.
42922 (datetime_mod_CFLAGS): Likewise.
42923 (datetime_mod_LDFLAGS): Likewise.
42924 (date_mod_SOURCES): Likewise.
42925 (date_mod_CFLAGS): Likewise.
42926 (date_mod_LDFLAGS): Likewise.
42927 (datehook_mod_SOURCES): Likewise.
42928 (datehook_mod_CFLAGS): Likewise.
42929 (datehook_mod_LDFLAGS): Likewise.
42930
42931 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42932
42933 * commands/date.c: New file.
42934
42935 * hook/datehook.c: Likewise.
42936
42937 * include/grub/lib/datetime.h: Likewise.
42938
42939 * include/grub/i386/cmos.h: Likewise.
42940
42941 * lib/datetime.c: Likewise.
42942
42943 * lib/i386/datetime.c: Likewise.
42944
42945 * lib/efi/datetime.c: Likewise.
42946
42947 2008-08-14 Robert Millan <rmh@aybabtu.com>
42948
42949 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42950 (grub_mkelfimage_SOURCES): New variable.
42951 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42952
42953 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42954 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42955 * conf/powerpc-ieee1275.rmk: Likewise.
42956 * conf/i386-ieee1275.rmk: Likewise.
42957
42958 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42959 * kern/i386/coreboot/init.c: Likewise.
42960
42961 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42962 with `<grub/cpu/kernel.h>'.
42963 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
42964 to ...
42965 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
42966 * kern/i386/coreboot/startup.S: Likewise.
42967
42968 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
42969 (GRUB_MOD_GAP): Remove.
42970 * include/grub/powerpc/kernel.h: New file.
42971 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
42972 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42973 * include/grub/i386/kernel.h: New file.
42974 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
42975 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
42976 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
42977
42978 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
42979 `grub-mkelfimage'.
42980 Use --directory when invoking grub_mkimage.
42981
42982 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
42983 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
42984 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
42985 and GRUB_KERNEL_CPU_PREFIX.
42986
42987 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
42988
42989 * include/grub/err.h (grub_err_printf): New function prototype.
42990 * util/misc.c (grub_err_printf): New function.
42991 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
42992 grub_printf.
42993 * kern/err.c (grub_print_error): Use grub_err_printf.
42994
42995 2008-08-13 Robert Millan <rmh@aybabtu.com>
42996
42997 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
42998
42999 2008-08-13 Robert Millan <rmh@aybabtu.com>
43000
43001 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43002 boot entry.
43003
43004 2008-08-12 Robert Millan <rmh@aybabtu.com>
43005
43006 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43007 of the relocation code from here ...
43008 (grub_multiboot): ... to here.
43009 (forward_relocator, backward_relocator): Move from here ...
43010 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43011 (grub_multiboot_backward_relocator): ... to here.
43012 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43013 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43014 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43015 (grub_multiboot_forward_relocator_end)
43016 (grub_multiboot_backward_relocator)
43017 (grub_multiboot_backward_relocator_end): New variables.
43018
43019 2008-08-12 Bean <bean123ch@gmail.com>
43020
43021 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43022
43023 2008-08-11 Robert Millan <rmh@aybabtu.com>
43024
43025 * kern/i386/linuxbios/startup.S: Move from here ...
43026 * kern/i386/coreboot/startup.S: ... to here.
43027
43028 * kern/i386/linuxbios/init.c: Move from here ...
43029 * kern/i386/coreboot/init.c: ... to here.
43030
43031 * kern/i386/linuxbios/table.c: Move from here ...
43032 * kern/i386/coreboot/mmap.c: ... to here.
43033
43034 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43035
43036 2008-08-11 Robert Millan <rmh@aybabtu.com>
43037
43038 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43039 errors. Leave it to the upper layer to handle them.
43040
43041 2008-08-09 Christian Franke <franke@computer.org>
43042
43043 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43044 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43045 Install `grub.d/10_windows' only on Cygwin.
43046 * configure.ac: Add subst of `target_os'.
43047 Check `target_os' also before setting TARGET_OBJ2ELF.
43048 Add `--enable-grub-pe2elf'.
43049
43050 2008-08-08 Robert Millan <rmh@aybabtu.com>
43051
43052 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43053 (grub_last_time): Change type to grub_uint64_t.
43054 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43055 (grub_disk_close): Likewise.
43056
43057 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43058 (run_menu): Migrate code from to using grub_get_time_ms().
43059
43060 * util/misc.c (grub_get_time_ms): New function.
43061
43062 2008-08-08 Marco Gerards <marco@gnu.org>
43063
43064 * disk/ata.c (grub_ata_regget): Change return type to
43065 `grub_uint8_t'.
43066 (grub_ata_regget2): Likewise.
43067 (grub_ata_wait_status): New function.
43068 (grub_ata_wait_busy): Removed function, updated all users to use
43069 `grub_ata_wait_status'.
43070 (grub_ata_wait_drq): Likewise.
43071 (grub_ata_cmd): New function.
43072 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43073 error handling.
43074 (grub_ata_pio_write): Add error handling.
43075 (grub_atapi_identify): Likewise.
43076 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43077 handling.
43078 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43079 handling. Actually use the detected registers. Reorder the
43080 detection logic such that it is easier to read.
43081 (grub_ata_pciinit): Do not assign the same ID to each controller.
43082 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43083 handling.
43084 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43085
43086 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43087
43088 2008-08-08 Marco Gerards <marco@gnu.org>
43089
43090 * NEWS: Update.
43091
43092 2008-08-07 Bean <bean123ch@gmail.com>
43093
43094 * include/grub/x86_64/pci.h: New file.
43095
43096 2008-08-07 Christian Franke <franke@computer.org>
43097
43098 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43099 (TIMER2_GATE): Likewise.
43100 (grub_pit_wait): Add enable/disable of the timer2 gate
43101 bit of port 0x61. This fixes a possible infinite loop.
43102
43103 2008-08-07 Bean <bean123ch@gmail.com>
43104
43105 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43106 kern/i386/tsc.c and kern/i386/pit.c.
43107
43108 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43109 x86_64 platform.
43110
43111 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43112 <grub/i386/tsc.h>.
43113
43114 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43115
43116 2008-08-07 Bean <bean123ch@gmail.com>
43117
43118 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43119
43120 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43121
43122 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43123 multiple inclusion. Add #include <grub/types.h>.
43124
43125 2008-08-06 Christian Franke <franke@computer.org>
43126
43127 * conf/common.rmk: Build and install `10_windows'.
43128 * util/grub.d/10_windows.in: New script.
43129
43130 2008-08-06 Pavel Roskin <proski@gnu.org>
43131
43132 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43133
43134 2008-08-06 Robert Millan <rmh@aybabtu.com>
43135
43136 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43137 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43138
43139 2008-08-06 Bean <bean123ch@gmail.com>
43140
43141 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43142 (grub_pxefs_fs_int): Remove dummy definition.
43143 (grub_pxefs_open): Use data->block_size to store the current block
43144 size setting.
43145 (grub_pxefs_read): Use block size stored in data->block_size. As the
43146 value of grub_pxe_blksize can be changed after the file is opened.
43147
43148 2008-08-06 Bean <bean123ch@gmail.com>
43149
43150 * fs/i386/pc/pxe.c (curr_file): new variable.
43151 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43152 require the dummy internal file system anymore.
43153 (grub_pxefs_read): Removed.
43154 (grub_pxefs_close): Likewise.
43155 (grub_pxefs_fs_int): Likewise.
43156 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43157 connection when we switch file.
43158 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43159
43160 2008-08-06 Robert Millan <rmh@aybabtu.com>
43161
43162 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43163 `halt.mod'.
43164 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43165 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43166
43167 * kern/i386/halt.c: New file.
43168 * kern/i386/reboot.c: Likewise.
43169 * include/grub/i386/reboot.h: Likewise.
43170 * include/grub/i386/halt.h: Likewise.
43171
43172 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43173 Include `<grub/cpu/halt.h>'.
43174 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43175 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43176
43177 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43178 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43179 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43180 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43181 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43182 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43183 from here ...
43184 * include/grub/i386/at_keyboard.h: ... to here.
43185
43186 2008-08-05 Robert Millan <rmh@aybabtu.com>
43187
43188 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43189 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43190 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43191 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43192 `kern/generic/millisleep.c'.
43193
43194 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43195 instead of grub_get_rtc().
43196 (grub_tsc_init): Initialize `tsc_boot_time'.
43197
43198 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43199 (grub_machine_init): Use grub_tsc_init() rather than
43200 installing an RTC-based handler via grub_install_get_time_ms().
43201
43202 * kern/i386/pit.c: New file.
43203 * include/grub/i386/pit.h: Likewise.
43204
43205 2008-08-05 Bean <bean123ch@gmail.com>
43206
43207 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43208
43209 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43210 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43211 (pxe_mod_SOURCES): New macro.
43212 (pxe_mod_CFLAGS): Likewise.
43213 (pxe_mod_LDFLAGS): Likewise.
43214 (pxecmd_mod_SOURCES): Likewise.
43215 (pxecmd_mod_CFLAGS): Likewise.
43216 (pxecmd_mod_LDFLAGS): Likewise.
43217
43218 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43219 (grub_pxe_call): Likewise.
43220
43221 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43222
43223 * commands/i386/pc/pxecmd.c: New file.
43224
43225 * fs/i386/pc/pxe.c: Likewise.
43226
43227 * include/grub/i386/pc/pxe.h: Likewise.
43228
43229 2008-08-05 Bean <bean123ch@gmail.com>
43230
43231 * util/console.c (grub_console_cur_color): New variable.
43232 (grub_console_standard_color): Likewise.
43233 (grub_console_normal_color): Likewise.
43234 (grub_console_highlight_color): Likewise.
43235 (color_map): Likewise.
43236 (use_color): Likewise.
43237 (NUM_COLORS): New macro.
43238 (grub_ncurses_setcolorstate): Handle color properly.
43239 (grub_ncurses_setcolor): Don't change color here, just remember the
43240 settings, color will be set in grub_ncurses_setcolorstate.
43241 (grub_ncurses_getcolor): New function.
43242 (grub_ncurses_init): Initialize color pairs.
43243 (grub_ncurses_term): New member grub_ncurses_getcolor.
43244
43245 2008-08-05 Colin D Bennett <colin@gibibit.com>
43246
43247 High resolution timer support. Implemented for x86 CPUs using TSC.
43248 Extracted generic grub_millisleep() so it's linked in only as needed.
43249 This requires a Pentium compatible CPU; if the RDTSC instruction is
43250 not supported, then it falls back on the generic grub_get_time_ms()
43251 implementation that uses the machine's RTC.
43252
43253 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43254 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43255 `kern/generic/millisleep.c'.
43256
43257 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43258 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43259
43260 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43261 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43262
43263 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43264
43265 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43266 `kern/generic/millisleep.c'.
43267
43268 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43269
43270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43271
43272 * kern/generic/rtc_get_time_ms.c: New file.
43273
43274 * kern/generic/millisleep.c: New file.
43275
43276 * kern/misc.c: Don't include
43277 <kern/time.h> anymore.
43278 (grub_millisleep_generic): Removed.
43279
43280 * commands/sleep.c (grub_interruptible_millisleep): Uses
43281 grub_get_time_ms() instead of grub_get_rtc().
43282
43283 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43284 function.
43285 (grub_cpu_is_cpuid_supported): New inline function.
43286 (grub_cpu_is_tsc_supported): New inline function.
43287 (grub_tsc_init): New function prototype.
43288 (grub_tsc_get_time_ms): New function prototype.
43289
43290 * kern/i386/tsc.c (grub_get_time_ms): New file.
43291
43292 * include/grub/time.h: Include <grub/types.h.
43293 (grub_millisleep_generic): Removed.
43294 (grub_get_time_ms): New prototype.
43295 (grub_install_get_time_ms): New prototype.
43296 (grub_rtc_get_time_ms): New prototype.
43297
43298 * kern/time.c (grub_get_time_ms): New function.
43299 (grub_install_get_time_ms): New function.
43300
43301 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43302 <grub/time.h> anymore.
43303 (grub_millisleep): Removed.
43304 (grub_machine_init): Call grub_tsc_init.
43305
43306 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43307 get_time_ms() implementation.
43308
43309 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43310 (ieee1275_get_time_ms): New function.
43311 (grub_machine_init): Install get_time_ms() implementation.
43312
43313 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43314 (grub_machine_init): Call grub_tsc_init().
43315 (grub_millisleep): Removed.
43316
43317 * kern/ieee1275/init.c (grub_millisleep): Removed.
43318 (grub_machine_init): Install ieee1275_get_time_ms()
43319 implementation.
43320 (ieee1275_get_time_ms): New function.
43321 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43322 real work.
43323
43324 2008-08-05 Marco Gerards <marco@gnu.org>
43325
43326 * disk/ata.c: Include <grub/pci.h>.
43327 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43328 (grub_ata_initialize): Rewritten.
43329 (grub_ata_device_initialize): New function.
43330
43331 2008-08-04 Pavel Roskin <proski@gnu.org>
43332
43333 * kern/main.c: Include grub/mm.h.
43334
43335 2008-08-04 Robert Millan <rmh@aybabtu.com>
43336
43337 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43338 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43339 corruption problem).
43340
43341 2008-08-04 Robert Millan <rmh@aybabtu.com>
43342
43343 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43344 warnings introduced in my last commit.
43345
43346 2008-08-03 Robert Millan <rmh@aybabtu.com>
43347
43348 Make PCI available on all i386 architectures.
43349
43350 * include/grub/i386/pc/pci.h: Move from here ...
43351 * include/grub/i386/pci.h: ... to here.
43352
43353 * include/grub/i386/pc/pci.h: Remove.
43354 * include/grub/i386/efi/pci.h: Remove.
43355 * include/grub/x86_64/efi/pci.h: Remove.
43356
43357 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43358 `<grub/cpu/pci.h>'.
43359
43360 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43361 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43362 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43363
43364 * conf/i386-ieee1275.rmk: Likewise.
43365
43366 2008-08-03 Robert Millan <rmh@aybabtu.com>
43367
43368 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43369 (grub_console_setcursor): Make it possible to set cursor off.
43370
43371 2008-08-03 Robert Millan <rmh@aybabtu.com>
43372
43373 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43374 of modules instead of assuming which platform provides what.
43375 * util/update-grub.in: Likewise.
43376
43377 2008-08-03 Robert Millan <rmh@aybabtu.com>
43378
43379 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43380 instead of `grub_install_dos_part' to determine whether a drive needs
43381 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43382 because it can be overridden when loading GRUB via Multiboot).
43383
43384 2008-08-02 Robert Millan <rmh@aybabtu.com>
43385
43386 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43387
43388 2008-08-02 Robert Millan <rmh@aybabtu.com>
43389
43390 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43391 of informational grub_dprintf() calls.
43392
43393 2008-08-02 Robert Millan <rmh@aybabtu.com>
43394
43395 * disk/memdisk.c (memdisk_size): Don't initialize.
43396 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43397
43398 * include/grub/i386/pc/kernel.h
43399 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43400 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43401 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43402 (grub_arch_memdisk_size): Remove.
43403
43404 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43405 field (was only used to transfer a constant). Add `type' field to
43406 support multiple module types.
43407 (grub_module_iterate): New function.
43408
43409 * kern/device.c (grub_device_open): Do not hide error messages
43410 when grub_disk_open() fails. Use grub_print_error() instead.
43411
43412 * kern/i386/pc/init.c (grub_arch_modules_addr)
43413 (grub_arch_memdisk_size): Remove functions.
43414 (grub_arch_modules_addr): Return the module address in high memory
43415 (now that it isn't copied anymore).
43416
43417 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43418 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43419 decompression routine (grub_total_module_size already includes that
43420 now). Don't copy modules back to low memory.
43421
43422 * kern/main.c: Include `<grub/mm.h>'.
43423 (grub_load_modules): Split out (and use) ...
43424 (grub_module_iterate): ... this function, which iterates through
43425 module objects and runs a hook.
43426 Comment out grub_mm_init_region() call, as it would cause non-ELF
43427 modules to be overwritten.
43428
43429 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43430 the memdisk image in its own region, make it part of the module list.
43431 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43432 (main): Parse --memdisk|-m option, and pass user-provided path as
43433 parameter to generate_image().
43434 (add_segments): Pass `memdisk_path' down to load_modules().
43435 (load_modules): Embed memdisk image in module section when requested.
43436 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43437 `header.type' instead of `header.offset'.
43438
43439 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43440 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43441 (memdisk_mod_LDFLAGS): New variables.
43442 * conf/i386-coreboot.rmk: Likewise.
43443 * conf/i386-ieee1275.rmk: Likewise.
43444
43445 2008-08-02 Robert Millan <rmh@aybabtu.com>
43446
43447 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43448 (backward_relocator): New variables. Used to allocate and relocate
43449 the payload, respectively.
43450 (grub_multiboot_load_elf32): Load into heap instead of requested
43451 address, install the appropriate relocator code in each bound of
43452 the payload, and set the entry point such that
43453 grub_multiboot_real_boot() will jump to one of them.
43454
43455 * kern/i386/loader.S (grub_multiboot_payload_size)
43456 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43457 (grub_multiboot_payload_entry_offset): New variables.
43458 (grub_multiboot_real_boot): Set cpu context to what the relocator
43459 expects, and jump to the relocator instead of the payload.
43460
43461 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43462 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43463 (grub_multiboot_payload_entry_offset): Export.
43464
43465 2008-08-01 Bean <bean123ch@gmail.com>
43466
43467 * normal/menu_entry.c (editor_getline): Don't return the original
43468 string as result, as it will be released by lexer once it has done
43469 using it.
43470
43471 2008-08-01 Robert Millan <rmh@aybabtu.com>
43472
43473 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43474 within menuentries, not before them.
43475 util/grub.d/10_hurd.in: Likewise.
43476
43477 2008-08-01 Bean <bean123ch@gmail.com>
43478
43479 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43480 (bufio_mod_SOURCES): New macro.
43481 (bufio_mod_CFLAGS): Likewise.
43482 (bufio_mod_LDFLAGS): Likewise.
43483
43484 * include/grub/bufio.h: New file.
43485
43486 * io/bufio.c: Likewise.
43487
43488 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43489 (grub_video_reader_png): Use grub_buffile_open to open file.
43490
43491 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43492 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43493
43494 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43495 (grub_video_reader_tga): Use grub_buffile_open to open file.
43496
43497 * font/manager.c: Include <grub/bufio.h>.
43498 (add_font): Use grub_buffile_open to open file.
43499
43500 2008-07-31 Robert Millan <rmh@aybabtu.com>
43501
43502 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43503 ELF segments, use a macro for arbitrarily accessing any of them instead
43504 of preparing a pointer that allows access to one at a time.
43505 (grub_multiboot_load_elf64): Likewise.
43506
43507 2008-07-31 Bean <bean123ch@gmail.com>
43508
43509 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43510 GRUB_KERNEL_MACHINE_DATA_END.
43511
43512 2008-07-30 Robert Millan <rmh@aybabtu.com>
43513
43514 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43515 Increase from 0x50 to 0x60.
43516 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43517 use UUIDs to identify the root drive for them. If that's not
43518 possible, abort.
43519 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43520 check, for cross-disk installs.
43521
43522 2008-07-30 Robert Millan <rmh@aybabtu.com>
43523
43524 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43525 is non-empty, use it to set the `prefix' environment variable instead
43526 of the usual approach.
43527 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43528 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43529 environment variable instead of dummy make_install_device().
43530
43531 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43532 (start): Insert a data section, with `grub_prefix' variable.
43533 * kern/i386/linuxbios/startup.S: Likewise.
43534
43535 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43536 New variable reference.
43537 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43538 New macro. Defines offset of `grub_prefix' within startup.S (relative
43539 to `start').
43540 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43541 section within startup.S (relative to `start').
43542 * include/grub/i386/coreboot/kernel.h: Likewise.
43543
43544 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43545 Overwrite grub_prefix with its contents, at the beginning of the
43546 first segment.
43547 (main): Understand -p|--prefix.
43548
43549 2008-07-30 Robert Millan <rmh@aybabtu.com>
43550
43551 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43552
43553 2008-07-30 Robert Millan <rmh@aybabtu.com>
43554
43555 * term/i386/pc/vga_text.c (grub_console_cls): Use
43556 grub_console_gotoxy() to go back to beginning of the screen.
43557 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43558
43559 2008-07-29 Christian Franke <franke@computer.org>
43560
43561 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43562 Add conversion of emulated mount points on Cygwin.
43563
43564 2008-07-29 Christian Franke <franke@computer.org>
43565
43566 * util/update-grub.in: Add a check for admin
43567 group on Cygwin.
43568 Remove old `grub.cfg.new' before creation.
43569 Add `-f' to `mv' to handle the different filesystem
43570 semantics of Windows.
43571
43572 2008-07-29 Bean <bean123ch@gmail.com>
43573
43574 * normal/main.c (get_line): Fix buffer overflow bug.
43575
43576 2008-07-28 Robert Millan <rmh@aybabtu.com>
43577
43578 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43579 (struct grub_apple_header): New struct. Describes the layout of
43580 the partmap header.
43581 (apple_partition_map_iterate): Check the header magic as well as the
43582 partition magic (which was already being checked).
43583
43584 2008-07-28 Pavel Roskin <proski@gnu.org>
43585
43586 * genmk.rb: Add a warning to the beginning of the output that
43587 it's a generated file and should not be edited.
43588
43589 2008-07-28 Robert Millan <rmh@aybabtu.com>
43590
43591 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43592 with the same number are found, just use issue a warning with
43593 grub_dprintf(), as this error has been reported to be non-fatal.
43594
43595 2008-07-27 Robert Millan <rmh@aybabtu.com>
43596
43597 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43598 information.
43599
43600 2008-07-27 Bean <bean123ch@gmail.com>
43601
43602 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43603 (grub_fat_find_dir): Ignore case when comparing filename.
43604
43605 2008-07-27 Bean <bean123ch@gmail.com>
43606
43607 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43608 smallino, as it's more descriptive, and i8count can be confused with
43609 the other field count.
43610 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43611 inode type.
43612
43613 2008-07-27 Bean <bean123ch@gmail.com>
43614
43615 * commands/crc.c: New file.
43616
43617 * lib/crc.c: Likewise.
43618
43619 * include/grub/lib/crc.h: Likewise.
43620
43621 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43622
43623 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43624 (hexdump): Move this function to ...
43625
43626 * lib/hexdump.c: ... here.
43627
43628 * include/grub/hexdump.h: Renamed to ...
43629
43630 * include/grub/lib/hexdump.h: ... this.
43631
43632 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43633
43634 * util/grub-editenv.c: Likewise.
43635
43636 * include/envblk.h: Renamed to ...
43637
43638 * include/lib/envblk.h: ... this.
43639
43640 * util/envblk.c: Renamed to ...
43641
43642 * lib/envblk.c: ... this.
43643
43644 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43645 lib/hexdump.c.
43646 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43647 (pkglib_MODULES): Add crc.mod.
43648 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43649 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43650 (crc_mod_SOURCES): New macro.
43651 (crc_mod_CFLAGS): Likewise.
43652 (crc_mod_LDFLAGS): Likewise.
43653
43654 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43655
43656 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43657
43658 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43659
43660 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43661
43662 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43663
43664 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43665
43666 * commands/help.c: Include <grub/term.h>.
43667 (TERM_WIDTH): Removed. Updated all users.
43668
43669 2008-07-27 Pavel Roskin <proski@gnu.org>
43670
43671 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43672 spurious warnings about a comment within a comment.
43673
43674 2008-07-25 Robert Millan <rmh@aybabtu.com>
43675
43676 * util/getroot.c (find_root_device): Skip devices that match
43677 /dev/dm-[0-9]. This lets the real device be found for any type of
43678 abstraction (LVM, EVMS, RAID..).
43679 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43680 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43681 device is found first, find_root_device() will now skip it.
43682
43683 2008-07-24 Pavel Roskin <proski@gnu.org>
43684
43685 * include/grub/types.h: Use __builtin_bswap32() and
43686 __builtin_bswap64() with gcc 4.3 and newer.
43687
43688 2008-07-24 Christian Franke <franke@computer.org>
43689
43690 * util/i386/pc/grub-install.in: If `--debug' is specified,
43691 pass `--verbose' to grub-setup.
43692 Abort script if make_system_path_relative_to_its_root() fails.
43693
43694 2008-07-24 Bean <bean123ch@gmail.com>
43695
43696 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43697 variable `target_platform' should be `platform'.
43698
43699 2008-07-24 Bean <bean123ch@gmail.com>
43700
43701 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43702 (grub_png_init_fixed_block): New function.
43703 (grub_png_decode_image_data): Handle fixed huffman code compression.
43704
43705 2008-07-24 Bean <bean123ch@gmail.com>
43706
43707 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43708 (grub_pe2elf_SOURCES): New macro.
43709 (CLEANFILES): Add grub-pe2elf.
43710
43711 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43712 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43713 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43714 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43715 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43716 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43717 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43718 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43719 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43720 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43721 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43722 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43723 (GRUB_PE32_DT_FUNCTION): Likewise.
43724 (GRUB_PE32_REL_I386_DIR32): Likewise.
43725 (GRUB_PE32_REL_I386_REL32): Likewise.
43726 (grub_pe32_symbol): New structure.
43727 (grub_pe32_reloc): Likewise.
43728
43729 * util/grub-pe2elf.c: New file.
43730
43731 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43732 start symbol in non pc platform.
43733
43734 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43735
43736 The following patches are from Christian Franke.
43737
43738 * include/grub/dl.h: Remove .previous, gas supports this only
43739 for ELF format.
43740
43741 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43742 Remove .type, gas supports this only for ELF format.
43743
43744 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43745 nullbytes in symbol table. This fixes an infinite loop if table is
43746 zero filled.
43747
43748 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43749 TARGET_IMG_LDFLAGS and EXEEXT.
43750
43751 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43752 TARGET_IMG_LDFLAGS_AC.
43753 (grub_CHECK_STACK_ARG_PROBE): New function.
43754
43755 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43756
43757 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43758
43759 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43760 to set TARGET_IMG_LD* accordingly.
43761 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43762 Add call to grub_CHECK_STACK_ARG_PROBE.
43763 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43764
43765 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43766
43767 * genmk.rb: Add EXEEXT to CLEANFILES.
43768
43769 2008-07-23 Robert Millan <rmh@aybabtu.com>
43770
43771 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43772 define the codes for arrows and lines used for the menu).
43773 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43774 as well.
43775
43776 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43777 fonts, because the latter are too slow.
43778
43779 2008-07-21 Bean <bean123ch@gmail.com>
43780
43781 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43782 a20. Run keyboard test last, as it will cause macbook to halt.
43783
43784 2008-07-18 Pavel Roskin <proski@gnu.org>
43785
43786 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43787 load foreign architecture modules correctly anyway. Keep
43788 support for loading host architecture modules, whether we
43789 compile them or not.
43790
43791 2008-07-17 Pavel Roskin <proski@gnu.org>
43792
43793 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43794 change target_cpu. The compiler default can mismatch target_cpu
43795 in any case.
43796
43797 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43798 * kern/efi/efi.c: Likewise.
43799
43800 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43801 target compiler is functional.
43802 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43803 are set up.
43804
43805 * configure.ac: Default to efi platform for x86_64-apple. Allow
43806 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43807 adjustments from the rest, only do them if target is not
43808 explicitly given. Merge other adjustments with the final sanity
43809 check. Remove an extraneous check for supported CPU. Be
43810 specific which CPU and which platform is not supported.
43811
43812 * configure.ac: Default to pc platform for x86_64.
43813
43814 2008-07-17 Robert Millan <rmh@aybabtu.com>
43815
43816 Partial LinuxBIOS -> Coreboot rename.
43817
43818 * conf/i386-linuxbios.rmk: Renamed to ...
43819 * conf/i386-coreboot.rmk: ... this.
43820 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43821 * configure.ac: Accept "coreboot" as input platform (but maintain
43822 compatibility with "linuxbios").
43823 * include/grub/i386/linuxbios: Renamed to ...
43824 * include/grub/i386/coreboot: ... this.
43825
43826 2008-07-17 Bean <bean123ch@gmail.com>
43827
43828 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43829 (appleldr_mod_SOURCE): New variable.
43830 (appleldr_mod_CFLAGS): Likewise.
43831 (appleldr_mod_LDFLAGS): Likewise.
43832 (pci_mod_SOURCES): Likewise.
43833 (pci_mod_CFLAGS): Likewise.
43834 (pci_mod_LDFLAGS): Likewise.
43835 (lspci_mod_SOURCES): Likewise.
43836 (lspci_mod_CFLAGS): Likewise.
43837 (lspci_mod_LDFLAGS): Likewise.
43838
43839 * conf/x86_64-efi.rmk: New file.
43840
43841 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43842 macro.
43843 (grub_efidisk_write): Likewise.
43844
43845 * include/efi/api.h (efi_call_0): New macro.
43846 (efi_call_1): Likewise.
43847 (efi_call_2): Likewise.
43848 (efi_call_3): Likewise.
43849 (efi_call_4): Likewise.
43850 (efi_call_5): Likewise.
43851 (efi_call_6): Likewise.
43852
43853 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43854 grub_rescue_cmd_chainloader.
43855
43856 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43857 (grub_pe32_optional_header): Change some fields based on i386 or
43858 x86_64 platform.
43859 (GRUB_PE32_PE32_MAGIC): Likewise.
43860
43861 * include/grub/efi/uga_draw.h: New file.
43862
43863 * include/grub/elf.h (STN_ABS): New constant.
43864 (R_X86_64_NONE): Relocation constant for x86_64.
43865 (R_X86_64_64): Likewise.
43866 (R_X86_64_PC32): Likewise.
43867 (R_X86_64_GOT32): Likewise.
43868 (R_X86_64_PLT32): Likewise.
43869 (R_X86_64_COPY): Likewise.
43870 (R_X86_64_GLOB_DAT): Likewise.
43871 (R_X86_64_JUMP_SLOT): Likewise.
43872 (R_X86_64_RELATIVE): Likewise.
43873 (R_X86_64_GOTPCREL): Likewise.
43874 (R_X86_64_32): Likewise.
43875 (R_X86_64_32S): Likewise.
43876 (R_X86_64_16): Likewise.
43877 (R_X86_64_PC16): Likewise.
43878 (R_X86_64_8): Likewise.
43879 (R_X86_64_PC8): Likewise.
43880
43881 * include/grub/i386/efi/pci.h: New file.
43882
43883 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43884 Change it value based on platform.
43885 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43886 (GRUB_E820_RAM): Likewise.
43887 (GRUB_E820_RESERVED): Likewise.
43888 (GRUB_E820_ACPI): Likewise.
43889 (GRUB_E820_NVS): Likewise.
43890 (GRUB_E820_EXEC_CODE): Likewise.
43891 (GRUB_E820_MAX_ENTRY): Likewise.
43892 (grub_e820_mmap): New structure.
43893 (linux_kernel_header): Change the efi field according to different
43894 kernel version, also field from linux_kernel_header.
43895
43896 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43897
43898 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43899 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43900 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43901 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43902 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43903 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43904 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43905 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43906 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43907 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43908
43909 * include/grub/x86_64/efi/kernel.h: New file.
43910
43911 * include/grub/x86_64/efi/loader.h: Likewise.
43912
43913 * include/grub/x86_64/efi/machine.h: Likewise.
43914
43915 * include/grub/x86_64/efi/pci.h: Likewise.
43916
43917 * include/grub/x86_64/efi/time.h: Likewise.
43918
43919 * include/grub/x86_64/linux.h: Likewise.
43920
43921 * include/grub/x86_64/setjmp.h: Likewise.
43922
43923 * include/grub/x86_64/time.h: Likewise.
43924
43925 * include/grub/x86_64/types.h: Likewise.
43926
43927 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43928 GRUB_TARGET_SIZEOF_VOID_P.
43929
43930 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43931 (grub_efi_locate_handle): Likewise.
43932 (grub_efi_open_protocol): Likewise.
43933 (grub_efi_set_text_mode): Likewise.
43934 (grub_efi_stall): Likewise.
43935 (grub_exit): Likewise.
43936 (grub_reboot): Likewise.
43937 (grub_halt): Likewise.
43938 (grub_efi_exit_boot_services): Likewise.
43939 (grub_get_rtc): Likewise.
43940
43941 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43942 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43943 (grub_efi_allocate_pages): Wrap efi calls.
43944 (grub_efi_free_pages): Wrap efi calls.
43945 (grub_efi_get_memory_map): Wrap efi calls.
43946
43947 * kern/x86_64/dl.c: New file.
43948
43949 * kern/x86_64/efi/callwrap.S: Likewise.
43950
43951 * kern/x86_64/efi/startup.S: Likewise.
43952
43953 * loader/efi/appleloader.c: Likewise.
43954
43955 * loader/efi/chainloader.c (cmdline): New variable.
43956 (grub_chainloader_unload): Wrap efi calls.
43957 (grub_chainloader_boot): Likewise.
43958 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43959 command line.
43960
43961 * loader/efi/chainloader_normal.c (chainloader_command):
43962 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
43963 command line.
43964
43965 * loader/i386/efi/linux.c (allocate_pages): Change allocation
43966 method.
43967 (grub_e820_add_region): New function.
43968 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
43969 booting.
43970 (grub_find_video_card): New function.
43971 (grub_linux_setup_video): New function.
43972 (grub_rescue_cmd_linux): Probe for video information.
43973
43974 * normal/x86_64/setjmp.S: New file.
43975
43976 * term/efi/console.c (map_char): New function.
43977 (grub_console_putchar): Map unicode char.
43978 (grub_console_checkkey): Wrap efi calls.
43979 (grub_console_getkey): Likewise.
43980 (grub_console_getwh): Likewise.
43981 (grub_console_gotoxy): Likewise.
43982 (grub_console_cls): Likewise.
43983 (grub_console_setcolorstate): Likewise.
43984 (grub_console_setcursor): Likewise.
43985
43986 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
43987
43988 2008-07-16 Pavel Roskin <proski@gnu.org>
43989
43990 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
43991 format strings.
43992
43993 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
43994 pointer, not an integer. This fixes a warning and prevents
43995 precision loss on 64-bit systems.
43996 (relocate_addresses): Remove unneeded cast.
43997
43998 2008-07-15 Pavel Roskin <proski@gnu.org>
43999
44000 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44001
44002 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44003
44004 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44005 Fix comparison between signed and unsigned.
44006
44007 * include/grub/i386/ieee1275/console.h: Declare
44008 grub_console_init() and grub_console_fini().
44009
44010 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44011 It's empty and unused.
44012
44013 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44014 beginning to avoid warnings with some compilers.
44015
44016 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44017 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44018
44019 2008-07-14 Pavel Roskin <proski@gnu.org>
44020
44021 * kern/env.c (grub_register_variable_hook): Don't copy empty
44022 string, it leaks memory. Pass "" to grub_env_set(), it should
44023 handle constant strings.
44024
44025 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44026 * commands/cmp.c (grub_cmd_cmp): Likewise.
44027 * kern/dl.c (grub_dl_flush_cache): Likewise.
44028 (grub_dl_load_core): Likewise.
44029 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44030 (grub_elf64_load_phdrs): Likewise.
44031
44032 2008-07-13 Pavel Roskin <proski@gnu.org>
44033
44034 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44035 between signed and unsigned.
44036 (LzmaEnc_Finish): Fix warning about an unused parameter.
44037
44038 2008-07-13 Bean <bean123ch@gmail.com>
44039
44040 * Makefile.in (enable_lzo): New rule.
44041
44042 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44043
44044 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44045
44046 * boot/i386/pc/lnxboot.S: #include <config.h>.
44047
44048 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44049 its value according to the compression algorithm used, lzo or lzma.
44050
44051 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44052 compression algorithm according to configure macro.
44053
44054 * kern/i386/pc/startup.S (codestart): Likewise.
44055
44056 * kern/i386/pc/lzma_decode.S: New file.
44057
44058 * include/grub/lib/LzFind.h: Likewise.
44059
44060 * include/grub/lib/LzHash.h: Likewise.
44061
44062 * include/grub/lib/LzmaDec.h: Likewise.
44063
44064 * include/grub/lib/LzmaEnc.h: Likewise.
44065
44066 * include/grub/lib/LzmaTypes.h: Likewise.
44067
44068 * lib/LzFind.c: Likewise.
44069
44070 * lib/LzmaDec.c: Likewise.
44071
44072 * lib/LzmaEnc.c: Likewise.
44073
44074 2008-07-13 Bean <bean123ch@gmail.com>
44075
44076 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44077 (grub_ext4_extent_header): New structure.
44078 (grub_ext4_extent): Likewise.
44079 (grub_ext4_extent_idx): Likewise.
44080 (grub_ext4_find_leaf): New function.
44081 (grub_ext2_read_block): Handle extents.
44082
44083 2008-07-12 Robert Millan <rmh@aybabtu.com>
44084
44085 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44086
44087 2008-07-11 Robert Millan <rmh@aybabtu.com>
44088
44089 * util/grub.d/40_custom.in: New file. Example on how to add custom
44090 entries to /etc/grub.d.
44091 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44092 40_custom (implicitly, by merging all the grub.d rules).
44093
44094 2008-07-11 Pavel Roskin <proski@gnu.org>
44095
44096 * commands/read.c (grub_getline): Fix invalid memory access.
44097 Don't add newline to the variable value.
44098
44099 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44100 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44101 (serial_hw_get_port): Check validity of the port number.
44102 (grub_cmd_serial): Check return value of serial_hw_get_port().
44103
44104 2008-07-07 Pavel Roskin <proski@gnu.org>
44105
44106 * boot/i386/pc/diskboot.S (notification_string): Replace
44107 "Loading kernel" with just "loading". This is shorter, less
44108 confusing and saves a few bytes for possible future changes.
44109
44110 2008-07-05 Pavel Roskin <proski@gnu.org>
44111
44112 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44113 size for ATAPI devices, they are undefined. Output sector
44114 number in decimal form.
44115
44116 * disk/ata.c: Use named constants for status bits.
44117
44118 2008-07-04 Pavel Roskin <proski@gnu.org>
44119
44120 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44121 grub_addr_t before casting it to the void pointer to fix a
44122 warning. Non-addressable regions are discarded earlier.
44123 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44124 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44125 (check_signature): Don't shadow table_header.
44126 (grub_linuxbios_table_iterate): Cast numeric constants to
44127 grub_linuxbios_table_header_t.
44128 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44129 grub_stop().
44130
44131 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44132 prevent warnings.
44133
44134 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44135 pointer, which can cause warnings. Support 64-bit addresses.
44136
44137 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44138 of sizeof(long). This fixes PowerPC image generation on x86_64.
44139
44140 2008-07-04 Robert Millan <rmh@aybabtu.com>
44141
44142 This fixes a performance issue when pc & gpt partmap iterators
44143 didn't abort iteration even after our hook found what it was
44144 looking for (often causing expensive probes of non-existent drives).
44145
44146 Some callers relied on previous buggy behaviour, since they would
44147 raise an error when their own hooks caused early abortion of its
44148 iteration.
44149
44150 * kern/device.c (grub_device_open): Improve error message.
44151 * disk/lvm.c (grub_lvm_open): Likewise.
44152 * disk/raid.c (grub_raid_open): Likewise.
44153
44154 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44155 when hook requests it, independently of grub_errno.
44156 (pc_partition_map_probe): Do not fail when find_func() caused
44157 early abortion of pc_partition_map_iterate().
44158
44159 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44160 when hook requests it, independently of grub_errno.
44161 (gpt_partition_map_probe): Do not fail when find_func() caused
44162 early abortion of gpt_partition_map_iterate().
44163
44164 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44165 when hook requests it, independently of grub_errno. Do not fail when
44166 part_map_iterate_hook() caused early abortion of p->iterate().
44167
44168 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44169 when grub_partition_iterate() returned with non-zero.
44170
44171 2008-07-03 Pavel Roskin <proski@gnu.org>
44172
44173 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44174 like we do in grub_ata_pio_read().
44175 (grub_ata_readwrite): Always write individual sectors. Fix the
44176 sector count for the remainder.
44177 (grub_ata_write): Enable writing to ATA devices. Correctly
44178 report error for ATAPI devices.
44179
44180 2008-07-02 Pavel Roskin <proski@gnu.org>
44181
44182 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44183 warning.
44184
44185 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44186 for every read sector, we already increment it for the whole
44187 batch. This fixes reading more than 256 sectors at once.
44188
44189 * util/grub-editenv.c (cmd_info): Cast argument to long
44190 explicitly. ptrdiff_t reduces to int on i386.
44191
44192 * util/grub-editenv.c (main): Be specific which parameter is
44193 missing.
44194
44195 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44196 (memdisk): Make memdisk_orig_addr a pointer.
44197
44198 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44199 for file offsets, use grub_off_t instead. Fix printf format
44200 warnings.
44201
44202 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44203 there. Real unexpected warnings should not drown in the noise
44204 about known problems.
44205
44206 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44207 grub_disk_addr_t for memory addresses.
44208
44209 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44210 explicitly to fix a warning.
44211
44212 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44213
44214 * Makefile.in (MODULE_LDFLAGS): New variable.
44215 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44216 the linker accepts --build-id=none.
44217 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44218 MODULE_LDFLAGS.
44219 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44220
44221 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44222 those in Linux XFS code. Provide a way to access 64-bit parent
44223 inode.
44224 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44225 the end of struct grub_xfs_dir_header.
44226
44227 2008-07-02 Bean <bean123ch@gmail.com>
44228
44229 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44230 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44231 and GRUB_IEEE1275_FLAG_NO_ANSI.
44232
44233 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44234 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44235 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44236
44237 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44238 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44239
44240 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44241 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44242
44243 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44244 esc sequence on non ANSI terminal.
44245 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44246
44247 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44248 beginning of file.
44249
44250 2008-07-02 Bean <bean123ch@gmail.com>
44251
44252 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44253 (grub_editenv_SOURCES): New variable.
44254 (pkglib_MODULES): Add loadenv.mod.
44255 (loadenv_mod_SOURCES): New variable.
44256 (loadenv_mod_CFLAGS): Likewise.
44257 (loadenv_mod_LDFLAGS): Likewise.
44258
44259 * include/grub/envblk.h: New file.
44260
44261 * util/envblk.c: New file.
44262
44263 * util/grub-editenv.c: New file.
44264
44265 * commands/loadenv.c: New file.
44266
44267 2008-07-01 Pavel Roskin <proski@gnu.org>
44268
44269 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44270 not unsigned char. This fixes warnings and is consistent with
44271 other tags.
44272
44273 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44274
44275 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44276
44277 * term/tparm.c (analyze): Always set *popcount.
44278
44279 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44280 cast to fix a warning.
44281
44282 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44283 cast to suppress a warning.
44284
44285 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44286 grub_fshelp_read_file() expects.
44287
44288 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44289 write uuid as a 32-bit value in CPU byte order, so declare and
44290 use it as such.
44291
44292 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44293 long if the format specifier expects it.
44294 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44295 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44296 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44297 long to fix a warning.
44298 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44299 grub_dprintf() arguments to fix warnings.
44300
44301 2008-06-30 Pavel Roskin <proski@gnu.org>
44302
44303 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44304 install_bsd_part immediately before core.img is embedded or
44305 modified on disk. This fixes core.img verification if core.img
44306 cannot be embedded.
44307
44308 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44309 core_path to calculate the blocklist.
44310 Patch from Javier Martín <lordhabbit@gmail.com>
44311
44312 2008-06-29 Robert Millan <rmh@aybabtu.com>
44313
44314 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44315 block to disk block.
44316 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44317 Patch from Niels Böhm <bitbucket@arcor.de>
44318
44319 2008-06-29 Robert Millan <rmh@aybabtu.com>
44320
44321 * util/update-grub_lib.in (font_path): Search for fonts in
44322 /boot/grub first, which is more likely to be readable (we aren't
44323 deciding where fonts live, just looking for them).
44324
44325 2008-06-26 Pavel Roskin <proski@gnu.org>
44326
44327 * util/biosdisk.c (read_device_map): Don't leave dead map
44328 entries for devices failing stat() check.
44329
44330 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44331 core_path_dev for the core.img path on the target device.
44332
44333 2008-06-26 Robert Millan <rmh@aybabtu.com>
44334
44335 * disk/fs_uuid.c: New file.
44336 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44337 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44338 (fs_uuid_mod_LDFLAGS): New variables.
44339 * include/grub/disk.h (grub_disk_dev_id): Add
44340 `GRUB_DISK_DEVICE_UUID_ID'.
44341 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44342 implement iterate().
44343
44344 2008-06-26 Robert Millan <rmh@aybabtu.com>
44345
44346 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44347 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44348 Linux image includes no initrd.
44349
44350 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44351
44352 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44353 call to resolve the core image location that effectively appended the
44354 name twice.
44355
44356 2008-06-21 Robert Millan <rmh@aybabtu.com>
44357
44358 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44359 call from here ...
44360
44361 * util/grub.d/10_hurd.in: ... to here ...
44362 * util/grub.d/10_linux.in: ... and here.
44363
44364 2008-06-19 Robert Millan <rmh@aybabtu.com>
44365
44366 * kern/main.c (grub_main): Export `prefix' variable immediately
44367 after it has been set by grub_machine_set_prefix().
44368
44369 2008-06-19 Robert Millan <rmh@aybabtu.com>
44370
44371 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44372 search result when not saving to variable, not the other way around.
44373 When saving to variable, abort iteration as soon as a match is found.
44374
44375 2008-06-19 Robert Millan <rmh@aybabtu.com>
44376
44377 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44378 check for partition that provides /boot/grub. Its logic is flawed,
44379 as it prevents prepare_grub_to_access_device() from being called
44380 multiple times.
44381
44382 2008-06-19 Robert Millan <rmh@aybabtu.com>
44383
44384 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44385 "insmod" command directly when abstraction modules are needed,
44386 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44387 since it had already been processed).
44388
44389 2008-06-19 Pavel Roskin <proski@gnu.org>
44390
44391 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44392 changed. This is needed in case GRUB_LIBDIR changes.
44393 * conf/i386-ieee1275.rmk: Likewise.
44394 * conf/i386-linuxbios.rmk: Likewise.
44395 * conf/i386-pc.rmk: Likewise.
44396 * conf/powerpc-ieee1275.rmk: Likewise.
44397
44398 2008-06-18 Pavel Roskin <proski@gnu.org>
44399
44400 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44401 kernel_elf_symlist.c to symlist.c for consistency with other
44402 architectures. Update all users.
44403 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44404
44405 2008-06-18 Robert Millan <rmh@aybabtu.com>
44406
44407 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44408 it in prefix.
44409
44410 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44411 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44412 a RAID device, run setup() for all members independently on whether
44413 LVM abstraction is being used.
44414 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44415 If grub-mkimage has set `*install_dos_part == -2', don't override this
44416 value.
44417 Perform *install_dos_part adjustments independently on whether
44418 we're embedding or not.
44419 Clarify error message when image is too big for embedding.
44420 Remove duplicate *install_dos_part stanza.
44421
44422 2008-06-17 Robert Millan <rmh@aybabtu.com>
44423
44424 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44425 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44426 variables.
44427 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44428 values in grub_ofconsole_normal_color and
44429 grub_ofconsole_highlight_color (they're not directly related to
44430 background and foreground).
44431 (grub_ofconsole_setcolorstate): Extract background and foreground
44432 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44433
44434 2008-06-17 Robert Millan <rmh@aybabtu.com>
44435
44436 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44437 /boot/grub for the check in last commit, not /boot (they could be
44438 different partitions).
44439
44440 2008-06-16 Robert Millan <rmh@aybabtu.com>
44441
44442 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44443 asked to setup access for the same partition that provides /boot,
44444 don't bother using UUIDs since our root already has the value we
44445 want.
44446
44447 2008-06-16 Robert Millan <rmh@aybabtu.com>
44448
44449 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44450 I2O devices.
44451 Patch from Sven Mueller <sven@debian.org>.
44452
44453 2008-06-16 Robert Millan <rmh@aybabtu.com>
44454
44455 * util/update-grub.in: Check for $EUID instead of $UID.
44456 Reported by Vincent Zweije.
44457
44458 2008-06-16 Bean <bean123ch@gmail.com>
44459
44460 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44461 (grub_ext2_read_block): Likewise.
44462 (grub_ext2_read_inode): Likewise.
44463 (grub_ext2_mount): Likewise.
44464 (grub_ext2_close): Likewise.
44465 (grub_ext3_get_journal): Removed.
44466
44467 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44468 (grub_reiserfs_read_symlink): Likewise.
44469 (grub_reiserfs_mount): Likewise.
44470 (grub_reiserfs_open): Likewise.
44471 (grub_reiserfs_read): Likewise.
44472 (grub_reiserfs_close): Likewise.
44473 (grub_reiserfs_get_journal): Removed.
44474
44475 * fs/fshelp.c (grub_fshelp_read): Removed.
44476 (grub_fshelp_map_block): Likewise.
44477
44478 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44479 (grub_fshelp_journal): Likewise.
44480 (grub_fshelp_read): Likewise.
44481 (grub_fshelp_map_block): Likewise.
44482
44483 2008-06-16 Pavel Roskin <proski@gnu.org>
44484
44485 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44486 floating point anymore.
44487 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44488
44489 2008-06-15 Pavel Roskin <proski@gnu.org>
44490
44491 * commands/ls.c (grub_ls_list_files): Use integer calculations
44492 for human readable format, avoid floating point use.
44493 * kern/misc.c (grub_ftoa): Remove.
44494 (grub_vsprintf): Remove floating point support.
44495
44496 2008-06-15 Robert Millan <rmh@aybabtu.com>
44497
44498 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44499 devices.
44500 Reported by Max Vozeler.
44501
44502 2008-06-15 Robert Millan <rmh@aybabtu.com>
44503
44504 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44505 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44506 skipped later.
44507 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44508 the beginning of the prefix.
44509
44510 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44511 It is assumed that if we have a memdisk, grub-mkimage has set
44512 grub_prefix to include the "(memdisk)" drive in it.
44513
44514 2008-06-15 Robert Millan <rmh@aybabtu.com>
44515
44516 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44517 Initialize keyboard controller after registering the terminal, so that
44518 grub_printf() can be called from grub_keyboard_controller_init().
44519
44520 2008-06-15 Robert Millan <rmh@aybabtu.com>
44521
44522 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44523 extent-btree which is written as big endian on disk.
44524 Reported by Alain Greppin <al@chilibi.org>.
44525
44526 2008-06-14 Robert Millan <rmh@aybabtu.com>
44527
44528 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44529 * util/i386/pc/grub-install.in (modules): Likewise.
44530
44531 2008-06-13 Pavel Roskin <proski@gnu.org>
44532
44533 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44534
44535 2008-06-13 Bean <bean123ch@gmail.com>
44536
44537 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44538
44539 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44540
44541 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44542 to indicate sparse block.
44543
44544 2008-06-12 Pavel Roskin <proski@gnu.org>
44545
44546 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44547 number, grub_fshelp_read() does it for us.
44548
44549 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44550 linear disk read with journal translation.
44551 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44552 * include/grub/fshelp.h: Declare grub_fshelp_read().
44553
44554 2008-06-09 Pavel Roskin <proski@gnu.org>
44555
44556 * fs/minix.c (grub_minix_mount): Handle error reading
44557 superblock.
44558
44559 2008-06-08 Robert Millan <rmh@aybabtu.com>
44560
44561 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44562 don't append the RAID prefix afterwards.
44563 Reported by Clint Adams.
44564
44565 2008-06-08 Robert Millan <rmh@aybabtu.com>
44566
44567 Based on description from Pavel:
44568 * kern/disk.c (grub_disk_check_range): Rename to ...
44569 (grub_disk_adjust_range): ... this. Add a comment explaining the
44570 tasks performed by this function.
44571
44572 2008-06-08 Robert Millan <rmh@aybabtu.com>
44573
44574 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44575 `num_serial' (for consistency with other variables).
44576 (struct grub_ntfs_data): Add `uuid' member.
44577 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44578 (grub_ntfs_uuid): New function.
44579 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44580
44581 2008-06-07 Pavel Roskin <proski@gnu.org>
44582
44583 * util/biosdisk.c (open_device): Revert last change to the
44584 function, it broke installation. The sector needs to be
44585 different dependent on which device is opened.
44586
44587 2008-06-06 Robert Millan <rmh@aybabtu.com>
44588
44589 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44590 rest of GRUB, and breakage doesn't happen if its value were modified.
44591
44592 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44593 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44594 a constant (same value).
44595 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44596 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44597
44598 2008-06-06 Robert Millan <rmh@aybabtu.com>
44599
44600 * util/biosdisk.c (open_device): Do not modify sector offset when
44601 accessing a partition. kern/disk.c already handles this for us.
44602
44603 2008-06-06 Robert Millan <rmh@aybabtu.com>
44604
44605 * util/grub-emu.c (grub_machine_init): Move code in this function from
44606 here ...
44607 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44608 segfault in case grub_printf() is called).
44609
44610 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44611 grub_probe. Update all users not to explicitly add it again.
44612 (grub_device): New variable; contains corresponding device for grubdir.
44613 (fs_module, partmap_module, devabstraction_module): Pass
44614 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44615 every time.
44616
44617 2008-06-05 Robert Millan <rmh@aybabtu.com>
44618
44619 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44620 is found, print it (same layout as with labels).
44621
44622 2008-06-04 Robert Millan <rmh@aybabtu.com>
44623
44624 * util/biosdisk.c (get_drive): Rename to ...
44625 (find_grub_drive): ... this. Update all users.
44626
44627 (get_os_disk): Rename to ...
44628 (convert_system_partition_to_system_disk): ... this. Update all users.
44629
44630 (find_drive): Rename to ...
44631 (find_system_device): ... this. Update all users.
44632
44633 2008-06-04 Robert Millan <rmh@aybabtu.com>
44634
44635 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44636 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44637 (make_device_map): Likewise.
44638
44639 2008-06-01 Robert Millan <rmh@aybabtu.com>
44640
44641 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44642 before dereferencing it.
44643
44644 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44645 union with fat12/fat16-specific ones. Add some new fields, including
44646 `num_serial' for both versions.
44647 (struct grub_fat_data): Add `uuid' member.
44648 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44649 names. Initialize `data->uuid' using `num_serial'.
44650 (grub_fat_uuid): New function.
44651 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44652
44653 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44654 (grub_reiserfs_uuid): New function.
44655 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44656 member.
44657
44658 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44659 (grub_xfs_uuid): New function.
44660 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44661
44662 2008-06-01 Robert Millan <rmh@aybabtu.com>
44663
44664 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44665 code that is backward compatible with pre-uuid search command.
44666
44667 2008-05-31 Robert Millan <rmh@aybabtu.com>
44668
44669 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44670 floppies after everything else, to ensure floppy drive isn't accessed
44671 unnecessarily (patch from Bean).
44672
44673 2008-05-31 Robert Millan <rmh@aybabtu.com>
44674
44675 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44676 not print device names when we were asked to set a variable.
44677
44678 2008-05-31 Robert Millan <rmh@aybabtu.com>
44679
44680 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44681 using "cursor-on" and "cursor-off" commands (understood at least by
44682 the Open Firmware flavour on OLPC).
44683
44684 2008-05-31 Michael Gorven <michael@gorven.za.net>
44685
44686 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44687 on and off sequences.
44688
44689 2008-05-31 Robert Millan <rmh@aybabtu.com>
44690
44691 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44692 * util/update-grub.in: Likewise.
44693
44694 2008-05-30 Pavel Roskin <proski@gnu.org>
44695
44696 * util/biosdisk.c (linux_find_partition): Simplify logic and
44697 make the code more universal. Keep special processing for
44698 devfs, but use a simple rule for all other devices. If the
44699 device ends with a number, append 'p' and the partition number.
44700 Otherwise, append only the partition number.
44701
44702 2008-05-30 Robert Millan <rmh@aybabtu.com>
44703
44704 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44705 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44706 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44707 the `root' parameter to Linux.
44708
44709 2008-05-30 Robert Millan <rmh@aybabtu.com>
44710
44711 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44712 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44713 --fs_uuid with --fs-uuid.
44714 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44715 all filesystems support them).
44716
44717 2008-05-30 Robert Millan <rmh@aybabtu.com>
44718
44719 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44720 grub_printf() flags, since we're printing in units of 2 bytes.
44721
44722 2008-05-30 Robert Millan <rmh@aybabtu.com>
44723
44724 * util/grub.d/00_header.in: Remove obsolete comment referencing
44725 convert_system_path_to_grub_path().
44726 * util/update-grub.in: Likewise.
44727 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44728 (convert_system_path_to_grub_path): Add a warning message explaining
44729 that this function is deprecated. Rely on is_path_readable_by_grub()
44730 for the readability checks.
44731 (font_path): Use is_path_readable_by_grub() for the readability
44732 check rather than convert_system_path_to_grub_path().
44733
44734 2008-05-30 Robert Millan <rmh@aybabtu.com>
44735
44736 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44737 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44738 converting it first.
44739 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44740 grub.cfg for access to font file, and afterwards call it again to set
44741 the root device.
44742
44743 2008-05-30 Robert Millan <rmh@aybabtu.com>
44744
44745 * commands/search.c (options): Add --fs_uuid option.
44746 (search_fs_uuid): New function.
44747 (grub_cmd_search): Fix --set argument passing.
44748 Use search_fs_uuid() when requested via --fs_uuid.
44749 (grub_search_init): Update help message.
44750 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44751 and redeclare it as an array of 16-bit words.
44752 (grub_ext2_uuid): New function.
44753 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44754 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44755 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44756 (GRUB_DEVICE_BOOT_UUID): New variables.
44757 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44758 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44759 whenever possible.
44760 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44761 just assume `root' variable has the right value.
44762 * util/grub.d/10_linux.in: Likewise.
44763 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44764 via PRINT_FS_UUID.
44765 (main): Recognise `-t fs_uuid' argument.
44766
44767 2008-05-30 Robert Millan <rmh@aybabtu.com>
44768
44769 * util/biosdisk.c (map): Redefine structure to hold information
44770 about GRUB drive name.
44771 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44772 drive names.
44773 (call_hook): Remove.
44774 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44775 member. Assume drive has partitions.
44776 (grub_util_biosdisk_open): Access device names via `.device' struct
44777 member.
44778 (open_device): Likewise.
44779 (find_drive): Likewise.
44780 (read_device_map): Adjust map[] usage to match the new struct
44781 definition. Don't check for duplicates (still possible, but not cheap
44782 anymore).
44783 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44784 (make_device_name): Remove assumption of BIOS-like drive names.
44785
44786 2008-05-30 Pavel Roskin <proski@gnu.org>
44787
44788 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44789 compiling execute.c doesn't need grub_script.tab.h anymore.
44790 (normal/command.c_DEPENDENCIES): Likewise.
44791 (normal/function.c_DEPENDENCIES): Likewise.
44792 * conf/i386-ieee1275.rmk: Likewise.
44793 * conf/i386-linuxbios.rmk: Likewise.
44794 * conf/i386-pc.rmk: Likewise.
44795 * conf/powerpc-ieee1275.rmk: Likewise.
44796 * conf/sparc64-ieee1275.rmk: Likewise.
44797
44798 2008-05-29 Pavel Roskin <proski@gnu.org>
44799
44800 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44801 when scanning metadata for volume group name.
44802
44803 * include/grub/script.h: Don't include grub_script.tab.h. It's
44804 a generated file, which may only be included from the files with
44805 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44806 use union YYSTYPE, as the later allows forward declaration.
44807 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44808
44809 2008-05-29 Robert Millan <rmh@aybabtu.com>
44810
44811 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44812 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44813 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44814 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44815 scan codes.
44816
44817 2008-05-29 Robert Millan <rmh@aybabtu.com>
44818
44819 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44820 control key combinations.
44821
44822 2008-05-29 Robert Millan <rmh@aybabtu.com>
44823
44824 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44825 * util/ieee1275/grub-install.in: ... to here.
44826 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44827 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44828 (grub_install_SOURCES): Likewise.
44829
44830 2008-05-29 Robert Millan <rmh@aybabtu.com>
44831
44832 * fs/affs.c: Update copyright year.
44833 * fs/ext2.c: Likewise.
44834 * fs/fshelp.c: Likewise.
44835 * fs/hfsplus.c: Likewise.
44836 * fs/ntfs.c: Likewise.
44837 * fs/xfs.c: Likewise.
44838 * include/grub/fshelp.h: Likewise.
44839 * util/grub-mkdevicemap.c: Likewise.
44840
44841 2008-05-28 Robert Millan <rmh@aybabtu.com>
44842
44843 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44844 might need to be fatfs to support some firmware implementations
44845 (e.g. OFW or EFI).
44846
44847 2008-05-28 Robert Millan <rmh@aybabtu.com>
44848
44849 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44850 devices.
44851 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44852 (make_device_map): Likewise.
44853
44854 2008-05-20 Bean <bean123ch@gmail.com>
44855
44856 * fs/fshelp.c (grub_fshelp_map_block): New function.
44857 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44858 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44859
44860 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44861 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44862 (grub_fshelp_journal): New structure.
44863 (grub_fshelp_map_block): New function prototype.
44864 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44865 (grub_fshelp_map_block): Likewise.
44866
44867 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44868 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44869 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44870 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44871 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44872 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44873 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44874 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44875 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44876 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44877 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44878 (grub_ext2_sblock): New members for journal support.
44879 (grub_ext3_journal_header): New structure.
44880 (grub_ext3_journal_revoke_header): Likewise.
44881 (grub_ext3_journal_block_tag): Likewise.
44882 (grub_ext3_journal_sblock): Likewise.
44883 (grub_fshelp_node): New members logfile and journal.
44884 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44885 grub_fshelp_map_block to get real block number.
44886 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44887 number.
44888 (grub_ext2_read_inode): Likewise.
44889 (grub_ext3_get_journal): New function.
44890 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44891 (grub_ext2_close): Release memory used by journal.
44892
44893 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44894 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44895 (grub_reiserfs_transaction_header): Renamed to
44896 grub_reiserfs_description_block, replace field data with real_blocks.
44897 (grub_reiserfs_commit_block): New structure.
44898 (grub_reiserfs_data): New member journal.
44899 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44900 number.
44901 (grub_reiserfs_read_symlink): Likewise.
44902 (grub_reiserfs_iterate_dir): Likewise.
44903 (grub_reiserfs_open): Likewise.
44904 (grub_reiserfs_read): Likewise.
44905 (grub_reiserfs_get_journal): New function.
44906 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44907 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44908 using grub_reiserfs_get_journal.
44909 (grub_reiserfs_close): Release memory used by journal.
44910
44911 * fs/affs.c (grub_affs_read_block): Change block type to
44912 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44913
44914 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44915
44916 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44917
44918 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44919
44920 * fs/udf.c (grub_udf_read_block): Change block type to
44921 grub_disk_addr_t. Use type cast to avoid warning.
44922
44923 * fs/xfs.c (grub_xfs_read_block): Likewise.
44924
44925 2008-05-16 Christian Franke <franke@computer.org>
44926
44927 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44928 to ensure that break with ESC will always work.
44929 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44930 Remove ESC from keyboard queue.
44931
44932 2008-05-16 Christian Franke <franke@computer.org>
44933
44934 * util/biosdisk.c: [__CYGWIN__] Add includes.
44935 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44936 (get_os_disk): Move variable declarations to OS specific
44937 parts to avoid warning.
44938 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44939 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44940 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44941 Cygwin.
44942 * util/getroot.c: [__CYGWIN__] Add includes.
44943 (strip_extra_slashes): Fix "/" case.
44944 [__CYGWIN__] (get_win32_path): New function.
44945 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44946 [__CYGWIN__] (find_root_device): Disable.
44947 [__CYGWIN__] (get_bootsec_serial): New function.
44948 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44949 [__linux__] (grub_guess_root_device): Add early returns to simplify
44950 structure.
44951 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44952 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44953 check for Linux only.
44954
44955 2008-05-15 Bean <bean123ch@gmail.com>
44956
44957 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44958 keyboard hang problem in apple's intel mac.
44959
44960 2008-05-09 Robert Millan <rmh@aybabtu.com>
44961
44962 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
44963 devices.
44964 * util/grub-mkdevicemap.c (get_virtio_disk_name)
44965 (make_device_map): Likewise.
44966 Reported by Aurelien Jarno <aurel32@debian.org>
44967
44968 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
44969
44970 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
44971 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
44972 (make_device_map): Output entries for xvd type disks.
44973
44974 2008-05-07 Robert Millan <rmh@aybabtu.com>
44975
44976 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
44977 devices.
44978 * util/grub-mkdevicemap.c (get_cciss_disk_name)
44979 (make_device_map): Likewise.
44980 Reported by Roland Dreier <rdreier@cisco.com>
44981
44982 2008-05-07 Robert Millan <rmh@aybabtu.com>
44983
44984 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
44985 grub_strstr() call. Correct a few mistakes in failure path handling.
44986
44987 2008-05-06 Robert Millan <rmh@aybabtu.com>
44988
44989 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
44990 Do not print a trailing slash (therefore, the root directory is an
44991 empty string).
44992 (convert_system_path_to_grub_path): Do not remove trailing slash
44993 from make_system_path_relative_to_its_root() output.
44994
44995 * util/i386/pc/grub-install.in: Add trailing slash to output from
44996 make_system_path_relative_to_its_root().
44997
44998 2008-05-06 Robert Millan <rmh@aybabtu.com>
44999
45000 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45001 ensures that output lines aren't intermangled with those sent to
45002 stderr (via grub_util_info()).
45003 * util/grub-probe.c (grub_refresh): Likewise.
45004 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45005
45006 2008-05-05 Christian Franke <franke@computer.org>
45007
45008 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45009 Add Cygwin device names.
45010 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45011 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45012 (check_device): Return error instead of success on empty name.
45013 (make_device_map): Move label inside linux specific code to
45014 prevent compiler warning.
45015
45016 2008-04-30 Robert Millan <rmh@aybabtu.com>
45017
45018 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45019 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45020 first boot option.
45021 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45022
45023 2008-04-29 Robert Millan <rmh@aybabtu.com>
45024
45025 * docs/grub.cfg: New file (example GRUB configuration).
45026
45027 2008-04-26 Robert Millan <rmh@aybabtu.com>
45028
45029 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45030 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45031 and `disk/ieee1275/nand.c'.
45032
45033 2008-04-25 Bean <bean123ch@gmail.com>
45034
45035 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45036 i386-linuxbios.
45037
45038 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45039 change the buffer size to 4096 for cdrom device.
45040
45041 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45042 and nand.mod.
45043 (_linux_mod_SOURCES): New variable.
45044 (_linux_mod_CFLAGS): Likewise.
45045 (_linux_mod_LDFLAGS): Likewise.
45046 (linux_mod_SOURCES): Likewise.
45047 (linux_mod_CFLAGS): Likewise.
45048 (linux_mod_LDFLAGS): Likewise.
45049 (nand_mod_SOURCES): Likewise.
45050 (nand_mod_CFLAGS): Likewise.
45051 (nand_mod_LDFLAGS): Likewise.
45052
45053 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45054 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45055 type property. (nand device in olpc don't have this property)
45056
45057 * include/grub/disk.h (grub_disk_dev_id): New macro
45058 GRUB_DISK_DEVICE_NAND_ID.
45059
45060 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45061 function prototype.
45062 (grub_rescue_cmd_initrd): Likewise.
45063
45064 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45065 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45066 ofw_cif_handler and ofw_idt, adjust padding number.
45067
45068 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45069 GRUB_MACHINE_IEEE1275 is defined.
45070
45071 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45072 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45073
45074 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45075 on nested function heap_init.
45076 (grub_upper_mem): New variable for i386-ieee1275.
45077 (grub_get_extended_memory): New function for i386-ieee1275.
45078 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45079
45080 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45081 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45082 property.
45083
45084 * loader/i386/ieee1275/linux.c: New file.
45085
45086 * loader/i386/ieee1275/linux_normal.c: New file.
45087
45088 * disk/ieee1275/nand.c: New file.
45089
45090 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45091
45092 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45093 value.
45094 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45095
45096 2008-04-18 Robert Millan <rmh@aybabtu.com>
45097
45098 Restructures early code path on ieee1275 to unify grub_main() as
45099 the first C function that is executed in every platform.
45100
45101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45102 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45103 cmain().
45104 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45105 * kern/ieee1275/cmain.c (cmain): Rename to ...
45106 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45107 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45108 at the beginning.
45109
45110 2008-04-18 Robert Millan <rmh@aybabtu.com>
45111
45112 * util/update-grub.in: Fix syntax error when setting
45113 `GRUB_PRELOAD_MODULES'.
45114 Reported by Stephane Chazelas <stephane@artesyncp.com>
45115
45116 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45117
45118 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45119 section into account, newer toolchains generate unique build ids
45120 * configure.ac: remove the test for --build-id=none acceptance,
45121 we want build ids to be preserved
45122 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45123 far from other sections don't cause the raw binary images grow
45124 size
45125
45126 2008-04-15 Robert Millan <rmh@aybabtu.com>
45127
45128 * disk/lvm.c: Update copyright year.
45129 * kern/misc.c: Likewise.
45130
45131 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45132
45133 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45134 there is no memory left for physical volume name.
45135
45136 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45137
45138 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45139 volume name mapping to support bigger than 9 character names properly.
45140
45141 2008-04-13 Robert Millan <rmh@aybabtu.com>
45142
45143 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45144 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45145
45146 2008-04-13 Christian Franke <franke@computer.org>
45147
45148 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45149 to create a floppy emulation boot CD when non emulation mode
45150 does not work.
45151 Enable Joliet CD filesystem extension.
45152
45153 2008-04-13 Robert Millan <rmh@aybabtu.com>
45154
45155 * kern/misc.c (grub_strncat): Fix off-by-one error.
45156 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45157
45158 * kern/env.c (grub_env_context_close): Clear current context, not
45159 previous one.
45160 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45161
45162 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45163
45164 2008-04-13 Robert Millan <rmh@aybabtu.com>
45165
45166 Improve robustness when handling LVM.
45167
45168 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45169 (and leave `*p' unmodified).
45170 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45171 through it.
45172 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45173 iterating through it.
45174 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45175 through it.
45176 (grub_lvm_scan_device): Check the return value (and fail gracefully
45177 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45178 Don't assume `vg->pvs != NULL' when iterating through it.
45179
45180 2008-04-13 Robert Millan <rmh@aybabtu.com>
45181
45182 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45183 * genmk.rb (partmap): New variable.
45184 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45185 (#{partmap}): New target rule.
45186 * genpartmaplist.sh: New file.
45187 * Makefile.in (pkglib_DATA): Add partmap.lst.
45188 (partmap.lst): New target rule.
45189 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45190 modules (including all partition maps), instead of preloading them.
45191
45192 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45193
45194 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45195 `linux-boot-prober' (if installed) to detect other operating
45196 systems which are installed on the computer and add them to
45197 the boot menu.
45198 * conf/common.rmk: Build and install 30_os-prober.
45199
45200 2008-04-12 Robert Millan <rmh@aybabtu.com>
45201
45202 * kern/powerpc/ieee1275/init.c: Move from here ...
45203 * kern/ieee1275/init.c: ... to here. Update all users.
45204
45205 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45206 * kern/ieee1275/cmain.c: ... to here. Update all users.
45207
45208 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45209 * kern/ieee1275/openfw.c: ... to here. Update all users.
45210
45211 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45212 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45213
45214 2008-04-10 Pavel Roskin <proski@gnu.org>
45215
45216 * configure.ac: Always use "_cv_" in cache variables for
45217 compatibility with Autoconf 2.62.
45218
45219 2008-04-07 Robert Millan <rmh@aybabtu.com>
45220
45221 Revert grub/machine/init.h addition by Pavel (since it breaks on
45222 i386-ieee1275 and others):
45223 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45224 * util/powerpc/ieee1275/misc.c: Likewise.
45225
45226 2008-04-07 Robert Millan <rmh@aybabtu.com>
45227
45228 * util/grub-probe.c (probe): Improve error message.
45229
45230 2008-04-07 Robert Millan <rmh@aybabtu.com>
45231
45232 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45233 (this prevents the presence of a bogus entry from ruining the whole
45234 thing).
45235
45236 2008-04-06 Pavel Roskin <proski@gnu.org>
45237
45238 * util/biosdisk.c: Include grub/util/biosdisk.h.
45239 * util/grub-fstest.c (execute_command): Make static.
45240 * util/grub-mkdevicemap.c (check_device): Likewise.
45241 * util/i386/pc/misc.c: Include grub/machine/init.h.
45242 * util/powerpc/ieee1275/misc.c: Likewise.
45243 * util/lvm.c: Include grub/util/lvm.h.
45244 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45245 grub/cache.h.
45246 * util/raid.c: Include grub/util/raid.h.
45247 (grub_util_getdiskname): Make static.
45248
45249 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45250 grub_hostfs_fini(), as they are called from grub_init_all() and
45251 grub_fini_all() respectively. This fixes an infinite loop in
45252 grub-fstest due to double registration of hostfs.
45253 Reported by Christian Franke <Christian.Franke@t-online.de>
45254
45255 2008-04-05 Pavel Roskin <proski@gnu.org>
45256
45257 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45258 all 8 functions. Otherwise, probe function 0 only.
45259
45260 2008-04-04 Pavel Roskin <proski@gnu.org>
45261
45262 * commands/lspci.c (grub_lspci_iter): Print the bus number
45263 correctly.
45264
45265 * commands/lspci.c (grub_pci_classes): Fix typos.
45266 (grub_lspci_iter): Don't print func twice. Print vendor ID
45267 before device ID, as it's normally done.
45268
45269 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45270 Fix signedness warnings.
45271 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45272 Likewise.
45273 * util/ieee1275/get_disk_name.c: Include config.h so that
45274 _GNU_SOURCE is defined and getline() is declared. Mark an
45275 unused argument as such. Fix a signedness warning.
45276
45277 2008-04-02 Pavel Roskin <proski@gnu.org>
45278
45279 * genkernsyms.sh.in: Use more robust assignments for CC and
45280 srcdir. Quote srcdir.
45281 * gensymlist.sh.in: Likewise. Assert at the compile time that
45282 the symbol table is not empty.
45283
45284 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45285 * fs/cpio.c (grub_cpio_read): Likewise.
45286
45287 2008-04-01 Pavel Roskin <proski@gnu.org>
45288
45289 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45290 * disk/host.c (grub_host_open): Likewise.
45291 * disk/loopback.c (grub_loopback_open): Likewise.
45292 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45293 disk->id as in disk/host.c, not a multi-character constant.
45294
45295 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45296 later is obsolete, potentially dangerous and sets a bad example.
45297 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45298 * util/misc.c (grub_util_get_image_size): Likewise.
45299
45300 * disk/loopback.c (options): Improve help for "--partitions".
45301
45302 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45303 options to align them with the short options, e.g. "echo -e".
45304
45305 2008-03-31 Bean <bean123ch@gmail.com>
45306
45307 * video/reader/png.c (grub_png_data): New member is_16bit and
45308 image_data.
45309 (grub_png_decode_image_header): Detect 16 bit png image.
45310 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45311 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45312 (grub_video_reader_png): Release memory occupied by image_data.
45313
45314 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45315 4096 bytes.
45316 (grub_nfs_mount): Skip the test for sector per cluster.
45317
45318 * include/grub/ntfs.h (MAX_SPC): Removed.
45319
45320 2008-03-31 Bean <bean123ch@gmail.com>
45321
45322 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45323 (grub_probe_SOURCES): Add fs/afs.c.
45324 (grub_fstest_SOURCES): Likewise.
45325 (afs_mod_SOURCES): New variable.
45326 (afs_mod_CFLAGS): Likewise.
45327 (afs_mod_LDFLAGS): Likewise.
45328
45329 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45330 (grub_emu_SOURCES): Likewise.
45331
45332 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45333
45334 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45335
45336 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45337
45338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45339
45340 * fs/afs.c: New file.
45341
45342 2008-03-30 Pavel Roskin <proski@gnu.org>
45343
45344 * disk/host.c: Include grub/misc.h to fix a warning.
45345 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45346 warnings about implicit declarations.
45347
45348 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45349 variable.
45350 * include/grub/i386/loader.h: Change declaration of
45351 grub_linux_boot() to match what grub_loader_set() expects.
45352 * util/getroot.c (grub_guess_root_device): Return const char* to
45353 fix a warning.
45354 * util/grub-probe.c (probe): Fix a warning about uninitialized
45355 abstraction_name variable.
45356 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45357 second argument as unused to fix a warning.
45358
45359 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45360 missing grub_error() call.
45361
45362 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45363 2.60 and newer uses it to define datadir.
45364
45365 * commands/sleep.c: Fix warning about implicit declaration.
45366 * disk/memdisk.c: Likewise.
45367 * loader/aout.c: Likewise.
45368 * loader/i386/bsd_normal.c: Likewise.
45369 * util/grub-probe.c: Likewise.
45370
45371 * commands/i386/cpuid.c (has_longmode): Make static.
45372 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45373 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45374
45375 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45376 GDT. This is more robust, as %ds can change.
45377 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45378 calling real_to_prot().
45379 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45380
45381 2008-03-28 Pavel Roskin <proski@gnu.org>
45382
45383 * kern/i386/pc/startup.S: Assert that uncompressed functions
45384 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45385 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45386 code, as they push parts of the code (error handlers) beyond
45387 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45388 code as correctness and size.
45389
45390 2008-03-28 Pavel Roskin <proski@gnu.org>
45391
45392 * kern/i386/pc/startup.S
45393 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45394 data block address to the real mode, keep offset minimal. This
45395 works around a bug in AWARD BIOS on old Athlon systems, which
45396 makes CD detection hang.
45397
45398 2008-03-26 Pavel Roskin <proski@gnu.org>
45399
45400 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45401 const.
45402 * include/grub/normal.h: Add grub_parse_color_name_pair()
45403 declaration.
45404
45405 2008-03-24 Bean <bean123ch@gmail.com>
45406
45407 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45408 (cd_count): Removed.
45409 (cd_drive): New variable.
45410 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45411 (grub_biosdisk_call_hook): Likewise.
45412 (grub_biosdisk_iterate): Change cdrom detection method.
45413 (grub_biosdisk_open): Replace cd_start with cd_drive.
45414 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45415 detect cdrom device.
45416
45417 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45418 Removed.
45419 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45420 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45421 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45422 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45423 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45424 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45425 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45426 (grub_biosdisk_cdrp): New structure.
45427 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45428
45429 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45430
45431 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45432 device.
45433
45434 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45435 New function.
45436
45437 2008-03-20 Robert Millan <rmh@aybabtu.com>
45438
45439 Remove 2 TiB limit in ata.mod.
45440 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45441 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45442 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45443 grub_uint64_t instead of grub_uint32_t.
45444
45445 2008-03-05 Bean <bean123ch@gmail.com>
45446
45447 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45448 (grub_multiboot): Set boot device.
45449
45450 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45451
45452 2008-03-02 Bean <bean123ch@gmail.com>
45453
45454 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45455 symlink_buffer.
45456
45457 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45458
45459 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45460 texinfo.tex.
45461
45462 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45463 modified.
45464
45465 * docs/fdl.texi: New file.
45466
45467 * docs/mdate-sh: New file. Copied from gnulib.
45468 * docs/texinfo.tex: Likewise.
45469
45470 * config.guess: Updated from gnulib.
45471 * install-sh: Likewise.
45472
45473 2008-02-28 Robert Millan <rmh@aybabtu.com>
45474
45475 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45476 (aout_mod_SOURCES): New variable.
45477 (aout_mod_CFLAGS): Likewise.
45478 (aout_mod_LDFLAGS): Likewise.
45479
45480 * conf/i386-ieee1275.rmk: Likewise.
45481
45482 2008-02-28 Robert Millan <rmh@aybabtu.com>
45483
45484 * util/update-grub.in: Reorganise terminal validity check. Accept
45485 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45486 Based on suggestion by Franklin PIAT.
45487
45488 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45489
45490 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45491 function.
45492 * util/getroot.c (grub_util_check_block_device): New function that
45493 returns the given argument if it is a block device and returns NULL else.
45494 * util/grub-probe.c (argument_is_device): New variable.
45495 (probe): Promote device_name from a variable to an argument. Receive
45496 device_name from grub_util_check_block_device() if path is NULL and from
45497 grub_guess_root_device() else. Do not free() device_name anymore.
45498 (options): Introduce new parameter '-d, --device'.
45499 (main): Add description of the new parameter to the help screen.
45500 Rename path variable to argument. Set argument_is_device if the '-d'
45501 option is given. Pass argument to probe() depending on
45502 argument_is_device.
45503
45504 2008-02-24 Bean <bean123ch@gmail.com>
45505
45506 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45507 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45508 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45509 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45510 (GRUB_ISO9660_VOLDESC_END): Likewise.
45511 (grub_iso9660_primary_voldesc): New member escape.
45512 (grub_iso9660_data): New member joliet.
45513 (grub_iso9660_convert_string): New function.
45514 (grub_iso9660_mount): Detect joliet extension.
45515 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45516 (grub_iso9660_iso9660_label): Likewise.
45517
45518 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45519 (grub_setup_SOURCES): Add fs/udf.c.
45520 (grub_fstest_SOURCES): Likewise.
45521 (udf_mod_SOURCES): New variable.
45522 (udf_mod_CFLAGS): Likewise.
45523 (udf_mod_LDFLAGS): Likewise.
45524
45525 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45526 (grub_emu_SOURCES): Likewise.
45527
45528 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45529
45530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45531
45532 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45533
45534 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45535
45536 * fs/udf.c: New file.
45537
45538 2008-02-24 Robert Millan <rmh@aybabtu.com>
45539
45540 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45541 (normal/lexer.c_DEPENDENCIES): New variables.
45542 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45543 (normal/lexer.c_DEPENDENCIES): Likewise.
45544 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45545 (normal/lexer.c_DEPENDENCIES): Likewise.
45546 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45547 (normal/lexer.c_DEPENDENCIES): Likewise.
45548 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45549 (normal/lexer.c_DEPENDENCIES): Likewise.
45550 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45551 (normal/lexer.c_DEPENDENCIES): Likewise.
45552
45553 2008-02-23 Robert Millan <rmh@aybabtu.com>
45554
45555 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45556 since they were intended to be in hex. This didn't break previously
45557 because of a bug in gpt_partition_map_iterate() (see below).
45558
45559 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45560 when checking the validity of GPT header.
45561 Remove `partno', since it always provides the same information as `i'.
45562
45563 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45564
45565 * include/grub/efi/time.h: Fix a wrong comment.
45566
45567 2008-02-19 Pavel Roskin <proski@gnu.org>
45568
45569 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45570 message.
45571
45572 2008-02-19 Bean <bean123ch@gmail.com>
45573
45574 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45575 (aout_mod_SOURCES): New variable.
45576 (aout_mod_CFLAGS): Likewise.
45577 (aout_mod_LDFLAGS): Likewise.
45578 (_bsd_mod_SOURCES): New variable.
45579 (_bsd_mod_CFLAGS): Likewise.
45580 (_bsd_mod_LDFLAGS): Likewise.
45581 (bsd_mod_SOURCES): New variable.
45582 (bsd_mod_CFLAGS): Likewise.
45583 (bsd_mod_LDFLAGS): Likewise.
45584
45585 * include/grub/aout.h: New file.
45586
45587 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45588
45589 * include/grub/i386/bsd.h: New file.
45590
45591 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45592 to make it public.
45593
45594 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45595 function is called, so that it's possible to change it inside the hook.
45596 (grub_elf64_load): Likewise.
45597 (grub_elf_file): Don't close the file if elf header is not found.
45598 (grub_elf_close): Close the file if grub_elf_file fails (The new
45599 grub_elf_file won't close it).
45600 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45601 (grub_elf64_size): Likewise.
45602
45603 * kern/i386/loader.S (grub_unix_real_boot): New function.
45604
45605 * loader/aout.c: New file.
45606
45607 * loader/i386/bsd.c: New file.
45608
45609 * loader/i386/bsd_normal.c: New file.
45610
45611 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45612
45613 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45614 can test other formats.
45615
45616 2008-02-19 Robert Millan <rmh@aybabtu.com>
45617
45618 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45619 (grub_gpt_partition_type_empty): Redefine with macro from
45620 `<grub/gpt_partition.h>'.
45621 (gpt_partition_map_iterate): Adjust partition type comparison.
45622
45623 Export `entry' as partmap-specific `part.data' struct.
45624 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45625
45626 * include/grub/gpt_partition.h (grub_gpt_header)
45627 (grub_gpt_partentry): ... to here (new file).
45628
45629 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45630
45631 (grub_gpt_partition_type_bios_boot): New const variable, defined
45632 with macro from `<grub/gpt_partition.h>'.
45633
45634 (setup): Replace `first_start' with `embed_region', which keeps
45635 track of the embed region (and is partmap-agnostic).
45636
45637 Replace find_first_partition_start() with find_usable_region(),
45638 which finds a usable region for embedding using partmap-specific
45639 knowledge (supports PC/MSDOS and GPT).
45640
45641 Fix all assumptions that the embed region start at sector 1, using
45642 `embed_region.start' from now on. Similarly, use `embed_region.end'
45643 rather than `first_start' to calculate available size.
45644
45645 In grub_util_info() message, replace "into after the MBR" with an
45646 indication of the specific sector our embed region starts at.
45647
45648 2008-02-19 Robert Millan <rmh@aybabtu.com>
45649
45650 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45651 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45652 `commands/reboot.c'.
45653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45654 (halt_mod_SOURCES): Likewise.
45655 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45656 (halt_mod_SOURCES): Likewise.
45657
45658 2008-02-17 Christian Franke <franke@computer.org>
45659
45660 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45661
45662 2008-02-17 Robert Millan <rmh@aybabtu.com>
45663
45664 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45665 set `first_start' to 0 for non-PC/MSDOS partition maps.
45666
45667 2008-02-16 Robert Millan <rmh@aybabtu.com>
45668
45669 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45670 do not assume partition map is PC/MSDOS before performing checks that
45671 are specific to that layout.
45672
45673 2008-02-13 Robert Millan <rmh@aybabtu.com>
45674
45675 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45676 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45677 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45678
45679 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45680
45681 * configure.ac: Only a cosmetic change on the handling of
45682 -fno-stack-protector.
45683
45684 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45685
45686 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45687 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45688 reboot.c.
45689 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45690 (halt_mod_SOURCES): New variable.
45691 (halt_mod_CFLAGS): Likewise.
45692 (halt_mod_LDFLAGS): Likewise.
45693 (reboot_mod_SOURCES): Likewise.
45694 (reboot_mod_CFLAGS): Likewise.
45695 (reboot_mod_LDFLAGS): Likewise.
45696
45697 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45698 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45699 reboot.c.
45700 (halt_mod_SOURCES): Likewise.
45701 (reboot_mod_SOURCES): Likewise.
45702
45703 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45704 commands/i386/pc/reboot.c by commands/reboot.c.
45705 (reboot_mod_SOURCES): Likewise.
45706
45707 * commands/i386/pc/reboot.c: merge this file ...
45708
45709 * commands/ieee1275/reboot.c: ... and this file ...
45710
45711 * commands/reboot.c: ... to this file.
45712 Add some precompiler directive to include the correct header for
45713 each machine.
45714
45715 * commands/ieee1275/halt.c: move this file ...
45716
45717 * commands/halt.c: ... to here.
45718 Add some precompiler directive to include the correct header for
45719 each machine.
45720
45721 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45722 (grub_halt): Likewise.
45723
45724 * kern/efi/efi.c (grub_reboot): New function.
45725 (grub_halt): Likewise.
45726
45727 2008-02-12 Robert Millan <rmh@aybabtu.com>
45728
45729 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45730 /dev (like it is done for /dev/mapper). This doesn't provide support
45731 for EVMS, but at least it is now easy to identify the problem when it
45732 arises.
45733
45734 2008-02-11 Robert Millan <rmh@aybabtu.com>
45735
45736 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45737 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45738 comparing it with -1, not 0.
45739
45740 2008-02-10 Robert Millan <rmh@aybabtu.com>
45741
45742 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45743 `disk/lvm.c'.
45744 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45745 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45746
45747 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45748 `disk/lvm.c' to the end of the list.
45749 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45750 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45751
45752 2008-02-10 Robert Millan <rmh@aybabtu.com>
45753
45754 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45755 grub_print_error() instead. This will let user know why we're entering
45756 rescue mode.
45757 Based on suggestions from Sam Morris.
45758
45759 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45760
45761 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45762 on remaining N args, instead of "--" arg N times.
45763
45764 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45765
45766 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45767 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45768 pattern for unknown glyphs.
45769
45770 2008-02-09 Robert Millan <rmh@aybabtu.com>
45771
45772 * configure.ac: Probe for `help2man'.
45773 * Makefile.in (builddir): New variable.
45774 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45775 or otherwise add a few flags/options to it.
45776 (install-local): For every executable utility or script that is
45777 installed, invoke $(HELP2MAN) to install a manpage based on --help
45778 output.
45779
45780 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45781 that it doesn't prevent --help from working in build tree.
45782
45783 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45784 with `bug-grub@gnu.org'.
45785 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45786 * util/update-grub.in (usage): New function.
45787 Implement proper argument check, with support for --help and --version
45788 (as well as existing -y).
45789
45790 2008-02-09 Christian Franke <franke@computer.org>
45791
45792 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45793 avoid overwriting previous output.
45794 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45795
45796 2008-02-09 Robert Millan <rmh@aybabtu.com>
45797
45798 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45799 drawing the menu.
45800
45801 2008-02-09 Robert Millan <rmh@aybabtu.com>
45802
45803 * commands/sleep.c: New file.
45804 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45805 (sleep_mod_SOURCES): New variable.
45806 (sleep_mod_CFLAGS): Likewise.
45807 (sleep_mod_LDFLAGS): Likewise.
45808
45809 2008-02-09 Robert Millan <rmh@aybabtu.com>
45810
45811 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45812 situations in which we can deduce the RAID size and the superblock
45813 doesn't match it.
45814
45815 2008-02-09 Robert Millan <rmh@aybabtu.com>
45816
45817 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45818 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45819 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45820
45821 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45822 and return a grub_diskmemberlist_t composed of physical array members.
45823 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45824
45825 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45826 prototype.
45827 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45828 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45829 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45830
45831 * util/grub-probe.c (probe): Move partmap probing code from here ...
45832 (probe_partmap): ... to here.
45833 (probe): Use probe_partmap() once for the disk we're probing, and
45834 additionally, when such disk contains a memberlist() struct member,
45835 once for each disk that is contained in the structure returned by
45836 memberlist().
45837
45838 2008-02-09 Robert Millan <rmh@aybabtu.com>
45839
45840 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45841 environment variable to 'all' in order to obtain debug output from
45842 non-util/ code.
45843 * util/i386/pc/grub-setup.c (main): Likewise.
45844
45845 2008-02-08 Robert Millan <rmh@aybabtu.com>
45846
45847 * disk/raid.c (grub_raid_scan_device): Check for
45848 `array->device[sb.this_disk.number]' rather than for
45849 `array->device[sb.this_disk.number]->name', since the latter is not
45850 guaranteed to be accessible.
45851
45852 2008-02-08 Robert Millan <rmh@aybabtu.com>
45853
45854 * disk/raid.c: Update copyright.
45855 * fs/cpio.c: Likewise.
45856 * include/grub/raid.h: Likewise.
45857 * loader/i386/pc/multiboot.c: Likewise.
45858 * util/hostfs.c: Likewise.
45859
45860 2008-02-08 Robert Millan <rmh@aybabtu.com>
45861
45862 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45863 to a grub_disk_t array.
45864 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45865 `device[x]'.
45866 (grub_raid_scan_device): Replace `device[x].name' accesses with
45867 `device[x]->name'. Simplify initialization of `array->device[x]'.
45868
45869 2008-02-08 Robert Millan <rmh@aybabtu.com>
45870
45871 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45872 grub_dprintf() calls.
45873 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45874 error message.
45875
45876 2008-02-07 Christian Franke <franke@computer.org>
45877
45878 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45879 instead of fseek and ftell to support large files.
45880 (grub_hostfs_read): Likewise.
45881
45882 2008-02-07 Robert Millan <rmh@aybabtu.com>
45883
45884 Patch from Jeroen Dekkers.
45885 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45886 failure, since successfully reading all array members might not be
45887 required.
45888
45889 2008-02-06 Robert Millan <rmh@aybabtu.com>
45890
45891 * util/grub-probe.c (probe): Simplify partmap probing (with the
45892 assumption that the first word up to the underscore equals to
45893 the module name).
45894
45895 2008-02-06 Christian Franke <franke@computer.org>
45896
45897 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45898 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45899 last block of a cpio or tar stream.
45900 Check for "TRAILER!!!" instead of any empty data
45901 block to detect last block of a cpio stream.
45902 (grub_cpio_dir): Fix constness of variable np.
45903 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45904 cpio or tar trailer is detected. This fixes a crash
45905 on open of a non existing file.
45906
45907 2008-02-05 Bean <bean123ch@gmail.com>
45908
45909 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45910 address of entry.
45911 (grub_multiboot_load_elf64): Likewise.
45912 (grub_multiboot): Initialize mbi structure.
45913
45914 * util/grub-fstest.c: Don't include unused header file script.h.
45915
45916 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45917 of file.
45918 (grub_fstest_SOURCES): Likewise.
45919
45920 2008-02-05 Robert Millan <rmh@aybabtu.com>
45921
45922 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45923 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45924 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45925 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45926
45927 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45928 (translation_table): Replace hardcoded values with macros
45929 provided by `<grub/term.h>'.
45930
45931 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45932 (keyboard_map): Correct/add a few values, with macros provided
45933 by `<grub/term.h>'.
45934 (keyboard_map_shift): Zero values that don't differ from their
45935 `keyboard_map' equivalents.
45936 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45937 Discard the second scan code that is always sent by Caps lock.
45938 Only use `keyboard_map_shift' when it provides a non-zero value,
45939 otherwise fallback to `keyboard_map'.
45940
45941 2008-02-04 Bean <bean123ch@gmail.com>
45942
45943 * Makefile.in (enable_grub_fstest): New variable.
45944
45945 * conf/common.rmk (grub_fstest_init.lst): New rule.
45946 (grub_fstest_init.h): Likewise.
45947 (grub_fstest_init.c): Likewise.
45948 (util/grub-fstest.c_DEPENDENCIES): New variable.
45949 (grub_fstest_SOURCES): Likewise.
45950
45951 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45952
45953 * util/grub-fstest.c: New file.
45954
45955 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45956
45957 Make grub-setup handle a separate root device.
45958
45959 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45960 so that the root device can be compared with the destination
45961 device.
45962 When embedding the core image, if the root and destination devices
45963 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
45964 0xFF.
45965 When not embedding, set ROOT_DRIVE to 0xFF.
45966
45967 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45968
45969 Add support for having a grub directory in a different drive. This
45970 is still only the data handling part.
45971
45972 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
45973 (codestart): Save %dh in GRUB_ROOT_DRIVE.
45974 (grub_root_drive): New variable.
45975
45976 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
45977 instead of GRUB_BOOT_DRIVE to construct a device name. Set
45978 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
45979 as it was.
45980
45981 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
45982
45983 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
45984 macro.
45985 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
45986
45987 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
45988 is bogus, because PXE booting does not specify any drive
45989 correctly.
45990
45991 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
45992 am not sure if this is really correct.
45993
45994 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
45995 is always identical to the boot drive when booting from a CD.
45996
45997 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
45998 longer.
45999 (root_drive): New variable.
46000 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46001 (setup_sectors): Push %dx right after popping it, because %dh will
46002 be modified later.
46003 (copy_buffer): Restore %dx.
46004
46005 2008-02-03 Robert Millan <rmh@aybabtu.com>
46006
46007 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46008 use `cdboot.img' for cdrom images.
46009
46010 2008-02-03 Robert Millan <rmh@aybabtu.com>
46011
46012 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46013 only setup gfxterm when `font' command has succeeded.
46014
46015 2008-02-03 Robert Millan <rmh@aybabtu.com>
46016
46017 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46018 (grub_rescue_cmd_multiboot_loader)
46019 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46020
46021 2008-02-03 Pavel Roskin <proski@gnu.org>
46022
46023 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46024 %edx and %esi from stack only after grub_gate_a20() is called.
46025 grub_gate_a20() clobbers %edx.
46026
46027 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46028
46029 * configure.ac (AC_INIT): Bumped to 1.96.
46030
46031 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46032 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46033 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46034 video/readers/png.c.
46035
46036 2008-02-03 Bean <bean123ch@gmail.com>
46037
46038 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46039 (cdboot_img_SOURCES): New variable.
46040 (cdboot_img_ASFLAGS): New variable.
46041 (cdboot_img_LDFLAGS): New variable.
46042
46043 * boot/i386/pc/cdboot.S: New file.
46044
46045 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46046 (cd_count): Likewise.
46047 (grub_biosdisk_get_drive): Add support for cd device.
46048 (grub_biosdisk_call_hook): Likewise.
46049 (grub_biosdisk_iterate): Likewise.
46050 (grub_biosdisk_open): Likewise.
46051 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46052 (grub_biosdisk_rw): Support reading from cd device.
46053 (GRUB_MOD_INIT): Iterate cd devices.
46054
46055 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46056 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46057 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46058
46059 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46060
46061 2008-02-02 Robert Millan <rmh@aybabtu.com>
46062
46063 * commands/read.c: New file.
46064 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46065 (read_mod_SOURCES): New variable.
46066 (read_mod_CFLAGS): Likewise.
46067 (read_mod_LDFLAGS): Likewise.
46068
46069 2008-02-02 Robert Millan <rmh@aybabtu.com>
46070
46071 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46072 determining whether menu has to be displayed.
46073
46074 2008-02-02 Marco Gerards <marco@gnu.org>
46075
46076 * bus/pci.c: New file.
46077
46078 * include/grub/pci.h: Likewise.
46079
46080 * include/grub/i386/pc/pci.h: Likewise.
46081
46082 * commands/lspci.c: Likewise.
46083
46084 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46085 `lspci.mod'.
46086 (pci_mod_SOURCES): New variable.
46087 (pci_mod_CFLAGS): Likewise.
46088 (pci_mod_LDFLAGS): Likewise.
46089 (lspci_mod_SOURCES): Likewise.
46090 (lspci_mod_CFLAGS): Likewise.
46091 (lspci_mod_LDFLAGS): Likewise.
46092
46093 2008-02-02 Bean <bean123ch@gmail.com>
46094
46095 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46096 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46097
46098 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46099 (grub_xfs_btree_node): New structure.
46100 (grub_xfs_btree_root): New structure.
46101 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46102 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46103 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46104 (GRUB_XFS_EXTENT_SIZE): Likewise.
46105 (grub_xfs_read_block): Support btree format type.
46106 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46107 Use directory block as basic unit.
46108
46109 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46110
46111 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46112 __attribute__ ((__regparm__ (1))).
46113
46114 2008-02-01 Robert Millan <rmh@aybabtu.com>
46115
46116 Correct a mistake in previous commit.
46117
46118 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46119 top.
46120 (normal/command.c_DEPENDENCIES): New variable.
46121
46122 2008-02-01 Robert Millan <rmh@aybabtu.com>
46123
46124 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46125 top.
46126 (normal/command.c_DEPENDENCIES): New variable.
46127 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46128 * conf/i386-ieee1275.rmk: Likewise.
46129 * conf/i386-linuxbios.rmk: Likewise.
46130 * conf/i386-pc.rmk: Likewise.
46131 * conf/sparc64-ieee1275.rmk: Likewise.
46132 * conf/powerpc-ieee1275.rmk: Likewise.
46133 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46134
46135 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46136
46137 2008-02-01 Robert Millan <rmh@aybabtu.com>
46138
46139 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46140 call at beginning of function.
46141
46142 2008-01-31 Pavel Roskin <proski@gnu.org>
46143
46144 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46145 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46146 (grub_mkrescue_SOURCES): Likewise.
46147 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46148
46149 2008-01-30 Robert Millan <rmh@aybabtu.com>
46150
46151 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46152 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46153 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46154 (grub_probe_SOURCES): ... to here.
46155
46156 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46157 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46158 * conf/i386-ieee1275.rmk: Likewise.
46159 * conf/i386-linuxbios.rmk: Likewise.
46160 * conf/powerpc-ieee1275.rmk: Likewise.
46161
46162 2008-01-30 Tristan Gingold <gingold@free.fr>
46163
46164 * kern/rescue.c: Silently accept empty lines.
46165
46166 2008-01-29 Bean <bean123ch@gmail.com>
46167
46168 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46169 (real_code_2): Code cleanup and change comment style.
46170 (move_memory): Avoid using 32-bit address mode.
46171
46172 2008-01-29 Bean <bean123ch@gmail.com>
46173
46174 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46175 (png_mod_SOURCES): New variable.
46176 (png_mod_CFLAGS): Likewise.
46177 (png_mod_LDFLAGS): Likewise.
46178
46179 * video/readers/png.c: New file.
46180
46181 2008-01-28 Robert Millan <rmh@aybabtu.com>
46182
46183 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46184 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46185 `ifndef GRUB_MOD_GAP' hack.
46186 * util/elf/grub-mkimage.c (add_segments): Likewise.
46187
46188 2008-01-27 Robert Millan <rmh@aybabtu.com>
46189
46190 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46191 `GRUB_MOD_GAP' for platforms in which it's not defined.
46192 * util/elf/grub-mkimage.c (add_segments): Likewise.
46193
46194 2008-01-27 Robert Millan <rmh@aybabtu.com>
46195
46196 Get grub-emu to build again (including parallel builds).
46197
46198 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46199 Split into ...
46200 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46201 (normal/execute.c_DEPENDENCIES): ... this, ...
46202 (grub-emu_DEPENDENCIES): ... and this.
46203
46204 * conf/i386-efi.rmk: Likewise.
46205 * conf/i386-linuxbios.rmk: Likewise.
46206 * conf/i386-ieee1275.rmk: Likewise.
46207 * conf/powerpc-ieee1275.rmk: Likewise.
46208 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46209
46210 2008-01-27 Robert Millan <rmh@aybabtu.com>
46211
46212 * NEWS: Add a few items.
46213
46214 2008-01-27 Robert Millan <rmh@aybabtu.com>
46215
46216 Fix parallel builds with grub-emu. Based on earlier commit for
46217 grub-probe and grub-setup.
46218
46219 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46220 (util/grub-emu.c_DEPENDENCIES): ... this.
46221 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46222 (util/grub-emu.c_DEPENDENCIES): ... this.
46223 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46224 (util/grub-emu.c_DEPENDENCIES): ... this.
46225 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46226 (util/grub-emu.c_DEPENDENCIES): ... this.
46227 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46228 (util/grub-emu.c_DEPENDENCIES): ... this.
46229
46230 2008-01-27 Pavel Roskin <proski@gnu.org>
46231
46232 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46233 to create a gap between _end and the modules added to the image
46234 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46235 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46236 * util/elf/grub-mkimage.c (add_segments): Likewise.
46237
46238 2008-01-26 Pavel Roskin <proski@gnu.org>
46239
46240 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46241 just return an error.
46242
46243 2008-01-26 Bean <bean123ch@gmail.com>
46244
46245 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46246 (grub_reiserfs_get_item): Save offset of the next item.
46247 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46248
46249 2008-01-25 Robert Millan <rmh@aybabtu.com>
46250
46251 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46252 make all filesystem sources appear together (possibly fixing omissions
46253 while at it).
46254 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46255 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46256 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46257 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46258
46259 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46260 add `kern/file.c'.
46261 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46262 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46263 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46264 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46265
46266 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46267 (probe): Add a sanity check to make sure of our ability to read
46268 requested files when probing for filesystem type.
46269
46270 * genmk.rb: Update copyright year (2007).
46271
46272 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46273 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46274 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46275 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46276 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46277 : Remove function prototypes.
46278
46279 2008-01-25 Robert Millan <rmh@aybabtu.com>
46280
46281 Revert my previous commits (based on wrong assumption of how grub_errno
46282 works).
46283
46284 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46285 * kern/file.c (grub_file_open): Likewise.
46286
46287 2008-01-24 Pavel Roskin <proski@gnu.org>
46288
46289 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46290 that hang if GRUB tries to setup colors.
46291 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46292 colors for firmwares that don't support it.
46293 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46294 Recognize Open Hack'Ware, set flags to work around its
46295 limitations.
46296
46297 2008-01-24 Robert Millan <rmh@aybabtu.com>
46298
46299 * kern/file.c (grub_file_open): Do not account previous failures of
46300 unrelated functions when grub_errno is checked for.
46301 Reported by Oleg Strikov.
46302
46303 2008-01-24 Bean <bean123ch@gmail.com>
46304
46305 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46306 (grub_ufs_sblock): New member volume name.
46307 (grub_ufs_find_file): Fix string copy bug.
46308 (grub_ufs_label): Implement this function properly.
46309
46310 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46311 (grub_hfs_iterate_records): Use the correct file number for extents
46312 and catalog file. Fix problem in next index calculation.
46313 (grub_hfs_find_node): Replace recursive function call with loop.
46314 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46315
46316 2008-01-23 Robert Millan <rmh@aybabtu.com>
46317
46318 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46319 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46320 (grub_multiboot2_real_boot): New function prototype.
46321
46322 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46323 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46324
46325 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46326 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46327
46328 2008-01-23 Robert Millan <rmh@aybabtu.com>
46329
46330 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46331 #ifdef'ed out grub_printf().
46332
46333 2008-01-23 Robert Millan <rmh@aybabtu.com>
46334
46335 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46336 grub_dprintf calls, since they make "debug=all" mode unusable.
46337 (grub_console_checkkey): Likewise.
46338
46339 2008-01-23 Robert Millan <rmh@aybabtu.com>
46340
46341 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46342 `term/i386/pc/at_keyboard.c'.
46343 (pkglib_MODULES): Add `serial.mod'.
46344 (serial_mod_SOURCES): New variable.
46345 (serial_mod_CFLAGS): Likewise.
46346 (serial_mod_LDFLAGS): Likewise.
46347
46348 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46349 `<grub/powerpc/ieee1275/console.h>'.
46350 (grub_keyboard_controller_init): New function prototype.
46351 (grub_console_checkkey): Likewise.
46352 (grub_console_getkey): Likewise.
46353
46354 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46355 keyboard on i386.
46356
46357 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46358 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46359
46360 2008-01-23 Robert Millan <rmh@aybabtu.com>
46361
46362 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46363 present, "(memdisk)/boot/grub" becomes the default prefix.
46364
46365 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46366 a memdisk tarball with all the modules. Add --overlay=DIR option that
46367 allows users to overlay additional files into the image.
46368
46369 2008-01-23 Robert Millan <rmh@aybabtu.com>
46370
46371 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46372 and `machine/memory.h'.
46373 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46374 (_multiboot_mod_SOURCES): New variable.
46375 (_multiboot_mod_CFLAGS): Likewise.
46376 (_multiboot_mod_LDFLAGS): Likewise.
46377 (multiboot_mod_SOURCES): Likewise.
46378 (multiboot_mod_CFLAGS): Likewise.
46379 (multiboot_mod_LDFLAGS): Likewise.
46380
46381 * include/grub/i386/ieee1275/loader.h: New file.
46382
46383 * include/grub/i386/ieee1275/machine.h: Likewise.
46384
46385 * include/grub/i386/ieee1275/memory.h: Likewise.
46386
46387 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46388 variable declaration.
46389 (grub_os_area_size): Likewise.
46390
46391 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46392 (grub_lower_mem, grub_upper_mem): New variables.
46393 (grub_stop_floppy): New function (just to make
46394 grub_multiboot2_real_boot() happy).
46395
46396 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46397 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46398 (grub_stop): New function.
46399 Include `"../realmode.S"' and `"../loader.S"'.
46400
46401 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46402 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46403
46404 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46405 rely on grub_multiboot2_real_boot() for final boot.
46406
46407 2008-01-22 Robert Millan <rmh@aybabtu.com>
46408
46409 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46410 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46411 device that doesn't look like an SD card.
46412 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46413 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46414 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46415 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46416 found.
46417
46418 2008-01-22 Robert Millan <rmh@aybabtu.com>
46419
46420 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46421 avoid claiming over our own code.
46422
46423 2008-01-22 Bean <bean123ch@gmail.com>
46424
46425 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46426 (jpeg_mod_SOURCES): New variable.
46427 (jpeg_mod_CFLAGS): Likewise.
46428 (jpeg_mod_LDFLAGS): Likewise.
46429
46430 * video/readers/jpeg.c : New file.
46431
46432 2008-01-22 Bean <bean123ch@gmail.com>
46433
46434 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46435 there are no more items.
46436
46437 2008-01-21 Robert Millan <rmh@aybabtu.com>
46438
46439 * kern/mm.c (grub_mm_init_region): Improve debug message.
46440
46441 2008-01-21 Robert Millan <rmh@aybabtu.com>
46442
46443 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46444 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46445 address.
46446 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46447 a C macro.
46448 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46449 Indicates start of upper memory.
46450 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46451 (generate_image): Abort when image size is big enough to corrupt
46452 upper memory.
46453
46454 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46455 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46456 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46457 instead of hardcoding 0xA0000.
46458 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46459 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46460 instead of hardcoding 0xA0000.
46461
46462 2008-01-21 Robert Millan <rmh@aybabtu.com>
46463
46464 * disk/memdisk.c (memdisk_size): New variable.
46465 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46466 `memdisk_size'.
46467 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46468 image to dynamic memory.
46469 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46470 `memdisk_size'. Free memdisk block.
46471
46472 2008-01-21 Robert Millan <rmh@aybabtu.com>
46473
46474 Fix detection of very small filesystems (like tar).
46475
46476 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46477 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46478 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46479 a problem with this disk).
46480
46481 2008-01-21 Robert Millan <rmh@aybabtu.com>
46482
46483 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46484 on grub_biosdisk_rw_standard() error.
46485
46486 2008-01-21 Robert Millan <rmh@aybabtu.com>
46487
46488 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46489 recent changes.
46490 * kern/elf.c: Likewise.
46491 * kern/ieee1275/ieee1275.c: Likewise.
46492 * kern/powerpc/ieee1275/openfw.c: Likewise.
46493 * term/ieee1275/ofconsole.c: Likewise.
46494
46495 2008-01-21 Robert Millan <rmh@aybabtu.com>
46496
46497 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46498
46499 * include/grub/kernel.h (grub_arch_memdisk_addr)
46500 (grub_arch_memdisk_size): Moved from here ...
46501
46502 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46503 (grub_arch_memdisk_size): ... to here.
46504
46505 2008-01-21 Robert Millan <rmh@aybabtu.com>
46506
46507 Mostly based on bugfix from Bean.
46508
46509 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46510 attribute with hook() parameter.
46511 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46512 declaration.
46513 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46514 attribute with hook() parameter.
46515 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46516 declaration.
46517
46518 2008-01-21 Robert Millan <rmh@aybabtu.com>
46519
46520 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46521 (pkglib_MODULES): Add `memdisk.mod'.
46522 (memdisk_mod_SOURCES): New variable.
46523 (memdisk_mod_CFLAGS): Likewise.
46524 (memdisk_mod_LDFLAGS): Likewise.
46525
46526 * disk/memdisk.c: New file.
46527
46528 * include/grub/disk.h (grub_disk_dev_id): Add
46529 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46530
46531 * include/grub/i386/pc/kernel.h
46532 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46533 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46534 (grub_kernel_image_size): New variable declaration.
46535 (grub_total_module_size): Likewise.
46536 (grub_memdisk_image_size): Likewise.
46537
46538 * include/grub/i386/pc/memory.h
46539 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46540
46541 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46542 (grub_arch_memdisk_addr): New variable declaration.
46543 (grub_arch_memdisk_size): Likewise.
46544
46545 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46546 (grub_arch_memdisk_size): Likewise.
46547
46548 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46549 (codestart): Replace hardcoded `0x100000' with
46550 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46551
46552 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46553 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46554 not NULL, append the contents of the file it refers to, at the end of
46555 the compressed kernel image. Initialize `grub_memdisk_image_size'
46556 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46557 (options): Add "memdisk"|'m' option.
46558 (main): Parse --memdisk|-m option, and pass user-provided path as
46559 parameter to generate_image().
46560
46561 2008-01-20 Robert Millan <rmh@aybabtu.com>
46562
46563 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46564 grub_dprintf() calls from here ...
46565 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46566
46567 2008-01-20 Robert Millan <rmh@aybabtu.com>
46568
46569 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46570
46571 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46572 declaration.
46573 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46574 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46575 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46576 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46577 property).
46578 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46579 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46580
46581 2008-01-19 Robert Millan <rmh@aybabtu.com>
46582
46583 Get rid of confusing function (superseded by
46584 `grub_ieee1275_get_integer_property')
46585 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46586 prototype.
46587 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46588 function.
46589 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46590 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46591 in native endianness from grub_ieee1275_get_integer_property().
46592
46593 2008-01-19 Robert Millan <rmh@aybabtu.com>
46594
46595 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46596 command after "shut-down", since implementations differ on which
46597 the command for halt is.
46598
46599 2008-01-19 Robert Millan <rmh@aybabtu.com>
46600
46601 * include/grub/i386/linuxbios/console.h: Add header protection.
46602 (grub_keyboard_controller_init): New function prototype.
46603 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46604 (KEYBOARD_COMMAND_READ): Likewise.
46605 (KEYBOARD_COMMAND_WRITE): Likewise.
46606 (KEYBOARD_SCANCODE_SET1): Likewise.
46607 (grub_keyboard_controller_write): New function.
46608 (grub_keyboard_controller_read): Likewise.
46609 (grub_keyboard_controller_init): Likewise.
46610
46611 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46612 (grub_console_init): On coreboot/LinuxBIOS, call
46613 grub_keyboard_controller_init().
46614
46615 2008-01-19 Robert Millan <rmh@aybabtu.com>
46616
46617 PowerPC changes provided by Pavel Roskin.
46618
46619 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46620 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46621 don't rely on cmain() doing it.
46622 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46623 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46624
46625 2008-01-16 Robert Millan <rmh@aybabtu.com>
46626
46627 * include/grub/i386/linuxbios/memory.h
46628 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46629 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46630 receive `table_header' as argument. Instead, probe for it in the
46631 known memory ranges where it can be present.
46632 (grub_available_iterate): Do not pass a fixed `table_header' address
46633 to grub_linuxbios_table_iterate().
46634
46635 2008-01-15 Robert Millan <rmh@aybabtu.com>
46636
46637 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46638 * conf/i386-ieee1275.rmk: New file.
46639 * include/grub/i386/ieee1275/console.h: Likewise.
46640 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46641 * include/grub/i386/ieee1275/kernel.h: Likewise.
46642 * include/grub/i386/ieee1275/time.h: Likewise.
46643 * kern/i386/ieee1275/init.c: Likewise.
46644 * kern/i386/ieee1275/startup.S: Likewise.
46645
46646 2008-01-15 Robert Millan <rmh@aybabtu.com>
46647
46648 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46649 when pointers are 32-bit (but still do set it to one when they are
46650 64-bit).
46651
46652 2008-01-15 Robert Millan <rmh@aybabtu.com>
46653
46654 * include/grub/ieee1275/ieee1275.h
46655 (grub_ieee1275_get_integer_property): New function prototype.
46656
46657 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46658 (grub_ieee1275_get_integer_property): New function. Wraps around
46659 grub_ieee1275_get_property() to handle endianness.
46660
46661 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46662 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46663 where appropriate.
46664 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46665 (grub_map): Likewise.
46666 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46667
46668 2008-01-15 Bean <bean123ch@gmail.com>
46669
46670 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46671 (grub_script_execute_cmdline): Reset grub_errno.
46672
46673 * normal/main.c (read_config_file): Reset grub_errno.
46674
46675 * normal/parse.y (script_init): New.
46676 (script): Move function and menuentry here.
46677 (delimiter): New.
46678 (command): Add delimiter at the end of command.
46679 (commands): Adjust to match the new command.
46680 (commandblock): Remove grub_script_lexer_record_start.
46681 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46682 (if): Use the new commands.
46683
46684 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46685
46686 2008-01-15 Robert Millan <rmh@aybabtu.com>
46687
46688 * normal/menu.c (run_menu): Move timeout message from here ...
46689 (print_timeout): ... to here.
46690 (run_menu): Use print_timeout() once during initial draw to print
46691 the whole message, and again in every clock tick to update only
46692 the number of seconds.
46693
46694 2008-01-15 Robert Millan <rmh@aybabtu.com>
46695
46696 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46697 actual size of `available' from grub_ieee1275_get_property(), and
46698 restrict parsing to that bound.
46699
46700 2008-01-15 Christian Franke <franke@computer.org>
46701
46702 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46703 (argp_program_version): Remove variable.
46704 (argp_program_bug_address): Likewise.
46705 (options): Convert from struct argp_option to struct option.
46706 (struct arguments): Remove.
46707 (parse_opt): Remove.
46708 (usage): New function.
46709 (main): Replace struct args members by simple variables.
46710 Replace argp_parse() by getopt_long().
46711 Add switch to evaluate options.
46712 Add missing "(...)" around root_dev in prefix string.
46713
46714 2008-01-14 Robert Millan <rmh@aybabtu.com>
46715
46716 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46717 for grub_ieee1275_exit(), in order to improve portability.
46718
46719 2008-01-14 Robert Millan <rmh@aybabtu.com>
46720
46721 * util/grub.d/10_linux.in (prefix): Define.
46722 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46723
46724 2008-01-13 Pavel Roskin <proski@gnu.org>
46725
46726 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46727 grub_errno if no errors have been detected.
46728
46729 2008-01-12 Robert Millan <rmh@aybabtu.com>
46730
46731 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46732 (grub_util_get_dev_abstraction): New function prototype.
46733
46734 * util/getroot.c: Include `<grub/util/getroot.h>'
46735 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46736 (grub_util_get_dev_abstraction): ... here (new function).
46737
46738 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46739 `PRINT_ABSTRACTION'.
46740 (probe): Probe for abstraction type when requested.
46741 (main): Understand `--target=abstraction'.
46742
46743 * util/i386/efi/grub-install.in: Add abstraction module to core
46744 image when it is found to be necessary.
46745 * util/i386/pc/grub-install.in: Likewise.
46746 * util/powerpc/ieee1275/grub-install.in: Likewise.
46747
46748 * util/update-grub_lib.in (font_path): Return system path without
46749 converting to GRUB path.
46750 * util/update-grub.in: Convert system path returned by font_path()
46751 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46752 abstraction module is needed for loading fonts (if any). Export
46753 that as `GRUB_PRELOAD_MODULES'.
46754 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46755 insmod commands).
46756
46757 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46758
46759 Remove some unused code from reiserfs.
46760
46761 * fs/reiserfs.c (struct grub_reiserfs_key)
46762 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46763 (struct grub_reiserfs_node_body): Removed.
46764 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46765 Likewise.
46766 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46767 Likewise.
46768 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46769 Likewise.
46770 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46771 Likewise.
46772 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46773 Likewise.
46774 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46775 Likewise.
46776 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46777 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46778 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46779
46780 2008-01-10 Robert Millan <rmh@aybabtu.com>
46781
46782 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46783 Determines if a file is garbage left by packaging systems, etc.
46784 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46785 for processing /etc/grub.d scripts.
46786 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46787 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46788 as a condition for processing Linux images.
46789
46790 2008-01-10 Pavel Roskin <proski@gnu.org>
46791
46792 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46793 to compile reiserfs.c on PowerPC.
46794
46795 2008-01-10 Robert Millan <rmh@aybabtu.com>
46796
46797 * kern/device.c (grub_device_iterate): Do not abort device iteration
46798 when one of the devices cannot be opened.
46799 * kern/disk.c (grub_disk_open): Do not account previous failures of
46800 unrelated functions when grub_errno is checked for.
46801
46802 2008-01-08 Robert Millan <rmh@aybabtu.com>
46803
46804 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46805 `! grub_linux_is_bzimage', change order of address comparison to make
46806 it more intuitive, and improve "too big zImage" error message.
46807
46808 2008-01-08 Robert Millan <rmh@aybabtu.com>
46809
46810 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46811 `$(update-grub_DATA)'.
46812 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46813 targets.
46814
46815 2008-01-07 Robert Millan <rmh@aybabtu.com>
46816
46817 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46818 which instruction is modified by grub-setup during installation
46819 (since it wasn't obvious by only looking at this file).
46820
46821 2008-01-07 Robert Millan <rmh@aybabtu.com>
46822
46823 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46824 listing actual TODO items.
46825
46826 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46827
46828 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46829 correctly.
46830 (grub_reiserfs_get_key_offset): Likewise.
46831 (grub_reiserfs_set_key_offset): Likewise.
46832 (grub_reiserfs_set_key_type): Likewise.
46833 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46834
46835 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46836 better to remove the bitfield version completely.
46837
46838 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46839
46840 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46841 allocated from the heap, due to the fshelp implementation.
46842 (grub_reiserfs_dir): Free NODE, due to the same reason.
46843
46844 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46845
46846 Mostly from Vincent Pelletier:
46847
46848 * fs/reiserfs.c: New file.
46849
46850 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46851 (reiserfs_mod_SOURCES): New variable.
46852 (reiserfs_mod_CFLAGS): Likewise.
46853 (reiserfs_mod_LDFLAGS): Likewise.
46854
46855 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46856 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46857 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46858 normal/color.c.
46859
46860 2008-01-06 Robert Millan <rmh@aybabtu.com>
46861
46862 * normal/color.c: Remove `<grub/env.h>'.
46863
46864 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46865
46866 * include/grub/normal.h: Include <grub/env.h>.
46867
46868 2008-01-05 Robert Millan <rmh@aybabtu.com>
46869
46870 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46871 usage example with `(hd0,1)'.
46872 Reported by Samuel Thibault.
46873
46874 2008-01-05 Robert Millan <rmh@aybabtu.com>
46875
46876 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46877 (grub_linux_boot_zimage): Rename to ...
46878 (grub_linux_boot): ... this.
46879 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46880 (grub_linux_boot_zimage): Conditionalize zImage copy.
46881
46882 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46883 (grub_linux_boot_bzimage): Remove prototype.
46884 (grub_linux_boot_zimage): Rename to ...
46885 (grub_linux_boot): ... this.
46886
46887 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46888 (grub_linux_boot): Remove function.
46889
46890 2008-01-05 Robert Millan <rmh@aybabtu.com>
46891
46892 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46893 (grub_env_write_color_highlight): Likewise.
46894 (grub_wait_after_message): Likewise.
46895
46896 * normal/color.c: New file.
46897
46898 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46899 (normal_mod_DEPENDENCIES): Likewise.
46900
46901 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46902 (normal_mod_DEPENDENCIES): Likewise.
46903
46904 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46905 (normal_mod_DEPENDENCIES): Likewise.
46906
46907 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46908 (normal_mod_DEPENDENCIES): Likewise.
46909
46910 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46911 for waiting after a message is printed.
46912 * normal/main.c (read_config_file): Likewise.
46913 (grub_normal_init): Register grub_env_write_color_normal() and
46914 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46915 `color_highlight' variables as global.
46916
46917 * normal/menu.c (grub_wait_after_message): New function.
46918 (grub_color_menu_normal): New variable. Replaces ...
46919 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46920 (grub_color_menu_highlight): New variable. Replaces ...
46921 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46922 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46923 `GRUB_TERM_COLOR_STANDARD'.
46924 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46925 `normal_code' and `highlight_code' to `old_color_normal' and
46926 `old_color_highlight', respectively.
46927 (grub_menu_init_page): Update colors when drawing the menu, based on
46928 `menu_color_normal' and `menu_color_highlight' variables.
46929 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46930 a message is printed.
46931
46932 2008-01-05 Robert Millan <rmh@aybabtu.com>
46933
46934 * kern/env.c (grub_env_context_open): Propagate hooks for global
46935 variables to new context.
46936
46937 * kern/main.c (grub_set_root_dev): Export `root' variable.
46938
46939 2008-01-05 Robert Millan <rmh@aybabtu.com>
46940
46941 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46942 discs unconditionally, since udev and others have options to provide
46943 them.
46944
46945 2008-01-05 Robert Millan <rmh@aybabtu.com>
46946
46947 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46948
46949 2008-01-04 Christian Franke <franke@computer.org>
46950
46951 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46952 of eisa_mmap.
46953
46954 2008-01-03 Pavel Roskin <proski@gnu.org>
46955
46956 * kern/i386/linuxbios/init.c: Put "void" to all function
46957 declarations with no arguments.
46958 * kern/powerpc/ieee1275/init.c: Likewise.
46959 * term/i386/pc/at_keyboard.c: Likewise.
46960 * term/i386/pc/vga_text.c: Likewise.
46961 * util/grub-mkdevicemap.c: Likewise.
46962
46963 2008-01-02 Robert Millan <rmh@aybabtu.com>
46964
46965 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
46966 message when loaded image is out of bounds.
46967 (grub_multiboot_load_elf64): Likewise.
46968
46969 2008-01-02 Pavel Roskin <proski@gnu.org>
46970
46971 * util/grub.d/10_linux.in: Try version without ".old" when
46972 looking for initrd. It's better to use initrd from the newer
46973 kernel of the same version than no initrd at all.
46974
46975 2008-01-01 Robert Millan <rmh@aybabtu.com>
46976
46977 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
46978
46979 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
46980
46981 * include/grub/video.h: Added grub_video_unmap_color and
46982 grub_video_get_active_render_target.
46983 (grub_video_adapter): Added unmap_color and get_active_render_target.
46984
46985 * video/video.c: Added grub_video_unmap_color and
46986 grub_video_get_active_render_target.
46987 (grub_video_get_info): Changed method to accept NULL pointer as an
46988 argument to allow detection of active video adapter.
46989
46990 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
46991 grub_video_vbe_unmap_color_int.
46992 Added grub_video_vbe_unmap_color and
46993 grub_video_vbe_get_active_render_target.
46994 (grub_video_vbe_adapter): Added unmap_color and
46995 get_active_render_target.
46996
46997 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
46998 with grub_video_vbe_unmap_color_int.
46999
47000 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47001 (DEFAULT_NORMAL_COLOR): Likewise.
47002 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47003 (DEFAULT_FG_COLOR): Removed.
47004 (DEFAULT_BG_COLOR): Likewise.
47005 (DEFAULT_CURSOR_COLOR): Changed value.
47006 (grub_virtual_screen): Added standard_color_setting,
47007 normal_color_setting, highlight_color_setting and term_color.
47008 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47009 (bitmap_width): Added.
47010 (bitmap_height): Likewise.
47011 (bitmap): Likewise.
47012 (set_term_color): Likewise.
47013 (grub_virtual_screen_setup): Changed to use new terminal coloring
47014 settings.
47015 (grub_gfxterm_init): Added init for bitmap.
47016 (grub_gfxterm_fini): Added destroy for bitmap.
47017 (redraw_screen_rect): Updated to use background bitmap and new
47018 terminal coloring.
47019 (scroll_up): Added optimization for case when there is no bitmap.
47020 (grub_gfxterm_cls): Fixed to use correct background color.
47021 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47022 coloring.
47023 (grub_virtual_screen_setcolor): Likewise.
47024 (grub_virtual_screen_getcolor): Added.
47025 (grub_gfxterm_background_image_cmd): Likewise.
47026 (grub_video_term): Added setcolor and getcolor.
47027 (MOD_INIT): Added registration of background_image command.
47028 (MOD_TERM): Added unregistration for background_image command.
47029
47030 2007-12-30 Pavel Roskin <proski@gnu.org>
47031
47032 * loader/multiboot_loader.c: Fix multiboot command
47033 unregistration. Fix all typos in the word "multiboot".
47034
47035 2007-12-29 Pavel Roskin <proski@gnu.org>
47036
47037 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47038 support for initrd names used in Fedora.
47039
47040 2007-12-26 Bean <bean123ch@gmail.com>
47041
47042 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47043 (cpio_mod_SOURCES): New variable.
47044 (cpio_mod_CFLAGS): Likewise.
47045 (cpio_mod_LDFLAGS): Likewise.
47046
47047 * fs/cpio.c: New file.
47048
47049 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47050
47051 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47052
47053 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47054
47055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47056
47057 2007-12-25 Robert Millan <rmh@aybabtu.com>
47058
47059 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47060 (grub_getcolor): New function.
47061
47062 * kern/term.c (grub_getcolor): New function.
47063 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47064 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47065 (print_entry): Set normal and highlight colors to
47066 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47067 respectively, before printing and restore them to old
47068 values afterwards.
47069 (grub_menu_init_page): Likewise. Fill an additional colored space
47070 that would otherwise be left blank.
47071
47072 * term/efi/console.c (grub_console_getcolor): New function.
47073 (struct grub_console_term.getcolor): New variable.
47074 * term/i386/pc/console.c (grub_console_getcolor): New function.
47075 (struct grub_console_term.getcolor): New variable.
47076 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47077 (struct grub_console_term.getcolor): New variable.
47078
47079 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47080 (struct grub_console_term.setcolor): Remove variable.
47081 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47082 (struct grub_console_term.setcolor): Remove variable.
47083 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47084 (struct grub_console_term.setcolor): Remove variable.
47085 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47086 (struct grub_console_term.setcolor): Remove variable.
47087
47088 2007-12-25 Robert Millan <rmh@aybabtu.com>
47089
47090 * configure.ac: Search for possible unifont.hex locations, and
47091 define UNIFONT_HEX if found.
47092
47093 * Makefile.in (UNIFONT_HEX): Define variable.
47094 (DATA): Rename to ...
47095 (PKGLIB): ... this. Update all users.
47096 (PKGDATA): New variable.
47097 (pkgdata_IMAGES): Rename to ...
47098 (pkglib_IMAGES): ... this. Update all users.
47099 (pkgdata_MODULES): Rename to ...
47100 (pkglib_MODULES): ... this. Update all users.
47101 (pkgdata_PROGRAMS): Rename to ...
47102 (pkglib_PROGRAMS): ... this. Update all users.
47103 (pkgdata_DATA): Rename to ...
47104 (pkglib_DATA): ... this. Update all users.
47105 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47106 (unicode.pff, ascii.pff): New rules.
47107 (all-local): Add `$(PKGDATA)' dependency.
47108 (install-local): Process `$(PKGDATA)'.
47109
47110 * util/update-grub_lib.in (font_path): Search for *.pff files in
47111 a few more locations, including `${pkgdata}'.
47112
47113 2007-12-23 Robert Millan <rmh@aybabtu.com>
47114
47115 Patch from Bean <bean123ch@gmail.com>:
47116 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47117 `size'.
47118
47119 2007-12-21 Bean <bean123ch@gmail.com>
47120
47121 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47122 (ntfscomp_mod_SOURCES): New variable.
47123 (ntfscomp_mod_CFLAGS): Likewise.
47124 (ntfscomp_mod_LDFLAGS): Likewise.
47125
47126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47127 (grub_probe_SOURCES): Likewise.
47128 (grub_emu_SOURCES): Likewise.
47129
47130 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47131 (grub_emu_SOURCES): Likewise.
47132
47133 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47134 (grub_emu_SOURCES): Likewise.
47135
47136 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47137 (grub_emu_SOURCES): Likewise.
47138
47139 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47140 (read_run_list): Renamed to grub_ntfs_read_run_list.
47141 (decomp_nextvcn): Moved to ntfscomp.c.
47142 (decomp_getch): Likewise.
47143 (decomp_get16): Likewise.
47144 (decomp_block): Likewise.
47145 (read_block): Likewise.
47146 (read_data): Partially moved to ntfscomp.c.
47147 (fixup): Change unsigned to grub_uint16_t.
47148 (read_mft): Change unsigned long to grub_uint32_t.
47149 (read_attr): Likewise.
47150 (read_data): Likewise.
47151 (read_run_data): Likewise.
47152 (read_run_list): Likewise.
47153 (read_mft): Likewise.
47154
47155 * fs/ntfscomp.c: New file.
47156
47157 * include/grub/ntfs.h: New file.
47158
47159 2007-12-16 Robert Millan <rmh@aybabtu.com>
47160
47161 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47162 IDE disk check, since Linux is known to support 20 IDE disks.
47163 Reported by Colin Watson.
47164
47165 2007-12-15 Bean <bean123ch@gmail.com>
47166
47167 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47168 (lnxboot_img_SOURCES): New variable.
47169 (lnxboot_img_ASFLAGS): Likewise.
47170 (lnxboot_img_LDFLAGS): Likewise.
47171
47172 * boot/i386/pc/lnxboot.S: New file.
47173
47174 2007-11-24 Pavel Roskin <proski@gnu.org>
47175
47176 * configure.ac: Test if '--build-id=none' is supported by the
47177 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47178 objcopy to generate incorrect binary files (binutils
47179 2.17.50.0.18-1 as shipped by Fedora 8).
47180 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47181 linking, so that build ID doesn't break the test.
47182
47183 2007-11-24 Pavel Roskin <proski@gnu.org>
47184
47185 * include/grub/i386/time.h: use "void" in the argument list
47186 of grub_cpu_idle().
47187 * include/grub/powerpc/time.h: Likewise.
47188 * include/grub/sparc64/time.h: Likewise.
47189
47190 2007-11-18 Christian Franke <franke@computer.org>
47191
47192 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47193 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47194 This fixes the problem that function keys did not work in grub-emu.
47195
47196 2007-11-18 Christian Franke <franke@computer.org>
47197
47198 * disk/host.c (grub_host_open): Remove attribute unused from
47199 name parameter. Add check for "host". This fixes the problem
47200 that grub-emu does not find partitions.
47201
47202 2007-11-18 Christian Franke <franke@computer.org>
47203
47204 * util/hostfs.c (is_dir): New function.
47205 (grub_hostfs_dir): Handle missing dirent.d_type case.
47206 (grub_hostfs_read): Add missing fseek().
47207 (grub_hostfs_label): Clear label pointer. This fixes a crash
47208 of grub-emu on "ls (host)".
47209
47210 2007-11-18 Christian Franke <franke@computer.org>
47211
47212 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47213 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47214 to 64 bit boundary by default.
47215
47216 2007-11-18 Bean <bean123ch@gmail.com>
47217
47218 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47219 (hexdump_mod_SOURCES): New variable.
47220 (hexdump_mod_CFLAGS): Likewise.
47221 (hexdump_mod_LDFLAGS): Likewise.
47222
47223 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47224
47225 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47226
47227 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47228
47229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47230
47231 * include/grub/hexdump.h: New file.
47232
47233 * commands/hexdump.c: New file.
47234
47235 2007-11-10 Robert Millan <rmh@aybabtu.com>
47236
47237 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47238 in grub_outb() calls.
47239 (beep_on): Likewise.
47240
47241 2007-11-10 Christian Franke <franke@computer.org>
47242
47243 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47244 (grub_menu_run): Likewise.
47245
47246 2007-11-10 Robert Millan <rmh@aybabtu.com>
47247
47248 * include/grub/i386/efi/machine.h: New file.
47249 * include/grub/i386/linuxbios/machine.h: Likewise.
47250 * include/grub/i386/pc/machine.h: Likewise.
47251 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47252 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47253
47254 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47255 (serial_hw_io_addr): New variable.
47256 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47257 instead of `(unsigned short *) 0x400'.
47258
47259 2007-11-10 Bean <bean123ch@gmail.com>
47260
47261 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47262
47263 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47264
47265 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47266 (vga_mod_SOURCES): Added.
47267 (vga_mod_CFLAGS): Likewise.
47268 (vga_mod_LDFLAGS): Likewise.
47269
47270 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47271 grub_outb() calls.
47272 (set_map_mask): Likewise.
47273 (set_read_map): Likewise.
47274 (set_read_address): Likewise.
47275 (vga_font): Removed variable.
47276 (get_vga_glyph): Removed function.
47277 (invalidate_char): Likewise.
47278 (write_char): Changed to use grub_font_get_glyph() for font
47279 information.
47280 (grub_vga_putchar): Likewise.
47281 (grub_vga_getcharwidth): Likewise.
47282
47283 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47284
47285 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47286 flags.
47287 (pxeboot_img_LDFLAGS): Likewise.
47288 (diskboot_img_LDFLAGS): Likewise.
47289 (kernel_img_LDFLAGS): Likewise.
47290
47291 2007-11-06 Robert Millan <rmh@aybabtu.com>
47292
47293 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47294 in grub_outb() calls.
47295 (serial_hw_init): Likewise.
47296
47297 2007-11-05 Robert Millan <rmh@aybabtu.com>
47298
47299 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47300 spaces. Skip non-regular files.
47301
47302 2007-11-05 Robert Millan <rmh@aybabtu.com>
47303
47304 * kern/disk.c (grub_disk_firmware_fini)
47305 (grub_disk_firmware_is_tainted): New variables.
47306
47307 * include/grub/disk.h (grub_disk_firmware_fini)
47308 (grub_disk_firmware_is_tainted): Likewise.
47309
47310 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47311 (grub_disk_biosdisk_fini): ... to here.
47312 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47313 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47314 is set. Register grub_disk_biosdisk_fini() in
47315 `grub_disk_firmware_fini'.
47316
47317 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47318 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47319 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47320 to finish existing firmware disk interface.
47321
47322 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47323 (ata_mod_SOURCES): New variable.
47324 (ata_mod_CFLAGS): Likewise.
47325 (ata_mod_LDFLAGS): Likewise.
47326
47327 2007-11-05 Robert Millan <rmh@aybabtu.com>
47328
47329 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47330 (grub_ata_wait): Reimplement using grub_millisleep().
47331
47332 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47333 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47334
47335 2007-11-03 Marco Gerards <marco@gnu.org>
47336
47337 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47338 (CRTC_ADDR_PORT): New macro.
47339 (CRTC_DATA_PORT): Likewise.
47340 (CRTC_CURSOR): Likewise.
47341 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47342 (CRTC_CURSOR_ADDR_LOW): Likewise.
47343 (update_cursor): New function.
47344 (grub_console_real_putchar): Call `update_cursor'.
47345 (grub_console_gotoxy): Likewise.
47346 (grub_console_cls): Set the default color when clearing the
47347 screen.
47348 (grub_console_setcursor): Implemented.
47349
47350 2007-11-03 Marco Gerards <marco@gnu.org>
47351
47352 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47353 become activate.
47354 (grub_ata_pio_write): Likewise.
47355
47356 (grub_atapi_identify): Wait after issuing an ATA command.
47357 (grub_atapi_packet): Likewise.
47358 (grub_ata_identify): Likewise.
47359 (grub_ata_readwrite): Likewise.
47360
47361 2007-11-03 Marco Gerards <marco@gnu.org>
47362
47363 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47364 (grub_ata_pio_write): Likewise.
47365 (grub_ata_readwrite): Use `grub_error', instead of
47366 returning `grub_errno'.
47367
47368 2007-11-03 Marco Gerards <marco@gnu.org>
47369
47370 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47371 grub_ata_pio_write once for every single sector, instead of for
47372 multiple sectors.
47373
47374 2007-10-31 Robert Millan <rmh@aybabtu.com>
47375
47376 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47377
47378 * conf/i386-linuxbios.rmk: New file.
47379
47380 * kern/i386/pc/hardware.c: Likewise.
47381 * term/i386/pc/at_keyboard.c: Likewise.
47382 * term/i386/pc/vga_text.c: Likewise.
47383
47384 * include/grub/i386/linuxbios/boot.h: Likewise.
47385 * include/grub/i386/linuxbios/console.h: Likewise.
47386 * include/grub/i386/linuxbios/init.h: Likewise.
47387 * include/grub/i386/linuxbios/kernel.h: Likewise.
47388 * include/grub/i386/linuxbios/loader.h: Likewise.
47389 * include/grub/i386/linuxbios/memory.h: Likewise.
47390 * include/grub/i386/linuxbios/serial.h: Likewise.
47391 * include/grub/i386/linuxbios/time.h: Likewise.
47392
47393 * kern/i386/linuxbios/init.c: Likewise.
47394 * kern/i386/linuxbios/startup.S: Likewise.
47395 * kern/i386/linuxbios/table.c: Likewise.
47396
47397 2007-10-31 Marco Gerards <marco@gnu.org>
47398
47399 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47400 (ata_mod_SOURCES): New variable.
47401 (ata_mod_CFLAGS): Likewise.
47402 (ata_mod_LDFLAGS): Likewise.
47403
47404 * disk/ata.c: New file.
47405
47406 * include/grub/disk.h (grub_disk_dev_id): Add
47407 `GRUB_DISK_DEV_ATA_ID'.
47408
47409 2007-10-31 Robert Millan <rmh@aybabtu.com>
47410
47411 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47412 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47413
47414 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47415 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47416
47417 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47418 `<grub/types.h>'.
47419
47420 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47421
47422 2007-10-27 Robert Millan <rmh@aybabtu.com>
47423
47424 * include/grub/types.h (ULONG_MAX): Define macro.
47425
47426 2007-10-22 Robert Millan <rmh@aybabtu.com>
47427
47428 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47429 `"../realmode.S"'.
47430 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47431
47432 2007-10-22 Robert Millan <rmh@aybabtu.com>
47433
47434 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47435 (pkgdata_MODULES): Add `biosdisk.mod'.
47436 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47437 variables.
47438
47439 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47440 (grub_biosdisk_init): Replace with ...
47441 (GRUB_MOD_INIT(biosdisk)): ... this.
47442 (grub_biosdisk_fini): Replace with ...
47443 (GRUB_MOD_FINI(biosdisk)): ... this.
47444
47445 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47446 (grub_machine_init): Remove call to grub_biosdisk_init().
47447 (grub_machine_fini): Remove call to grub_machine_fini().
47448
47449 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47450
47451 2007-10-22 Robert Millan <rmh@aybabtu.com>
47452
47453 * include/grub/time.h: New file.
47454 * include/grub/i386/time.h: Likewise.
47455 * include/grub/powerpc/time.h: Likewise.
47456 * include/grub/sparc64/time.h: Likewise.
47457
47458 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47459 instances to ...
47460 (KERNEL_MACHINE_TIME_HEADER): ... this.
47461 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47462 instances to ...
47463 (KERNEL_MACHINE_TIME_HEADER): ... this.
47464 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47465 instances to ...
47466 (KERNEL_MACHINE_TIME_HEADER): ... this.
47467
47468 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47469 (grub_millisleep): New function.
47470 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47471 (grub_millisleep): New function.
47472 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47473 Remove `grub/machine/time.h' include.
47474 (grub_millisleep): New function.
47475 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47476 Remove `grub/machine/time.h' include.
47477 (grub_millisleep): New function.
47478
47479 * include/grub/misc.h (grub_div_roundup): New function.
47480
47481 * kern/misc.c: Include `<grub/time.h>'.
47482 (grub_millisleep_generic): New function.
47483
47484 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47485 Add `time.h'.
47486 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47487 Add `time.h'.
47488 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47489 `machine/time.h'. Add `time.h'.
47490 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47491
47492 2007-10-21 Robert Millan <rmh@aybabtu.com>
47493
47494 * include/grub/misc.h (grub_max): New function.
47495
47496 2007-10-21 Robert Millan <rmh@aybabtu.com>
47497
47498 * util/misc.c (grub_util_info): Call fflush() before returning.
47499
47500 2007-10-20 Robert Millan <rmh@aybabtu.com>
47501
47502 * genmk.rb (Image): Copy `extra_flags' from here ...
47503 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47504
47505 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47506 to `argc' and `args' arguments.
47507
47508 2007-10-17 Robert Millan <rmh@aybabtu.com>
47509
47510 * kern/i386/loader.S: New file.
47511
47512 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47513 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47514 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47515 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47516 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47517 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47518 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47519 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47520 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47521 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47522 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47523 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47524 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47525 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47526
47527 * kern/i386/realmode.S: New file.
47528
47529 * kern/i386/pc/startup.S (protstack): Moved from here ...
47530 * kern/i386/realmode.S (protstack)... to here.
47531 * kern/i386/pc/startup.S (gdt): Moved from here ...
47532 * kern/i386/realmode.S (gdt)... to here.
47533 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47534 * kern/i386/realmode.S (prot_to_real)... to here.
47535
47536 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47537 `kern/i386/realmode.S'.
47538
47539 2007-10-17 Robert Millan <rmh@aybabtu.com>
47540
47541 * include/grub/i386/loader.h: New file.
47542
47543 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47544 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47545 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47546 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47547 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47548 * include/grub/i386/loader.h (grub_linux_prot_size)
47549 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47550 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47551 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47552 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47553
47554 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47555
47556 2007-10-15 Robert Millan <rmh@aybabtu.com>
47557
47558 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47559 filesystem when dev->disk is unset.
47560 Do probe for filesystem even when dev->disk->has_partitions is set.
47561 In case a filesystem is found, always report it.
47562 In case it isn't, if dev->disk->has_partitions is set, report that
47563 a partition table was found instead of reporting that no filesystem
47564 could be identified.
47565
47566 2007-10-12 Robert Millan <rmh@aybabtu.com>
47567
47568 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47569 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47570
47571 * include/grub/types.h (grub_host_to_target16): New macro.
47572 (grub_host_to_target32): Likewise.
47573 (grub_host_to_target64): Likewise.
47574 (grub_target_to_host16): Likewise.
47575 (grub_target_to_host32): Likewise.
47576 (grub_target_to_host64): Likewise.
47577
47578 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47579 Renamed from to ...
47580 (GRUB_MOD_ALIGN): ...this. Update all users.
47581
47582 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47583 grub_host_to_target32.
47584 Replace grub_be_to_cpu32 with grub_target_to_host32.
47585 (load_modules): Likewise.
47586 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47587 Replace grub_be_to_cpu32 with grub_target_to_host32.
47588 Replace grub_cpu_to_be16 with grub_host_to_target16.
47589 Replace grub_cpu_to_be32 grub_host_to_target32.
47590
47591 2007-10-12 Robert Millan <rmh@aybabtu.com>
47592
47593 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47594 * util/elf/grub-mkimage.c: ... here.
47595
47596 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47597 `util/powerpc/ieee1275/grub-mkimage.c'.
47598
47599 2007-10-07 Robert Millan <rmh@aybabtu.com>
47600
47601 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47602 and make it easier to figure out.
47603 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47604 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47605 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47606 leave us with less than HEAP_MIN_SIZE total heap.
47607 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47608
47609 2007-10-03 Robert Millan <rmh@aybabtu.com>
47610
47611 * include/grub/i386/io.h: New file.
47612 * commands/i386/pc/play.c (inb): Removed.
47613 (outb): Removed.
47614 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47615 with grub_outb().
47616 * term/i386/pc/serial.c (inb): Removed.
47617 (outb): Removed.
47618 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47619 with grub_outb().
47620 * term/i386/pc/vga.c (inb): Removed.
47621 (outb): Removed.
47622 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47623 with grub_outb().
47624
47625 2007-10-02 Robert Millan <rmh@aybabtu.com>
47626
47627 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47628 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47629 Reported by Marcin Kurek.
47630
47631 2007-09-07 Robert Millan <rmh@aybabtu.com>
47632
47633 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47634 SmartFirmware version updates (as released by Sven Luther), and avoid
47635 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47636 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47637 known broken.
47638
47639 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47640
47641 From Hitoshi Ozeki:
47642 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47643 when merging two regions.
47644
47645 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47646
47647 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47648 * normal/completion.c (grub_normal_do_completion): Likewise.
47649 Reported by Hitoshi Ozeki.
47650
47651 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47652
47653 Do not use devices at boot in chainloading.
47654
47655 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47656 (boot_part_addr): Likewise.
47657 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47658 with BOOT_DRIVE and BOOT_PART_ADDR.
47659 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47660 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47661
47662 2007-08-29 Robert Millan <rmh@aybabtu.com>
47663
47664 Patch from Simon Peter <dn.tlp@gmx.net>:
47665 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47666 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47667 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47668 util/i386/pc/grub-setup.c_DEPENDENCIES.
47669 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47670 util/grub-probe.c_DEPENDENCIES.
47671 * conf/powerpc-ieee1275.rmk: Likewise.
47672
47673 2007-08-28 Robert Millan <rmh@aybabtu.com>
47674
47675 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47676 to tell grub-mkdevicemap how to name devices.
47677 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47678 feature).
47679
47680 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47681 util/i386/get_disk_name.c.
47682 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47683 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47684 util/ieee1275/get_disk_name.c.
47685
47686 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47687
47688 * DISTLIST: Add util/i386/get_disk_name.c and
47689 util/ieee1275/get_disk_name.c.
47690
47691 * util/grub-mkdevicemap.c: Replace device naming logic with
47692 grub_util_get_disk_name() calls.
47693
47694 2007-08-20 Robert Millan <rmh@aybabtu.com>
47695
47696 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47697 (so that it works for both plural and singular quantities).
47698
47699 2007-08-05 Robert Millan <rmh@aybabtu.com>
47700
47701 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47702 so that [xz] isn't taken into account when determining order.
47703
47704 2007-08-02 Marco Gerards <marco@gnu.org>
47705
47706 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47707 `include/multiboot2.h', `include/grub/elfload.h',
47708 `include/multiboot.h', `include/grub/multiboot.h',
47709 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47710 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47711 `kern/elf.c', `loader/multiboot_loader.c',
47712 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47713 `loader/i386/pc/multiboot2.c',
47714 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47715 `util/i386/pc/grub-mkrescue.in'. Remove
47716 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47717 `include/grub/i386/pc/util/biosdisk.h' and
47718 `include/grub/powerpc/ieee1275/multiboot.h'.
47719
47720 2007-08-02 Bean <bean123ch@gmail.com>
47721
47722 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47723 (ntfs_mod_SOURCES): New variable.
47724 (ntfs_mod_CFLAGS): Likewise.
47725 (ntfs_mod_LDFLAGS): Likewise.
47726
47727 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47728 (grub_probe_SOURCES): Likewise.
47729 (grub_emu_SOURCES): Likewise.
47730
47731 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47732 (grub_emu_SOURCES): Likewise.
47733
47734 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47735 (grub_emu_SOURCES): Likewise.
47736
47737 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47738
47739 * fs/ntfs.c: New file.
47740
47741 2007-08-02 Bean <bean123ch@gmail.com>
47742
47743 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47744
47745 * file.h (grub_file): Likewise.
47746
47747 * fshelp.h (grub_fshelp_read_file): Likewise.
47748
47749 * util/i386/pc/grub-setup.c (setup): Likewise.
47750 (save_first_sector): Likewise.
47751 (save_blocklists): Likewise.
47752
47753 * fs/affs.c (grub_affs_read_file): Likewise.
47754
47755 * fs/ext2.c (grub_ext2_read_file): Likewise.
47756
47757 * fs/fat.c (grub_fat_read_data): Likewise.
47758
47759 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47760
47761 * fs/hfs.c (grub_hfs_read_file): Likewise.
47762
47763 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47764
47765 * fs/jfs.c (grub_jfs_read_file): Likewise.
47766
47767 * fs/minix.c (grub_minix_read_file): Likewise.
47768
47769 * fs/sfs.c (grub_sfs_read_file): Likewise.
47770
47771 * fs/ufs.c (grub_ufs_read_file): Likewise.
47772
47773 * fs/xfs.c (grub_xfs_read_file): Likewise.
47774
47775 * command/blocklist.c (read_blocklist): Likewise.
47776 (print_blocklist): Likewise.
47777
47778 2007-08-02 Marco Gerards <marco@gnu.org>
47779
47780 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47781 `util/hostfs.c'.
47782
47783 * disk/host.c: New file.
47784
47785 * util/hostfs.c: Likewise.
47786
47787 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47788 return `GRUB_ERR_BAD_FS'.
47789 * fs/sfs.c (grub_sfs_mount): Likewise.
47790 * fs/xfs.c (grub_xfs_mount): Likewise.
47791
47792 * include/grub/disk.h (enum grub_disk_dev_id): Add
47793 `GRUB_DISK_DEVICE_HOST_ID'.
47794
47795 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47796
47797 2007-07-24 Jerone Young <jerone@gmail.com>
47798
47799 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47800 modules for compilation.
47801 * conf/powerpc-ieee1275.rmk: Likewise.
47802
47803 * include/multiboot.h: Move multiboot definitions to one file. Rename
47804 many definitions to not get grub specific.
47805 * include/multiboot2.h: Create header with multiboot 2 definitions.
47806 * include/grub/multiboot.h: Header for grub specific function
47807 prototypes and definitions.
47808 * include/grub/multiboot2.h: Likewise.
47809 * include/grub/multiboot_loader.h: Likewise.
47810 * include/grub/i386/pc/multiboot.h: Removed.
47811 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47812
47813 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47814 and 2 to allow for one multiboot and module commands.
47815 * loader/multiboot2.c: Add multiboot2 functionality.
47816 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47817 and definition names.
47818 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47819 2 functions.
47820 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47821 ieee1275 specific multiboot2 code.
47822
47823 * kern/i386/pc/startup.S: Change headers and definition names for
47824 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47825
47826 2007-07-22 Robert Millan <rmh@aybabtu.com>
47827
47828 * geninitheader.sh: Process file specified in first parameter rather
47829 than hardcoding grub_modules_init.lst.
47830 * geninit.sh: Likewise. Also, construct header name dynamically rather
47831 than hardcoding grub_modules_init.h.
47832
47833 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47834 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47835 grub_probe_init.[ch] and grub_setup_init.[ch].
47836
47837 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47838 grub_modules_init.h with grub_emu_init.h.
47839 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47840 grub_probe_init.[ch] files.
47841 * conf/i386-efi.rmk: Likewise.
47842 * conf/i386-pc.rmk: Likewise.
47843 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47844 grub_setup_init.[ch] files.
47845
47846 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47847 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47848 to initialize modules rather than a list of hardcoded functions.
47849 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47850 grub_init_all() to initialize modules rather than a list of hardcoded
47851 functions.
47852
47853 2007-07-22 Robert Millan <rmh@aybabtu.com>
47854
47855 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47856 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47857
47858 2007-07-22 Robert Millan <rmh@aybabtu.com>
47859
47860 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47861 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47862 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47863 flag when running on SmartFirmware.
47864 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47865 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47866 was set.
47867
47868 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47869 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47870 rather than decreasing it.
47871
47872 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47873 there's not enough space to do it, fail in the same way as when it
47874 can't be done because there are no partitions.
47875
47876 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47877 when nvsetenv failed.
47878
47879 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47880
47881 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47882 because this rule is automatically generated.
47883 (grub-mkrescue): Removed for the same reason as above.
47884
47885 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47886
47887 Migrate to GNU General Public License Version 3.
47888
47889 * COPYING: Replaced with the plain text version of GPLv3.
47890
47891 * config.guess: Updated from gnulib.
47892 * config.sub: Likewise.
47893
47894 * geninit.sh: Output a GPLv3 copyright notice.
47895 * geninitheader.sh: Likewise.
47896 * genmodsrc.sh: Likewise.
47897 * gensymlist.sh.in: Likewise.
47898
47899 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47900 * boot/i386/pc/diskboot.S: Likewise.
47901 * boot/i386/pc/pxeboot.S: Likewise.
47902 * commands/blocklist.c: Likewise.
47903 * commands/boot.c: Likewise.
47904 * commands/cat.c: Likewise.
47905 * commands/cmp.c: Likewise.
47906 * commands/configfile.c: Likewise.
47907 * commands/echo.c: Likewise.
47908 * commands/help.c: Likewise.
47909 * commands/ls.c: Likewise.
47910 * commands/search.c: Likewise.
47911 * commands/terminal.c: Likewise.
47912 * commands/test.c: Likewise.
47913 * commands/videotest.c: Likewise.
47914 * commands/i386/cpuid.c: Likewise.
47915 * commands/i386/pc/halt.c: Likewise.
47916 * commands/i386/pc/play.c: Likewise.
47917 * commands/i386/pc/reboot.c: Likewise.
47918 * commands/i386/pc/vbeinfo.c: Likewise.
47919 * commands/i386/pc/vbetest.c: Likewise.
47920 * commands/ieee1275/halt.c: Likewise.
47921 * commands/ieee1275/reboot.c: Likewise.
47922 * commands/ieee1275/suspend.c: Likewise.
47923 * disk/loopback.c: Likewise.
47924 * disk/lvm.c: Likewise.
47925 * disk/raid.c: Likewise.
47926 * disk/efi/efidisk.c: Likewise.
47927 * disk/i386/pc/biosdisk.c: Likewise.
47928 * disk/ieee1275/ofdisk.c: Likewise.
47929 * font/manager.c: Likewise.
47930 * fs/affs.c: Likewise.
47931 * fs/ext2.c: Likewise.
47932 * fs/fat.c: Likewise.
47933 * fs/fshelp.c: Likewise.
47934 * fs/hfs.c: Likewise.
47935 * fs/hfsplus.c: Likewise.
47936 * fs/iso9660.c: Likewise.
47937 * fs/jfs.c: Likewise.
47938 * fs/minix.c: Likewise.
47939 * fs/sfs.c: Likewise.
47940 * fs/ufs.c: Likewise.
47941 * fs/xfs.c: Likewise.
47942 * hello/hello.c: Likewise.
47943 * include/grub/acorn_filecore.h: Likewise.
47944 * include/grub/arg.h: Likewise.
47945 * include/grub/bitmap.h: Likewise.
47946 * include/grub/boot.h: Likewise.
47947 * include/grub/cache.h: Likewise.
47948 * include/grub/device.h: Likewise.
47949 * include/grub/disk.h: Likewise.
47950 * include/grub/dl.h: Likewise.
47951 * include/grub/elfload.h: Likewise.
47952 * include/grub/env.h: Likewise.
47953 * include/grub/err.h: Likewise.
47954 * include/grub/file.h: Likewise.
47955 * include/grub/font.h: Likewise.
47956 * include/grub/fs.h: Likewise.
47957 * include/grub/fshelp.h: Likewise.
47958 * include/grub/gzio.h: Likewise.
47959 * include/grub/hfs.h: Likewise.
47960 * include/grub/kernel.h: Likewise.
47961 * include/grub/loader.h: Likewise.
47962 * include/grub/lvm.h: Likewise.
47963 * include/grub/misc.h: Likewise.
47964 * include/grub/mm.h: Likewise.
47965 * include/grub/net.h: Likewise.
47966 * include/grub/normal.h: Likewise.
47967 * include/grub/parser.h: Likewise.
47968 * include/grub/partition.h: Likewise.
47969 * include/grub/pc_partition.h: Likewise.
47970 * include/grub/raid.h: Likewise.
47971 * include/grub/rescue.h: Likewise.
47972 * include/grub/script.h: Likewise.
47973 * include/grub/setjmp.h: Likewise.
47974 * include/grub/symbol.h: Likewise.
47975 * include/grub/term.h: Likewise.
47976 * include/grub/terminfo.h: Likewise.
47977 * include/grub/tparm.h: Likewise.
47978 * include/grub/types.h: Likewise.
47979 * include/grub/video.h: Likewise.
47980 * include/grub/efi/api.h: Likewise.
47981 * include/grub/efi/chainloader.h: Likewise.
47982 * include/grub/efi/console.h: Likewise.
47983 * include/grub/efi/console_control.h: Likewise.
47984 * include/grub/efi/disk.h: Likewise.
47985 * include/grub/efi/efi.h: Likewise.
47986 * include/grub/efi/pe32.h: Likewise.
47987 * include/grub/efi/time.h: Likewise.
47988 * include/grub/i386/linux.h: Likewise.
47989 * include/grub/i386/setjmp.h: Likewise.
47990 * include/grub/i386/types.h: Likewise.
47991 * include/grub/i386/efi/kernel.h: Likewise.
47992 * include/grub/i386/efi/loader.h: Likewise.
47993 * include/grub/i386/efi/time.h: Likewise.
47994 * include/grub/i386/pc/biosdisk.h: Likewise.
47995 * include/grub/i386/pc/boot.h: Likewise.
47996 * include/grub/i386/pc/chainloader.h: Likewise.
47997 * include/grub/i386/pc/console.h: Likewise.
47998 * include/grub/i386/pc/init.h: Likewise.
47999 * include/grub/i386/pc/kernel.h: Likewise.
48000 * include/grub/i386/pc/loader.h: Likewise.
48001 * include/grub/i386/pc/memory.h: Likewise.
48002 * include/grub/i386/pc/multiboot.h: Likewise.
48003 * include/grub/i386/pc/serial.h: Likewise.
48004 * include/grub/i386/pc/time.h: Likewise.
48005 * include/grub/i386/pc/vbe.h: Likewise.
48006 * include/grub/i386/pc/vbeblit.h: Likewise.
48007 * include/grub/i386/pc/vbefill.h: Likewise.
48008 * include/grub/i386/pc/vbeutil.h: Likewise.
48009 * include/grub/i386/pc/vga.h: Likewise.
48010 * include/grub/ieee1275/ieee1275.h: Likewise.
48011 * include/grub/ieee1275/ofdisk.h: Likewise.
48012 * include/grub/powerpc/libgcc.h: Likewise.
48013 * include/grub/powerpc/setjmp.h: Likewise.
48014 * include/grub/powerpc/types.h: Likewise.
48015 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48016 * include/grub/powerpc/ieee1275/console.h: Likewise.
48017 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48018 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48019 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48020 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48021 * include/grub/powerpc/ieee1275/time.h: Likewise.
48022 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48023 * include/grub/sparc64/libgcc.h: Likewise.
48024 * include/grub/sparc64/setjmp.h: Likewise.
48025 * include/grub/sparc64/types.h: Likewise.
48026 * include/grub/sparc64/ieee1275/console.h: Likewise.
48027 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48028 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48029 * include/grub/sparc64/ieee1275/time.h: Likewise.
48030 * include/grub/util/biosdisk.h: Likewise.
48031 * include/grub/util/getroot.h: Likewise.
48032 * include/grub/util/lvm.h: Likewise.
48033 * include/grub/util/misc.h: Likewise.
48034 * include/grub/util/raid.h: Likewise.
48035 * include/grub/util/resolve.h: Likewise.
48036 * io/gzio.c: Likewise.
48037 * kern/device.c: Likewise.
48038 * kern/disk.c: Likewise.
48039 * kern/dl.c: Likewise.
48040 * kern/elf.c: Likewise.
48041 * kern/env.c: Likewise.
48042 * kern/err.c: Likewise.
48043 * kern/file.c: Likewise.
48044 * kern/fs.c: Likewise.
48045 * kern/loader.c: Likewise.
48046 * kern/main.c: Likewise.
48047 * kern/misc.c: Likewise.
48048 * kern/mm.c: Likewise.
48049 * kern/parser.c: Likewise.
48050 * kern/partition.c: Likewise.
48051 * kern/rescue.c: Likewise.
48052 * kern/term.c: Likewise.
48053 * kern/efi/efi.c: Likewise.
48054 * kern/efi/init.c: Likewise.
48055 * kern/efi/mm.c: Likewise.
48056 * kern/i386/dl.c: Likewise.
48057 * kern/i386/efi/init.c: Likewise.
48058 * kern/i386/efi/startup.S: Likewise.
48059 * kern/i386/pc/init.c: Likewise.
48060 * kern/i386/pc/lzo1x.S: Likewise.
48061 * kern/i386/pc/startup.S: Likewise.
48062 * kern/ieee1275/ieee1275.c: Likewise.
48063 * kern/powerpc/cache.S: Likewise.
48064 * kern/powerpc/dl.c: Likewise.
48065 * kern/powerpc/ieee1275/cmain.c: Likewise.
48066 * kern/powerpc/ieee1275/crt0.S: Likewise.
48067 * kern/powerpc/ieee1275/init.c: Likewise.
48068 * kern/powerpc/ieee1275/openfw.c: Likewise.
48069 * kern/sparc64/cache.S: Likewise.
48070 * kern/sparc64/dl.c: Likewise.
48071 * kern/sparc64/ieee1275/init.c: Likewise.
48072 * kern/sparc64/ieee1275/openfw.c: Likewise.
48073 * loader/efi/chainloader.c: Likewise.
48074 * loader/efi/chainloader_normal.c: Likewise.
48075 * loader/i386/efi/linux.c: Likewise.
48076 * loader/i386/efi/linux_normal.c: Likewise.
48077 * loader/i386/pc/chainloader.c: Likewise.
48078 * loader/i386/pc/chainloader_normal.c: Likewise.
48079 * loader/i386/pc/linux.c: Likewise.
48080 * loader/i386/pc/linux_normal.c: Likewise.
48081 * loader/i386/pc/multiboot.c: Likewise.
48082 * loader/i386/pc/multiboot_normal.c: Likewise.
48083 * loader/powerpc/ieee1275/linux.c: Likewise.
48084 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48085 * normal/arg.c: Likewise.
48086 * normal/cmdline.c: Likewise.
48087 * normal/command.c: Likewise.
48088 * normal/completion.c: Likewise.
48089 * normal/execute.c: Likewise.
48090 * normal/function.c: Likewise.
48091 * normal/lexer.c: Likewise.
48092 * normal/main.c: Likewise.
48093 * normal/menu.c: Likewise.
48094 * normal/menu_entry.c: Likewise.
48095 * normal/misc.c: Likewise.
48096 * normal/parser.y: Likewise.
48097 * normal/script.c: Likewise.
48098 * normal/i386/setjmp.S: Likewise.
48099 * normal/powerpc/setjmp.S: Likewise.
48100 * normal/sparc64/setjmp.S: Likewise.
48101 * partmap/acorn.c: Likewise.
48102 * partmap/amiga.c: Likewise.
48103 * partmap/apple.c: Likewise.
48104 * partmap/gpt.c: Likewise.
48105 * partmap/pc.c: Likewise.
48106 * partmap/sun.c: Likewise.
48107 * term/gfxterm.c: Likewise.
48108 * term/terminfo.c: Likewise.
48109 * term/efi/console.c: Likewise.
48110 * term/i386/pc/console.c: Likewise.
48111 * term/i386/pc/serial.c: Likewise.
48112 * term/i386/pc/vesafb.c: Likewise.
48113 * term/i386/pc/vga.c: Likewise.
48114 * term/ieee1275/ofconsole.c: Likewise.
48115 * util/biosdisk.c: Likewise.
48116 * util/console.c: Likewise.
48117 * util/genmoddep.c: Likewise.
48118 * util/getroot.c: Likewise.
48119 * util/grub-emu.c: Likewise.
48120 * util/grub-mkdevicemap.c: Likewise.
48121 * util/grub-probe.c: Likewise.
48122 * util/lvm.c: Likewise.
48123 * util/misc.c: Likewise.
48124 * util/raid.c: Likewise.
48125 * util/resolve.c: Likewise.
48126 * util/update-grub.in: Likewise.
48127 * util/update-grub_lib.in: Likewise.
48128 * util/grub.d/00_header.in: Likewise.
48129 * util/grub.d/10_hurd.in: Likewise.
48130 * util/grub.d/10_linux.in: Likewise.
48131 * util/i386/efi/grub-install.in: Likewise.
48132 * util/i386/efi/grub-mkimage.c: Likewise.
48133 * util/i386/pc/grub-install.in: Likewise.
48134 * util/i386/pc/grub-mkimage.c: Likewise.
48135 * util/i386/pc/grub-mkrescue.in: Likewise.
48136 * util/i386/pc/grub-setup.c: Likewise.
48137 * util/i386/pc/misc.c: Likewise.
48138 * util/powerpc/ieee1275/grub-install.in: Likewise.
48139 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48140 * util/powerpc/ieee1275/misc.c: Likewise.
48141 * video/bitmap.c: Likewise.
48142 * video/video.c: Likewise.
48143 * video/i386/pc/vbe.c: Likewise.
48144 * video/i386/pc/vbeblit.c: Likewise.
48145 * video/i386/pc/vbefill.c: Likewise.
48146 * video/i386/pc/vbeutil.c: Likewise.
48147 * video/readers/tga.c: Likewise.
48148
48149 2007-07-02 Robert Millan <rmh@aybabtu.com>
48150
48151 * conf/i386-efi.rmk: Replace obsolete reference to
48152 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48153 with util/getroot.c.
48154 * conf/powerpc-ieee1275.rmk: Likewise.
48155 * conf/sparc64-ieee1275.rmk: Likewise.
48156
48157 * util/grub-emu.c (main): Fix unchecked pointer handling.
48158
48159 2007-07-02 Robert Millan <rmh@aybabtu.com>
48160
48161 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48162 invocation to fail, in order to support partition-less media.
48163
48164 * util/i386/pc/grub-install.in: Likewise.
48165
48166 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48167 which fs or partmap modules are needed (akin to its sister scripts).
48168
48169 Also use grub-probe to get rid of unportable /proc/mounts check.
48170
48171 Print the same informational message that the other scripts do, before
48172 exiting.
48173
48174 2007-06-23 Robert Millan <rmh@aybabtu.com>
48175
48176 * util/update-grub_lib.in (font_path): New function. Determine whether
48177 a font file can be found and, if so, echo the GRUB path to it.
48178
48179 * util/update-grub.in: Handle multiple terminals depending on user
48180 input, platform availability and font file presence. Propagate
48181 variables of our findings to /etc/grub.d/ children.
48182
48183 * util/grub.d/00_header.in: Handle multiple terminals, based on
48184 environment setup by update-grub.
48185
48186 2007-06-23 Robert Millan <rmh@aybabtu.com>
48187
48188 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48189
48190 2007-06-21 Robert Millan <rmh@aybabtu.com>
48191
48192 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48193 indicate end of data section in kernel image.
48194 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48195 GRUB_KERNEL_MACHINE_DATA_END.
48196
48197 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48198 space for it.
48199 * kern/i386/efi/startup.S: Likewise.
48200
48201 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48202 during image generation. Implement --prefix option to override this
48203 patch.
48204 * util/i386/efi/grub-mkimage.c: Likewise.
48205
48206 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48207 code to make path relative to its root into a separate function.
48208
48209 * util/i386/pc/grub-install.in: Use newly provided
48210 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48211 pass the result to grub-install --prefix.
48212
48213 2007-06-13 Robert Millan <rmh@aybabtu.com>
48214
48215 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48216 DEFAULT_DEVICE_MAP.
48217 * util/grub-emu.c: Use above definitions from misc.h instead of
48218 defining them.
48219 * util/grub-mkdevicemap.c: Likewise.
48220 * util/i386/pc/grub-setup.c: Likewise.
48221 * util/grub-probe.c: Likewise.
48222 (probe): Abort with grub_util_error() when either
48223 grub_guess_root_device or grub_util_get_grub_dev fails.
48224
48225 2007-06-12 Robert Millan <rmh@aybabtu.com>
48226
48227 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48228 "pager" assignment.
48229 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48230 "pcdata".
48231 * util/grub-probe.c (probe): Likewise for "drive_name".
48232
48233 2007-06-11 Robert Millan <rmh@aybabtu.com>
48234
48235 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48236 not just the cdrom one.
48237
48238 2007-06-11 Robert Millan <rmh@aybabtu.com>
48239
48240 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48241 Add --pkglibdir=DIR option to override pkglibdir.
48242 Mention --image-type=TYPE in help output.
48243 Fix --grub-mkimage (it was a no-op).
48244 Abort gracefully when no parameter is given.
48245
48246 2007-06-11 Robert Millan <rmh@aybabtu.com>
48247
48248 * util/i386/pc/grub-mkrescue.in: New file.
48249 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48250 * Makefile.in: Handle bin_SCRIPTS.
48251
48252 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48253
48254 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48255 list of video modes.
48256
48257 2007-06-06 Robert Millan <rmh@aybabtu.com>
48258
48259 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48260 file doesn't exist, or if it is in a filesystem grub can't read.
48261
48262 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48263 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48264 header comment to fit in 80 columns when the variables are resolved.
48265
48266 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48267 could be identified by update-grub. Remove redundant check for
48268 unifont.pff existence (since convert_system_path_to_grub_path now
48269 handles that).
48270
48271 2007-06-04 Robert Millan <rmh@aybabtu.com>
48272
48273 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48274
48275 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48276
48277 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48278
48279 2007-06-04 Robert Millan <rmh@aybabtu.com>
48280
48281 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48282
48283 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48284 grub_apple_partition_map_fini.
48285
48286 * util/biosdisk.c
48287 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48288 to access >2 TiB disks).
48289
48290 Print disk->total_sectors with %llu instead of %lu, since this
48291 variable is always 64-bit (prevents wrong disk size from being displayed
48292 on either >2 TiB disk or big-endian CPU).
48293
48294 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48295 into a generic case that supports all (sane) partition maps.
48296
48297 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48298 breaks big-endian.
48299
48300 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48301 and grub_apple_partition_map_fini() after that.
48302
48303 2007-06-01 Robert Millan <rmh@aybabtu.com>
48304
48305 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48306
48307 * util/grub.d/00_header.in: Only enable gfxterm when
48308 convert_system_path_to_grub_path() succeeds.
48309
48310 2007-05-20 Robert Millan <rmh@aybabtu.com>
48311
48312 * util/update-grub_lib.in: New file.
48313 * DISTLIST: Add update-grub_lib.in.
48314 * conf/common.rmk: Generate update-grub_lib and install it in
48315 $(lib_DATA).
48316 * Makefile.in: Add install routine for $(lib_DATA).
48317
48318 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48319 function provided by update-grub_lib to support arbitrary paths of
48320 unifont.pff.
48321 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48322 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48323
48324 2007-05-19 Robert Millan <rmh@aybabtu.com>
48325
48326 * commands/i386/cpuid.c: New module.
48327 * DISTLIST: Add it.
48328 * conf/i386-efi.rmk: Enable cpuid.mod.
48329 * conf/i386-pc.rmk: Likewise.
48330
48331 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48332
48333 * kern/disk.c (grub_disk_read): Check return value of
48334 grub_realloc().
48335
48336 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48337
48338 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48339 arrays.
48340 * disk/raid.c (grub_raid_open): Likewise.
48341
48342 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48343
48344 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48345 stack instead of on the heap.
48346
48347 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48348 before doing a read on it.
48349
48350 * configure.ac: Only use -fno-stack-protector for the target
48351 environment.
48352
48353 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48354
48355 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48356 __attribute_ ((unused)) to mode_type argument.
48357
48358 * util/getroot.c (grub_guess_root_device): Fix #endif.
48359
48360 * kern/misc.c (memcmp): Fix prototype.
48361
48362 * include/grub/partition.h [GRUB_UTIL]
48363 (grub_gpt_partition_map_init): Add prototype.
48364 (grub_gpt_partition_map_fini): Likewise.
48365
48366 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48367 at the right place.
48368
48369 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48370 (grub_fat_read_data): Likewise.
48371 (grub_fat_find_dir): Likewise.
48372
48373 * font/manager.c (find_glyph): Make table a const.
48374 (grub_font_get_glyph): Remove bitmap from if statement.
48375
48376 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48377
48378 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48379 code, first search for device in /dev/mapper, then in /dev.
48380 (grub_util_get_grub_dev): New function.
48381 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48382 prototype.
48383 * util/grub-probe.c (probe): Remove check for RAID, call
48384 grub_util_get_grub_dev() instead of
48385 grub_util_biosdisk_get_grub_dev().
48386 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48387 grub_util_biosdisk_get_grub_dev().
48388 * util/i386/pc/grub-setup.c (main): Likewise.
48389
48390 2007-05-16 Robert Millan <rmh@aybabtu.com>
48391
48392 * DISTLIST: Update for the latest changes.
48393 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48394 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48395 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48396 grub/util/biosdisk.h.
48397 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48398 grub/util/biosdisk.h.
48399
48400 2007-05-16 Robert Millan <rmh@aybabtu.com>
48401
48402 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48403
48404 2007-05-16 Robert Millan <rmh@aybabtu.com>
48405
48406 * util/i386/efi/grub-install.in: New.
48407 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48408 newly added grub-install.
48409 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48410 include.
48411 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48412 grub/util/biosdisk.h.
48413 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48414 grub/util/biosdisk.h.
48415
48416 2007-05-16 Robert Millan <rmh@aybabtu.com>
48417
48418 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48419 * include/grub/util/biosdisk.h: ... here.
48420 * util/i386/pc/biosdisk.c: Moved to ...
48421 * util/biosdisk.c: ... here.
48422 * util/i386/pc/getroot.c: Moved to ...
48423 * util/getroot.c: ... here.
48424 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48425 * util/grub-mkdevicemap.c: ... here.
48426 * util/i386/pc/grub-probe.c: Moved to ...
48427 * util/grub-probe.c: ... here.
48428
48429 2007-05-15 Robert Millan <rmh@aybabtu.com>
48430
48431 * util/update-grub.in: Remove duplicated line in grub.cfg header
48432 message.
48433
48434 2007-05-13 Robert Millan <rmh@aybabtu.com>
48435
48436 * util/update-grub.in: Fix a few assumptions about the devices holding
48437 /, /boot and /boot/grub being the same.
48438 * util/grub.d/00_header.in: Likewise.
48439 * util/grub.d/10_hurd.in: Likewise.
48440 * util/grub.d/10_linux.in: Likewise.
48441
48442 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48443 patterns. Use that to define the `.old' suffix as older than `'.
48444
48445 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48446
48447 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48448 the grub.cfg header message.
48449
48450 2007-05-11 Robert Millan <rmh@aybabtu.com>
48451
48452 * util/update-grub.in: Create device.map if it doesn't already exist,
48453 before attempting to run grub-probe.
48454 Check for grub-probe and grub-mkdevicemap with the same code
48455 grub-install is using.
48456 Remove test mode.
48457
48458 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48459
48460 * Makefile.in: Add the datarootdir autoconf variable.
48461
48462 2007-05-09 Robert Millan <rmh@aybabtu.com>
48463
48464 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48465 fail gracefully if dev->disk->partition == NULL.
48466
48467 2007-05-07 Robert Millan <rmh@aybabtu.com>
48468
48469 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48470 determine partition map module.
48471 * util/i386/pc/grub-install.in: Use this feature to decide which
48472 partition module to load, instead of hardcoding pc and gpt.
48473
48474 2007-05-07 Robert Millan <rmh@aybabtu.com>
48475
48476 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48477 source directory differs from build directory.
48478
48479 2007-05-05 Robert Millan <rmh@aybabtu.com>
48480
48481 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48482 initialisation.
48483
48484 2007-05-05 Robert Millan <rmh@aybabtu.com>
48485
48486 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48487
48488 2007-05-05 Robert Millan <rmh@aybabtu.com>
48489
48490 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48491 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48492
48493 2007-05-05 Robert Millan <rmh@aybabtu.com>
48494
48495 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48496 (grub_probe_SOURCES): Likewise.
48497 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48498 GPT and initialize dos_part and bsd_part accordingly.
48499 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48500 install_bsd_part.
48501 (main): Activate gpt module for use during partition identification,
48502 and deactivate it afterwards.
48503 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48504 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48505 partition identification, and deactivate it afterwards.
48506
48507 2007-05-05 Robert Millan <rmh@aybabtu.com>
48508
48509 * term/i386/pc/console.c (grub_console_fini): Call
48510 grub_term_set_current() before grub_term_unregister().
48511
48512 2007-05-04 Robert Millan <rmh@aybabtu.com>
48513
48514 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48515 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48516 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48517 and update-grub_DATA.
48518 * conf/common.rmk: Build and install update-grub components.
48519 * conf/common.mk: Regenerate.
48520 * util/update-grub.in: New. Core of update-grub.
48521 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48522 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48523 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48524 * util/grub.d/README: New. Document grub.d directory layout.
48525
48526 2007-05-01 Robert Millan <rmh@aybabtu.com>
48527
48528 * util/grub-emu.c: Move initialization functions
48529 grub_util_biosdisk_init() and grub_init_all() before
48530 grub_util_biosdisk_get_grub_dev(), which relies on them.
48531
48532 2007-04-19 Robert Millan <rmh@aybabtu.com>
48533
48534 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48535 it is used later.
48536
48537 2007-04-18 Jerone Young <jerone@gmail.com>
48538
48539 * kernel/elf.c: Add missing parenthesis for conditional statement
48540 stanza.
48541
48542 2007-04-10 Jerone Young <jerone@gmail.com>
48543
48544 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48545 continue on and look for device node with real device name.
48546
48547 2007-04-10 Jerone Young <jerone@gmail.com>
48548
48549 * configure.ac: Add argument for autoconf to use transformation
48550 ability.
48551 * Makefile.in: Add autoconf package transformation code.
48552 * util/i386/pc/grub-install.in: Likewise.
48553 * util/powerpc/ieee1275/grub-install.in: Likewise.
48554
48555 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48556
48557 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48558 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48559 (EXT2_REVISION): Likewise.
48560 (EXT2_INODE_SIZE): Likewise.
48561 (struct grub_ext2_block_group): Added a missing member
48562 "used_dirs".
48563 (grub_ext2_read_inode): Divide by the inode size in a superblock
48564 instead of 128 to obtain INODES_PER_BLOCK.
48565 Use the macro EXT2_INODE_SIZE instead of directly using
48566 SBLOCK->INODE_SIZE.
48567
48568 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48569
48570 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48571 superblock instead of the structure size to compute an
48572 offset. This fixes the problem that GRUB could not read a
48573 filesystem when inode size is different from 128-byte.
48574
48575 2007-03-05 Marco Gerards <marco@gnu.org>
48576
48577 * normal/main.c (read_config_file): When "menu" is not set, create
48578 an initial context.
48579
48580 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48581
48582 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48583 (HEAP_LIMIT): New macro.
48584 (grub_claim_heap): Claim memory up to `heaplimit'.
48585
48586 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48587
48588 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48589 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48590 (_start): Likewise.
48591 (grub_arch_modules_addr): Return address after `_end'.
48592 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48593 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48594 (add_segments): Calculate `_end' from phdr size and location.
48595 (ALIGN_UP): Moved to ...
48596 * include/grub/misc.h: here.
48597 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48598 New macro.
48599 (GRUB_IEEE1275_MODULE_BASE): Removed.
48600
48601 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48602
48603 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48604 loop boundary.
48605
48606 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48607
48608 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48609 All users updated.
48610 (grub_elf64_load_hook_t): Likewise.
48611 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48612 debug output.
48613
48614 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48615
48616 * kern/mm.c: Update copyright.
48617 (grub_mm_debug): Correct syntax error.
48618 (grub_mm_dump_free): New function.
48619 (grub_debug_free): Call `grub_free'.
48620 * include/grub/mm.h: Update copyright.
48621 (grub_mm_dump_free): Add declaration.
48622
48623 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48624
48625 * include/grub/ieee1275/ieee1275.h: Update copyright.
48626 * kern/powerpc/ieee1275/init.c: Likewise.
48627 * kern/powerpc/ieee1275/openfw.c: Likewise.
48628
48629 * loader/powerpc/ieee1275/linux.c: Likewise.
48630 * include/grub/elfload.h: Likewise.
48631 * kern/elf.c: Likewise.
48632 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48633 callers.
48634 (grub_elf64_load): Likewise.
48635 (grub_elf32_load_segment): Move to a nested function.
48636 (grub_elf64_load_segment): Likewise.
48637
48638 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48639
48640 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48641 prototype.
48642 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48643 (grub_heap_len): Likewise.
48644 (HEAP_SIZE): New macro.
48645 (grub_claim_heap): New function.
48646 (grub_machine_init): Don't claim heap directly. Call
48647 `grub_claim_heap'.
48648 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48649 (grub_available_iterate): New function.
48650
48651 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48652
48653 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48654 * configure.ac: Use it for testing the HOST and TARGET compilers.
48655
48656 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48657
48658 * Makefile.in (enable_grub_emu): New variable.
48659 * configure.ac (--enable-grub-emu): New option.
48660 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48661 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48662 * conf/i386-pc.rmk: Likewise.
48663 * conf/powerpc-ieee1275.rmk: Likewise.
48664 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48665
48666 2006-12-12 Marco Gerards <marco@gnu.org>
48667
48668 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48669
48670 * kern/env.c (grub_env_unset): Don't free the member `value' when
48671 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48672 pointer.
48673
48674 * normal/main.c (current_menu): Removed.
48675 (free_menu): Unset the `menu' environment variable.
48676 (grub_normal_menu_addentry): Make use of the environment variable
48677 `menu', instead of using the global `current_menu'. Allocate
48678 memory for the sourcecode of this entry.
48679 (read_config_file): New argument `nested', changed all callers.
48680 Only in the case of a new context, initialize a new menu. Set the
48681 `menu' environment variable.
48682 (grub_normal_execute): Don't set and unset the environment
48683 variable `menu' here anymore. Only free the menu when leaving the
48684 context.
48685
48686 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48687 leak.
48688
48689 2006-12-11 Marco Gerards <marco@gnu.org>
48690
48691 * normal/menu_entry.c (run): Fix off by one bug so the last line
48692 is executed. Move the loader check to outside the loop.
48693
48694 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48695
48696 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48697
48698 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48699
48700 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48701 the number of sectors. Reported by Andrey Shuvikov
48702 <mr_hyro@yahoo.com>.
48703
48704 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48705
48706 * kern/disk.c (grub_disk_read): When there is a read error, always
48707 try to read only the necessary data.
48708
48709 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48710 disk/raid.c.
48711 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48712 prototype.
48713 [GRUB_UTIL] (grub_raid_fini): Likewise.
48714 [GRUB_UTIL] (grub_lvm_init): Likewise.
48715 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48716 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48717 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48718 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48719 and grub_raid_fini().
48720
48721 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48722
48723 * include/grub/types.h (__unused): Rename to UNUSED.
48724 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48725 (grub_elf64_size): Likewise.
48726
48727 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48728
48729 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48730 grub_error_push and grub_error_pop in the error-handling path.
48731 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48732 length.
48733
48734 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48735
48736 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48737 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48739 (kernel_elf_SOURCES): Likewise.
48740 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48741 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48742 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48743 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48744 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48745 (elf_mod_SOURCES): New variable.
48746 (elf_mod_CFLAGS): Likewise.
48747 (elf_mod_LDFLAGS): Likewise.
48748 * include/grub/types.h (__unused): New macro.
48749 * include/grub/elfload.h: New file.
48750 * kern/elf.c: Likewise.
48751 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48752 (ELF32_LOADMASK): New macro.
48753 (ELF64_LOADMASK): Likewise.
48754 (vmlinux): Removed.
48755 (grub_linux_load32): New function.
48756 (grub_linux_load64): Likewise.
48757 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48758 Use grub_elf_t instead of grub_file_t.
48759
48760 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48761
48762 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48763 `catch_result' to struct set_color_args.
48764
48765 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48766
48767 * normal/menu.c: Include grub/script.h.
48768 * normal/menu_entry.c: Likewise.
48769 * include/grub/normal.h: Do not include grub/script.h.
48770
48771 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48772
48773 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48774
48775 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48776
48777 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48778 disk.
48779 (grub_disk_close): Print debug messages when closing a disk.
48780 (grub_disk_read): Print debug messages when disk read fails.
48781 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48782 filesystem type.
48783 * kern/partition.c: Include misc.h.
48784 (grub_partition_iterate): Print debug messages when detecting
48785 partition type.
48786
48787 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48788
48789 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48790 is negative.
48791 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48792
48793 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48794
48795 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48796 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48797
48798 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48799
48800 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48801 instead of sizeof(lv). Patch by Michael Guntsche.
48802
48803 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48804
48805 * disk/lvm.c: Rename VGS to VG_LIST.
48806 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48807 (grub_lvm_open): Likewise.
48808 Thanks to Michael Guntsche for finding this bug.
48809
48810 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48811
48812 * configure.ac (AC_INIT): Bumped to 1.95.
48813
48814 2006-10-14 Robert Millan <rmh@aybabtu.com>
48815
48816 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48817 with "/dev/.static/dev/md".
48818
48819 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48820
48821 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48822 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48823 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48824 DRIVE_NAME are always freed.
48825
48826 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48827 DOS_PART, as a DOS partition is counted from one instead of zero
48828 now. Reported by Robert Millan.
48829
48830 2006-10-14 Robert Millan <rmh@aybabtu.com>
48831
48832 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48833 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48834 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48835 string returned by grub_guess_root_device.
48836 * util/i386/pc/grub-setup.c: Likewise.
48837 * util/i386/pc/grub-probefs.c: Likewise.
48838
48839 * util/i386/pc/grub-probefs.c: Rename to ...
48840 * util/i386/pc/grub-probe.c: ... this.
48841 * DISTLIST: Remove grub-probefs, add grub-probe.
48842 * conf/i386-efi.rmk: Likewise.
48843 * conf/i386-pc.rmk: Likewise.
48844 * util/i386/pc/grub-install.in: Likewise.
48845
48846 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48847 choose which information we want to print.
48848
48849 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48850
48851 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48852 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48853 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48854 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48855 video/readers/tga.c and video/i386/pc/vbeutil.c.
48856
48857 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48858
48859 Added support for RAID and LVM.
48860
48861 * disk/lvm.c: New file.
48862 * disk/raid.c: Likewise.
48863 * include/grub/lvm.h: Likewise.
48864 * include/grub/raid.h: Likewise.
48865 * include/grub/util/lvm.h: Likewise.
48866 * include/grub/util/raid.h: Likewise.
48867 * util/lvm.c: Likewise.
48868 * util/raid.c: Likewise.
48869
48870 * include/grub/disk.h (grub_disk_dev_id): Add
48871 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48872 (grub_disk_get_size): New prototype.
48873 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48874 returns a partition.
48875 (grub_disk_get_size): New function.
48876
48877 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48878 verbatim if grub_install_dos_part is -2.
48879
48880 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48881 and LVM devices.
48882
48883 * util/i386/pc/grub-setup.c (setup): New argument
48884 MUST_EMBED. Force embedding of GRUB when the argument is
48885 true. Close FILE before returning.
48886 (main): Add support for RAID and LVM.
48887
48888 * conf/common.rmk: Add RAID and LVM modules.
48889 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48890 util/lvm.c.
48891 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48892
48893 * kern/misc.c (grub_strstr): New function.
48894 * include/grub/misc.h (grub_strstr): New prototype.
48895
48896 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48897
48898 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48899
48900 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48901
48902 * kern/misc.c (grub_strtoull): Guess the base only if not
48903 specified.
48904
48905 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48906
48907 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48908 PowerMac support.
48909
48910 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48911
48912 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48913
48914 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48915 Remove `flags' argument. All callers changed.
48916 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48917 (IEEE1275_IHANDLE_INVALID): New variable.
48918 (IEEE1275_CELL_INVALID): New variable.
48919 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48920 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48921 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48922 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48923 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48924 codes from Open Firmware. All callers updated.
48925 (grub_ieee1275_next_property): Directly return Open Firmware return
48926 code.
48927 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48928 Standardize error checking from `grub_ieee1275_get_property'.
48929 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48930 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48931
48932 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48933
48934 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48935 `instance_to_package_args' to `instance_to_path_args'.
48936
48937 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48938 `grub_ieee1275_chosen'.
48939
48940 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48941 `grub_ieee1275_interpret'.
48942
48943 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48944
48945 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48946
48947 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48948
48949 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48950 (__cmpdi): Likewise.
48951
48952 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48953 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48954 `grub_ssize_t'.
48955
48956 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48957
48958 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48959 to type `grub_ssize_t'.
48960 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48961
48962 2006-09-22 Marco Gerards <marco@gnu.org>
48963
48964 * normal/script.c (grub_script_create_cmdmenu): Skip leading
48965 newlines.
48966
48967 2006-09-22 Marco Gerards <marco@gnu.org>
48968
48969 * commands/echo.c: New file.
48970
48971 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
48972
48973 * conf/common.rmk (echo_mod_SOURCES): New variable.
48974 (echo_mod_CFLAGS): Likewise.
48975 (echo_mod_LDFLAGS): Likewise.
48976
48977 2006-09-22 Marco Gerards <marco@gnu.org>
48978
48979 * normal/main.c (get_line): Malloc memory instead of using
48980 preallocated memory. Removed the arguments `cmdline' and
48981 `max_len'. Updated all callers.
48982
48983 2006-09-22 Marco Gerards <marco@gnu.org>
48984
48985 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
48986 (normal_mod_DEPENDENCIES): Likewise.
48987
48988 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
48989 (normal_mod_DEPENDENCIES): Likewise.
48990
48991 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
48992
48993 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
48994
48995 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
48996 programs.
48997 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
48998 (normal_mod_DEPENDENCIES): Likewise.
48999 * conf/i386-pc.mk: Regenerate.
49000 * conf/i386-efi.mk: Likewise
49001 * conf/common.mk: Likewise.
49002 * conf/powerpc-ieee1275.mk: Likewise.
49003 * conf/sparc64-ieee1275.mk: Likewise.
49004
49005 2006-09-22 Robert Millan <rmh@aybabtu.com>
49006
49007 Sync with i386 version.
49008 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49009 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49010
49011 2006-09-21 Robert Millan <rmh@aybabtu.com>
49012
49013 Import from GRUB Legacy (lib/device.c):
49014 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49015 (init_device_map) [__linux__]: Add support for I2O devices.
49016
49017 2006-09-14 Marco Gerards <marco@gnu.org>
49018
49019 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49020 `-melf_i386'.
49021
49022 2006-09-14 Robert Millan <rmh@aybabtu.com>
49023
49024 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49025 /boot/grub/*.lst.
49026
49027 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49028
49029 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49030 before adding it to device.map.
49031
49032 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49033
49034 * genmk.rb: Let GCC generate dependencies the first time it
49035 compiles a file; using the -MD option.
49036 * conf/common.mk: Regenerate.
49037 * conf/i386-pc.mk: Likewise.
49038 * conf/i386-efi.mk: Likewise.
49039 * conf/powerpc-ieee1275.mk: Likewise.
49040 * conf/sparc64-ieee1275.mk: Likewise.
49041
49042 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49043
49044 Move the prototypes of grub_setjmp and grub_longjmp to
49045 cpu/setjmp.h, so that each architecture may specify different
49046 attributes.
49047
49048 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49049 (grub_longjmp): Likewise.
49050 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49051 (grub_longjmp): Likewise.
49052 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49053 (grub_longjmp): Likewise.
49054
49055 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49056 [!GRUB_UTIL] (grub_longjmp): Removed.
49057
49058 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49059
49060 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49061 "color!" method does not return any value.
49062
49063 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49064
49065 * include/grub/bitmap.h: New file.
49066
49067 * include/grub/i386/pc/vbeutil.h: Likewise.
49068
49069 * video/bitmap.c: Likewise.
49070
49071 * video/readers/tga.c: Likewise.
49072
49073 * video/i386/pc/vbeutil.c: Likewise.
49074
49075 * commands/videotest.c: Code cleanup and updated to reflect to new
49076 video API.
49077
49078 * term/gfxterm.c: Likewise.
49079
49080 * video/video.c: Likewise.
49081
49082 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49083 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49084 (bitmap_mod_SOURCES): New entry.
49085 (bitmap_mod_CFLAGS): Likewise.
49086 (bitmap_mod_LDFLAGS): Likewise.
49087 (tga_mod_SOURCES): Likewise.
49088 (tga_mod_CFLAGS): Likewise.
49089 (tga_mod_LDFLAGS): Likewise.
49090
49091 * include/grub/video.h (grub_video_blit_operators): New enum type.
49092 (grub_video_render_target): Changed as forward declaration and moved
49093 actual definition to be video driver specific.
49094 (grub_video_adapter.blit_bitmap): Added blitting operator.
49095 (grub_video_adapter.blit_render_target): Likewise.
49096 (grub_video_blit_bitmap): Likewise.
49097 (grub_video_blit_render_target): Likewise.
49098
49099 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49100 driver specific render target definition.
49101 (grub_video_vbe_map_rgba): Added driver internal helper.
49102 (grub_video_vbe_unmap_color): Updated to use
49103 grub_video_i386_vbeblit_info.
49104 (grub_video_vbe_get_video_ptr): Likewise.
49105
49106 * include/grub/i386/pc/vbeblit.h
49107 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49108 grub_video_i386_vbeblit_info.
49109 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49110 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49111 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49112 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49113 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49114 (grub_video_i386_vbeblit_index_index): Likewise.
49115 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49116 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49117 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49118 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49119 operator.
49120 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49121 operator.
49122
49123 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49124 include/grub/i386/pc/vbeblit.h.
49125
49126 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49127 Updated to use grub_video_i386_vbeblit_info.
49128 (grub_video_i386_vbefill_R8G8B8): Likewise.
49129 (grub_video_i386_vbefill_index): Likewise.
49130 (grub_video_i386_vbefill): Added generic filler.
49131
49132 * video/i386/pc/vbefill.c: Updated to reflect changes on
49133 include/grub/i386/pc/vbefill.h.
49134
49135 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49136 grub_video_i386_vbeblit_info.
49137 (grub_video_vbe_unmap_color): Likewise.
49138 (grub_video_vbe_blit_glyph): Likewise.
49139 (grub_video_vbe_scroll): Likewise.
49140 (grub_video_vbe_draw_pixel): Removed function.
49141 (grub_video_vbe_get_pixel): Likewise.
49142 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49143 updated code to use it.
49144 (common_blitter): Added common blitter for render target and bitmap.
49145 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49146 (grub_video_vbe_blit_render_target): Likewise.
49147
49148 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49149
49150 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49151 is in text mode if there is no console control protocol instance
49152 available.
49153
49154 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49155
49156 * include/grub/video.h: Code cleanup.
49157
49158 * include/grub/i386/pc/vbe.h: Likewise.
49159
49160 * video/i386/pc/vbe.c: Likewise.
49161
49162 * video/i386/pc/vbeblit.c: Likewise.
49163
49164 * video/i386/pc/vbefill.c: Likewise.
49165
49166 * video/video.c: Likewise. Also added more comments.
49167
49168 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49169
49170 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49171 (struct grub_biosdisk_dap): Likewise.
49172
49173 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49174 linkage settings for all functions.
49175
49176 2006-07-12 Marco Gerards <marco@gnu.org>
49177
49178 * configure.ac (--enable-mm-debug): Fix typo.
49179
49180 * genkernsyms.sh.in: Use proper quoting for `CC'.
49181
49182 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49183
49184 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49185 (normal_mod_ASFLAGS): Remove "-m32".
49186
49187 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49188
49189 * util/misc.c: Include config.h.
49190 [!HAVE_MEMALIGN]: Do not include malloc.h.
49191 (grub_memalign): Use posix_memalign, if present. Then, use
49192 memalign, if present. Otherwise, emit an error.
49193
49194 * util/grub-emu.c: Do not include malloc.h.
49195
49196 * include/grub/util/misc.h: Include unistd.h. This is required for
49197 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49198 D. Eades III <hde@foobar-qux.org>.
49199
49200 * configure.ac (AC_GNU_SOURCE): Added.
49201 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49202 type.
49203
49204 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49205
49206 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49207 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49208
49209 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49210
49211 * include/grub/types.h (grub_host_addr_t): Rename to
49212 grub_target_addr_t.
49213 (grub_host_off_t): Rename to grub_target_off_t.
49214 (grub_host_size_t): Rename to grub_target_size_t.
49215 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49216 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49217
49218 * include/grub/kernel.h (struct grub_module_header): Change type
49219 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49220 (grub_module_info): Likewise.
49221
49222 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49223
49224 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49225 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49226 Velazquez <jesus.velazquez@gmail.com>.
49227
49228 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49229
49230 Count partitions from 1 instead of 0 in the string representation
49231 of partitions. Still use 0-based internally.
49232
49233 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49234 (sun_partition_map_iterate): Use grub_partition_t instead of
49235 struct grub_partition *. Cast DESC->START_CYLINDER to
49236 grub_uint64_t after converting the endian.
49237 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49238 (sun_partition_map_get_name): Add 1 to P->INDEX.
49239
49240 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49241 PCDATA->DOS_PART.
49242 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49243
49244 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49245 zero instead of one.
49246 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49247 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49248
49249 * partmap/apple.c (apple_partition_map_iterate): Change the type
49250 of POS to unsigned.
49251 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49252 (apple_partition_map_get_name): Add 1 into P->INDEX.
49253
49254 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49255 of POS to unsigned.
49256 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49257 calculate the offset of a partition.
49258 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49259 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49260
49261 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49262 SECTOR to grub_disk_addr_t.
49263 (acorn_partition_map_iterate): Likewise.
49264 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49265 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49266 top.
49267 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49268
49269 * kern/i386/pc/init.c (make_install_device): Add 1 into
49270 GRUB_INSTALL_DOS_PART.
49271
49272 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49273 conditional.
49274
49275 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49276
49277 Clean up the code to support 64-bit addressing in disks and
49278 files. This change is not enough for filesystems yet.
49279
49280 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49281 type of "start" to grub_uint64_t.
49282 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49283 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49284 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49285 convert addresses.
49286
49287 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49288 to grub_disk_addr_t.
49289
49290 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49291 string.
49292
49293 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49294
49295 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49296 to char *.
49297
49298 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49299
49300 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49301
49302 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49303
49304 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49305 to grub_off_t, to detect an error from grub_file_seek.
49306 (grub_multiboot_load_elf32): Likewise.
49307
49308 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49309 maximum unsigned long value when an overflow is detected.
49310 (grub_strtoull): New function.
49311 (grub_divmod64): Likewise.
49312 (grub_lltoa): use grub_divmod64.
49313
49314 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49315 grub_disk_addr_t.
49316 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49317 the pointer to next character. Use grub_strtoull instead of
49318 grub_strtoul.
49319 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49320 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49321 respectively.
49322
49323 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49324 return value is signed.
49325 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49326 test if OFFSET is less than zero, as OFFSET is unsigned now.
49327
49328 * kern/disk.c (struct grub_disk_cache): Change the type of
49329 "sector" to grub_disk_addr_t.
49330 (grub_disk_cache_get_index): Change the type of SECTOR to
49331 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49332 unsigned after shifting.
49333 (grub_disk_cache_invalidate): Change the type of SECTOR to
49334 grub_disk_addr_t.
49335 (grub_disk_cache_unlock): Likewise.
49336 (grub_disk_cache_store): Likewise.
49337 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49338 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49339 grub_disk_addr_t and grub_uint64_t, respectively.
49340 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49341 body, as the value of OFFSET is tweaked by
49342 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49343 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49344 respectively.
49345 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49346 body, as the value of OFFSET is tweaked by
49347 grub_disk_check_range. Change the types of LEN and N to
49348 grub_size_t.
49349
49350 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49351 and "saved_offset" to grub_off_t.
49352 (test_header): Cast BUF to char *.
49353 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49354 to char *.
49355 (grub_gzio_read): Change the types of OFFSET and SIZE to
49356 grub_off_t and grub_size_t, respectively.
49357
49358 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49359 Removed.
49360 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49361 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49362 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49363 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49364 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49365
49366 * include/grub/types.h (grub_off_t): Unconditionally set to
49367 grub_uint64_t.
49368 (grub_disk_addr_t): Changed to grub_uint64_t.
49369
49370 * include/grub/partition.h (struct grub_partition): Change the
49371 types of "start", "len" and "offset" to grub_disk_addr_t,
49372 grub_uint64_t and grub_disk_addr_t, respectively.
49373 (grub_partition_get_start): Return grub_disk_addr_t.
49374 (grub_partition_get_len): Return grub_uint64_t.
49375
49376 * include/grub/misc.h (grub_strtoull): New prototype.
49377 (grub_divmod64): Likewise.
49378
49379 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49380 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49381 grub_off_t, respectively.
49382 All callers and references changed.
49383
49384 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49385 grub_size_t in "read".
49386 All callers and references changed.
49387
49388 * include/grub/file.h (struct grub_file): Change the types of
49389 "offset" and "size" to grub_off_t and grub_off_t,
49390 respectively. Change the type of SECTOR to grub_disk_addr_t in
49391 "read_hook".
49392 (grub_file_read): Change the type of LEN to grub_size_t.
49393 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49394 grub_off_t.
49395 (grub_file_size): Return grub_off_t.
49396 (grub_file_tell): Likewise.
49397 All callers and references changed.
49398
49399 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49400 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49401 "write".
49402 (struct grub_disk): Change the type of "total_sectors" to
49403 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49404 "read_hook".
49405 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49406 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49407 (grub_disk_write): Likewise.
49408 All callers and references changed.
49409
49410 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49411 char * for grub_strncmp to silence gcc.
49412 (grub_iso9660_mount): Likewise.
49413 (grub_iso9660_mount): Likewise.
49414 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49415 return statement.
49416 (grub_iso9660_iterate_dir): Likewise.
49417 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49418
49419 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49420 LEN to grub_disk_addr_t and grub_size_t, respectively.
49421
49422 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49423
49424 * fs/jfs.c (grub_jfs_read_file): Likewise.
49425
49426 * fs/minix.c (grub_jfs_read_file): Likewise.
49427
49428 * fs/sfs.c (grub_jfs_read_file): Likewise.
49429
49430 * fs/ufs.c (grub_jfs_read_file): Likewise.
49431
49432 * fs/xfs.c (grub_jfs_read_file): Likewise.
49433
49434 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49435 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49436 respectively.
49437
49438 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49439 BLKNR to -1 instead of returning GRUB_ERRNO.
49440 (grub_ext2_read_file): Change the types of SECTOR and
49441 LEN to grub_disk_addr_t and grub_size_t, respectively.
49442
49443 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49444 LEN to grub_disk_addr_t and grub_size_t, respectively.
49445
49446 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49447 grub_file_read.
49448
49449 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49450 string. Do not cast SECTOR explicitly.
49451
49452 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49453 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49454 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49455 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49456 over 2TB and LBA mode is not supported, raise an error.
49457 (get_safe_sectors): New function.
49458 (grub_biosdisk_read): Use get_safe_sectors.
49459 (grub_biosdisk_write): Likewise.
49460
49461 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49462 (grub_efidisk_write): Likewise.
49463
49464 * disk/loopback.c (delete_loopback): Cosmetic changes.
49465 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49466 correctly.
49467 (grub_loopback_open): Likewise.
49468 (grub_loopback_read): Likewise. Also, change the type of POS to
49469 grub_off_t, and fix the usage of grub_memset.
49470
49471 * commands/i386/pc/play.c: Include grub/machine/time.h.
49472
49473 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49474 print FILE->SIZE.
49475
49476 * commands/configfile.c: Include grub/env.h.
49477
49478 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49479 GRUB_ERRNO directly instead. Change the type of POS to
49480 grub_off_t. Follow the coding standard.
49481
49482 * commands/blocklist.c: Include grub/partition.h.
49483 (grub_cmd_blocklist): Return an error if the underlying device is
49484 not a disk. Take the starting sector of a partition into account,
49485 if a partition is used.
49486
49487 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49488 a length field.
49489 (lba_mode): Support 64-bit addresses.
49490 (chs_mode): Likewise.
49491 (copy_buffer): Adapted to the new offsets of a length field and a
49492 segment field.
49493 (blocklist_default_start): Allocate 64-bit space.
49494
49495 * boot/i386/pc/boot.S (force_lba): Removed.
49496 (boot_drive): Moved to under KERNEL_SECTOR.
49497 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49498 space.
49499 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49500 is useless.
49501 (lba_mode): Refactored to support a 64-bit address. More size
49502 optimization.
49503 (setup_sectors): Likewise.
49504
49505 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49506
49507 * DISTLIST: Added include/grub/i386/linux.h. Removed
49508 include/grub/i386/pc/linux.h
49509
49510 * configure.ac (AC_INIT): Bumped to 1.94.
49511
49512 * config.guess: Updated from gnulib.
49513 * config.sub: Likewise.
49514 * install-sh: Likewise.
49515 * mkinstalldirs: Likewise.
49516
49517 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49518
49519 * conf/common.rmk (grub_modules_init.lst): Depended on
49520 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49521 MODSRCFILES.
49522
49523 * genmk.rb (PModule::rule): Reverted the previous change.
49524
49525 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49526
49527 * conf/common.rmk (grub_modules_init.lst): Depends on
49528 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49529 that the target does not exist before producing.
49530 (grub_modules_init.h): Remove the target before generating.
49531 (grub_emu_init.c): Likewise.
49532
49533 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49534
49535 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49536
49537 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49538 for the target-specific tests. Make sure that we also have the
49539 up-to-date target variables for those tests.
49540
49541 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49542
49543 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49544 (PModule::rule): Likewise.
49545
49546 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49547
49548 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49549 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49550 target-specific flags should be prefixed.
49551 (PModule::rule): Likewise.
49552
49553 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49554
49555 * configure.ac (CMP): Check if cmp is available explicitly.
49556
49557 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49558
49559 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49560 (target_cpu): New variable.
49561 (pkglibdir): Use target_cpu instead of host_cpu.
49562
49563 * util/i386/pc/grub-install.in (host_cpu): Removed.
49564 (target_cpu): New variable.
49565 (pkglibdir): Use target_cpu instead of host_cpu.
49566
49567 * util/genmoddep.c: Removed.
49568
49569 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49570 instead of GRUB_HOST_SIZEOF_VOID_P.
49571 * kern/dl.c: Likewise.
49572
49573 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49574 ...
49575 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49576 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49577 (GRUB_TARGET_SIZEOF_LONG): ... this.
49578 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49579 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49580 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49581 to ...
49582 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49583 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49584 (GRUB_TARGET_SIZEOF_LONG): ... this.
49585 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49586 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49587 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49588 to ...
49589 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49590 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49591 (GRUB_TARGET_SIZEOF_LONG): ... this.
49592 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49593 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49594
49595 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49596 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49597 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49598 instead of GRUB_HOST_SIZEOF_LONG.
49599 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49600 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49601 GRUB_CPU_WORDS_BIGENDIAN.
49602 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49603 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49604 grub_host_ssize_t.
49605
49606 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49607 (genmoddep_SOURCES): Likewise.
49608 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49609 (genmoddep_SOURCES): Likewise.
49610 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49611 (genmoddep_SOURCES): Likewise.
49612 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49613 Likewise.
49614 (genmoddep_SOURCES): Likewise.
49615
49616 * genmoddep.awk: New file.
49617
49618 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49619 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49620 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49621 (PModule::rule): Likewise.
49622 (Program::rule): Likewise.
49623 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49624 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49625 respectively.
49626
49627 * configure.ac: Rewritten intensively to use host and target
49628 instead of build and host, respectively.
49629
49630 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49631 (host_cpu): Removed.
49632 (target_cpu): New variable.
49633 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49634 (BUILD_CC): Removed.
49635 (BUILD_CFLAGS): Likewise.
49636 (BUILD_CPPFLAGS): Likewise.
49637 (TARGET_CC): New variable.
49638 (TARGET_CFLAGS): Likewise.
49639 (TARGET_CPPFLAGS): Likewise.
49640 (TARGET_LDFLAGS): Likewise.
49641 (AWK): Likewise.
49642 (include): Use target_cpu instead of host_cpu.
49643 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49644
49645 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49646
49647 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49648
49649 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49650 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49651 field 'false' to 'exec_on_false'.
49652 (grub_script_create_cmdif): Renamed argument names to reflect above
49653 changes.
49654
49655 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49656
49657 * normal/script.c (grub_script_create_cmdif): Likewise.
49658
49659 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49660
49661 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49662 top.
49663 (grub_hfsplus_btree_recptr): Likewise.
49664 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49665 FILEBLOCK both to pass a block number and store next block
49666 number.
49667 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49668 overflow file correctly. Specify errors appropriately, because
49669 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49670 grub_hfsplus_btree_recptr to get the pointer to a found key.
49671 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49672 is found.
49673
49674 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49675 linux.mod.
49676 (_linux_mod_SOURCES): New variable.
49677 (_linux_mod_CFLAGS): Likewise.
49678 (_linux_mod_LDFLAGS): Likewise.
49679 (linux_mod_SOURCES): Likewise.
49680 (linux_mod_CFLAGS): Likewise.
49681 (linux_mod_LDFLAGS): Likewise.
49682
49683 * DISTLIST: Added loader/i386/efi/linux.c,
49684 loader/i386/efi/linux_normal.c and
49685 include/grub/i386/efi/loader.h.
49686
49687 * loader/i386/efi/linux.c: New file.
49688 * loader/i386/efi/linux_normal.c: Likewise.
49689 * include/grub/i386/efi/loader.h: Likewise.
49690
49691 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49692
49693 * commands/blocklist.c: New file.
49694
49695 * DISTLIST: Added commands/blocklist.c.
49696
49697 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49698 color for the background, and a darker color for the foreground.
49699 (grub_console_checkkey): Return READ_KEY.
49700 (grub_console_cls): Set the background to
49701 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49702
49703 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49704
49705 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49706 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49707
49708 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49709 prototype.
49710
49711 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49712 BG. The spec is wrong again.
49713
49714 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49715 prototype.
49716 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49717
49718 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49719 commands/blocklist.c.
49720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49721
49722 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49723 (blocklist_mod_SOURCES): New variable.
49724 (blocklist_mod_CFLAGS): Likewise.
49725 (blocklist_mod_LDFLAGS): Likewise.
49726
49727 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49728
49729 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49730 duplication.
49731 (lba_mode): Use %eax more intensively to reduce the code size.
49732
49733 2006-05-20 Marco Gerards <marco@gnu.org>
49734
49735 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49736
49737 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49738 for `menuentry'.
49739 (script): Accept leading newlines.
49740 (newlines): New rule to describe 0 or more newlines.
49741 (commands): Accept `command' with trailing newline. Fixed the
49742 order in which arguments were passed to `grub_script_add_cmd'.
49743 Accept commands separated by newlines.
49744 (function): Changed to accept newlines.
49745 (menuentry) Rewritten.
49746
49747 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49748 front of the list, instead of to the end.
49749
49750 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49751
49752 * util/i386/pc/grub-install.in (bindir): New variable.
49753 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49754 Shaver <lbgwjl@gmail.com>.
49755
49756 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49757
49758 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49759 grub/machine/linux.h
49760 * loader/i386/pc/linux.c: Likewise.
49761
49762 * include/grub/i386/pc/linux.h: Moved to ...
49763 * include/grub/i386/linux.h: ... here.
49764
49765 * include/grub/i386/linux.h (struct linux_kernel_params): New
49766 struct.
49767
49768 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49769
49770 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49771 checking.
49772 (grub_video_vbe_blit_glyph): Likewise.
49773 (grub_video_vbe_blit_bitmap): Likewise.
49774 (grub_video_vbe_blit_render_target): Likewise.
49775
49776 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49777
49778 * configure.ac (--with-platform): Properly quote the square
49779 brackets.
49780
49781 2006-05-08 Marco Gerards <marco@gnu.org>
49782
49783 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49784 this...
49785 (kernel_elf_HEADERS): ...to this. Updated all users.
49786 (grubof_symlist.c): Renamed from this...
49787 (kernel_elf_symlist.c): ...to this. Updated all users.
49788 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49789 (grubof_SOURCES): Renamed from this...
49790 (kernel_elf_SOURCES): ...to this.
49791 (grubof_HEADERS): Renamed from this...
49792 (kernel_elf_HEADERS): ...to this.
49793 (grubof_CFLAGS): Renamed from this...
49794 (kernel_elf_CFLAGS): ...to this.
49795 (grubof_ASFLAGS): Renamed from this...
49796 (kernel_elf_ASFLAGS): ...to this.
49797 (grubof_LDFLAGS): Renamed from this...
49798 (kernel_elf_LDFLAGS): ...to this.
49799
49800 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49801 this...
49802 (kernel_elf_HEADERS): ...to this. Updated all users.
49803 (grubof_symlist.c): Renamed from this...
49804 (kernel_elf_symlist.c): ...to this. Updated all users.
49805 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49806 (grubof_SOURCES): Renamed from this...
49807 (kernel_elf_SOURCES): ...to this.
49808 (grubof_HEADERS): Renamed from this...
49809 (kernel_elf_HEADERS): ...to this.
49810 (grubof_CFLAGS): Renamed from this...
49811 (kernel_elf_CFLAGS): ...to this.
49812 (grubof_ASFLAGS): Renamed from this...
49813 (kernel_elf_ASFLAGS): ...to this.
49814 (grubof_LDFLAGS): Renamed from this...
49815 (kernel_elf_LDFLAGS): ...to this.
49816
49817 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49818 `kernel.elf' instead of `grubof'.
49819
49820 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49821
49822 Add --with-platform to configure. Use pkglibdir instead of
49823 pkgdatadir. This is reported by Roger Leigh.
49824
49825 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49826 (host_vendor): Likewise.
49827 (host_os): Likewise.
49828 (pkgdatadir): Likewise.
49829 (platform): New variable.
49830 (pkglibdir): Likewise.
49831 Use PKGLIBDIR instead of PKGDATADIR.
49832
49833 * util/i386/pc/grub-install.in (datadir): Removed.
49834 (host_vendor): Likewise.
49835 (host_os): Likewise.
49836 (pkgdatadir): Likewise.
49837 (platform): New variable.
49838 (pkglibdir): Likewise.
49839 Use PKGLIBDIR instead of PKGDATADIR.
49840
49841 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49842 instead of GRUB_DATADIR.
49843 (main): Likewise.
49844 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49845 (main): Likewise.
49846 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49847 (main): Likewise.
49848
49849 * configure.ac (--with-platform): New option.
49850 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49851
49852 * Makefile.in: Include a makefile based on PLATFORM instead of
49853 HOST_VENDOR.
49854 (pkgdatadir): Not appended by the machine type.
49855 (pkglibdir): Appended by the machine type.
49856 (host_vendor): Removed.
49857 (platform): New variable.
49858 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49859 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49860 (uninstall): Likewise.
49861
49862 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49863
49864 Use the environment context in the menu. Remove the commands
49865 "default" and "timeout", and use variables instead.
49866
49867 * normal/menu.c: Include grub/env.h.
49868 (print_entry): Cast TITLE to silence gcc.
49869 (get_timeout): New function.
49870 (set_timeout): Likewise.
49871 (get_entry_number): Likewise.
49872 (run_menu): Use a default entry, a fallback entry and a timeout
49873 in the environment variables "default", "fallback" and
49874 "timeout". Also, tweak the default entry if it is not within the
49875 current menu entries.
49876 (grub_menu_run): Use a fallback entry in the environment variable
49877 "fallback".
49878
49879 * normal/main.c (read_config_file): Do not initialize
49880 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49881 NEWMENU->TIMEOUT.
49882 (grub_normal_execute): Use a data slot to store the menu.
49883
49884 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49885 fallback_entry and timeout.
49886 (struct grub_menu_list): Removed.
49887 (grub_menu_list_t): Likewise.
49888 (struct grub_context): Likewise.
49889 (grub_context_t): Likewise.
49890 (grub_context_get): Likewise.
49891 (grub_context_get_current_menu): Likewise.
49892 (grub_context_push_menu): Likewise.
49893 (grub_context_pop_menu): Likewise.
49894 (grub_default_init): Likewise.
49895 (grub_default_fini): Likewise.
49896 (grub_timeout_init): Likewise.
49897 (grub_timeout_fini): Likewise.
49898
49899 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49900 and timeout.mod.
49901 (normal_mod_SOURCES): Removed normal/context.c.
49902
49903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49904 commands/default.c, commands/timeout.c and normal/context.c.
49905 (normal_mod_SOURCES): Removed normal/context.c.
49906
49907 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49908 commands/timeout.c and normal/context.c.
49909 (normal_mod_SOURCES): Removed normal/context.c.
49910
49911 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49912 commands/default.c, commands/timeout.c and normal/context.c.
49913 (normal_mod_SOURCES): Removed normal/context.c.
49914
49915 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49916 timeout.mod.
49917 (default_mod_SOURCES): Removed.
49918 (default_mod_CFLAGS): Likewise.
49919 (default_mod_LDFLAGS): Likewise.
49920 (timeout_mod_SOURCES): Removed.
49921 (timeout_mod_CFLAGS): Likewise.
49922 (timeout_mod_LDFLAGS): Likewise.
49923
49924 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49925 normal/context.c.
49926
49927 * commands/default.c: Removed.
49928 * commands/timeout.c: Likewise.
49929 * normal/context.c: Likewise.
49930
49931 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49932
49933 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49934
49935 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49936
49937 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49938 "next" to "prev" for readability.
49939 (struct grub_env_sorted_var): New struct.
49940 (grub_env_context): Renamed to ...
49941 (initial_context): ... this.
49942 (grub_env_var_context): Renamed to ...
49943 (current_context): ... this.
49944 (grub_env_find): Look only at CURRENT_CONTEXT.
49945 (grub_env_context_open): Rewritten to copy exported variables from
49946 previous context.
49947 (grub_env_context_close): Rewritten according to the new
49948 scheme. Also, add an assertion to prevent the initial context from
49949 removed.
49950 (grub_env_insert): Removed the code for the sorted list.
49951 (grub_env_remove): Likewise.
49952 (grub_env_export): Simply mark the variable with
49953 GRUB_ENV_VAR_GLOBAL.
49954 (grub_env_set): A cosmetic change for naming consistency.
49955 (grub_env_get): Likewise.
49956 (grub_env_unset): Likewise.
49957 (grub_env_iterate): Rewritten to sort variables within this
49958 function.
49959 (grub_register_variable_hook): Fixed for naming consistency. Call
49960 grub_env_find again, only if NAME is not found at the first time.
49961 (mangle_data_slot_name): New function.
49962 (grub_env_set_data_slot): Likewise.
49963 (grub_env_get_data_slot): Likewise.
49964 (grub_env_unset_data_slot): Likewise.
49965
49966 * include/grub/env.h (grub_env_var_type): New enum.
49967 (GRUB_ENV_VAR_LOCAL): New constant.
49968 (GRUB_ENV_VAR_GLOBAL): Likewise.
49969 (GRUB_ENV_VAR_DATA): Likewise.
49970 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
49971 "type".
49972 (grub_env_set): Replace VAR with NAME for consistency.
49973 (grub_register_variable_hook): Likewise.
49974 (grub_env_export): Specify the name of the argument.
49975 (grub_env_set_data_slot): New prototype.
49976 (grub_env_get_data_slot): Likewise.
49977 (grub_env_unset_data_slot): Likewise.
49978
49979 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
49980
49981 Extend the loader so that GRUB can accept a loader which comes
49982 back to GRUB when a loaded image exits. Also, this change adds
49983 support for a chainloader on EFI.
49984
49985 * term/efi/console.c: Include grub/misc.h.
49986 (grub_console_checkkey): Display a scan code on the top for
49987 debugging. This will be removed once the EFI port gets stable.
49988 Correct the scan code mapping.
49989
49990 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
49991 allocate memory from larger regions, in order to reduce the number
49992 of allocated regions. Otherwise, the MacOSX loader panics.
49993 (filter_memory_map): Avoid less than 1MB for compatibility with
49994 other loaders.
49995 (add_memory_regions): Allocate from the tail of a region, if
49996 possible, to avoid allocating a region near to 1MB, for the MacOSX
49997 loader.
49998
49999 * kern/efi/init.c (grub_efi_set_prefix): Specify
50000 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50001
50002 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50003 argument IMAGE_HANDLE and specify it to get a loaded image.
50004 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50005 grub_efi_get_loaded_image.
50006 (grub_efi_get_filename): Divide the length by the size of
50007 grub_efi_char16_t.
50008 (grub_efi_get_device_path): New function.
50009 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50010 the length by the size of grub_efi_char16_t for a file path device
50011 path node.
50012
50013 * kern/loader.c (grub_loader_noreturn): New variable.
50014 (grub_loader_set): Accept a new argument NORETURN. Set
50015 GRUB_LOADER_NORETURN to NORETURN.
50016 All callers changed.
50017 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50018 grub_machine_fini.
50019
50020 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50021 prototype.
50022 (grub_efi_get_loaded_image): Take an argument to specify an image
50023 handle.
50024
50025 * include/grub/loader.h (grub_loader_set): Added one more argument
50026 NORETURN.
50027
50028 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50029 instead of grub_efi_open_protocol.
50030 (grub_efidisk_get_device_name): Likewise.
50031 (grub_efidisk_close): Print a newline.
50032 (grub_efidisk_get_device_handle): Fixed to use
50033 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50034 GRUB_EFI_DEVICE_PATH_TYPE.
50035
50036 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50037 * kern/efi/efi.c (device_path_guid): ... here.
50038
50039 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50040 chain.mod.
50041 (kernel_mod_HEADERS): Added efi/disk.h.
50042 (_chain_mod_SOURCES): New variable.
50043 (_chain_mod_CFLAGS): Likewise.
50044 (_chain_mod_LDFLAGS): Likewise.
50045 (chain_mod_SOURCES): Likewise.
50046 (chain_mod_CFLAGS): Likewise.
50047 (chain_mod_LDFLAGS): Likewise.
50048
50049 * DISTLIST: Added include/grub/efi/chainloader.h,
50050 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50051
50052 * include/grub/efi/chainloader.h: New file.
50053 * loader/efi/chainloader.c: Likewise.
50054 * loader/efi/chainloader_normal.c: Likewise.
50055
50056 2006-04-30 Marco Gerards <marco@gnu.org>
50057
50058 * commands/configfile.c (grub_cmd_source): New function.
50059 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50060 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50061
50062 2006-04-30 Marco Gerards <marco@gnu.org>
50063
50064 * normal/execute.c (grub_script_execute_cmd): Change the return
50065 type to `grub_err_t'. Correctly return the error.
50066 (grub_script_execute_cmdline): In case a command line is not a
50067 command or a function, try to interpret it as an assignment.
50068
50069 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50070
50071 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50072 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50073 skip a node whose name is obviously invalid as UTF-16,
50074 i.e. contains a NUL character. Stop the iteration when the last
50075 directory entry is found. Instead of using the return value of
50076 grub_hfsplus_btree_iterate_node, store the value in RET and use
50077 it, because the iterator can be stopped by the last directory
50078 entry.
50079
50080 2006-04-30 Marco Gerards <marco@gnu.org>
50081
50082 * include/grub/env.h (grub_env_export): New prototype. Reported
50083 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50084
50085 2006-04-30 Marco Gerards <marco@gnu.org>
50086
50087 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50088 size of the extents in a catalog file record.
50089
50090 2006-04-29 Marco Gerards <marco@gnu.org>
50091
50092 * commands/configfile.c (grub_cmd_configfile): Execute the
50093 configfile within its own context.
50094
50095 * include/grub/env.h (grub_env_context_open): New prototype.
50096 (grub_env_context_close): Likewise.
50097
50098 * kern/env.c (grub_env): Removed.
50099 (grub_env_sorted): Likewise.
50100 (grub_env_context): New variable.
50101 (grub_env_var_context): Likewise.
50102 (grub_env_find): Search both the active context and the global
50103 context.
50104 (grub_env_context_open): New function.
50105 (grub_env_context_close): Likewise.
50106 (grub_env_insert): Likewise.
50107 (grub_env_remove): Likewise.
50108 (grub_env_export): Likewise.
50109 (grub_env_set): Changed to use helper functions to avoid code
50110 duplication.
50111 (grub_env_iterate): Rewritten so both the current context and the
50112 global context are being used.
50113
50114 * normal/command.c (export_command): New function.
50115 (grub_command_init): Register the `export' function.
50116
50117 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50118
50119 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50120 explicitly to suppress gcc's warnings.
50121 * fs/fat.c (grub_fat_find_dir): Likewise.
50122 (grub_fat_label): Likewise.
50123 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50124 (grub_xfs_mount): Likewise.
50125 (grub_xfs_label): Likewise.
50126 * fs/affs.c (grub_affs_mount): Likewise.
50127 (grub_affs_label): Likewise.
50128 (grub_affs_iterate_dir): Likewise.
50129 * fs/sfs.c (grub_sfs_mount): Likewise.
50130 (grub_sfs_iterate_dir): Likewise.
50131 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50132 * fs/hfs.c (grub_hfs_mount): Likewise.
50133 (grub_hfs_cmp_catkeys): Likewise.
50134 (grub_hfs_find_dir): Likewise.
50135 (grub_hfs_dir): Likewise.
50136 (grub_hfs_label): Likewise.
50137 * fs/jfs.c (grub_jfs_mount): Likewise.
50138 (grub_jfs_opendir): Likewise.
50139 (grub_jfs_getent): Likewise.
50140 (grub_jfs_lookup_symlink): Likewise.
50141 (grub_jfs_label): Likewise.
50142 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50143 (grub_hfsplus_iterate_dir): Likewise.
50144 (grub_hfsplus_btree_iterate_node): Made static.
50145
50146 * util/grub-emu.c (prefix): New variable.
50147 (grub_machine_set_prefix): New function.
50148 (main): Do not set the environment variable "prefix" here. Only
50149 set PREFIX, which is used later by grub_machine_set_prefix.
50150
50151 * include/grub/video.h: Do not include grub/symbol.h.
50152 (grub_video_register): Not exported. This symbol is not defined in
50153 the kernel.
50154 (grub_video_unregister): Likewise.
50155 (grub_video_iterate): Likewise.
50156 (grub_video_setup): Likewise.
50157 (grub_video_restore): Likewise.
50158 (grub_video_get_info): Likewise.
50159 (grub_video_get_blit_format): Likewise.
50160 (grub_video_set_palette): Likewise.
50161 (grub_video_get_palette): Likewise.
50162 (grub_video_set_viewport): Likewise.
50163 (grub_video_get_viewport): Likewise.
50164 (grub_video_map_color): Likewise.
50165 (grub_video_map_rgb): Likewise.
50166 (grub_video_map_rgba): Likewise.
50167 (grub_video_fill_rect): Likewise.
50168 (grub_video_blit_glyph): Likewise.
50169 (grub_video_blit_bitmap): Likewise.
50170 (grub_video_blit_render_target): Likewise.
50171 (grub_video_scroll): Likewise.
50172 (grub_video_swap_buffers): Likewise.
50173 (grub_video_create_render_target): Likewise.
50174 (grub_video_delete_render_target): Likewise.
50175 (grub_video_set_active_render_target): Likewise.
50176
50177 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50178 Undefined.
50179 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50180
50181 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50182 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50183 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50184 instead of $(srcdir)/genkernsyms.sh.
50185
50186 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50187 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50188 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50189 instead of $(srcdir)/genkernsyms.sh.
50190
50191 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50192 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50193 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50194 instead of $(srcdir)/genkernsyms.sh.
50195
50196 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50197 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50198 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50199 instead of $(srcdir)/genkernsyms.sh.
50200
50201 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50202 genkernsyms.sh.
50203
50204 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50205 genkernsyms.sh.
50206 (gensymlist.sh): New target.
50207 (genkernsyms.sh): Likewise.
50208
50209 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50210 genkernsyms.sh.in and gensymlist.sh.in.
50211
50212 * genkernsyms.sh: Removed.
50213 * gensymlist.sh: Likewise.
50214
50215 * genkernsyms.sh.in: New file.
50216 * gensymlist.sh.in: Likewise.
50217
50218 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50219
50220 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50221 clobber "prefix", since we may have already set it manually.
50222
50223 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50224
50225 * kern/misc.c (abort): New alias for grub_abort.
50226
50227 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50228
50229 A new machine-specific function "grub_machine_set_prefix" is
50230 defined. This is called after loading modules, so that a prefix
50231 initialization can use modules. Also, this change adds an
50232 intensive debugging feature for the memory manager via the
50233 configure option "--enable-mm-debug".
50234
50235 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50236 PART.LEN.
50237
50238 * kern/sparc64/ieee1275/init.c (abort): Removed.
50239 (grub_stop): Likewise.
50240 (grub_exit): New function.
50241 (grub_set_prefix): Renamed to ...
50242 (grub_machine_set_prefix): ... this.
50243 (grub_machine_init): Do not call grub_set_prefix.
50244
50245 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50246 (grub_machine_set_prefix): ... this.
50247 (grub_machine_init): Do not call grub_set_prefix.
50248
50249 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50250 (grub_machine_init): Do not set the prefix here.
50251
50252 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50253
50254 * kern/efi/init.c: Include grub/mm.h.
50255 (grub_efi_set_prefix): New function.
50256
50257 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50258 (grub_efi_get_filename): New function.
50259 (grub_print_device_path): Renamed to ...
50260 (grub_efi_print_device_path): ... this.
50261
50262 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50263 [MM_DEBUG] (grub_realloc): Likewise.
50264 [MM_DEBUG] (grub_free): Likewise.
50265 [MM_DEBUG] (grub_memalign): Likewise.
50266 [MM_DEBUG] (grub_mm_debug): New variable.
50267 [MM_DEBUG] (grub_debug_malloc): New function.
50268 [MM_DEBUG] (grub_debug_free): New function.
50269 [MM_DEBUG] (grub_debug_realloc): New function.
50270 [MM_DEBUG] (grub_debug_memalign): New function.
50271
50272 * kern/misc.c (grub_abort): Print a newline to distinguish
50273 the message.
50274
50275 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50276 grub_set_root_dev after loading modules. This is necessary when
50277 setting a prefix depends on modules.
50278
50279 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50280 (grub_efi_print_device_path): ... this.
50281 (grub_efi_get_filename): New prototype.
50282 (grub_efi_set_prefix): Likewise.
50283
50284 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50285 and grub/disk.h.
50286 (grub_efidisk_get_device_handle): New prototype.
50287 (grub_efidisk_get_device_name): Likewise.
50288
50289 * include/grub/mm.h: Include config.h.
50290 (MM_DEBUG): Removed.
50291 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50292 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50293 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50294 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50295 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50296 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50297 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50298 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50299 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50300
50301 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50302
50303 * disk/efi/efidisk.c: Include grub/partition.h.
50304 (iterate_child_devices): New function.
50305 (add_device): First, compare only last device path nodes, so that
50306 devices are sorted by the types.
50307 (grub_efidisk_get_device_handle): New function.
50308 (grub_efidisk_get_device_name): Likewise.
50309
50310 * configure.ac (--enable-mm-debug): New option to enable the
50311 memory manager debugging feature. This makes the binary much
50312 bigger, so is disabled by default.
50313
50314 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50315
50316 Use grub_abort instead of grub_stop, and grub_exit must be
50317 define in each architecture now. Also, this change adds support
50318 for EFI disks.
50319
50320 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50321 (grub_getkey): New function.
50322 (grub_term_get_current): Likewise.
50323
50324 * util/i386/pc/grub-setup.c: Include grub/term.h.
50325 (grub_getkey): New function.
50326 (grub_term_get_current): Likewise.
50327
50328 * util/misc.c (grub_stop): Renamed to ...
50329 (grub_exit): ... this.
50330
50331 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50332 (grub_exit): ... this.
50333 (grub_machine_init): Use grub_abort instead of abort.
50334 (grub_stop): Removed.
50335
50336 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50337 abort.
50338
50339 * kern/i386/pc/startup.S (grub_exit): New function.
50340 (cold_reboot): New label.
50341
50342 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50343 (grub_efi_init): Call grub_efidisk_init.
50344 (grub_efi_fini): Call grub_efidisk_fini.
50345
50346 * kern/efi/efi.c: Include grub/mm.h.
50347 (grub_efi_console_control_guid): Renamed to ...
50348 (console_control_guid): ... this.
50349 (grub_efi_loaded_image_guid): Renamed to ...
50350 (loaded_image_guid): ... this.
50351 (grub_efi_locate_handle): New function.
50352 (grub_efi_open_protocol): Likewise.
50353 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50354 GRUB_EFI_CONSOLE_CONTROL_GUID.
50355 (grub_efi_exit): Removed.
50356 (grub_stop): Likewise.
50357 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50358 (grub_exit): New function.
50359 (grub_print_device_path): Likewise.
50360
50361 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50362 (grub_enter_rescue_mode): Register "exit".
50363
50364 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50365 (grub_abort): New function.
50366
50367 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50368
50369 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50370
50371 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50372
50373 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50374 (grub_print_device_path): New prototype.
50375 (grub_efi_locate_handle): Likewise.
50376 (grub_efi_open_protocol): Likewise.
50377
50378 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50379 * disk/efi/efidisk.c: Likewise.
50380
50381 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50382
50383 * include/grub/efi/console_control.h
50384 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50385
50386 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50387 last 8 bytes as an array.
50388 (GRUB_EFI_DISK_IO_GUID): New macro.
50389 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50390 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50391 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50392 grub_uint8_t.
50393 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50394 (struct grub_efi_device_path): Rename the member "sub_type" to
50395 "subtype".
50396 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50397 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50398 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50399 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50400 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50401 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50402 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50403 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50404 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50405 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50406 (struct grub_efi_pci_device_path): New structure.
50407 (grub_efi_pci_device_path_t): New type.
50408 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50409 (struct grub_efi_pccard_device_path): New structure.
50410 (grub_efi_pccard_device_path_t): New type.
50411 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50412 (struct grub_efi_memory_mapped_device_path): New structure.
50413 (grub_efi_memory_mapped_device_path_t): New type.
50414 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50415 (struct grub_efi_vendor_device_path): New structure.
50416 (grub_efi_vendor_device_path_t): New type.
50417 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50418 (struct grub_efi_controller_device_path): New structure.
50419 (grub_efi_controller_device_path_t): New type.
50420 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50421 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50422 (struct grub_efi_acpi_device_path): New structure.
50423 (grub_efi_acpi_device_path_t): New type.
50424 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50425 (struct grub_efi_expanded_acpi_device_path): New structure.
50426 (grub_efi_expanded_acpi_device_path_t): New type.
50427 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50428 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50429 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50430 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50431 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50432 (struct grub_efi_atapi_device_path): New structure.
50433 (grub_efi_atapi_device_path_t): New type.
50434 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50435 (struct grub_efi_fibre_channel_device_path): New structure.
50436 (grub_efi_fibre_channel_device_path_t): New type.
50437 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50438 (struct grub_efi_1394_device_path): New structure.
50439 (grub_efi_1394_device_path_t): New type.
50440 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50441 (struct grub_efi_usb_device_path): New structure.
50442 (grub_efi_usb_device_path_t): New type.
50443 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50444 (struct grub_efi_usb_class_device_path): New structure.
50445 (grub_efi_usb_class_device_path_t): New type.
50446 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50447 (struct grub_efi_i2o_device_path): New structure.
50448 (grub_efi_i2o_device_path_t): New type.
50449 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50450 (struct grub_efi_mac_address_device_path): New structure.
50451 (grub_efi_mac_address_device_path_t): New type.
50452 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50453 (struct grub_efi_ipv4_device_path): New structure.
50454 (grub_efi_ipv4_device_path_t): New type.
50455 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50456 (struct grub_efi_ipv6_device_path): New structure.
50457 (grub_efi_ipv6_device_path_t): New type.
50458 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50459 (struct grub_efi_infiniband_device_path): New structure.
50460 (grub_efi_infiniband_device_path_t): New type.
50461 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50462 (struct grub_efi_uart_device_path): New structure.
50463 (grub_efi_uart_device_path_t): New type.
50464 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50465 (struct grub_efi_vendor_messaging_device_path): New structure.
50466 (grub_efi_vendor_messaging_device_path_t): New type.
50467 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50468 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50469 (struct grub_efi_hard_drive_device_path): New structure.
50470 (grub_efi_hard_drive_device_path_t): New type.
50471 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50472 (struct grub_efi_cdrom_device_path): New structure.
50473 (grub_efi_cdrom_device_path_t): New type.
50474 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50475 (struct grub_efi_vendor_media_device_path): New structure.
50476 (grub_efi_vendor_media_device_path_t): New type.
50477 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50478 (struct grub_efi_file_path_device_path): New structure.
50479 (grub_efi_file_path_device_path_t): New type.
50480 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50481 (struct grub_efi_protocol_device_path): New structure.
50482 (grub_efi_protocol_device_path_t): New type.
50483 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50484 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50485 (struct grub_efi_bios_device_path): New structure.
50486 (grub_efi_bios_device_path_t): New type.
50487 (struct grub_efi_disk_io): New structure.
50488 (grub_efi_disk_io_t): New type.
50489 (struct grub_efi_block_io_media): New structure.
50490 (grub_efi_block_io_media_t): New type.
50491 (struct grub_efi_block_io): New structure.
50492 (grub_efi_block_io_t): New type.
50493
50494 * include/grub/misc.h (grub_stop): Removed.
50495 (grub_exit): New prototype.
50496 (grub_abort): Likewise.
50497
50498 * include/grub/disk.h (enum grub_disk_dev_id): Added
50499 GRUB_DISK_DEVICE_EFIDISK_ID.
50500
50501 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50502 disk/efi/efidisk.c.
50503 (kernel_syms.lst): Remove the target if an error occurs.
50504
50505 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50506
50507 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50508 as it was simply too buggy.
50509
50510 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50511
50512 * kern/misc.c (grub_lltoa): New function.
50513 (grub_vsprintf): Added support for the long long suffix,
50514 i.e. "ll".
50515
50516 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50517
50518 * Makefile.in (LDFLAGS): Add variable.
50519 (LD): Remove variable.
50520 * configure.ac: Add -m32 to LDFLAGS.
50521 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50522 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50523 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50524 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50525 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50526 variables.
50527 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50528 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50529 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50530
50531 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50532
50533 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50534 length for unknown glyph.
50535
50536 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50537
50538 Add support for pre-loaded modules into the EFI port.
50539
50540 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50541 completely. Accept one more argument DIR. The caller has changed.
50542
50543 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50544
50545 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50546 (grub_efi_loaded_image_guid): New variable.
50547 (grub_efi_get_loaded_image): New function.
50548 (grub_arch_modules_addr): Likewise.
50549
50550 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50551 prototype.
50552
50553 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50554 (struct grub_efi_loaded_image): New structure.
50555 (grub_efi_loaded_image_t): New type.
50556
50557 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50558
50559 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50560 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50561 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50562
50563 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50564
50565 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50566
50567 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50568
50569 * DISTLIST: Added include/grub/efi/console.h,
50570 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50571 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50572
50573 * include/grub/efi/console.h: New file.
50574 * include/grub/efi/time.h: Likewise.
50575 * include/grub/i386/efi/kernel.h: Likewise.
50576 * kern/efi/init.c: Likewise.
50577 * kern/efi/mm.c: Likewise.
50578 * term/efi/console.c: Likewise.
50579
50580 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50581 (grub_stop): Removed.
50582 (grub_get_rtc): Likewise.
50583 (grub_machine_init): Simply call grub_efi_init.
50584 (grub_machine_fini): Call grub_efi_fini.
50585
50586 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50587 (grub_efi_output_string): Removed.
50588 (grub_efi_stall): New function.
50589 (grub_stop): Likewise.
50590 (grub_get_rtc): Likewise.
50591
50592 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50593 (grub_efi_stall): New prototype.
50594 (grub_efi_allocate_pages): Likewise.
50595 (grub_efi_free_pages): Likewise.
50596 (grub_efi_get_memory_map): Likewise.
50597 (grub_efi_mm_init): Likewise.
50598 (grub_efi_mm_fini): Likewise.
50599 (grub_efi_init): Likewise.
50600 (grub_efi_fini): Likewise.
50601
50602 * include/grub/i386/efi/time.h: Do not include
50603 grub/symbol.h. Include grub/efi/time.h.
50604 (GRUB_TICKS_PER_SECOND): Removed.
50605 (grub_get_rtc): Likewise.
50606
50607 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50608 Added padding. The EFI spec is buggy.
50609 (GRUB_EFI_BLACK): New macro.
50610 (GRUB_EFI_BLUE): Likewise.
50611 (GRUB_EFI_GREEN): Likewise.
50612 (GRUB_EFI_CYAN): Likewise.
50613 (GRUB_EFI_RED): Likewise.
50614 (GRUB_EFI_MAGENTA): Likewise.
50615 (GRUB_EFI_BROWN): Likewise.
50616 (GRUB_EFI_LIGHTGRAY): Likewise.
50617 (GRUB_EFI_BRIGHT): Likewise.
50618 (GRUB_EFI_DARKGRAY): Likewise.
50619 (GRUB_EFI_LIGHTBLUE): Likewise.
50620 (GRUB_EFI_LIGHTGREEN): Likewise.
50621 (GRUB_EFI_LIGHTCYAN): Likewise.
50622 (GRUB_EFI_LIGHTRED): Likewise.
50623 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50624 (GRUB_EFI_YELLOW): Likewise.
50625 (GRUB_EFI_WHITE): Likewise.
50626 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50627 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50628 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50629 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50630 (GRUB_EFI_BACKGROUND_RED): Likewise.
50631 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50632 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50633 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50634 (GRUB_EFI_TEXT_ATTR): Likewise.
50635
50636 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50637 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50638 (kernel_mod_HEADERS): Added efi/time.h.
50639
50640 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50641
50642 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50643 include/grub/efi/api.h, include/grub/efi/console_control.h,
50644 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50645 include/grub/i386/efi/time.h, kern/efi/efi.c,
50646 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50647 and util/i386/efi/grub-mkimage.c.
50648
50649 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50650
50651 * genmk.rb (PModule#rule): Do not export symbols if
50652 #{prefix}_EXPORTS is set to "no".
50653
50654 * conf/i386-efi.mk: New file.
50655 * conf/i386-efi.rmk: Likewise.
50656 * include/grub/efi/api.h: Likewise.
50657 * include/grub/efi/console_control.h: Likewise.
50658 * include/grub/efi/efi.h: Likewise.
50659 * include/grub/efi/pe32.h: Likewise.
50660 * include/grub/i386/efi/time.h: Likewise.
50661 * kern/efi/efi.c: Likewise.
50662 * kern/i386/efi/init.c: Likewise.
50663 * kern/i386/efi/startup.S: Likewise.
50664 * util/i386/efi/grub-mkimage.c: Likewise.
50665
50666 2006-04-17 Marco Gerards <marco@gnu.org>
50667
50668 * include/grub/script.h: Include <grub/parser.h> and
50669 "grub_script.tab.h".
50670 (struct grub_lexer_param): New struct.
50671 (struct grub_parser_param): Likewise.
50672 (grub_script_create_arglist): Pass the state in an argument.
50673 (grub_script_add_arglist): Likewise.
50674 (grub_script_create_cmdline): Likewise.
50675 (grub_script_create_cmdblock): Likewise.
50676 (grub_script_create_cmdif): Likewise.
50677 (grub_script_create_cmdmenu): Likewise.
50678 (grub_script_add_cmd): Likewise.
50679 (grub_script_arg_add): Likewise.
50680 (grub_script_lexer_ref): Likewise.
50681 (grub_script_lexer_deref): Likewise.
50682 (grub_script_lexer_record_start): Likewise.
50683 (grub_script_lexer_record_stop): Likewise.
50684 (grub_script_mem_record): Likewise.
50685 (grub_script_mem_record_stop): Likewise.
50686 (grub_script_malloc): Likewise.
50687 (grub_script_yylex): Likewise.
50688 (grub_script_yyparse): Likewise.
50689 (grub_script_yyerror): Likewise.
50690 (grub_script_yylex): Likewise.
50691 (grub_script_lexer_init): Return the state.
50692
50693 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50694 (grub_script_lexer_done): Likewise.
50695 (grub_script_lexer_getline): Likewise.
50696 (grub_script_lexer_refs): Likewise.
50697 (script): Likewise.
50698 (newscript): Likewise.
50699 (record): Likewise.
50700 (recording): Likewise.
50701 (recordpos): Likewise.
50702 (recordlen): Likewise.
50703 (grub_script_lexer_init): Return the state instead of setting
50704 global variables.
50705 (grub_script_lexer_ref): Use the newly added argument for state
50706 instead of globals.
50707 (grub_script_lexer_deref): Likewise.
50708 (grub_script_lexer_record_start): Likewise.
50709 (grub_script_lexer_record_stop): Likewise.
50710 (recordchar): Likewise.
50711 (nextchar): Likewise.
50712 (grub_script_yylex2): Likewise.
50713 (grub_script_yylex): Likewise.
50714 (grub_script_yyerror): Likewise.
50715
50716 * normal/parser.y (func_mem): Removed variable.
50717 (menu_entry): Likewise.
50718 (err): Likewise.
50719 (%lex-param): New parser option.
50720 (%parse-param): Likewise.
50721 (script): Always return the AST.
50722 (argument): Pass the state around.
50723 (arguments): Likewise.
50724 (grubcmd): Likewise.
50725 (commands): Likewise.
50726 (function): Likewise.
50727 (menuentry): Likewise.
50728 (if_statement): Likewise.
50729 (if): Likewise.
50730
50731 * normal/script.c (grub_script_memused): Removed variable.
50732 (grub_script_parsed): Likewise.
50733 (grub_script_malloc): Added a state argument. Use that instead of
50734 global variables.
50735 (grub_script_mem_record): Likewise.
50736 (grub_script_mem_record_stop): Likewise.
50737 (grub_script_arg_add): Likewise.
50738 (grub_script_add_arglist): Likewise.
50739 (grub_script_create_cmdline): Likewise.
50740 (grub_script_create_cmdif): Likewise.
50741 (grub_script_create_cmdmenu): Likewise.
50742 (grub_script_add_cmd): Likewise.
50743 (grub_script_parse): Setup the state before calling the parser.
50744
50745 2006-04-16 Marco Gerards <marco@gnu.org>
50746
50747 * normal/command.c (grub_command_init): Remove the title command.
50748
50749 * normal/lexer.c (grub_script_yylex): Renamed from this...
50750 (grub_script_yylex2): ... to this.
50751 (grub_script_yylex): New function. Temporary
50752 introduced to filter some tokens.
50753 (grub_script_yyerror): Print a newline.
50754
50755 * normal/main.c (read_config_file): Output information about the
50756 lines that contain errors. Wait for a key after all lines have
50757 been processed. Don't return an empty menu.
50758
50759 * normal/parser.y (func_mem): Don't initialize.
50760 (menu_entry): Likewise.
50761 (err): New variable.
50762 (script): Don't return anything when an error was encountered.
50763 (ws, returns): Removed rules.
50764 (argument): Disabled concatenated variable support.
50765 (arguments): Remove explicit separators.
50766 (grubcmd): Likewise.
50767 (function): Likewise.
50768 (menuentry): Likewise.
50769 (if): Likewise.
50770 (commands): Likewise. Add error handling.
50771
50772 * normal/script.c (grub_script_create_cmdline): If
50773 `grub_script_parsed' is 0, assume the parser encountered an error.
50774
50775 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50776
50777 * configure.ac: Add support for EFI. Fix the typo
50778 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50779
50780 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50781
50782 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50783 foreign multibyte characters should be shown correctly.
50784
50785 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50786
50787 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50788 calculation.
50789 (read_config_file): Made it to close file before returning.
50790
50791 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50792
50793 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50794 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50795 video/i386/pc/vbefill.c.
50796
50797 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50798 video/i386/pc/vbefill.c.
50799
50800 * include/grub/video.h (grub_video_blit_format): New enum.
50801 (grub_video_mode_info): Added new member blit_format.
50802 (grub_video_get_blit_format): New function prototype.
50803
50804 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50805 function prototype.
50806 (grub_video_vbe_map_rgb): Likewise.
50807 (grub_video_vbe_unmap_color): Likewise.
50808
50809 * include/grub/i386/pc/vbeblit.h: New file.
50810
50811 * include/grub/i386/pc/vbefill.h: New file.
50812
50813 * video/video.c (grub_video_get_blit_format): New function.
50814 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50815 (grub_video_vbe_map_rgb): Likewise.
50816 (grub_video_vbe_unmap_color): Likewise.
50817
50818 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50819 optimized fills.
50820 (grub_video_vbe_blit_render_target): Changed to use more optimized
50821 blits.
50822 (grub_video_vbe_setup): Added detection for optimized settings.
50823 (grub_video_vbe_create_render_target): Likewise.
50824
50825 * video/i386/pc/vbeblit.c: New file.
50826
50827 * video/i386/pc/vbefill.c: New file.
50828
50829 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50830
50831 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50832 here...
50833
50834 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50835 parsing to support both hex and dec ranges. If filename was missing
50836 show usage information.
50837
50838 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50839
50840 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50841 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50842
50843 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50844 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50845 (video_mod_SOURCES): Added.
50846 (video_mod_CFLAGS): Likewise.
50847 (video_mod_LDFLAGS): Likewise.
50848 (gfxterm_mod_SOURCES): Likewise.
50849 (gfxterm_mod_CFLAGS): Likewise.
50850 (gfxterm_mod_LDFLAGS): Likewise.
50851 (videotest_mod_SOURCES): Likewise.
50852 (videotest_mod_CFLAGS): Likewise.
50853 (videotest_mod_LDFLAGS): Likewise.
50854 (vesafb_mod_SOURCES): Removed.
50855 (vesafb_mod_CFLAGS): Likewise.
50856 (vesafb_mod_LDFLAGS): Likewise.
50857 (vga_mod_SOURCES): Likewise.
50858 (vga_mod_CFLAGS): Likewise.
50859 (vga_mod_LDFLAGS): Likewise.
50860
50861 * commands/videotest.c: New file.
50862
50863 * font/manager.c (fill_with_default_glyph): Modified to use
50864 grub_font_glyph.
50865 (grub_font_get_glyph): Likewise.
50866 (fontmanager): Renamed from this...
50867 (font_manager): ... to this.
50868
50869 * include/grub/font.h (grub_font_glyph): Added new structure.
50870 (grub_font_get_glyph): Modified to use grub_font_glyph.
50871
50872 * include/grub/misc.h (grub_abs): Added as inline function.
50873
50874 * include/grub/video.h: New file.
50875
50876 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50877 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50878 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50879 (grub_vbe_get_controller_info): Renamed from this...
50880 (grub_vbe_bios_get_controller_info): ... to this.
50881 (grub_vbe_get_mode_info): Renamed from this...
50882 (grub_vbe_bios_get_mode_info): ... to this.
50883 (grub_vbe_set_mode): Renamed from this...
50884 (grub_vbe_bios_set_mode): ... to this.
50885 (grub_vbe_get_mode): Renamed from this...
50886 (grub_vbe_bios_get_mode): ... to this.
50887 (grub_vbe_set_memory_window): Renamed from this...
50888 (grub_vbe_bios_set_memory_window): ... to this.
50889 (grub_vbe_get_memory_window): Renamed from this...
50890 (grub_vbe_bios_get_memory_window): ... to this.
50891 (grub_vbe_set_scanline_length): Renamed from this...
50892 (grub_vbe_set_scanline_length): ... to this.
50893 (grub_vbe_get_scanline_length): Renamed from this...
50894 (grub_vbe_bios_get_scanline_length): ... to this.
50895 (grub_vbe_set_display_start): Renamed from this...
50896 (grub_vbe_bios_set_display_start): ... to this.
50897 (grub_vbe_get_display_start): Renamed from this...
50898 (grub_vbe_bios_get_display_start): ... to this.
50899 (grub_vbe_set_palette_data): Renamed from this...
50900 (grub_vbe_bios_set_palette_data): ... to this.
50901 (grub_vbe_set_pixel_rgb): Removed.
50902 (grub_vbe_set_pixel_index): Likewise.
50903
50904 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50905 from this...
50906 (grub_vbe_bios_get_controller_info): ... to this.
50907 (grub_vbe_get_mode_info): Renamed from this...
50908 (grub_vbe_bios_get_mode_info): ... to this.
50909 (grub_vbe_set_mode): Renamed from this...
50910 (grub_vbe_bios_set_mode): ... to this.
50911 (grub_vbe_get_mode): Renamed from this...
50912 (grub_vbe_bios_get_mode): ... to this.
50913 (grub_vbe_set_memory_window): Renamed from this...
50914 (grub_vbe_bios_set_memory_window): ... to this.
50915 (grub_vbe_get_memory_window): Renamed from this...
50916 (grub_vbe_bios_get_memory_window): ... to this.
50917 (grub_vbe_set_scanline_length): Renamed from this...
50918 (grub_vbe_set_scanline_length): ... to this.
50919 (grub_vbe_get_scanline_length): Renamed from this...
50920 (grub_vbe_bios_get_scanline_length): ... to this.
50921 (grub_vbe_set_display_start): Renamed from this...
50922 (grub_vbe_bios_set_display_start): ... to this.
50923 (grub_vbe_get_display_start): Renamed from this...
50924 (grub_vbe_bios_get_display_start): ... to this.
50925 (grub_vbe_set_palette_data): Renamed from this...
50926 (grub_vbe_bios_set_palette_data): ... to this.
50927 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50928 getting corrupted after calling it. Added more pushes and pops.
50929 (grub_vbe_bios_set_mode): Likewise.
50930 (grub_vbe_bios_get_mode): Likewise.
50931 (grub_vbe_bios_get_memory_window): Likewise.
50932 (grub_vbe_bios_set_scanline_length): Likewise.
50933 (grub_vbe_bios_get_scanline_length): Likewise.
50934 (grub_vbe_bios_get_display_start): Likewise.
50935 (grub_vbe_bios_set_palette_data): Likewise.
50936
50937 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50938 (cl_insert): Likewise.
50939 (cl_delete): Likewise.
50940
50941 * term/gfxterm.c: New file.
50942
50943 * term/i386/pc/vesafb.c: Removed file.
50944
50945 * video/video.c: New file.
50946
50947 * video/i386/pc/vbe.c (real2pm): Added new function.
50948 (grub_video_vbe_draw_pixel): Likewise.
50949 (grub_video_vbe_get_video_ptr): Likewise.
50950 (grub_video_vbe_get_pixel): Likewise
50951 (grub_video_vbe_init): Likewise.
50952 (grub_video_vbe_fini): Likewise.
50953 (grub_video_vbe_setup): Likewise.
50954 (grub_video_vbe_get_info): Likewise.
50955 (grub_video_vbe_set_palette): Likewise.
50956 (grub_video_vbe_get_palette): Likewise.
50957 (grub_video_vbe_set_viewport): Likewise.
50958 (grub_video_vbe_get_viewport): Likewise.
50959 (grub_video_vbe_map_color): Likewise.
50960 (grub_video_vbe_map_rgb): Likewise.
50961 (grub_video_vbe_map_rgba): Likewise.
50962 (grub_video_vbe_unmap_color): Likewise.
50963 (grub_video_vbe_fill_rect): Likewise.
50964 (grub_video_vbe_blit_glyph): Likewise.
50965 (grub_video_vbe_blit_bitmap): Likewise.
50966 (grub_video_vbe_blit_render_target): Likewise.
50967 (grub_video_vbe_scroll): Likewise.
50968 (grub_video_vbe_swap_buffers): Likewise.
50969 (grub_video_vbe_create_render_target): Likewise.
50970 (grub_video_vbe_delete_render_target): Likewise.
50971 (grub_video_vbe_set_active_render_target): Likewise.
50972 (grub_vbe_set_pixel_rgb): Remove function.
50973 (grub_vbe_set_pixel_index): Likewise.
50974 (index_color_mode): Remove static variable.
50975 (active_mode): Likewise.
50976 (framebuffer): Likewise.
50977 (bytes_per_scan_line): Likewise.
50978 (grub_video_vbe_adapter): Added new static variable.
50979 (framebuffer): Likewise.
50980 (render_target): Likewise.
50981 (initial_mode): Likewise.
50982 (mode_in_use): Likewise.
50983 (mode_list): Likewise.
50984
50985 2006-03-10 Marco Gerards <marco@gnu.org>
50986
50987 * configure.ac (AC_INIT): Bumped to 1.93.
50988
50989 * DISTLIST: Added `include/grub/hfs.h'.
50990
50991 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
50992
50993 * boot/i386/pc/boot.S (general_error): Before looping, try INT
50994 18H, which might help the BIOS falling back to next boot media.
50995
50996 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
50997
50998 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
50999 Poe Chen <poe.poechen@gmail.com>.
51000
51001 2006-01-17 Marco Gerards <marco@gnu.org>
51002
51003 * include/grub/normal.h: Include <grub/script.h>.
51004 (grub_command_list): Removed struct.
51005 (grub_command_list_t): Removed type.
51006 (grub_menu_entry): Remove members `num' and `command_list'. Add
51007 members `commands' and `sourcecode'.
51008 * include/grub/script.h: Add inclusion guards.
51009 (grub_script_cmd_menuentry): New struct.
51010 (grub_script_execute_menuentry): New prototype.
51011 (grub_script_lexer_record_start): Likewise.
51012 (grub_script_lexer_record_stop): Likewise.
51013 * normal/execute.c (grub_script_execute_menuentry): New function.
51014 * normal/lexer.c (record, recording, recordpos, recordlen): New
51015 variables.
51016 (grub_script_lexer_record_start): New function.
51017 (grub_script_lexer_record_stop): Likewise.
51018 (recordchar): Likewise.
51019 (nextchar): Likewise.
51020 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51021 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51022 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51023 (current_menu): New variable.
51024 (free_menu): Mainly rewritten.
51025 (grub_normal_menu_addentry): New function.
51026 (read_config_file): Rewritten.
51027 * normal/menu.c (run_menu_entry): Mainly rewritten.
51028 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51029 the menu entry.
51030 (run): Mainly rewritten.
51031 * normal/parser.y (menu_entry): New variable.
51032 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51033 (menuentry): New rule.
51034 (command): Add `menuentry'.
51035 (if_statement): Allow additional returns before `fi'.
51036 * normal/script.c (grub_script_create_cmdmenu): New function.
51037
51038 2006-01-03 Marco Gerards <marco@gnu.org>
51039
51040 * INSTALL: GNU Bison is required.
51041 * configure.ac: Rewritten the test to detect Bison.
51042 * Makefile.in (YACC): New variable. Reported by Xun Sun
51043 <xun.sun.cn@gmail.com>.
51044
51045 2006-01-03 Marco Gerards <marco@gnu.org>
51046
51047 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51048 the HFS+ filesystem to filesystem blocks.
51049 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51050 GCC warning is silenced.
51051
51052 2006-01-03 Marco Gerards <marco@gnu.org>
51053
51054 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51055 read from disk from big endian to host byte order.
51056
51057 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51058
51059 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51060 documentation.
51061 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51062 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51063 embedded HFS+ filesystem.
51064 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51065 (grub_hfs_sblock): Move from here...
51066 * include/grub/hfs.h: To here... New file.
51067 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51068 documentation.
51069 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51070 New macros.
51071 (grub_hfsplus_volheader): Change type of member `magic' to
51072 `grub_uint16_t'.
51073 (grub_hfsplus_data): Add new member `embedded_offset'.
51074 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51075 returned block.
51076 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51077 Calculate the offset.
51078
51079 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51080
51081 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51082 Removed.
51083 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51084
51085 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51086
51087 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51088 ENV->NAME is NULL after allocating ENV->VALUE.
51089
51090 2005-12-25 Marco Gerards <marco@gnu.org>
51091
51092 * kern/env.c (grub_env_set): Rewritten the error handling code.
51093
51094 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51095
51096 * geninit.sh: Made more robust, and more portable.
51097
51098 2005-12-25 Marco Gerards <marco@gnu.org>
51099
51100 Add support for Apple HFS+ filesystems.
51101
51102 * fs/hfsplus.c: New file.
51103
51104 * DISTLIST: Added `fs/hfsplus.c'.
51105
51106 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51107 (hfsplus_mod_SOURCES): New variable.
51108 (hfsplus_mod_CFLAGS): Likewise.
51109 (hfsplus_mod_LDFLAGS): Likewise.
51110 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51111 (grub_setup_SOURCES): Likewise.
51112 (grub_mkdevicemap_SOURCES): Likewise.
51113 (grub_emu_SOURCES): Likewise.
51114 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51115
51116 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51117
51118 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51119
51120 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51121
51122 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51123 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51124 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51125 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51126 normal/lexer.c, normal/parser.y, normal/script.c, and
51127 partmap/gpt.c.
51128 Removed kern/sparc64/cache.c.
51129
51130 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51131 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51132 grub_emu_init.c.
51133
51134 * configure.ac (AC_INIT): Bumped to 1.92.
51135
51136 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51137
51138 * kern/err.c (grub_error_push): Added new function to support error
51139 stacks.
51140 (grub_error_pop): Likewise.
51141 (grub_error_stack_items): New local variable to support error stacks.
51142 (grub_error_stack_pos): Likewise.
51143 (grub_error_stack_assert): Likewise.
51144 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51145 stack depth.
51146 (grub_print_error): Added support to print errors from error stack.
51147
51148 * include/grub/err.h (grub_error_push): Added function prototype.
51149 (grub_error_pop): Likewise.
51150
51151 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51152
51153 * configure.ac: Accept `powerpc64' as host_cpu.
51154 (amd64): Rename to `biarch32'.
51155
51156 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51157 non-cacheline-aligned addresses.
51158
51159 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51160 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51161 if `size' is non-zero.
51162
51163 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51164
51165 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51166 and `cd' to make sure the filename is not prefixed with a
51167 directory name.
51168 (pkgdata_MODULES): Add `gpt.mod'.
51169 (gpt_mod_SOURCES): New variable.
51170 (gpt_mod_CFLAGS): Likewise.
51171 (gpt_mod_LDFLAGS): Likewise.
51172
51173 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51174
51175 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51176 New macro.
51177
51178 * partmap/gpt.c: New file.
51179
51180 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51181 GPT partition map is detected.
51182
51183 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51184
51185 * commands/i386/pc/play.c: New file.
51186 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51187 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51188 macros.
51189
51190 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51191
51192 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51193 ((unused))' to silence gcc warning.
51194
51195 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51196
51197 * configure.ac: Correct `AC_PROG_YACC' test.
51198
51199 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51200
51201 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51202 check before installing files.
51203
51204 2005-11-22 Mike Small <smallm@panix.com>
51205
51206 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51207 number regex so multidigit numbers are recognized correctly.
51208
51209 2005-11-22 Mike Small <smallm@panix.com>
51210
51211 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51212 debugging message before attempting to claim memory.
51213 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51214 multiple addresses in case of failure.
51215
51216 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51217
51218 * term/tparm.c (get_space): Remove empty `if' statement.
51219
51220 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51221
51222 * kern/parser.c (check_varstate): Rename `state' to 's'.
51223
51224 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51225
51226 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51227 variable definitions to the beginning of each function. Sort stack
51228 variables by size.
51229 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51230 `buf' argument to `char *'.
51231
51232 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51233
51234 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51235 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51236 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51237 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51238 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51239 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51240 configfile.mod, search.mod, gzio.mod and test.mod.
51241 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51242 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51243 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51244 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51245 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51246 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51247 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51248 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51249 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51250 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51251 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51252 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51253 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51254 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51255 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51256 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51257 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51258 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51259 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51260 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51261 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51262 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51263 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51264
51265 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51266 `grep --include'.
51267 (pkgdata_MODULES): Add test.mod.
51268
51269 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51270
51271 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51272 appending to variables with "+=".
51273 (PModule): Use full pathname to generate *.lst filenames.
51274
51275 * Makefile.in: Fixed list rules moved from genmk.rb.
51276 (.DELETE_ON_ERROR): New special target.
51277 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51278
51279 * conf/i386-pc.rmk: Include conf/common.mk.
51280 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51281 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51282 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51283 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51284 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51285 configfile.mod, search.mod, gzio.mod and test.mod.
51286 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51287 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51288 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51289 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51290 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51291 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51292 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51293 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51294 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51295 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51296 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51297 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51298 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51299 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51300 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51301 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51302 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51303 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51304 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51305 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51306 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51307 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51308 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51309 here...
51310 * conf/common.rmk: ... to here. New file.
51311
51312 * conf/common.mk: New file.
51313
51314 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51315
51316 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51317 (grub_script.tab.c): ... here.
51318
51319 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51320 (grub_script.tab.c): ... here.
51321
51322 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51323 (grub_script.tab.c): ... here.
51324
51325 * normal/command.c (grub_command_find): Fixed a memory leak of
51326 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51327
51328 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51329
51330 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51331 "@" which marks the start of a comment on ARM.
51332 (VARIABLE): Likewise.
51333
51334 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51335
51336 Add support for Linux/ADFS partition tables.
51337
51338 * partmap/acorn.c: New file.
51339
51340 * include/grub/acorn_filecore.h: Likewise.
51341
51342 * DISTLIST: Added `partmap/acorn.c' and
51343 `include/grub/acorn_filecore.h'.
51344
51345 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51346 `partmap/acorn.c'.
51347 (pkgdata_MODULES): Add `acorn.mod'.
51348 (acorn_mod_SOURCES): New variable.
51349 (acorn_mod_CFLAGS): Likewise.
51350
51351 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51352 `partmap/acorn.c'.
51353 (pkgdata_MODULES): Add `acorn.mod'.
51354 (acorn_mod_SOURCES): New variable.
51355 (acorn_mod_CFLAGS): Likewise.
51356
51357 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51358 (pkgdata_MODULES): Add `acorn.mod'.
51359 (acorn_mod_SOURCES): New variable.
51360 (acorn_mod_CFLAGS): Likewise.
51361 (acorn_mod_LDFLAGS): Likewise.
51362
51363 * include/types.h (grub_disk_addr_t): New typedef.
51364
51365 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51366
51367 * geninit.sh: New file.
51368
51369 * geninitheader.sh: Likewise.
51370
51371 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51372 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51373 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51374 * commands/configfile.c (grub_configfile_init)
51375 (grub_configfile_fini): Likewise.
51376 * commands/default.c (grub_default_init, grub_default_fini):
51377 Likewise.
51378 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51379 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51380 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51381 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51382 Likewise.
51383 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51384 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51385 Likewise.
51386 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51387 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51388 Likewise.
51389 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51390 Likewise.
51391 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51392 Likewise.
51393 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51394 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51395 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51396 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51397 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51398 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51399 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51400 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51401 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51402 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51403 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51404 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51405 * partmap/amiga.c (grub_amiga_partition_map_init)
51406 (grub_amiga_partition_map_fini): Likewise.
51407 * partmap/apple.c (grub_apple_partition_map_init)
51408 (grub_apple_partition_map_fini): Likewise.
51409 * partmap/pc.c (grub_pc_partition_map_init)
51410 (grub_pc_partition_map_fini): Likewise.
51411 * partmap/sun.c (grub_sun_partition_map_init,
51412 grub_sun_partition_map_fini): Likewise.
51413 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51414 Likewise.
51415
51416 * util/grub-emu.c: Include <grub_modules_init.h>.
51417 (main): Don't initialize and de-initialize any modules directly,
51418 use `grub_init_all' and `grub_fini_all' instead.
51419
51420 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51421 `grub_vesafb_mod_init'.
51422 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51423 all users.
51424 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51425 `grub_vga_mod_init'. Updated all users.
51426 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51427
51428 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51429 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51430 rules.
51431
51432 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51433 Generate a function to initialize the module in utilities.
51434 Updated all callers.
51435 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51436 initialize the module in utilities. Updated all callers.
51437
51438 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51439
51440 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51441 escape sequence and a literal ^L to clear the screen.
51442
51443 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51444 when returning from Open Firmware.
51445
51446 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51447
51448 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51449 (grub_ofconsole_height): Likewise.
51450 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51451 manually insert a '\n'.
51452 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51453 `grub_ofconsole_height'. Return early if these are already set.
51454
51455 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51456
51457 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51458 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51459 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51460 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51461 and `normal/script.c'.
51462 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51463 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51464 (test_mod_SOURCES): New variable.
51465 (test_mod_CFLAGS): Likewise.
51466 (test_mod_LDFLAGS): Likewise.
51467 (pkgdata_MODULES): Add `test.mod'.
51468 (grub_script.tab.c): New rule.
51469 (grub_script.tab.h): Likewise.
51470
51471 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51472
51473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51474 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51475 `grub_script.tab.c', `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): New variable.
51479 (test_mod_CFLAGS): Likewise.
51480 (pkgdata_MODULES): Add `test.mod'.
51481 (grub_script.tab.c): New rule.
51482 (grub_script.tab.h): Likewise.
51483
51484 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51485
51486 Add initial scripting support.
51487
51488 * commands/test.c: New file.
51489 * include/grub/script.h: Likewise.
51490 * normal/execute.c: Likewise.
51491 * normal/function.c: Likewise.
51492 * normal/lexer.c: Likewise.
51493 * normal/parser.y: Likewise.
51494 * normal/script.c: Likewise.
51495
51496 * configure.ac: Add `AC_PROG_YACC' test.
51497
51498 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51499 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51500 `normal/function.c' and `normal/script.c'.
51501 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51502 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51503 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51504 variables.
51505 (pkgdata_MODULES): Add `test.mod'.
51506 (grub_script.tab.c): New rule.
51507 (grub_script.tab.h): Likewise.
51508
51509 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51510
51511 * include/grub/normal.h (grub_test_init): New prototype.
51512 (grub_test_fini): Likewise.
51513
51514 * normal/command.c: Include <grub/script.h>.
51515 (grub_command_execute): Rewritten.
51516
51517 * util/grub-emu.c (main): Call `grub_test_init' and
51518 `grub_test_fini'.
51519
51520 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51521
51522 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51523 to 0.
51524 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51525 there are no pending characters.
51526
51527 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51528
51529 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51530 `grub_strndup' to drop device arguments. Replace unnecessary
51531 `grub_strndup' with `grub_strdup'.
51532
51533 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51534
51535 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51536 `debug' environment variable has been set.
51537
51538 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51539
51540 * Makefile.in (install-local): Use $(DATA).
51541 (uninstall): Likewise.
51542 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51543 (sbin_UTILITIES): ... to here.
51544 (sbin_SCRIPTS): New variable.
51545 (grub_install_SOURCES): New variable.
51546 * util/powerpc/ieee1275/grub-install.in: New file.
51547 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51548 variable.
51549 (add_segments): Call `grub_util_get_path'.
51550
51551 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51552
51553 From Timothy Baldwin:
51554 * commands/ls.c (grub_ls_list_files): Close FILE with
51555 grub_file_close.
51556 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51557
51558 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51559
51560 * include/grub/parser.h: New file.
51561
51562 * kern/parser.c: Likewise.
51563
51564 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51565 (grub_setup_SOURCES): Likewise.
51566 (grub_probefs_SOURCES): Likewise.
51567 (grub_emu_SOURCES): Likewise.
51568 (kernel_img_HEADERS): Add `parser.h'.
51569
51570 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51571 (grub_emu_SOURCES): Add `kern/parser.c'.
51572 (grubof_SOURCES): Likewise.
51573
51574 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51575 (grubof_SOURCES): Add `kern/parser.c'.
51576
51577 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51578
51579 * kern/misc.c (grub_split_cmdline): Removed function.
51580
51581 * kern/rescue.c: Include <grub/parser.h>.
51582 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51583 of `grub_split_cmdline'.
51584
51585 * normal/command.c: Include <grub/parser.h>.
51586 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51587 of `grub_split_cmdline'.
51588
51589 * normal/completion.c: Include <grub/parser.h>.
51590 (cmdline_state): New variable.
51591 (iterate_dir): End the filename with a quote depending on the
51592 command line state.
51593 (get_state): new function.
51594 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51595 split the arguments and determine the current argument. When the
51596 argument string is not quoted, escape all spaces.
51597
51598 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51599
51600 * normal/sparc64/setjmp.S: New file.
51601
51602 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51603
51604 * include/grub/sparc64/libgcc.h: New file.
51605 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51606 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51607 normal/sparc64/setjmp.c.
51608
51609 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51610
51611 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51612 * kern/sparc64/cache.S: New file.
51613 * kern/sparc64/cache.c: Removed.
51614 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51615 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51616 -mtune=ultrasparc.
51617 (COMMON_LDFLAGS): Add -melf64_sparc.
51618 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51619 (grubof_SOURCES): Use cache.S instead of cache.c.
51620 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51621 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51622 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51623 commented though.
51624 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51625 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51626 (linux_mod_CFLAGS): Commented out.
51627 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51628 out because module isn't built.
51629 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51630 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51631 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51632 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51633 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51634 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51635 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51636 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51637 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51638 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51639 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51640 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51641 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51642 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51643
51644 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51645
51646 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51647 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51648 longer, because HFS should not be used on PC.
51649
51650 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51651
51652 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51653 consistently within the loop.
51654
51655 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51656
51657 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51658 directory can not be read.
51659
51660 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51661
51662 * configure.ac (AC_INIT): Increase the version number to 1.91.
51663
51664 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51665 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51666 term/i386/pc/serial.c.
51667
51668 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51669
51670 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51671 file size must be permitted.
51672
51673 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51674 between %ah and %al.
51675
51676 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51677
51678 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51679 grub_uint64_t.
51680 Call the hook with a NUL-terminated filename.
51681 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51682 grub_cpu_to_be32.
51683
51684 * kern/term.c (cursor_state): New variable.
51685 (grub_term_set_current): Reset the cursor state on a new
51686 terminal.
51687 (grub_setcursor): Rewritten to use CURSOR_STATE.
51688 (grub_getcursor): New function.
51689
51690 * include/grub/term.h (grub_getcursor): New prototype.
51691
51692 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51693 integers on ARM. Reported by Timothy Baldwin
51694 <T.E.Baldwin99@members.leeds.ac.uk>.
51695
51696 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51697
51698 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51699 allocated.
51700 (grub_sfs_dir): Likewise.
51701
51702 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51703
51704 Add support for the SFS filesystem.
51705
51706 * fs/sfs.c: New file.
51707
51708 * DISTLIST: Added `fs/sfs.c'.
51709
51710 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51711 (grub_probefs_SOURCES): Likewise.
51712 (grub_emu_SOURCES): Likewise.
51713 (pkgdata_MODULES): Add `sfs.mod'.
51714 (sfs_mod_SOURCES): New variable.
51715 (sfs_mod_CFLAGS): Likewise.
51716 (sfs_mod_LDFLAGS): Likewise.
51717
51718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51719 (pkgdata_MODULES): Add `sfs.mod'.
51720 (sfs_mod_SOURCES): New variable.
51721 (sfs_mod_CFLAGS): Likewise.
51722
51723 * util/grub-emu.c (main): Call `grub_sfs_init' and
51724 `grub_sfs_fini'.
51725
51726 * include/grub/fs.h (grub_sfs_init): New prototype.
51727 (grub_sfs_fini): Likewise.
51728
51729 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51730
51731 Add support for the AFFS filesystem.
51732
51733 * fs/affs.c: New file.
51734
51735 * DISTLIST: Added `fs/affs.c'.
51736
51737 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51738 (grub_probefs_SOURCES): Likewise.
51739 (grub_emu_SOURCES): Likewise.
51740 (pkgdata_MODULES): Add `affs.mod'.
51741 (affs_mod_SOURCES): New variable.
51742 (affs_mod_CFLAGS): Likewise.
51743 (affs_mod_LDFLAGS): Likewise.
51744
51745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51746 (pkgdata_MODULES): Add `affs.mod'.
51747 (affs_mod_SOURCES): New variable.
51748 (affs_mod_CFLAGS): Likewise.
51749
51750 * util/grub-emu.c (main): Call `grub_affs_init' and
51751 `grub_affs_fini'.
51752
51753 * include/grub/fs.h (grub_affs_init): New prototype.
51754 (grub_affs_fini): Likewise.
51755
51756 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51757
51758 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51759
51760 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51761
51762 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51763 `-m32' to CFLAGS.
51764
51765 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51766 linking.
51767
51768 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51769 (COMMON_LDFLAGS): New variable.
51770 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51771 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51772 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51773 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51774 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51775 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51776 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51777 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51778 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51779 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51780 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51781 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51782 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51783 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51784 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51785 variables.
51786 (normal_mod_ASFLAGS): Add `-m32'.
51787
51788 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51789 (grub_host_size_t, grub_host_ssize_t): New types.
51790 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51791 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51792 `GRUB_HOST_SIZEOF_VOID_P'.
51793
51794 * include/grub/kernel.h (struct grub_module_header): Type of
51795 member offset changed to `grub_host_off_t'. Type of member size
51796 changed to `grub_host_size_t'.
51797 (struct grub_module_info): Type of member offset changed to
51798 `grub_host_off_t'. Type of member size changed to
51799 `grub_host_size_t'.
51800
51801 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51802
51803 Make GRUB's kernel compliant to Multiboot Specification.
51804
51805 * kern/i386/pc/startup.S (multiboot_header): New label.
51806 (multiboot_entry): Likewise.
51807 (multiboot_trampoline): Likewise.
51808
51809 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51810 Increased to 0x4A0.
51811
51812 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51813 put parentheses after a question mark.
51814 [!GRUB_UTIL] (my_mod): New variable.
51815
51816 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51817
51818 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51819
51820 Adds support for the XFS filesystem. Btrees are not supported
51821 yet.
51822
51823 * fs/xfs.c: New file.
51824
51825 * DISTLIST: Added `fs/xfs.c'.
51826
51827 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51828 (grub_probefs_SOURCES): Likewise.
51829 (grub_emu_SOURCES): Likewise.
51830 (pkgdata_MODULES): Add `xfs.mod'.
51831 (xfs_mod_SOURCES): New variable.
51832 (xfs_mod_CFLAGS): Likewise.
51833
51834 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51835 (pkgdata_MODULES): Add `xfs.mod'.
51836 (xfs_mod_SOURCES): New variable.
51837 (xfs_mod_CFLAGS): Likewise.
51838
51839 * util/grub-emu.c (main): Call `grub_xfs_init' and
51840 `grub_xfs_fini'.
51841
51842 * include/grub/fs.h (grub_xfs_init): New prototype.
51843 (grub_xfs_fini): Likewise.
51844
51845
51846 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51847
51848 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51849 color modes, allow greater than 16 colors to be configured as
51850 a default palette.
51851
51852 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51853
51854 * normal/completion.c (complete_arguments): Add the qualifier
51855 const into OPTIONS.
51856
51857 From Omniflux <omniflux+lists@omniflux.com>:
51858 * include/grub/terminfo.h: New file.
51859 * include/grub/tparm.h: Likewise.
51860 * include/grub/i386/pc/serial.h: Likewise.
51861 * term/terminfo.c: Likewise.
51862 * term/tparm.c: Likewise.
51863 * term/i386/pc/serial.c: Likewise.
51864 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51865 serial.mod.
51866 (terminfo_mod_SOURCES): New variable.
51867 (terminfo_mod_CFLAGS): Likewise.
51868 (serial_mod_SOURCES): Likewise.
51869 (serial_mod_CFLAGS): Likewise.
51870
51871 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51872
51873 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51874 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51875 and kern/powerpc/ieee1275/cmain.c, respectively.
51876
51877 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51878 * kern/powerpc/ieee1275/crt0.S: ... here.
51879
51880 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51881 * kern/powerpc/ieee1275/cmain.c: ... here.
51882
51883 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51884 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51885 instead of boot/powerpc/ieee1275/crt0.S and
51886 boot/powerpc/ieee1275/cmain.c, respectively.
51887
51888 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51889 sectors. It was not used anyway.
51890
51891 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51892
51893 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51894 `unused parameter' warning.
51895
51896 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51897
51898 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51899 function.
51900 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51901 getcharwidth.
51902
51903 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51904
51905 * include/grub/normal.h (enum grub_completion_type): Added
51906 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51907
51908 * normal/cmdline.c (print_completion): Handle
51909 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51910 * normal/menu_entry.c (store_completion): Likewise.
51911
51912 * normal/completion.c (complete_arguments): New function.
51913 (grub_normal_do_completion): Call `complete_arguments' when the
51914 current words start with a dash.
51915
51916 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51917
51918 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51919 `gzio.mod' instead of `io.mod').
51920
51921 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51922
51923 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51924 (DISTDIRS): Added io and video.
51925 Rewrite the search routine to make an output consistently.
51926
51927 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51928 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51929 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51930 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51931 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51932 util/powerpc/ieee1275/misc.c.
51933
51934 * include/grub/gzio.h: New file.
51935 * io/gzio.c: Likewise.
51936
51937 * kern/file.c (grub_file_close): Call grub_device_close only if
51938 FILE->DEVICE is not NULL.
51939
51940 * include/grub/mm.h [!NULL] (NULL): New macro.
51941
51942 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51943
51944 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51945 (pkgdata_MODULES): Added gzio.mod.
51946 (gzio_mod_SOURCES): New variable.
51947 (gzio_mod_CFLAGS): Likewise.
51948
51949 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51950 (pkgdata_MODULES): Added gzio.mod.
51951 (gzio_mod_SOURCES): New variable.
51952 (gzio_mod_CFLAGS): Likewise.
51953
51954 * commands/cat.c: Include grub/gzio.h.
51955 (grub_cmd_cat): Use grub_gzfile_open instead of
51956 grub_file_open.
51957
51958 * commands/cmp.c: Include grub/gzio.h.
51959 (grub_cmd_cmp): Use grub_gzfile_open instead of
51960 grub_file_open.
51961
51962 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51963 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
51964 grub_file_open.
51965 (grub_rescue_cmd_module): Likewise.
51966
51967 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51968
51969 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
51970 kern/sparc64/ieee1275/init.c because it contains _start.
51971 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
51972
51973 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
51974
51975 * configure.ac: Add support for sparc64 host with ieee1275
51976 firmware.
51977 * configure: Generated from configure.ac.
51978 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
51979 instead of int.
51980 (grub_ofdisk_read): Likewise.
51981 (grub_ofdisk_open): Use %p to print pointer values, and cast the
51982 pointers as (void *) to remove a warning.
51983 (grub_ofdisk_close): Likewise.
51984 (grub_ofdisk_read): Likewise.
51985 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
51986 returns, so make it return void to remove a warning.
51987 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
51988 Corresponding prototype change.
51989 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
51990 values, and cast the pointers as (void *) to remove a warning.
51991 (grub_mm_dump): Likewise.
51992 * conf/sparc64-ieee1275.mk: New file.
51993 * conf/sparc64-ieee1275.rmk: Likewise.
51994 * include/grub/sparc64/setjmp.h: Likewise.
51995 * include/grub/sparc64/types.h: Likewise.
51996 * include/grub/sparc64/ieee1275/console.h: Likewise.
51997 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
51998 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
51999 * include/grub/sparc64/ieee1275/time.h: Likewise.
52000 * kern/sparc64/cache.c: Likewise.
52001 * kern/sparc64/dl.c: Likewise.
52002 * kern/sparc64/ieee1275/init.c: Likewise.
52003 * kern/sparc64/ieee1275/openfw.c: Likewise.
52004
52005 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52006
52007 * util/console.c (grub_ncurses_putchar): If C is greater than
52008 0x7f, set C to a question mark.
52009 (grub_ncurses_getcharwidth): New function.
52010 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52011 getcharwidth.
52012
52013 * normal/menu.c (print_entry): Made aware of Unicode. First,
52014 convert TITLE to UCS-4, and predict the cursor position by
52015 grub_getcharwidth.
52016
52017 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52018 const to SRC.
52019 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52020
52021 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52022
52023 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52024 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52025 grub_strcat.
52026
52027 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52028 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52029 grub_strcpy and grub_strlen. Take it into account that a space
52030 character is inserted as a delimiter.
52031
52032 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52033
52034 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52035 invalid magic in the error.
52036
52037 * commands/search.c: New file.
52038
52039 * util/grub-emu.c (main): Call grub_search_init and
52040 grub_search_fini.
52041
52042 * kern/rescue.c (grub_rescue_print_disks): Removed.
52043 (grub_rescue_print_devices): New function.
52044 (grub_rescue_cmd_ls): Use grub_device_iterate with
52045 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52046 grub_rescue_print_disks.
52047
52048 * kern/partition.c (grub_partition_iterate): Return the result of
52049 PARTMAP->ITERATE instead of GRUB_ERRNO.
52050
52051 * kern/device.c: Include grub/partition.h.
52052 (grub_device_iterate): New function.
52053
52054 * include/grub/partition.h (grub_partition_iterate): Return int
52055 instead of grub_err_t.
52056
52057 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52058 prototype.
52059 [GRUB_UTIL] (grub_search_fini): Likewise.
52060
52061 * include/grub/device.h (grub_device_iterate): New prototype.
52062
52063 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52064 commands/search.c.
52065 (pkgdata_MODULES): Added search.mod.
52066 (search_mod_SOURCES): New variable.
52067 (search_mod_CFLAGS): Likewise.
52068
52069 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52070 (pkgdata_MODULES): Added search.mod.
52071 (search_mod_SOURCES): New variable.
52072 (search_mod_CFLAGS): Likewise.
52073
52074 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52075 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52076 All callers changed.
52077
52078 * DISTLIST: Added commands/search.c.
52079
52080 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52081
52082 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52083 conversion.
52084 (grub_getcharwidth): New function.
52085
52086 * kern/misc.c (grub_utf8_to_ucs4): New function.
52087
52088 * include/grub/term.h (struct grub_term): Added a new member
52089 "getcharwidth".
52090 (grub_getcharwidth): New prototype.
52091
52092 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52093
52094 * term/i386/pc/console.c (map_char): New function. Segregated from
52095 grub_console_putchar.
52096 (grub_console_putchar): Use map_char.
52097 (grub_console_getcharwidth): New function.
52098 (grub_console_term): Specified grub_console_getcharwidth as
52099 getcharwidth.
52100
52101 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52102 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52103
52104 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52105 GRUB_ERRNO.
52106 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52107 on grub_strtoul completely.
52108 (write_char): Declare local variables in the beginning of the
52109 function.
52110 (grub_vesafb_getcharwidth): New function.
52111 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52112 getcharwidth.
52113
52114 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52115
52116 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52117 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52118 commands/i386/pc/vbetest.c.
52119
52120 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52121 call grub_vbe_get_controller_info again, because the returned
52122 information is volatile.
52123 (grub_vbe_set_video_mode): Mostly rewritten.
52124 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52125 grub_vbe_status_t correctly.
52126 (grub_vbe_get_video_mode_info): Likewise.
52127 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52128 several if statements.
52129
52130 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52131 * commands/i386/pc/vbeinfo.c: ... this.
52132
52133 * commands/i386/pc/vbe_test.c: Renamed to ...
52134 * commands/i386/pc/vbetest.c: ... this.
52135
52136 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52137 ...
52138 (grub_cmd_vbeinfo): ... this. Save video modes before
52139 iterating. Skip a video mode, if it is not available, not enough
52140 information is given or it is monochrome. Show the memory
52141 model. Leave the interpretation of MODEVAR to grub_strtoul
52142 completely.
52143 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52144 (GRUB_MOD_FINI): Likewise.
52145
52146 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52147 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52148 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52149 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52150 grub_strtoul completely.
52151 (real2pm): Removed.
52152 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52153 (GRUB_MOD_FINI): Likewise.
52154
52155 * normal/misc.c: Include grub/mm.h.
52156
52157 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52158 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52159 (vbe_list_modes_mod_SOURCES): Removed.
52160 (vbe_list_modes_mod_CFLAGS): Likewise.
52161 (vbe_test_mod_SOURCES): Likewise.
52162 (vbe_test_mod_CFLAGS): Likewise.
52163 (vbeinfo_mod_SOURCES): New variable.
52164 (vbeinfo_mod_CFLAGS): Likewise.
52165 (vbetest_mod_SOURCES): Likewise.
52166 (vbetest_mod_CFLAGS): Likewise.
52167
52168 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52169
52170 * normal/misc.c: New file.
52171
52172 * DISTLIST: Added normal/misc.c.
52173
52174 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52175 DISK to HOOK. Call HOOK with DISK.
52176 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52177 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52178 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52179
52180 * normal/menu_entry.c (struct screen): Added a new member
52181 "completion_shown".
52182 (completion_buffer): New global variable.
52183 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52184 (store_completion): New function.
52185 (complete): Likewise.
52186 (clear_completions): Likewise.
52187 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52188 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52189 a tab, call complete.
52190
52191 * normal/completion.c (disk_dev): Removed.
52192 (print_simple_completion): Likewise.
52193 (print_partition_completion): Likewise.
52194 (print_func): New global variable.
52195 (add_completion): Do not take the arguments WHAT or PRINT any
52196 longer. Added a new argument TYPE. Instead of printing directly,
52197 call PRINT_FUNC if not NULL.
52198 All callers changed.
52199 (complete_device): Use a local variable DEV instead of
52200 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52201 (grub_normal_do_completion): Take a new argument HOOK. Do not
52202 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52203 empty string, return NULL instead.
52204 All callers changed.
52205
52206 * normal/cmdline.c (print_completion): New function.
52207
52208 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52209 to HOOK.
52210 All callers changed.
52211
52212 * kern/disk.c (grub_print_partinfo): Removed.
52213
52214 * include/grub/partition.h (struct grub_partition_map): Add a new
52215 argument DISK into HOOK of ITERATE.
52216 (grub_partition_iterate): Add a new argument DISK to HOOK.
52217
52218 * include/grub/normal.h (enum grub_completion_type): New enum.
52219 (grub_completion_type_t): New type.
52220 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52221 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52222 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52223 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52224 (grub_normal_do_completion): Added a new argument HOOK.
52225 (grub_normal_print_device_info): New prototype.
52226
52227 * include/grub/disk.h (grub_print_partinfo): Removed.
52228
52229 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52230 (normal_mod_SOURCES): Likewise.
52231 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52232 (normal_mod_SOURCES): Likewise.
52233
52234 * commands/ls.c (grub_ls_list_disks): Use
52235 grub_normal_print_device_info instead of grub_print_partinfo. Free
52236 PNAME.
52237 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52238 duplicating the code.
52239
52240 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52241
52242 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52243 follow GCS more precisely.
52244 * commands/i386/pc/vbe_test.c: Likewise.
52245 * include/grub/i386/pc/vbe.h: Likewise.
52246 * term/i386/pc/vesafb.c: Likewise.
52247 * video/i386/pc/vbe.c: Likewise.
52248
52249 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52250
52251 * DISTLIST: Added term/i386/pc/vesafb.c
52252 DISTLIST: Added video/i386/pc/vbe.c
52253 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52254 DISTLIST: Added commands/i386/pc/vbe_test.c.
52255 * commands/i386/pc/vbe_list_modes.c: New file.
52256 * commands/i386/pc/vbe_test.c: Likewise.
52257 * term/i386/pc/vesafb.c: Likewise.
52258 * video/i386/pc/vbe.c: Likewise.
52259 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52260 (grub_vbe_probe) Added prototype.
52261 (grub_vbe_set_video_mode) Likewise.
52262 (grub_vbe_get_video_mode) Likewise.
52263 (grub_vbe_get_video_mode_info) Likewise.
52264 (grub_vbe_set_pixel_rgb) Likewise.
52265 (grub_vbe_set_pixel_index) Likewise.
52266 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52267 (pkgdata_MODULES): Added vesafb.mod.
52268 (pkgdata_MODULES): Added vbe_list_modes.mod.
52269 (pkgdata_MODULES): Added vbe_test.mod.
52270 (vbe_mod_SOURCES): Added.
52271 (vbe_mod_CFLAGS): Likewise.
52272 (vesafb_mod_SOURCES): Likewise.
52273 (vesafb_mod_CFLAGS): Likewise.
52274 (vbe_list_modes_mod_SOURCES): Likewise.
52275 (vbe_list_modes_mod_CFLAGS): Likewise.
52276 (vbe_test_mod_SOURCES): Likewise.
52277 (vbe_test_mod_CFLAGS): Likewise.
52278
52279 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52280
52281 * normal/command.c (grub_command_execute): If INTERACTIVE is
52282 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52283 CMDLINE. Disable the pager if INTERACTIVE is true.
52284 All callers are changed.
52285
52286 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52287 before reading a config file.
52288 * normal/main.c (read_config_file): Even if a command is not
52289 found, register it if it is within an entry.
52290
52291 * util/grub-emu.c: Include sys/types.h and unistd.h.
52292 (options): Added --hold.
52293 (struct arguments): Added a new member "hold".
52294 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52295 missing.
52296 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52297 cleared by a debugger, if it is not zero.
52298
52299 * include/grub/normal.h (grub_command_execute): Add an argument
52300 INTERACTIVE.
52301
52302 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52303
52304 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52305
52306 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52307
52308 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52309 program with another one, because the old one didn't detect a bug
52310 in gcc-3.4. Always use regparm 2, because the new test is still
52311 not enough for gcc-4.0. Someone must investigate a simple test
52312 case which detects a bug in gcc-4.0.
52313
52314 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52315
52316 * DISTLIST: Added normal/completion.c.
52317
52318 * normal/completion.c: New file.
52319
52320 * term/i386/pc/console.c (grub_console_getwh): New function.
52321 (grub_console_term): Assign grub_console_getwh to getwh.
52322
52323 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52324 function is defined in normal/completion.c as
52325 grub_normal_do_completion.
52326 (grub_cmdline_get): Use grub_normal_do_completion instead of
52327 grub_tab_complete.
52328
52329 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52330 returns non-zero, otherwise return 0.
52331 (grub_partition_iterate): First, probe the partition map. Then,
52332 call ITERATE only for this partition map.
52333
52334 * kern/misc.c (grub_strncmp): Rewritten.
52335
52336 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52337 returns non-zero. Otherwise return 0.
52338
52339 * include/grub/partition.h (grub_partition_map_iterate): Return
52340 int instead of void.
52341
52342 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52343
52344 * include/grub/misc.h (grub_strncmp): Change the type of N to
52345 grub_size_t.
52346
52347 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52348 of void.
52349
52350 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52351 unsigned explicitly before comparing it with I.
52352
52353 * kern/main.c (grub_env_write_root): Add the attribute unused into
52354 VAR.
52355
52356 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52357 normal/completion.c.
52358 (normal_mod_SOURCES): Likewise.
52359 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52360 (normal_mod_SOURCES): Likewise.
52361
52362 * normal/command.c (grub_iterate_commands): If ITERATE returns
52363 non-zero, return one immediately.
52364
52365 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52366
52367 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52368 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52369 descriptions.
52370 (grub_vbe_get_controller_info): New function.
52371 (grub_vbe_get_mode_info): Likewise.
52372 (grub_vbe_set_mode): Likewise.
52373 (grub_vbe_get_mode): Likewise.
52374 (grub_vbe_set_memory_window): Likewise.
52375 (grub_vbe_get_memory_window): Likewise.
52376 (grub_vbe_set_scanline_length): Likewise.
52377 (grub_vbe_get_scanline_length): Likewise.
52378 (grub_vbe_set_display_start): Likewise.
52379 (grub_vbe_get_display_start): Likewise.
52380 (grub_vbe_set_palette_data): Likewise.
52381 * include/grub/i386/pc/vbe.h: New file.
52382
52383 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52384
52385 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52386 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52387 * DISTLIST: Likewise.
52388 * kern/ieee1275/of.c: Moved to ...
52389 * kern/ieee1275/ieee1275.c: ... here.
52390
52391 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52392
52393 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52394 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52395 Pass 0 as `end' parameter to grub_strtoul().
52396
52397 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52398
52399 * include/grub/powerpc/ieee1275/console.h: Do not include
52400 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52401 ifdef.
52402 (grub_console_cur_color): Remove i386-specific prototype.
52403 (grub_console_real_putchar): Likewise.
52404 (grub_console_checkkey): Likewise.
52405 (grub_console_getkey): Likewise.
52406 (grub_console_getxy): Likewise.
52407 (grub_console_gotoxy): Likewise.
52408 (grub_console_cls): Likewise.
52409 (grub_console_setcursor): Likewise.
52410 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52411 Include <grub/machine/console.h>.
52412 * term/ieee1275/ofconsole.c: Likewise.
52413
52414 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52415
52416 * Makefile.in (LIBLZO): New variable.
52417
52418 * configure.ac: Check for LZO version 2.
52419
52420 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52421 lzo/lzo1x.h instead of lzo1x.h.
52422
52423 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52424 of -llzo.
52425
52426 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52427 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52428
52429 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52430 copying the data from PARTITION to P.
52431
52432 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52433
52434 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52435 negative, unload the module.
52436
52437 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52438 map is "pc_partition_map" but not "pc".
52439 (usage): Fix the description. The options are --boot-image and
52440 --core-image but not --boot-file or --core-file.
52441 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52442 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52443 DEFAULT_DIRECTORY.
52444
52445 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52446 --core-file. Specify INSTALL_DEVICE as an argument.
52447
52448 * util/console.c: Include config.h.
52449 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52450 [HAVE_NCURSES_H]: Include ncurses.h.
52451 [HAVE_CURSES_H]: Include curses.h.
52452 [!A_NORMAL] (A_NORMAL): Defined as zero.
52453 [!A_STANDOUT] (A_STANDOUT): Likewise.
52454
52455 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52456 -lncurses.
52457 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52458
52459 * configure.ac: Check for curses libraries and headers.
52460
52461 * Makefile.in (LIBCURSES): New variable.
52462
52463 * genmk.rb (Script::rule): Set the executable bits.
52464
52465 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52466 name of the PC partition map is "pc_partition_map" but not "pc".
52467
52468 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52469
52470 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52471 (modules): Likewise.
52472 (usage): Added descriptions for --modules and --grub-probefs.
52473 Handle --modules and --grub-probefs. Save the arguments in MODULES
52474 and GRUB_PROBEFS, respectively.
52475 Auto-detect a filesystem module against GRUBDIR. If the result is
52476 empty and modules are not specified explicitly, abort the
52477 installation. Add the result to MODULES.
52478
52479 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52480 disk/powerpc/ieee1275/ofdisk.c,
52481 include/grub/powerpc/ieee1275/init.h and
52482 term/powerpc/ieee1275/ofconsole.c.
52483 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52484 term/ieee1275/ofconsole.c.
52485
52486 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52487
52488 * COPYING: Upgraded to the latest version. Only the address of the
52489 FSF office has changed.
52490
52491 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52492
52493 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52494 kern/ieee1275.c with kern/ieee1275/of.c.
52495
52496 * kern/ieee1275.c: Moved to ...
52497 * kern/ieee1275/of.c: ... here.
52498
52499 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52500
52501 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52502 readability.
52503
52504 * config.guess: Updated to the latest version from gnulib.
52505 * config.sub: Likewise.
52506 * install.sh: Likewise.
52507 * mkinstalldirs: Likewise.
52508
52509 * include/grub/console.h: Removed. This file is arch-specific. Do
52510 not put this in include/grub.
52511
52512 * include/grub/i386/pc/console.h: Resurrected.
52513
52514 * util/console.c: Include grub/machine/console.h instead of
52515 grub/console.h.
52516 * util/grub-emu.c: Likewise.
52517
52518 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52519
52520 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52521 hardcoded value.
52522
52523 From Vincent Pelletier <subdino2004@yahoo.fr>
52524 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52525 Redefined to use grub_getwh.
52526 (grub_term): New member named getwh.
52527 (grub_getwh): New prototype.
52528 * kern/term.c (grub_getwh): New function.
52529 * term/i386/pc/console.c (grub_console_getwh): New function.
52530 (grub_console_term): New member `getwh'.
52531 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52532 (grub_vga_term): New member `getwh'.
52533 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52534 grub_ssize_t.
52535 (grub_ofconsole_getw): New function.
52536 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52537 (grub_ofconsole_term): New field named getwh and new initial
52538 value.
52539
52540 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52541
52542 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52543 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52544 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52545 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52546 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52547 of <grub/machine/ieee1275.h>.
52548 * commands/ieee1275/reboot.c: Likewise.
52549 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52550 * kern/ieee1275.c: ... to here. All users updated. Change all
52551 parameter structs to use new type `grub_ieee1275_cell_t'.
52552 * term/powerpc/ieee1275/ofconsole.c: Move ...
52553 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52554 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52555 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52556 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52557 to return int.
52558 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52559 Remove unused prototypes. All users updated.
52560 * include/grub/powerpc/ieee1275/console.h: Removed.
52561 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52562 `grub_ieee1275_cell_t'.
52563 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52564 Cast comparisons with -1 to the correct type.
52565 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52566 type to match `grub_ieee1275_entry_fn'.
52567
52568 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52569
52570 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52571
52572 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52573 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52574 partmap/sun.c.
52575 (grub_probefs_SOURCES): New variable.
52576
52577 * util/i386/pc/grub-probefs.c: New file.
52578
52579 * util/i386/pc/grub-setup.c (main): Call
52580 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52581 grub_hfs_init and grub_jfs_init to initialize the system. Call
52582 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52583 grub_pc_partition_map_fini to finish the system.
52584
52585 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52586
52587 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52588 function.
52589 (grub_multiboot_load_elf32): Likewise.
52590 (grub_multiboot_is_elf64): Likewise.
52591 (grub_multiboot_load_elf64): Likewise.
52592 (grub_multiboot_load_elf): Likewise.
52593 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52594 an ELF32 or ELF64 file.
52595 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52596
52597 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52598 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52599 NULL before calling FS->LABEL.
52600 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52601 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52602 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52603 before calling FS->LABEL.
52604
52605 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52606
52607 * util/i386/pc/grub-install.in (datadir): New variable.
52608 (libdir): Removed.
52609 (pkgdatadir): New variable.
52610 (pkglibdir): Removed.
52611
52612 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52613
52614 * DISTLIST: Added util/i386/pc/grub-install.in.
52615
52616 * util/i386/pc/grub-install.in: New file.
52617
52618 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52619 (grub_install_SOURCES): Likewise.
52620
52621 * genmk.rb: Added support for scripts.
52622 (Script): New class.
52623 (scripts): New variable.
52624
52625 * Makefile.in (install-local): Install sbin_SCRIPTS by
52626 INSTALL_SCRIPT.
52627 (uninstall): Remove sbin_SCRIPTS.
52628
52629 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52630 device, try to get a GRUB device by
52631 grub_util_biosdisk_get_grub_dev.
52632 Free DEST_DEV.
52633
52634 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52635 description for --device-map.
52636
52637 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52638
52639 Change the semantics of variable hooks. They now return strings
52640 instead of error values.
52641
52642 * util/i386/pc/grub-setup.c: Include grub/env.h.
52643 (setup): Use grub_device_set_root instead of grub_env_set.
52644
52645 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52646 grub_env_get instead of grub_device_set_root and
52647 grub_device_get_root, respectively.
52648
52649 * kern/main.c (grub_env_write_root): New function.
52650 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52651 grub_env_set instead of grub_device_set_root.
52652
52653 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52654 many variables.
52655 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52656 rather than calling ENV->WRITE_HOOK afterwards.
52657 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52658 passing a pointer of a pointer.
52659 (grub_register_variable_hook): Change the types of "read_hook" and
52660 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52661 respectively.
52662 Allocate the default empty string on the heap, because this string
52663 may be freed later.
52664
52665 * kern/device.c: Include grub/env.h.
52666 (grub_device_set_root): Removed.
52667 (grub_device_get_root): Likewise.
52668 (grub_device_open): Use grub_env_get instead of
52669 grub_device_get_root.
52670
52671 * include/grub/env.h (grub_env_read_hook_t): New type.
52672 (grub_env_write_hook_t): Likewise.
52673 (grub_env_var): Change the types of "read_hook" and "write_hook"
52674 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52675 (grub_register_variable_hook): Likewise.
52676
52677 * include/grub/device.h (grub_device_set_root): Removed.
52678 (grub_device_set_root): Likewise.
52679
52680 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52681 make sure that DIRNAME terminates with '/', so that
52682 grub_fat_find_dir will fail if PATH is not a directory.
52683
52684 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52685 from DIRNAME.
52686 Use the qualifier auto for print_files and print_files_long.
52687 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52688 as a regular file.
52689 Put a newline only if there is no error.
52690 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52691 used.
52692
52693 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52694
52695 * kern/partition.c (grub_partition_probe): Initialize PART to
52696 NULL. Otherwise, when no partition map is registered, this returns
52697 a garbage.
52698
52699 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52700
52701 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52702 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52703 valid.
52704
52705 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52706
52707 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52708 information on each device, if it does not have partitions. Print
52709 "Device" instead of "Disk", because this function is not specific
52710 to disk devices.
52711
52712 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52713 static to ensure that it is put on the memory rather than a
52714 register.
52715
52716 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52717
52718 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52719 (grub_cat_init): Likewise.
52720 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52721 (options): Likewise.
52722 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52723 (grub_configfile_init): Likewise.
52724 * font/manager.c (GRUB_MOD_INIT): Likewise.
52725 * commands/help.c (GRUB_MOD_INIT): Likewise.
52726 (grub_help_init): Likewise.
52727 * normal/command.c (grub_command_init): Likewise.
52728 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52729 * disk/loopback.c (grub_loop_init): Likewise.
52730 (GRUB_MOD_INIT): Likewise.
52731 * commands/ls.c (grub_ls_init): Likewise.
52732 (GRUB_MOD_INIT): Likewise.
52733 (options): Likewise.
52734 * commands/boot.c (grub_boot_init): Likewise.
52735 (GRUB_MOD_INIT): Likewise.
52736 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52737 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52738 (GRUB_MOD_INIT): Likewise.
52739 * commands/cmp.c (grub_cmp_init): Likewise.
52740 (GRUB_MOD_INIT): Likewise.
52741
52742 * normal/arg.c: Use <> instead of "" to include header files.
52743 (SHORT_ARG_HELP): New macro.
52744 (SHORT_ARG_USAGE): Likewise.
52745 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52746 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52747 descriptions.
52748 (find_short): Check if C is 'h' or 'u' explicitly.
52749 (grub_arg_show_help): Use space characters instead of tabs. Treat
52750 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52751 are shown with --help and --usage only if they are not used for
52752 the command itself.
52753 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52754 'h' and 'u'.
52755
52756 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52757 const into "longarg". Change the type of "shortarg" to int.
52758
52759 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52760
52761 * boot/i386/pc/boot.S (boot_drive_check): New label.
52762
52763 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52764 macro.
52765
52766 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52767 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52768
52769 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52770
52771 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52772 When turning off Gate A20, skip the check and return immediately,
52773 because this is not fatal usually.
52774
52775 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52776
52777 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52778 be 0x7C00 instead of 0x8000.
52779
52780 * boot/i386/pc/pxeboot.S: Rewritten.
52781
52782 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52783 EXT_C.
52784 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52785 result.
52786
52787 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52788
52789 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52790 robustness. This routine now supports a BIOS call and System
52791 Control Port A to modify the gate A20.
52792
52793 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52794 Increased to 0x440.
52795
52796 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52797
52798 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52799 device path and resulting ihandle.
52800 (grub_ofdisk_close): dprintf the ihandle being closed.
52801 (grub_ofdisk_read): dprintf function parameters.
52802 * kern/mm.c (grub_mm_init_region): Likewise.
52803 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52804 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52805 size, and boot arguments.
52806 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52807 before loading into memory.
52808 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52809 before loading into memory.
52810
52811 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52812
52813 * kern/mm.c: Added much documentation.
52814 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52815 8, set to 5 instead of 8.
52816
52817 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52818
52819 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52820
52821 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52822 (grub_mkdevicemap_SOURCES): New variable.
52823
52824 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52825 lib/device.c of GRUB Legacy.
52826
52827 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52828
52829 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52830 instead of PATH is NULL.
52831
52832 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52833
52834 * commands/cmp.c (BUFFER_SIZE): New macro.
52835 (grub_cmd_cmp): Close the right file at the right time. Compare
52836 only data just read. Don't report files of different size as
52837 identical. Dynamically allocate buffers. Move variable
52838 declarations at the beginning of function.
52839
52840 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52841
52842 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52843 reverse.
52844
52845 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52846
52847 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52848 when backspace is pressed at beginning of line.
52849
52850 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52851
52852 * DISTLIST: Added genfslist.sh.
52853
52854 * normal/main.c (fs_module_list): New variable.
52855 (autoload_fs_module): New function.
52856 (read_fs_list): Likewise.
52857 (grub_normal_execute): Call read_fs_list.
52858
52859 * kern/fs.c (grub_fs_autoload_hook): New variable.
52860 (grub_fs_probe): Added support for auto-loading.
52861
52862 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52863 (grub_fs_module_list_t): New type.
52864
52865 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52866 (grub_fs_autoload_hook): New prototype.
52867
52868 * genfslist.sh: New file.
52869
52870 * genmk.rb: Added a rule to generate a filesystem list.
52871
52872 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52873
52874 * configure.ac: Fix the test for cross-compiling.
52875
52876 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52877 define GRUB_UTIL anymore.
52878
52879 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52880 so this function works on other systems than just big endian.
52881 (load_modules): Likewise.
52882 (add_segments): Likewise.
52883
52884 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52885
52886 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52887 contains `l' modifier, get a long from va_arg().
52888
52889 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52890
52891 * kern/mm.c (grub_free): If the next free block which is being
52892 merged is the first free block, set the first block to the block
52893 being freed.
52894 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52895
52896 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52897
52898 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52899 `grub_ieee1275_chosen'.
52900
52901 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52902
52903 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52904 (grub_ieee1275_chosen): New variable.
52905 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52906 `chosen'.
52907 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52908 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52909 Rename first argument to `phandle' for consistency.
52910 (grub_ieee1275_get_property_length): Likewise.
52911 (grub_ieee1275_next_property): Likewise. Change type of first argument
52912 to grub_ieee1275_phandle_t.
52913 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52914 Move export next to declaration.
52915 (grub_ieee1275_chosen): New variable.
52916 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52917 Correct cosmetic typo.
52918 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52919 `grub_ieee1275_chosen'.
52920 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52921 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52922 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52923 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52924 `grub_ieee1275_chosen'.
52925
52926 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52927
52928 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52929 /chosen/bootargs.
52930 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52931 /chosen/bootargs as "variable=value" pairs.
52932
52933 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52934
52935 * include/grub/misc.h (grub_dprintf): New macro.
52936 (grub_real_dprintf): New prototype.
52937 (grub_strword): Likewise.
52938 (grub_iswordseparator): Likewise.
52939 * kern/misc.c (grub_real_dprintf): New function.
52940 (grub_strword): Likewise.
52941 (grub_iswordseparator): Likewise.
52942
52943 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52944
52945 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52946 (roundup): Remove macro.
52947 (grub_ieee1275_flags): Make static.
52948 (grub_ieee1275_realmode): Remove.
52949 (grub_ieee1275_test_flag): New function.
52950 (grub_ieee1275_set_flag): Likewise.
52951 (find_options): Rename to `grub_ieee1275_find_options'; update
52952 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52953 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52954 (cmain): New prototype.
52955 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52956 `grub_ieee1275_flags' directly.
52957 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52958 machine/biosdisk.h.
52959 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52960 Don't include grub/machine/init.h.
52961 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52962 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
52963 Remove prototype.
52964 (grub_ieee1275_realmode): Likewise.
52965 (grub_ieee1275_flag): New enum.
52966 (grub_ieee1275_test_flag): New prototype.
52967 (grub_ieee1275_set_flag): New prototype.
52968 * include/grub/powerpc/ieee1275/init.h: Remove file.
52969 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
52970 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
52971 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
52972 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
52973 comment.
52974 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
52975 `grub_ieee1275_test_flag'.
52976 (grub_ieee1275_encode_devname): Likewise.
52977
52978 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
52979
52980 * include/grub/powerpc/ieee1275/ieee1275.h
52981 (grub_ieee1275_encode_devname): New prototype.
52982 (grub_ieee1275_get_filename): Likewise.
52983 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
52984 function.
52985 (grub_set_prefix): Likewise.
52986 (grub_machine_init): Call grub_set_prefix.
52987 * kern/powerpc/ieee1275/openfw.c: Fix typos.
52988 (grub_parse_type): New enum.
52989 (grub_ieee1275_get_devargs): New function.
52990 (grub_ieee1275_get_devname): Likewise.
52991 (grub_ieee1275_parse_args): Likewise.
52992 (grub_ieee1275_get_filename): Likewise.
52993 (grub_ieee1275_encode_devname): Likewise.
52994
52995 2005-03-30 Marco Gerards <metgerards@student.han.nl>
52996
52997 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
52998 `grub_loader_unset'.
52999
53000 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53001
53002 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53003 instead of grub_ieee1275_interpret.
53004 (grub_halt_init): New function.
53005 (grub_halt_fini): Likewise.
53006 (GRUB_MOD_INIT): Correct message grammar.
53007 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53008 instead of grub_ieee1275_interpret.
53009 (grub_reboot_init): New function.
53010 (grub_reboot_fini): Likewise.
53011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53012 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53013 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53014 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53015 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53016 function.
53017 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53018 Add prototype.
53019 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53020 prototype.
53021 (grub_halt): Likewise.
53022 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53023 (cmain): Remove __attribute__((unused)).
53024 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53025 (grub_heap_len): Likewise.
53026 (grub_machine_fini): New function.
53027 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53028 (grub_halt): Likewise.
53029 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53030 function.
53031 * util/powerpc/ieee1275/misc.c: New file.
53032
53033 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53034
53035 * DISTLIST: New file.
53036 * gendistlist.sh: Likewise.
53037
53038 * Makefile.in (COMMON_DISTFILES): Removed.
53039 (BOOT_DISTFILES): Likewise.
53040 (CONF_DISTFILES): Likewise.
53041 (DISK_DISTFILES): Likewise.
53042 (FS_DISTFILES): Likewise.
53043 (INCLUDE_DISTFILES): Likewise.
53044 (KERN_DISTFILES): Likewise.
53045 (LOADER_DISTFILES): Likewise.
53046 (TERM_DISTFILES): Likewise.
53047 (UTIL_DISTFILES): Likewise.
53048 (DISTFILES): Likewise.
53049 (uninstall): Uninstall files in $(pkgdata_DATA).
53050 (DISTLIST): New target.
53051 (distdir): Use the contents of the file DISTLIST to get a list of
53052 distributed files.
53053
53054 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53055
53056 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53057 descriptor. This is ported from GRUB Legacy.
53058
53059 * gencmdlist.sh: Added an extra semicolon to make it work with
53060 old sed versions. Reported by Robert Bihlmeyer
53061 <robbe@orcus.priv.at>.
53062
53063 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53064
53065 Automatic loading of commands is supported.
53066
53067 * normal/main.c (read_command_list): New function.
53068 (grub_normal_execute): Call read_command_list.
53069
53070 * normal/command.c (grub_register_command): Return zero or CMD.
53071 Allocate CMD->NAME from the heap.
53072 Initialize CMD->MODULE_NAME to zero.
53073 Find the same name as well. If the same command is found and it is
53074 a dummy command, overwrite members. If it is not a dummy command,
53075 return zero.
53076 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53077 (grub_command_find): If a dummy command is found, load a module
53078 and retry to find a command only once.
53079
53080 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53081 make sure that each command is loaded.
53082
53083 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53084 macro.
53085 (struct grub_command): Remove const from the member `name'.
53086 Add a new member `module_name'.
53087 (grub_register_command): Return grub_command_t.
53088
53089 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53090 sure that each command is loaded.
53091
53092 * genmk.rb (PModule::rule): Specify a module name without the
53093 suffix ".mod" to gencmdlist.sh.
53094
53095 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53096
53097 * gencmdlist.sh: New file.
53098
53099 * genmk.rb (PModule::rule): Generate a rule for a command list.
53100 Clean command.lst.
53101 Generate command.lst from $(COMMANDFILES).
53102
53103 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53104 (DATA): Added $(pkgdata_DATA).
53105 (install-local): Install files in $(pkgdata_DATA).
53106
53107 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53108
53109 * term/i386/pc/vga.c (debug_command): Removed.
53110 (GRUB_MOD_INIT): Do not register the command "debug".
53111
53112 From Hollis Blanchard:
53113 * commands/configfile.c: New file.
53114 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53115 commands/configfile.c.
53116 (pkgdata_MODULES): Added configfile.mod.
53117 (configfile_mod_SOURCES): New variable.
53118 (configfile_mod_CFLAGS): Likewise.
53119 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53120 commands/configfile.c.
53121 (pkgdata_MODULES): Added configfile.mod.
53122 (configfile_mod_SOURCES): New variable.
53123 (configfile_mod_CFLAGS): Likewise.
53124 * util/grub-emu.c (main): Call grub_configfile_init and
53125 grub_configfile_fini.
53126 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53127 prototype.
53128 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53129
53130 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53131
53132 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53133 address.
53134
53135 * commands/help.c (grub_cmd_help): Do not print newlines after
53136 the last command in print_command_help.
53137
53138 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53139
53140 * commands/default.h: New file.
53141 * commands/timeout.h: Likewise.
53142 * normal/context.c: Likewise.
53143
53144 * util/misc.c: Do not include sys/times.h.
53145 Include sys/time.h and grub/machine/time.h.
53146 (grub_get_rtc): Rewritten with gettimeofday.
53147
53148 * util/grub-emu.c (main): Call grub_default_init and
53149 grub_timeout_init before grub_normal_init, and call
53150 grub_timeout_fini and grub_default_fini after grub_main.
53151
53152 * util/console.c (grub_ncurses_checkkey): Return the read
53153 character or -1.
53154
53155 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53156 timeouts.
53157
53158 * normal/main.c (read_config_file): Push MENU. If this fails,
53159 print an error and wait for a user input.
53160 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53161 If a menu is empty or an error occurs, pop MENU.
53162 (grub_normal_execute): Pop and free MENU after grub_menu_run
53163 returns.
53164
53165 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53166
53167 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53168 include time.h.
53169 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53170 without GRUB_UTIL.
53171 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53172 time.h.
53173 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53174 without GRUB_UTIL.
53175
53176 * include/grub/normal.h (struct grub_menu_list): New struct.
53177 (grub_menu_list_t): New type.
53178 (struct grub_context): New struct.
53179 (grub_context_t): New type.
53180 (grub_register_command): Got rid of EXPORT_FUNC.
53181 (grub_unregister_command): Likewise.
53182 (grub_context_get): New prototype.
53183 (grub_context_get_current_menu): Likewise.
53184 (grub_context_push_menu): Likewise.
53185 (grub_context_pop_menu): Likewise.
53186 [GRUB_UTIL] (grub_default_init): Likewise.
53187 [GRUB_UTIL] (grub_default_fini): Likewise.
53188 [GRUB_UTIL] (grub_timeout_init): Likewise.
53189 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53190
53191 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53192 commands/timeout.c and normal/context.c.
53193 (pkgdata_MODULES): Added default.mod and timeout.mod.
53194 (normal_mod_SOURCES): Added normal/context.c.
53195 (default_mod_SOURCES): New variable.
53196 (default_mod_CFLAGS): Likewise.
53197 (timeout_mod_SOURCES): Likewise.
53198 (timeout_mod_CFLAGS): Likewise.
53199 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53200 conf/i386-pc.rmk.
53201 (pkgdata_MODULES): Added default.mod and timeout.mod.
53202 (normal_mod_SOURCES): Added normal/context.c.
53203 (default_mod_SOURCES): New variable.
53204 (default_mod_CFLAGS): Likewise.
53205 (timeout_mod_SOURCES): Likewise.
53206 (timeout_mod_CFLAGS): Likewise.
53207
53208 * Makefile.in (all-local): Added $(MKFILES).
53209
53210 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53211
53212 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53213 (grub_emu_SOURCES): Likewise.
53214 (pkgdata_MODULES): Add `sun.mod'.
53215 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53217 `partmap/sun.c'.
53218 (pkgdata_MODULES): Add `sun.mod'.
53219 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53220 * include/grub/partition.h (grub_sun_partition_map_init): New
53221 prototype.
53222 (grub_sun_partition_map_fini): Likewise.
53223 * partmap/sun.c: New file.
53224 * util/grub-emu.c (main): Initialize and de-initialize the sun
53225 partitionmap support.
53226
53227 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53228
53229 This implements an Emacs-like menu entry editor.
53230
53231 * normal/menu_entry.c: New file.
53232
53233 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53234 characters to ASCII.
53235 (saved_char): New variable.
53236 (grub_ncurses_checkkey): Rewritten completely.
53237 (grub_ncurses_getkey): Likewise.
53238 (grub_ncurses_init): Call raw instead of cbreak.
53239
53240 * normal/menu.c (print_entry): Do not put a space.
53241 (init_page): Renamed to ...
53242 (grub_menu_init_page): ... this. All callers changed.
53243 (edit_menu_entry): Removed.
53244 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53245
53246 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53247
53248 * kern/misc.c (grub_vprintf): Call grub_refresh.
53249
53250 * normal/menu.c (DISP_LEFT): Renamed to ...
53251 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53252 * normal/menu.c (DISP_UP): Renamed to ...
53253 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53254 * normal/menu.c (DISP_RIGHT): Renamed to ...
53255 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53256 * normal/menu.c (DISP_DOWN): Renamed to ...
53257 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53258 * normal/menu.c (DISP_HLINE): Renamed to ...
53259 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53260 * normal/menu.c (DISP_VLINE): Renamed to ...
53261 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53262 * normal/menu.c (DISP_UL): Renamed to ...
53263 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53264 * normal/menu.c (DISP_UR): Renamed to ...
53265 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53266 * normal/menu.c (DISP_LL): Renamed to ...
53267 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53268 * normal/menu.c (DISP_LR): Renamed to ...
53269 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53270 * normal/menu.c (TERM_WIDTH): Renamed to ...
53271 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53272 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53273 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53274 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53275 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53276 * normal/menu.c (TERM_MARGIN): Renamed to ...
53277 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53278 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53279 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53280 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53281 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53282 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53283 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53284 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53285 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53286 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53287 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53288 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53289 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53290 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53291 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53292 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53293 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53294 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53295 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53296 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53297 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53298 All callers changed.
53299
53300 * include/grub/normal.h: New prototype.
53301
53302 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53303 normal/menu_entry.c.
53304 (normal_mod_SOURCES): Likewise.
53305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53306 (normal_mod_SOURCES): Likewise.
53307
53308 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53309
53310 * include/grub/normal.h (grub_halt_init): New prototype.
53311 (grub_halt_fini): Likewise.
53312 (grub_reboot_init): Likewise.
53313 (grub_reboot_fini): Likewise.
53314
53315 * util/grub-emu.c: Include signal.h.
53316 (main_env): New global variable.
53317 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53318 catch C-c.
53319 (grub_machine_fini): New function.
53320 (main): Call grub_halt_init and grub_reboot_init before
53321 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53322 Call setjmp with MAIN_ENV to go back afterwards.
53323 Call grub_machine_fini right before return.
53324
53325 * include/grub/util/misc.h: Include setjmp.h.
53326 (main_env): New prototype.
53327
53328 * include/grub/kernel.h (grub_machine_fini): New prototype.
53329 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53330 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53331
53332 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53333 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53334 * term/i386/pc/console.c (grub_console_fini): Likewise.
53335
53336 * util/i386/pc/misc.c: New file.
53337
53338 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53339 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53340 commands/i386/pc/reboot.c.
53341
53342 2005-02-14 Guillem Jover <guillem@hadrons.org>
53343
53344 * include/grub/dl.h (grub_dl_check_header): New prototype.
53345 (grub_arch_dl_check_header): Change return type to grub_err_t,
53346 remove size parameter and export function. Update all callers.
53347 * kern/dl.c (grub_dl_check_header): New function.
53348 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53349 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53350 are inside the core.
53351 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53352 independent ELF header checks.
53353 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53354 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53355 `grub_dl_check_header' instead of explicit checks. Check for the
53356 ELF type.
53357 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53358 `grub_dl_check_header' instead of explicit checks. Remove arch
53359 specific ELF header checks.
53360
53361 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53362 argument SIZE.
53363
53364 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53365
53366 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53367 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53368
53369 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53370
53371 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53372 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53373 (part_map_iterate): Clear `grub_errno' and return 0 if
53374 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53375 * partmap/amiga.c (amiga_partition_map_iterate): Return
53376 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53377 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53378
53379 2005-02-01 Guillem Jover <guillem@hadrons.org>
53380
53381 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53382 help info.
53383
53384 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53385
53386 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53387 Removed prototype.
53388 (grub_rescue_cmd_linux): New prototype.
53389 (grub_rescue_cmd_initrd): Likewise.
53390 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53391 `bi_rec'.
53392 (grub_linux_release_mem): Release the memory for the initrd.
53393 (grub_load_linux): Renamed from this...
53394 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53395 Changed `entry' not to be static. Loop over memory regions to
53396 find another one when the default fails.
53397 (grub_rescue_cmd_initrd): New function.
53398 (grub_linux_init): Remove function.
53399 (grub_linux_fini): Likewise.
53400 (GRUB_MOD_INIT): Register `initrd'.
53401 (GRUB_MOD_FINI): Unregister `initrd'.
53402 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53403 Function removed.
53404 (grub_linux_normal_fini): Likewise.
53405 (GRUB_MOD_INIT): Register `initrd'.
53406 (GRUB_MOD_FINI): Unregister `initrd'.
53407
53408 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53409
53410 * commands/help.c: New file.
53411 * normal/arg.c (show_help): Renamed to...
53412 (grub_arg_show_help): ... this.
53413 * commands/i386/pc/halt.c: New file.
53414 * commands/i386/pc/reboot.c: Likewise.
53415 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53416 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53417 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53418 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53419 variables.
53420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53421 `commands/help.c'.
53422 (pkgdata_MODULES): Add `help.mod'.
53423 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53424 * grub/i386/pc/init.h (grub_reboot): New prototype.
53425 (grub_halt): Likewise.
53426 * include/grub/normal.h (grub_arg_show_help): New prototype.
53427 (grub_help_init): Likewise.
53428 (grub_help_fini): Likewise.
53429 * util/grub-emu.c (main): Initialize and deinitialize the help
53430 command.
53431
53432 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53433
53434 * normal/command.c (grub_command_init): Fixed the description of
53435 the `set' and `unset' commands.
53436
53437 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53438
53439 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53440 function.
53441 * commands/ieee1275/halt.c: New file.
53442 * commands/ieee1275/reboot.c: Likewise.
53443 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53444 `__attribute__ ((unused))'. Some GCS related fixed.
53445 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53446 (grub_suspend_fini): Likewise.
53447 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53448 and `halt.mod'.
53449 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53450 (halt_mod_CFLAGS): New variables.
53451 * include/grub/powerpc/ieee1275/ieee1275.h
53452 (grub_ieee1275_interpret): New prototype.
53453
53454 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53455
53456 * include/grub/misc.h (memmove): New prototype.
53457 (memcpy): Likewise.
53458
53459 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53460
53461 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53462 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53463
53464 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53465
53466 * kern/misc.c (grub_strndup): Function rewritten.
53467
53468 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53469
53470 * normal/menu.c (TERM_WIDTH): Macro redefined.
53471 (TERM_TOP_BORDER_Y): Likewise.
53472 (draw_border): Replaced while-loop by a for-loop. Make the number
53473 of lines consistent with the number of lines displayed in
53474 print_entries. Added a margin below the rectangle.
53475 (print_entry): Make the entry fit in the rectangle.
53476 (print_entries): Display the scroll arrows next to the right
53477 border.
53478
53479 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53480
53481 * fs/minix.c (grub_minix_find_file): Reserve more space for
53482 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53483 `grub_strncpy' to copy `path' into it.
53484
53485 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53486
53487 Add the loopback device, a device via which files can be accessed
53488 as devices.
53489
53490 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53491 (pkgdata_MODULES): Add loopback.mod.
53492 (loopback_mod_SOURCES): New variable.
53493 (loopback_mod_CFLAGS): Likewise.
53494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53495 `disk/loopback.c'.
53496 (pkgdata_MODULES): Add loopback.mod.
53497 (loopback_mod_SOURCES): New variable.
53498 (loopback_mod_CFLAGS): Likewise.
53499 * disk/loopback.c: new file.
53500 * include/grub/normal.h (grub_loop_init): New prototype.
53501 (grub_loop_fini): New prototype.
53502 * util/grub-emu.c (main): Initialize and de-initialize loopback
53503 support.
53504 * include/grub/disk.h (grub_disk_dev_id): Add
53505 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53506
53507 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53508
53509 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53510 function.
53511 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53512 (suspend_mod_SOURCES): New variable.
53513 (suspend_mod_CFLAGS): Likewise.
53514 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53515 New prototype.
53516 * commands/ieee1275/suspend.c: New file.
53517
53518 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53519
53520 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53521 ((unused))' to `__attribute__ ((used))'.
53522 (GRUB_MOD_FINI): Likewise.
53523 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53524 * genmk.rb (PModule): Assign space to common symbols when linking
53525 modules.
53526
53527 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53528
53529 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53530 `unsigned' arguments to `grub_size_t'.
53531 (grub_malloc): Likewise.
53532 (grub_realloc): Likewise.
53533 (grub_memalign): Likewise.
53534 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53535 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53536 * util/misc.c (grub_malloc): Likewise.
53537 (grub_realloc): Likewise.
53538 * kern/mm.c (get_header_from_pointer): Change the casts to
53539 `unsigned' into a cast to `grub_size_t'.
53540
53541 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53542 point to `currnode' when `currnode' is changed.
53543
53544 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53545 Schottelius <nico-linux@schottelius.org>.
53546
53547 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53548
53549 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53550 (note_path): Remove variable.
53551 (GRUB_IEEE1275_NOTE_NAME): New macro.
53552 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53553 (grub_ieee1275_note_hdr): New structure.
53554 (grub_ieee1275_note_desc): Likewise.
53555 (grub_ieee1275_note): Likewise.
53556 (load_note): Remove `dir' argument. All callers updated. Remove
53557 `note_img' and `path'. Do not load a file from `note_path'.
53558 Initialize a struct grub_ieee1275_note and write that to `out'.
53559 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53560
53561 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53562
53563 * util/misc.c (grub_util_read_image): Revert last change. It
53564 called `grub_util_read_at', which seeks from the beginning of the
53565 file.
53566
53567 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53568
53569 * TODO: Add note about endianness in grub-mkimage.
53570 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53571 section.
53572 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53573 (grub_mkimage_SOURCES): New target.
53574 * include/grub/kernel.h (grub_start_addr): Remove variable.
53575 (grub_end_addr): Likewise.
53576 (grub_total_module_size): Likewise.
53577 (grub_kernel_image_size): Likewise.
53578 (GRUB_MODULE_MAGIC): New constant.
53579 (grub_module_info): New structure.
53580 (grub_arch_modules_addr): New prototype.
53581 (grub_get_end_addr): Remove prototype.
53582 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53583 * include/grub/powerpc/ieee1275/kernel.h: New file.
53584 * include/grub/util/misc.h (grub_util_get_fp_size): New
53585 prototype.
53586 (grub_util_read_at): Likewise.
53587 (grub_util_write_image_at): Likewise.
53588 * kern/main.c (grub_get_end_addr): Remove function.
53589 (grub_load_modules): Call grub_arch_modules_addr instead of using
53590 grub_end_addr. Look for a grub_module_info struct in memory. Use
53591 the grub_module_info fields instead of calling grub_get_end_addr
53592 as loop conditions. Move grub_add_unused_region code here.
53593 (grub_add_unused_region): Remove function.
53594 * kern/i386/pc/init.c: Include grub/cache.h.
53595 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53596 one call to add_mem_region.
53597 (grub_arch_modules_addr): New function.
53598 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53599 (grub_total_module_size): Likewise.
53600 Include grub/machine/kernel.h.
53601 (grub_arch_modules_addr): New function.
53602 * util/grub-emu.c (grub_end_addr): Remove variable.
53603 (grub_total_module_size): Likewise.
53604 (grub_arch_modules_addr): New function.
53605 * util/misc.c: Include unistd.h.
53606 (grub_util_get_fp_size): New function.
53607 (grub_util_read_at): Likewise.
53608 (grub_util_write_image_at): Likewise.
53609 (grub_util_read_image): Call grub_util_read_at.
53610 (grub_util_write_image): Call grub_util_write_image_at.
53611 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53612 additional memory in kernel_img for a struct grub_module_info.
53613 Fill in that grub_module_info.
53614 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53615
53616 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53617
53618 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53619 New function.
53620 * include/grub/powerpc/ieee1275/ieee1275.h
53621 (grub_ieee1275_milliseconds): New prototype.
53622 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53623 Change to 1000.
53624 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53625 grub_ieee1275_milliseconds.
53626
53627 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53628
53629 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53630 variable.
53631 (find_options): New function.
53632 (cmain): Call find_options.
53633 * include/grub/powerpc/ieee1275/ieee1275.h
53634 (grub_ieee1275_realmode): New extern variable.
53635 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53636 grub_map if grub_ieee1275_realmode is false.
53637
53638 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53639
53640 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53641 lines are inserted and make it work like readline. Reported by
53642 Vincent Pelletier <subdino2004@yahoo.fr>.
53643
53644 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53645
53646 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53647
53648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53649 `kern/powerpc/cache.S'.
53650
53651 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53652
53653 * genmk.rb: Handle the `Program' class in the main loop. Written
53654 by Johan Rydberg <jrydberg@gnu.org>.
53655 (Program): New class.
53656 (programs): New variable.
53657 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53658 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53659 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53660 (help_arch): Function removed.
53661 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53662 `powerpc/libgcc.h' and `loader.h'.
53663 (pkgdata_PROGRAMS): New variable.
53664 (sbin_UTILITIES): Variable removed.
53665 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53666 (grubof_SOURCES): Variable re-defined so it only includes the
53667 core functionality.
53668 (grubof_CFLAGS): Remove `-DGRUBOF'.
53669 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53670 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53671 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53672 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53673 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53674 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53675 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53676 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53677 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53678 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53679 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53680 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53681 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53682 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53683 (pc_mod_CFLAGS): New variables.
53684 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53685 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53686 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53687 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53688 Moved from here...
53689 * include/grub/i386/pc/init.h (grub_os_area_addr)
53690 (rub_os_area_size): ... to here.
53691 * include/grub/powerpc/ieee1275/ieee1275.h
53692 (grub_ieee1275_entry_fn): Export symbol.
53693 * include/grub/powerpc/ieee1275/init.h: New file.
53694 * include/grub/powerpc/libgcc.h: Likewise.
53695 * include/grub/cache.h: Likewise.
53696 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53697 <hollis@penguinppc.org>.
53698 * kern/dl.c: Include <grub/cache.h>.
53699 (grub_dl_flush_cache): New function.
53700 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53701 for this module.
53702 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53703 (grub_console_init): Removed prototypes.
53704 (grub_machine_init): Don't initialize the modules anymore.
53705 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53706 static.
53707 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53708 Macro undef removed.
53709 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53710 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53711 relocation `R_PPC_REL32'. Return an error when the relocation is
53712 unknown.
53713 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53714 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53715 * util/misc.c (grub_arch_sync_caches): Likewise.
53716
53717 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53718
53719 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53720 `symlist.c', add `grubof_symlist.c'.
53721 (symlist.c): Variable removed.
53722 (grubof_HEADERS): Variable added.
53723 (grubof_symlist.c): New target.
53724 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53725 `kernel_img_HEADERS'.
53726 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53727 * kern/powerpc/dl.c: New file.
53728 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53729 Function removed.
53730 (grub_arch_dl_relocate_symbols): Likewise.
53731 (grub_register_exported_symbols): Likewise.
53732
53733 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53734
53735 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53736 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53737 to fail instead. Reported by Vincent Pelletier
53738 <subdino2004@yahoo.fr>.
53739
53740 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53741 it is not allocated. Reported by Vincent Pelletier
53742 <subdino2004@yahoo.fr>.
53743
53744 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53745 output so the output looks better.
53746
53747 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53748
53749 Modulize the partition map support and add support for the amiga
53750 partition map.
53751
53752 * commands/ls.c: Include <grub/partition.h> instead of
53753 <grub/machine/partition.h>.
53754 * kern/disk.c: Likewise.
53755 * kern/rescue.c: Likewise.
53756 * loader/i386/pc/chainloader.c: Likewise.
53757 * normal/cmdline.c: Likewise.
53758 * kern/powerpc/ieee1275/init.c: Likewise.
53759 (grub_machine_init): Call `grub_pc_partition_map_init',
53760 `grub_amiga_partition_map_init' and
53761 `grub_apple_partition_map_init'.
53762 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53763 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53764 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53765 `partition.h' and `pc_partition.h'.
53766 (grub_setup_SOURCES): Remove
53767 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53768 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53769 (grub_emu_SOURCES): Likewise.
53770 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53771 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53772 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53773 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53774 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53775 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53776 (grubof_SOURCES): Likewise.
53777 * disk/i386/pc/partition.c: File removed.
53778 * disk/powerpc/ieee1275/partition.c: Likewise.
53779 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53780 * include/grub/i386/pc/partition.h: Likewise.
53781 * kern/partition.c: New file.
53782 * partmap/amiga.c: Likewise.
53783 * partmap/apple.c: Likewise.
53784 * partmap/pc.c: Likewise.
53785 * include/grub/partition.h: Likewise..
53786 * include/grub/pc_partition.h: Likewise.
53787 * util/grub-emu.c: Include <grub/partition.h> instead of
53788 <grub/machine/partition.h>.
53789 (main): Call `grub_pc_partition_map_init',
53790 `grub_amiga_partition_map_init' and
53791 `grub_apple_partition_map_init' and deinitialize afterwards.
53792 * util/i386/pc/biosdisk.c: Include `#include
53793 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53794 `<grub/machine/partition.h>'.
53795 * util/i386/pc/grub-setup.c: Likewise.
53796 * util/i386/pc/biosdisk.c: Likewise.
53797 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53798 partition information in case of a PC partition.
53799 * util/i386/pc/grub-setup.c: Include `#include
53800 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53801 `<grub/machine/partition.h>'.
53802 (setup): Only access the PC specific partition information in case
53803 of a PC partition.
53804
53805 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53806
53807 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53808 (grub_longjmp): Likewise.
53809 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53810 20.
53811 * normal/powerpc/setjmp.S: New file.
53812 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53813 `normal/powerpc/setjmp.S'.
53814 (grubof_CFLAGS): Add `-DGRUBOF'.
53815 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53816 [GRUB_UTIL && !GRUBOF].
53817
53818 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53819
53820 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53821 property named `name'. Correctly handle the error returned by
53822 `grub_ieee1275_finddevice' if a device can not be opened.
53823
53824 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53825
53826 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53827 `actual' for negativity.
53828 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53829 kern/fshelp.c.
53830
53831 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53832
53833 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53834 (PAGE_OFFSET): New macro.
53835 (CRTC_ADDR_PORT): Likewise.
53836 (CRTC_DATA_PORT): Likewise.
53837 (START_ADDR_HIGH_REGISTER): Likewise.
53838 (START_ADDR_LOW_REGISTER): Likewise.
53839 (GRAPHICS_ADDR_PORT): Likewise.
53840 (GRAPHICS_DATA_PORT): Likewise.
53841 (READ_MAP_REGISTER): Likewise.
53842 (INPUT_STATUS1_REGISTER): Likewise.
53843 (INPUT_STATUS1_VERTR_BIT): Likewise.
53844 (page): New variable.
53845 (wait_vretrace): New function.
53846 (set_read_map): Likewise.
53847 (set_start_address): Likewise.
53848 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53849 the right page.
53850 (check_vga_mem): Take the page into account.
53851 (write_char): Likewise.
53852 (write_cursor): Likewise.
53853 (scroll_up): Likewise. Copy the page to the page that is not
53854 shown and switch between both pages.
53855 (grub_vga_putchar): Fix off by one error.
53856 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53857 account.
53858
53859 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53860
53861 Add support for iso9660 (including rockridge).
53862
53863 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53864 (iso9660_mod_SOURCES): New variable.
53865 (iso9660_mod_CFLAGS): Likewise.
53866 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53867 * include/grub/fs.h (grub_iso9660_init): New prototype.
53868 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53869 * fs/iso9660.c: New file.
53870
53871 * include/grub/misc.h (grub_strncat): New prototype.
53872 * kern/misc.c (grub_strncat): New function.
53873
53874 * fs/hfs.c (grub_hfs_mount): Translate the error
53875 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53876 * fs/jfs.c (grub_jfs_mount): Likewise.
53877 * fs/ufs.c (grub_ufs_mount): Likewise.
53878
53879 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53880
53881 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53882 which initialized BAT registers.
53883 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53884 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53885 Move from here...
53886 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53887 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53888 ... to here.
53889 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53890 (grub_mapclaim): Likewise.
53891 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53892 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53893 hand.
53894
53895 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53896
53897 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53898 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53899 -ffreestanding and -msoft-float.
53900
53901 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53902
53903 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53904 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53905 set in grub_ieee1275_flags.
53906
53907 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53908
53909 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53910 prototype.
53911 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53912 grub_console_init first.
53913 Change the memory range used for grub_ieee1275_claim and
53914 grub_mm_init_region.
53915 Print an error message if the claim fails.
53916 Include <grub/misc.h>.
53917
53918 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53919
53920 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53921 Call grub_children_iterate for device nodes of type `scsi',
53922 `ide', or `ata'.
53923 (grub_ofdisk_open): Remove manual device alias resolution.
53924 Fix memory leak when device cannot be opened.
53925 * include/grub/powerpc/ieee1275/ieee1275.h
53926 (grub_children_iterate): New prototype.
53927 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53928 New function.
53929 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53930 Return -1 if args.size was -1.
53931
53932 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53933
53934 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53935 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53936 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53937 Open Firmware's memory for it; claim memory from _start to _end.
53938 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53939 (_end): New extern.
53940 (_start): Zero BSS from __bss_start to _end.
53941 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53942 New extern.
53943 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53944
53945 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53946
53947 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53948 -1 if args.base was -1.
53949
53950 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53951
53952 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53953 escape sequence instead of a literal ^L. Also call
53954 grub_ofconsole_gotoxy.
53955
53956 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53957
53958 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53959 void * arguments to grub_addr_t. All callers updated. Also make
53960 the `result' argument optional.
53961 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53962 All callers updated.
53963
53964 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
53965
53966 * commands/ls.c (grub_ls_list_files): Use the string following the
53967 initial ')', if present, as the filesystem path.
53968 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
53969
53970 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
53971
53972 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
53973
53974 Make the source code of the menu interface more readable.
53975
53976 * normal/menu.c: Include grub/mm.h.
53977 (TERM_WIDTH): New macro.
53978 (TERM_HEIGHT): Likewise.
53979 (TERM_INFO_HEIGHT): Likewise.
53980 (TERM_MARGIN): Likewise.
53981 (TERM_SCROLL_WIDTH): Likewise.
53982 (TERM_TOP_BORDER_Y): Likewise.
53983 (TERM_LEFT_BORDER_X): Likewise.
53984 (TERM_BORDER_WIDTH): Likewise.
53985 (TERM_MESSAGE_HEIGHT): Likewise.
53986 (TERM_BORDER_HEIGHT): Likewise.
53987 (TERM_NUM_ENTRIES): Likewise.
53988 (TERM_FIRST_ENTRY_Y): Likewise.
53989 (TERM_ENTRY_WIDTH): Likewise.
53990 (TERM_CURSOR_X): Likewise.
53991 (draw_border): Use macros instead of magic numbers.
53992 (print_entry): Likewise.
53993 (print_entries): Likewise.
53994 (run_menu): Likewise. Also, handle the key 'e'.
53995 (run_menu_entry): Ignore empty command lines.
53996 (print_message): Added a new argument EDIT. If EDIT is true,
53997 print a different message.
53998 (init_page): Likewise.
53999 (edit_menu_entry): New function. Not implemented yet.
54000
54001 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54002
54003 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54004 can be loaded from normal mode.
54005
54006 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54007 `multiboot.mod'.
54008 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54009 (multiboot_mod_CFLAGS): New variables.
54010 * loader/i386/pc/linux_normal.c: New file.
54011 * loader/i386/pc/multiboot_normal.c: Likewise.
54012
54013 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54014 attribute `unused'.
54015
54016 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54017 `fdiro' to read the mode information from instead of `diro'.
54018
54019 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54020 looking up a symlink.
54021
54022 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54023 macro.
54024 * normal/command.c (grub_command_execute): Don't parse the
54025 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54026 flags of the command.
54027
54028 * normal/menu.c (grub_menu_run): Fix typo.
54029
54030 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54031
54032 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54033
54034 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54035 `y + 1' instead of `y - 1'.
54036
54037 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54038
54039 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54040
54041 From Hollis Blanchard <hollis@penguinppc.org>:
54042 * kern/misc.c (memmove): New alias for grub_memmove.
54043 (memcmp): New alias for grub_memcmp.
54044 (memset): New alias for grub_memset.
54045 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54046 Change "int handle" to "grub_ieee1275_phandle_t handle".
54047 * include/grub/powerpc/ieee1275/ieee1275.h
54048 (grub_ieee1275_get_property): Likewise.
54049
54050 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54051
54052 Added normal mode command `chainloader' as module chain.mod, which
54053 depends on normal.mod and _chain.mod.
54054
54055 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54056 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54057 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54058 Deleted prototype.
54059 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54060 but arguments parsing moved to ...
54061 (grub_chainloader_cmd): ... here. New function.
54062 * include/grub/i386/pc/chainloader.h: New file.
54063 * loader/i386/pc/chainloader_normal.c: Likewise.
54064
54065 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54066
54067 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54068 (grub_mkimage_LDFLAGS): Likewise.
54069 (grub_emu_SOURCES): Likewise.
54070 (kernel_img_HEADERS): Added fshelp.h.
54071 * fs/ext2.c: Include <grub/fshelp.h>.
54072 (FILETYPE_REG): New macro.
54073 (FILETYPE_INO_REG): Likewise.
54074 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54075 Changed all users.
54076 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54077 all users.
54078 (grub_fshelp_node): New struct.
54079 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54080 to a pointer.
54081 (grub_ext2_get_file_block): Removed function.
54082 (grub_ext2_read_block): New function.
54083 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54084 This function was written.
54085 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54086 (grub_ext2_find_file): Removed function.
54087 (grub_ext2_read_symlink): New function.
54088 (grub_ext2_iterate_dir): Likewise.
54089 (grub_ext2_open): Rewritten.
54090 (grub_ext2_dir): Rewritten.
54091 * include/grub/fshelp.h: New file.
54092 * fs/fshelp.c: Likewise.
54093
54094 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54095
54096 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54097 (print_message): Add a missing newline.
54098 (run_menu): Added timeout support.
54099 (run_menu_entry): New local function.
54100 (grub_menu_run): Added support for booting.
54101
54102 * kern/loader.c (grub_loader_is_loaded): New function.
54103
54104 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54105 (grub_get_rtc): Exported.
54106
54107 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54108 (grub_get_rtc): Exported.
54109
54110 * include/grub/normal.h (struct grub_command_list): Remove
54111 constant from the member `command'.
54112
54113 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54114
54115 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54116
54117 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54118
54119 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54120
54121 Add support for the JFS filesystem.
54122
54123 * fs/jfs.c: New file.
54124 * include/grub/fs.h (grub_jfs_init): New prototype.
54125 (grub_jfs_fini): New prototype.
54126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54127 (grub_emu_SOURCES): Likewise.
54128 (pkgdata_MODULES): Add jfs.mod.
54129 (jfs_mod_SOURCES): New variable.
54130 (jfs_mod_CFLAGS): Likewise.
54131 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54132 (grubof_SOURCES): Likewise.
54133 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54134
54135 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54136 endian to the host endian.
54137 (grub_fat_utf16_to_utf8): Move function from there...
54138 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54139 the endianness of the source string anymore.
54140 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54141
54142 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54143
54144 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54145 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54146 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54147 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54148
54149 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54150 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54151 for `node_found' and `it_dir'.
54152 (grub_hfs_dir): Add prototype for `dir_hook'.
54153
54154 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54155 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54156 and `indir32' to silence a gcc warning.
54157
54158 * include/grub/fs.h (grub_hfs_init): New prototype.
54159 (grub_hfs_fini): Likewise.
54160
54161
54162 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54163
54164 Each disk device has its own id now. This is useful to make use
54165 of multiple disk devices.
54166
54167 * include/grub/disk.h (grub_disk_dev_id): New enum.
54168 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54169 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54170
54171 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54172 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54173
54174 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54175 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54176
54177 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54178 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54179
54180 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54181 "id" which is used by the cache manager.
54182
54183 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54184 of just "GRUB".
54185
54186 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54187
54188 * fs/hfs.c: New file.
54189 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54190 (grub_emu_SOURCES): Likewise.
54191 (pkgdata_MODULES): Add hfs.mod.
54192 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54193 (grubof_SOURCES): Likewise.
54194 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54195
54196 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54197 * kern/misc.c (grub_strncasecmp): Add function.
54198
54199 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54200
54201 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54202 with parentheses.
54203
54204 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54205 (grub_ext2_dir): In case the directory entry type is unknown, read
54206 it from the inode.
54207
54208 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54209
54210 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54211 grub_load_linux instead of grub_rescue_cmd_linux as second
54212 argument of grub_rescue_register_command.
54213
54214 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54215
54216 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54217
54218 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54219 function.
54220 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54221 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54222 `loader/powerpc/ieee1275/linux.c',
54223 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54224 * include/grub/powerpc/ieee1275/ieee1275.h
54225 (grub_ieee1275_release): New prototype.
54226 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54227 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54228 normal, boot, linux and linux_normal.
54229 * loader/powerpc/ieee1275/linux.c: New file.
54230 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54231
54232 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54233
54234 * normal/arg.c (grub_arg_parse): Correct error handling after
54235 reallocating the argumentlist (check if `argl' is not null instead
54236 of checking if `args' is not null).
54237 * kern/mm.c (grub_realloc): Return the same pointer when using the
54238 same region, instead of returning the header address.
54239
54240 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54241
54242 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54243 one block instead of two when looking for the initial partition.
54244 (grub_partition_probe): Initialize the local variable `p' with 0.
54245 Use base 10 for the grub_strtoul call.
54246 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54247 need for one local variable.
54248 (grub_strtoul): Don't add the new value to `num', instead of that
54249 just assign it.
54250
54251 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54252
54253 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54254 (pxeboot_img_SOURCES): New variable.
54255 (pxeboot_img_ASFLAGS): Likewise.
54256 (pxeboot_img_LDFLAGS): Likewise.
54257 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54258 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54259 <lode_leroy@hotmail.com>.
54260
54261 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54262
54263 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54264 there was no input.
54265
54266 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54267
54268 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54269 the history buffer logic.
54270
54271 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54272
54273 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54274 (FILETYPE_INO_SYMLINK): New macros.
54275 (grub_ext2_find_file): Check if the node is a directory using the
54276 inode stat information instead of using the filetype in the
54277 dirent. Exclude the first character of an absolute symlink.
54278 (grub_ext2_dir): Mask out the filetype part of the mode member of
54279 the inode.
54280
54281 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54282
54283 Add support for UFS version 1 and 2. Add support for the minix
54284 filesystem version 1 and 2, both the variants with 14 and 30 long
54285 filenames.
54286
54287 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54288 fs/minix.c.
54289 (grub_emu_SOURCES): Likewise.
54290 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54291 (ufs_mod_SOURCES): New variable.
54292 (ufs_mod_CFLAGS): Likewise.
54293 (minix_mod_SOURCES): Likewise.
54294 (minix_mod_CFLAGS): Likewise.
54295 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54296 fs/minix.c.
54297 (grubof_SOURCES): Likewise.
54298 * fs/ufs.c: New file.
54299 * fs/minix.c: New file.
54300 * include/grub/fs.h (grub_ufs_init): New prototype.
54301 (grub_ufs_fini): Likewise.
54302 (grub_minix_init): Likewise.
54303 (grub_minix_fini): Likewise.
54304 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54305 minix fs.
54306
54307 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54308
54309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54310 commands/ls.c, commands/terminal.c, commands/boot.c,
54311 commands/cmp.c and commands/cat.c.
54312 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54313
54314 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54315 "env.h"
54316
54317 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54318
54319 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54320 and grub_, respectively. Because the conversion is trivial and
54321 mechanical, I omit the details here. Please refer to the CVS
54322 if you need more information.
54323
54324 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54325
54326 * include/pupa: Renamed to ...
54327 * include/grub: ... this.
54328 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54329 * util/i386/pc/grub-mkimage.c: ... this.
54330 * util/i386/pc/pupa-setup.c: Renamed to ...
54331 * util/i386/pc/grub-setup.c: ... this.
54332 * util/pupa-emu.c: Renamed to ...
54333 * util/grub-emu.c: ... this.
54334
54335 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54336
54337 Add support for the newworld apple macintosh (PPC). This has been
54338 tested on the powerbook 2000 only. It only adds support for
54339 generic ieee1275 functions, console and disk support. This should
54340 be easy to port to other architectures with support for Open
54341 Firmware.
54342
54343 * configure.ac: Accept the powerpc as host_cpu. In the case of
54344 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54345 specific tests are only executed while building for the i386.
54346 Inverse test for crosscompile.
54347 * genmk.rb (Utility): Allow assembler files.
54348 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54349 * conf/powerpc-ieee1275.rmk: New file.
54350 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54351 * disk/powerpc/ieee1275/partition.c: Likewise.
54352 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54353 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54354 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54355 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54356 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54357 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54358 * include/pupa/powerpc/ieee1275/loader.h
54359 * include/pupa/powerpc/setjmp.h: Likewise.
54360 * include/pupa/powerpc/types.h: Likewise.
54361 * kern/powerpc/ieee1275/init.c: Likewise.
54362 * kern/powerpc/ieee1275/openfw.c: Likewise.
54363 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54364
54365 These files were written by Johan Rydberg
54366 (jrydberg@night.trouble.net) and I only modified them slightly.
54367
54368 * boot/powerpc/ieee1275/cmain.c: New file.
54369 * boot/powerpc/ieee1275/crt0.S: Likewise.
54370 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54371 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54372
54373 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54374
54375 * Makefile.in: Update copyright.
54376 * genmodsrc.sh: Likewise.
54377 * gensymlist.sh: Likewise.
54378 * term/i386/pc/vga.c: Indent correctly.
54379
54380 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54381 bugreporting address.
54382 * util/i386/pc/pupa-setup.c (usage): Likewise,
54383 (main): Call pupa_ext2_init and pupa_ext2_fini.
54384
54385 * fs/fat.c (log2): Renamed to ...
54386 (fat_log2): ... this.
54387 All callers changed.
54388 * kern/misc.c (memcpy): Alias to pupa_memmove.
54389 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54390 lvalue cast.
54391 * util/console.c (pupa_ncurses_fini): Return 0.
54392
54393 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54394 Move fail label here.
54395 [__GNU__]: Don't warn when using stat.
54396 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54397 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54398 long int. Use strtol instead of strtoul.
54399
54400 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54401
54402 * commands/boot.c: New file.
54403 * commands/cat.c: Likewise.
54404 * commands/cmp.c: Likewise.
54405 * commands/ls.c: Likewise.
54406 * commands/terminal.c: Likewise.
54407 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54408 (pupa_register_command): Changed interface to match the new
54409 argument parser.
54410 (pupa_command_execute): Changed (almost rewritten) so it uses
54411 pupa_split_command. Added support for setting variables using the
54412 syntax `foo=bar'.
54413 (rescue_command): Changed to work with the new argument parser.
54414 (terminal_command): Moved from here to commands/terminal.c.
54415 (set_command): New function.
54416 (unset_command): New function.
54417 (insmod_command): New function.
54418 (rmmod_command): New function.
54419 (lsmod_command): New function.
54420 (pupa_command_init): Don't initialize the command terminal
54421 anymore. Initialize the commands set, unset, insmod, rmmod and
54422 lsmod.
54423 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54424 (kernel_img_HEADERS): Add arg.h and env.h.
54425 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54426 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54427 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54428 normal/arg.c.
54429 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54430 terminal.mod.
54431 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54432 (boot_mod_SOURCES): New variable.
54433 (terminal_mod_SOURCES): Likewise.
54434 (ls_mod_SOURCES): Likewise.
54435 (cmp_mod_SOURCES): Likewise.
54436 (cat_mod_SOURCES): Likewise.
54437
54438 * normal/arg.c: New file.
54439 * kern/env.c: Likewise.
54440 * include/pupa/arg.h: Likewise.
54441 * include/pupa/env.h: Likewise.
54442 * font/manager.c (font_command): Changed to match argument parsing
54443 interface changes.
54444 (PUPA_MOD_INIT): Likewise.
54445 * hello/hello.c (pupa_cmd_hello): Likewise.
54446 (PUPA_MOD_INIT): Likewise.
54447 * include/pupa/disk.h: Include <pupa/device.h>.
54448 (pupa_print_partinfo): New prototype.
54449 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54450 (pupa_dl_get_prefix): Likewise.
54451 * include/pupa/misc.h: Include <pupa/err.h>.
54452 (pupa_isgraph): New prototype.
54453 (pupa_isdigit): Likewise.
54454 (pupa_split_cmdline): Likewise.
54455 * include/pupa/normal.h: Include <pupa/arg.h>.
54456 (pupa_command): Changed the prototype of the member `func' to
54457 match the argument parsing interface. Added member `options'.
54458 (pupa_register_command): Updated to match function.
54459 (pupa_arg_parse): New prototype.
54460 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54461 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54462 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54463 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54464 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54465 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54466 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54467 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54468 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54469 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54470 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54471 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54472 * kern/disk.c: Include <pupa/file.h>.
54473 (pupa_print_partinfo): New function.
54474 * kern/dl.c: Include <pupa/env.h>.
54475 (pupa_dl_dir): Variable removed.
54476 (pupa_dl_load): Use the environment variable `prefix' instead of
54477 the variable pupa_dl_dir.
54478 (pupa_dl_set_prefix): Function removed.
54479 (pupa_dl_get_prefix): Likewise.
54480 * kern/i386/pc/init.c: Include <pupa/env.h>.
54481 (pupa_machine_init): Use the environment variable `prefix' instead of
54482 using pupa_dl_set_prefix to set the prefix.
54483 * kern/main.c: Include <pupa/env.h>.
54484 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54485 using pupa_dl_get_prefix to get the prefix.
54486 * kern/misc.c: Include <pupa/env.h>.
54487 (pupa_isdigit): New function.
54488 (pupa_isgraph): Likewise.
54489 (pupa_ftoa): Likewise.
54490 (pupa_vsprintf): Added support for printing values of the type
54491 `double'. Make it possible to format variable output when using
54492 formatting like `%1.2%f'.
54493 (pupa_split_cmdline): New function.
54494 * kern/rescue.c: Include <pupa/env.h>.
54495 (next_word): Removed function.
54496 (pupa_rescue_cmd_prefix): Likewise.
54497 (pupa_rescue_cmd_set): New function.
54498 (pupa_rescue_cmd_unset): New function.
54499 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54500 split the command line instead of splitting it here. Added
54501 support for setting variables using the syntax `foo=bar'. Don't
54502 initialize the prefix command anymore. Initialized the set and
54503 unset commands.
54504 * normal/cmdline.c: Include <pupa/env.h>.
54505 (pupa_tab_complete): Added prototypes for print_simple_completion,
54506 print_partition_completion, add_completion, iterate_commands,
54507 iterate_dev, iterate_part and iterate_dir. Moved code to print
54508 partition information from here to kern/disk.c.
54509 (pupa_cmdline_run): Don't check if the function exists anymore.
54510 * normal/main.c: Include <pupa/env.h>.
54511 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54512 instead of using pupa_dl_get_prefix to get the prefix.
54513 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54514 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54515 warning.
54516 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54517 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54518 ((unused))' to silence a gcc warning.
54519 (pupa_vga_setcolor): Likewise.
54520 (debug_command): Changed to match argument parsing
54521 interface changes.
54522 * util/pupa-emu.c: Include <pupa/env.h>.
54523 (options): Added 0's for unused fields to silence a gcc warning.
54524 (argp): Likewise.
54525 (main): Use the environment variable `prefix' instead of using
54526 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54527 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54528 and terminal.
54529
54530 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54531 * util/misc.c: Include <malloc.h>.
54532 (pupa_malloc): Rewritten so errors are correctly reported.
54533 (pupa_realloc): Likewise.
54534 (pupa_memalign): Likewise.
54535 (pupa_mm_init_region): Declare unused variables with
54536 `__attribute__ ((unused))' to silence a gcc warning.
54537 * normal/i386/setjmp.S: Remove tab at the end of the file to
54538 silence a gcc warning.
54539 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54540 variables with `__attribute__ ((unused))' to silence a gcc
54541 warning.
54542 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54543 local variable i unsigned to silence a gcc warning.
54544
54545 * kern/term.c: Include <pupa/misc.h>.
54546 (pupa_more_lines): New variable.
54547 (pupa_more): Likewise.
54548 (pupa_putcode): When the pager is active pause at the end of every
54549 screen.
54550 (pupa_set_more): New function.
54551 * include/pupa/term.h (pupa_set_more): New prototype.
54552
54553
54554 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54555
54556 Now this project is GRUB 2 rather than PUPA. The location of
54557 the CVS repository was moved to GRUB's.
54558
54559 * configure.ac: Use bug-grub as the reporting address.
54560 Use GRUB instead of PUPA.
54561 Change the version number to 1.90.
54562
54563 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54564
54565 * genkernsyms.sh: Updated copyright information.
54566 * genmk.rb: Likewise.
54567 * genmodsrc.sh: Likewise.
54568 * gensymlist.sh: Likewise.
54569 * boot/i386/pc/boot.S: Likewise.
54570 * boot/i386/pc/diskboot.S: Likewise.
54571 * disk/i386/pc/biosdisk.c: Likewise.
54572 * disk/i386/pc/partition.c: Likewise.
54573 * font/manager.c: Likewise.
54574 * fs/ext2.c: Likewise.
54575 * fs/fat.c: Likewise.
54576 * include/pupa/boot.h: Likewise.
54577 * include/pupa/device.h: Likewise.
54578 * include/pupa/disk.h: Likewise.
54579 * include/pupa/dl.h: Likewise.
54580 * include/pupa/elf.h: Likewise.
54581 * include/pupa/err.h: Likewise.
54582 * include/pupa/file.h: Likewise.
54583 * include/pupa/font.h: Likewise.
54584 * include/pupa/fs.h: Likewise.
54585 * include/pupa/kernel.h: Likewise.
54586 * include/pupa/loader.h: Likewise.
54587 * include/pupa/misc.h: Likewise.
54588 * include/pupa/mm.h: Likewise.
54589 * include/pupa/net.h: Likewise.
54590 * include/pupa/normal.h: Likewise.
54591 * include/pupa/rescue.h: Likewise.
54592 * include/pupa/setjmp.h: Likewise.
54593 * include/pupa/symbol.h: Likewise.
54594 * include/pupa/term.h: Likewise.
54595 * include/pupa/types.h: Likewise.
54596 * include/pupa/i386/setjmp.h: Likewise.
54597 * include/pupa/i386/types.h: Likewise.
54598 * include/pupa/i386/pc/biosdisk.h: Likewise.
54599 * include/pupa/i386/pc/boot.h: Likewise.
54600 * include/pupa/i386/pc/console.h: Likewise.
54601 * include/pupa/i386/pc/init.h: Likewise.
54602 * include/pupa/i386/pc/kernel.h: Likewise.
54603 * include/pupa/i386/pc/linux.h: Likewise.
54604 * include/pupa/i386/pc/loader.h: Likewise.
54605 * include/pupa/i386/pc/memory.h: Likewise.
54606 * include/pupa/i386/pc/multiboot.h: Likewise.
54607 * include/pupa/i386/pc/partition.h: Likewise.
54608 * include/pupa/i386/pc/time.h: Likewise.
54609 * include/pupa/i386/pc/vga.h: Likewise.
54610 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54611 * include/pupa/util/getroot.h: Likewise.
54612 * include/pupa/util/misc.h: Likewise.
54613 * include/pupa/util/resolve.h: Likewise.
54614 * kern/device.c: Likewise.
54615 * kern/disk.c: Likewise.
54616 * kern/dl.c: Likewise.
54617 * kern/err.c: Likewise.
54618 * kern/file.c: Likewise.
54619 * kern/fs.c: Likewise.
54620 * kern/loader.c: Likewise.
54621 * kern/main.c: Likewise.
54622 * kern/misc.c: Likewise.
54623 * kern/mm.c: Likewise.
54624 * kern/rescue.c: Likewise.
54625 * kern/term.c: Likewise.
54626 * kern/i386/dl.c: Likewise.
54627 * kern/i386/pc/init.c: Likewise.
54628 * kern/i386/pc/lzo1x.S: Likewise.
54629 * kern/i386/pc/startup.S: Likewise.
54630 * loader/i386/pc/chainloader.c: Likewise.
54631 * loader/i386/pc/linux.c: Likewise.
54632 * loader/i386/pc/multiboot.c: Likewise.
54633 * normal/cmdline.c: Likewise.
54634 * normal/command.c: Likewise.
54635 * normal/main.c: Likewise.
54636 * normal/menu.c: Likewise.
54637 * normal/i386/setjmp.S: Likewise.
54638 * term/i386/pc/console.c: Likewise.
54639 * term/i386/pc/vga.c: Likewise.
54640 * util/console.c: Likewise.
54641 * util/genmoddep.c: Likewise.
54642 * util/misc.c: Likewise.
54643 * util/pupa-emu.c: Likewise.
54644 * util/resolve.c: Likewise.
54645 * util/unifont2pff.rb: Likewise.
54646 * util/i386/pc/biosdisk.c: Likewise.
54647 * util/i386/pc/getroot.c: Likewise.
54648 * util/i386/pc/pupa-mkimage.c: Likewise.
54649 * util/i386/pc/pupa-setup.c: Likewise.
54650
54651 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54652
54653 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54654 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54655 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54656 reading and reset it after reading.
54657 (pupa_ext2_close): Return PUPA_ERR_NONE.
54658
54659 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54660 Correct value.
54661 (struct linux_kernel_header): Add kernel_version and
54662 initrd_addr_max.
54663 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54664 pupa_file_read succeeds.
54665 (pupa_rescue_cmd_initrd): Implement.
54666
54667 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54668
54669 * fs/ext2.c (pupa_ext2_label): New function.
54670 (pupa_ext2_fs): Added label.
54671 * fs/fat.c (pupa_fat_label): New function.
54672 (pupa_fat_fs): Added label.
54673 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54674
54675 * kern/misc.c (pupa_strndup): New function.
54676 * include/pupa/misc.h (pupa_strndup): New prototype.
54677
54678 * include/pupa/normal.h: Include <pupa/err.h>.
54679 (pupa_set_history): New prototype.
54680 (pupa_iterate_commands): New prototype.
54681 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54682 <pupa/disk.h>, <pupa/file.h>.
54683 (hist_size): New variable.
54684 (hist_lines): Likewise.
54685 (hist_end): Likewise.
54686 (hist_used): Likewise.
54687 (pupa_set_history): New function.
54688 (pupa_history_get): Likewise.
54689 (pupa_history_add): Likewise.
54690 (pupa_history_replace): Likewise.
54691 (pupa_tab_complete): Likewise.
54692 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54693 completion shows partitionnames while completing partitions, this
54694 feature was suggested by Jeff Bailey.
54695 * normal/command.c (pupa_iterate_commands): New function.
54696 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54697 (pupa_normal_init): Initialize history buffer.
54698 (PUPA_MOD_INIT): Likewise.
54699 (pupa_normal_fini): Free the history buffer.
54700 (PUPA_MOD_FINI): Likewise.
54701
54702 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54703 key.
54704
54705 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54706 * configure.ac [i386]: Check for regparam bug.
54707 (NESTED_FUNC_ATTR) [! i386]: Defined.
54708
54709 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54710
54711 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54712 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54713 (pupa_emu_SOURCES): New variable.
54714 (pupa_emu_LDFLAGS): Likewise.
54715 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54716 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54717 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54718 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54719 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54720 (pupa_jmp_buf): New typedef.
54721 (pupa_setjmp) [PUPA_UTIL]: New macro.
54722 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54723 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54724 (pupa_refresh): New prototype.
54725 * include/pupa/util/getroot.h: New file.
54726 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54727 it.
54728 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54729 (pupa_rescue_cmd_cat): Likewise.
54730 (pupa_rescue_cmd_ls): Likewise.
54731 (pupa_rescue_cmd_testload): Likewise.
54732 (pupa_rescue_cmd_lsmod): Likewise.
54733 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54734 * normal/menu.c (run_menu): Likewise.
54735 * kern/term.c (pupa_cls): Likewise.
54736 (pupa_refresh): New function.
54737 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54738 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54739 * util/console.c: New file.
54740
54741 * util/i386/pc/getroot.c: New file.
54742 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54743 (pupa_putchar): New function.
54744 (pupa_refresh): Likewise.
54745 (xgetcwd): Function moved to ...
54746 (strip_extra_slashes): Likewise.
54747 (get_prefix): Likewise.
54748 * util/i386/pc/getroot.c: ... here.
54749 (find_root_device): Function moved and renamed to...
54750 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54751 Changed all callers.
54752 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54753 and renamed to...
54754 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54755 Changed all callers.
54756 * util/misc.c (pupa_memalign): New function.
54757 (pupa_mm_init_region): Likewise.
54758 (pupa_register_exported_symbols): Likewise.
54759 (pupa_putchar): Function removed.
54760 * util/pupa-emu.c: New file.
54761
54762 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54763
54764 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54765 (_multiboot_mod_SOURCES): New variable.
54766 (_multiboot_mod_CFLAGS): Likewise.
54767 * loader/i386/pc/multiboot.c: New file.
54768 * include/pupa/i386/pc/multiboot.h: Likewise.
54769 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54770 (pupa_multiboot_real_boot): New function.
54771 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54772 (pupa_multiboot_real_boot): New prototype.
54773 (pupa_rescue_cmd_multiboot): Likewise
54774 (pupa_rescue_cmd_module): Likewise.
54775
54776 * kern/loader.c (pupa_loader_set): Continue when
54777 pupa_loader_unload_func() fails.
54778 (pupa_loader_unset): New function.
54779 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54780
54781 * kern/misc.c (pupa_stpcpy): New function.
54782 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54783
54784 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54785
54786 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54787 for available extensions.
54788
54789 * include/pupa/i386/pc/time.h: New file.
54790 * kern/disk.c: Include <pupa/machine/time.h>.
54791 (PUPA_CACHE_TIMEOUT): New macro.
54792 (pupa_last_time): New variable.
54793 (pupa_disk_open): Flush the cache when there was a timeout.
54794 (pupa_disk_close): Reset the timer.
54795 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54796 pupa_currticks.
54797 * util/misc.c: Include <sys/times.h>
54798 (pupa_get_rtc): New function.
54799
54800 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54801
54802 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54803 as blocks.
54804 (pupa_ext2_get_file_block): Use blocks member.
54805
54806 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54807 first block. Return -1 instead of pupa_errno on error.
54808
54809 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54810
54811 * README: In the pupa-mkimage example use _chain instead of chain
54812 and ext2 instead of fat.
54813 * TODO: Replace ext2fs with jfs as an example. Add an item for
54814 adding journal playback for ext2fs.
54815 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54816 (pkgdata_MODULES): Added ext2.mod.
54817 (ext2_mod_SOURCES): New variable.
54818 (ext2_mod_CFLAGS): Likewise.
54819 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54820 * include/pupa/misc.h (pupa_strncpy): New prototype.
54821 (pupa_strcat): Likewise.
54822 (pupa_strncmp): Likewise.
54823 * kern/misc.c (pupa_strcat): Enable function.
54824 (pupa_strncpy): New function.
54825 (pupa_strncmp): Likewise.
54826 * fs/ext2.c: New file.
54827
54828 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54829 when the read failed before retrying.
54830 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54831 (_FILE_OFFSET_BITS): Likewise.
54832 * configure.ac: Added AC_SYS_LARGEFILE.
54833
54834 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54835
54836 * genmk.rb (PModule#rule): Make sure to get only symbol names
54837 from the output of nm.
54838 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54839
54840 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54841
54842 I forgot to check in these changes for a long time. This adds
54843 incomplete support for VGA console, and this is still very
54844 buggy. Also, a lot of consideration is required for I18N,
54845 UNICODE, and VGA font issues. Therefore, assume that this is
54846 such that "better than nothing".
54847
54848 * font/manager.c: New file.
54849 * include/pupa/font.h: Likewise.
54850 * include/pupa/i386/pc/vga.h: Likewise.
54851 * term/i386/pc/vga.c: Likewise.
54852 * util/unifont2pff.rb: Likewise.
54853
54854 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54855 (pkgdata_MODULES): Added vga.mod and font.mod.
54856 (vga_mod_SOURCES): New variables.
54857 (vga_mod_CFLAGS): Likewise.
54858 (font_mod_SOURCES): Likewise.
54859 (font_mod_CFLAGS): Likewise.
54860
54861 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54862
54863 * include/pupa/term.h: Include pupa/err.h.
54864 (struct pupa_term): Added init and fini.
54865 Changed the argument of putchar to pupa_uint32_t.
54866
54867 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54868 (pupa_console_real_putchar): New prototype.
54869 (pupa_console_putchar): Removed.
54870 (pupa_console_checkkey): Exported.
54871 (pupa_console_getkey): Likewise.
54872
54873 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54874 characters.
54875
54876 * kern/term.c (pupa_term_set_current): Rewritten.
54877 (pupa_putchar): Likewise.
54878 (pupa_putcode): New function.
54879
54880 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54881 (pupa_console_real_putchar): ... this.
54882 (pupa_vga_set_mode): New function.
54883 (pupa_vga_get_font): Likewise.
54884
54885 * normal/command.c: Include pupa/term.h.
54886 (terminal_command): New function.
54887 (pupa_command_init): Register the command "terminal".
54888
54889 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54890 (DISP_UP): Likewise.
54891 (DISP_RIGHT): Likewise.
54892 (DISP_DOWN): Likewise.
54893 (DISP_HLINE): Likewise.
54894 (DISP_VLINE): Likewise.
54895 (DISP_UL): Likewise.
54896 (DISP_UR): Likewise.
54897 (DISP_LL): Likewise.
54898 (DISP_LR): Likewise.
54899
54900 * term/i386/pc/console.c (pupa_console_putchar): New function.
54901
54902 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54903
54904 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54905 FIX. Reverse the path_list.
54906
54907 * include/pupa/normal.h: Export pupa_register_command and
54908 pupa_unregister_command.
54909
54910 * hello/hello.c (pupa_cmd_hello): New module.
54911 * conf/i386-pc.rmk: Added hello.mod.
54912
54913 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54914
54915 * kern/i386/pc/lzo1x.S: New file.
54916
54917 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54918 (compress_kernel): New variable.
54919 (generate_image): Heavily modified to support compressing a
54920 large part of the core image.
54921
54922 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54923 leak.
54924 (pupa_util_load_image): New function.
54925
54926 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54927 (pupa_compressed_size): New variable.
54928 (codestart): Enable Gate A20 here.
54929 Decompress the compressed part of the core image.
54930 Rearrange the code to put functions and variables which are
54931 required for initialization in the non-compressed part.
54932 Include lzo1x.S.
54933
54934 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54935 here.
54936
54937 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54938
54939 * include/pupa/i386/pc/kernel.h
54940 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54941 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54942 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54943 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54944 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54945
54946 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54947
54948 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54949 (Utility#rule): Likewise.
54950
54951 * configure.ac: Check if LZO is available.
54952
54953 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54954
54955 * include/pupa/normal.h: New file.
54956 * include/pupa/setjmp.h: Likewise.
54957 * include/pupa/i386/setjmp.h: Likewise.
54958 * normal/cmdline.c: Likewise.
54959 * normal/command.c: Likewise.
54960 * normal/main.c: Likewise.
54961 * normal/menu.c: Likewise.
54962 * normal/i386/setjmp.S: Likewise.
54963
54964 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
54965 (pupa_rescue_cmd_initrd): Likewise.
54966
54967 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
54968 Likewise.
54969
54970 * kern/i386/pc/startup.S (translation_table): New variable.
54971 (translate_keycode): New function.
54972 (pupa_console_getkey): Call translate_keycode.
54973
54974 * kern/rescue.c (attempt_normal_mode): New function.
54975 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
54976 it failed, print a message.
54977
54978 * kern/mm.c (pupa_real_malloc): Print more information when a
54979 free magic is broken.
54980 (pupa_free): If the first free header is not free actually, set
54981 it to P.
54982
54983 * kern/main.c (pupa_load_normal_mode): Just load the module
54984 "normal".
54985 (pupa_main): Don't print the message
54986 "Entering into rescue mode..." here.
54987
54988 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
54989 Declared.
54990 (pupa_rescue_cmd_initrd): Likewise.
54991 (pupa_rescue_cmd_initrd): Likewise.
54992
54993 * include/pupa/symbol.h (FUNCTION): Specify the type.
54994 (VARIABLE): Likewise.
54995
54996 * include/pupa/err.h (pupa_err_t): Added
54997 PUPA_ERR_UNKNOWN_COMMAND.
54998
54999 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55000 (pupa_dl_get_prefix): Likewise.
55001
55002 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55003 Added _chain.mod and _linux.mod instead of chain.mod and
55004 linux.mod.
55005 (chain_mod_SOURCES): Renamed to ...
55006 (_chain_mod_SOURCES): ... this.
55007 (chain_mod_CFLAGS): Renamed to ...
55008 (_chain_mod_CFLAGS): ... this.
55009 (linux_mod_SOURCES): Renamed to ...
55010 (_linux_mod_SOURCES): ... this.
55011 (linux_mod_CFLAGS): Renamed to ...
55012 (_linux_mod_CFLAGS): ... this.
55013 (normal_mod_SOURCES): New variable.
55014 (normal_mod_CFLAGS): Likewise.
55015 (normal_mod_ASFLAGS): Likewise.
55016
55017 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55018
55019 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55020 possible.
55021
55022 * kern/dl.c (pupa_dl_ref): Refer depending modules
55023 recursively.
55024 (pupa_dl_unref): Unrefer depending modules recursively.
55025 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55026 a module is unloaded before one depending on that module is
55027 unloaded.
55028 (pupa_dl_unload): Unload depending modules explicitly,
55029 if possible.
55030
55031 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55032
55033 * include/pupa/i386/pc/linux.h: New file.
55034 * loader/i386/pc/linux.c: Likewise.
55035
55036 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55037 Removed.
55038 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55039 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55040 of PUPA_CHAINLOADER_BOOT_SECTOR.
55041
55042 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55043 (pupa_linux_prot_size): New variable.
55044 (pupa_linux_tmp_addr): Likewise.
55045 (pupa_linux_real_addr): Likewise.
55046 (pupa_linux_boot_zimage): New function.
55047 (pupa_linux_boot_bzimage): Likewise.
55048
55049 * kern/i386/pc/init.c (struct mem_region): New structure.
55050 (MAX_REGIONS): New macro.
55051 (mem_regions): New variable.
55052 (num_regions): Likewise.
55053 (pupa_os_area_addr): Likewise.
55054 (pupa_os_area_size): Likewise.
55055 (pupa_lower_mem): Likewise.
55056 (pupa_upper_mem): Likewise.
55057 (add_mem_region): New function.
55058 (compact_mem_regions): Likewise.
55059 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55060 the size of the conventional memory and that of so-called upper
55061 memory (before the first memory hole).
55062 Instead of adding each found region to free memory, use
55063 add_mem_region and add them after removing overlaps.
55064 Also, add only 1/4 of the upper memory to free memory. The rest
55065 is used for loading OS images. Maybe this is ad hoc, but this
55066 makes it much easier to relocate OS images when booting.
55067
55068 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55069 (pupa_enter_rescue_mode): Don't register initrd and module.
55070
55071 * kern/mm.c: Include pupa/dl.h.
55072
55073 * kern/main.c: Include pupa/file.h and pupa/device.h.
55074
55075 * kern/loader.c (pupa_loader_load_module_func): Removed.
55076 (pupa_loader_load_module): Likewise.
55077
55078 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55079 ``.o''.
55080
55081 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55082 (pupa_linux_tmp_addr): Likewise.
55083 (pupa_linux_real_addr): Likewise.
55084 (pupa_linux_boot_zimage): Likewise.
55085 (pupa_linux_boot_bzimage): Likewise.
55086
55087 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55088 (pupa_upper_mem): Likewise.
55089 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55090 module is too dangerous.
55091
55092 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55093 (pupa_os_area_size): Likewise.
55094 (pupa_loader_set): Remove the first argument. Loader doesn't
55095 manage modules or initrd any longer.
55096 (pupa_loader_load_module): Removed.
55097
55098 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55099 (linux_mod_SOURCES): New variable.
55100 (linux_mod_CFLAGS): Likewise.
55101
55102 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55103
55104 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55105 the length of a blocklist correctly.
55106
55107 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55108 Use ioctl only if the OS file is a block device.
55109 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55110 not very useful for normal files.
55111
55112 * kern/main.c (pupa_set_root_dev): New function.
55113 (pupa_load_normal_mode): Likewise.
55114 (pupa_main): Call those above.
55115
55116 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55117 pupa_uint16_t.
55118
55119 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55120
55121 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55122
55123 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55124 (setup): Configure the installed partition information and the
55125 dl prefix.
55126
55127 * loader/i386/pc/chainloader.c (my_mod): New variable.
55128 (pupa_chainloader_unload): New function.
55129 (pupa_rescue_cmd_chainloader): Refer itself.
55130 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55131
55132 * kern/i386/pc/startup.S (install_partition): Removed.
55133 (version_string): Likewise.
55134 (config_file): Likewise.
55135 (pupa_install_dos_part): New variable.
55136 (pupa_install_bsd_part): Likewise.
55137 (pupa_prefix): Likewise.
55138 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55139
55140 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55141 and pupa/misc.h.
55142 (make_install_device): New function.
55143 (pupa_machine_init): Set the dl prefix.
55144
55145 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55146 (buf): Renamed to ...
55147 (linebuf): ... this.
55148 (pupa_rescue_cmd_prefix): New function.
55149 (pupa_rescue_cmd_insmod): Likewise.
55150 (pupa_rescue_cmd_rmmod): Likewise.
55151 (pupa_rescue_cmd_lsmod): Likewise.
55152 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55153 rmmod and lsmod.
55154
55155 * kern/mm.c (pupa_memalign): If failed even after invalidating
55156 disk caches, unload unneeded modules and retry.
55157
55158 * kern/misc.c (pupa_memmove): New function.
55159 (pupa_memcpy): Removed.
55160 (pupa_strcpy): New function.
55161 (pupa_itoa): Made static.
55162
55163 * kern/dl.c (pupa_dl_iterate): New function.
55164 (pupa_dl_ref): Likewise.
55165 (pupa_dl_unref): Likewise.
55166 (pupa_dl_unload): Return if succeeded or not.
55167 (pupa_dl_unload_unneeded): New function.
55168 (pupa_dl_unload_all): Likewise.
55169 (pupa_dl_init): Renamed to ...
55170 (pupa_dl_set_prefix): ... this.
55171 (pupa_dl_get_prefix): New function.
55172
55173 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55174 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55175 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55176 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55177 (pupa_install_dos_part): Declared.
55178 (pupa_install_bsd_part): Likewise.
55179 (pupa_prefix): Likewise.
55180 (pupa_boot_drive): Likewise.
55181
55182 * include/pupa/types.h: Fix a typo.
55183
55184 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55185 pupa_memmove.
55186 (pupa_memmove): Declared.
55187 (pupa_strcpy): Likewise.
55188
55189 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55190 pupa_mod_init takes one argument, its own module.
55191 (pupa_dl_unload_unneeded): Declared.
55192 (pupa_dl_unload_all): Likewise.
55193 (pupa_dl_ref): Likewise.
55194 (pupa_dl_unref): Likewise.
55195 (pupa_dl_iterate): Likewise.
55196 (pupa_dl_init): Renamed to ...
55197 (pupa_dl_set_prefix): ... this.
55198 (pupa_dl_get_prefix): Declared.
55199
55200 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55201 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55202 unloaded.
55203 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55204 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55205
55206 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55207 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55208
55209 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55210
55211 * util/i386/pc/pupa-setup.c (setup): Define the internal
55212 function find_first_partition_start at the top level, because GCC
55213 3.0.x cannot compile internal functions in deeper scopes
55214 correctly.
55215 (find_root_device): Use lstat instead of stat.
55216 Don't follow symbolic links.
55217 Fix the path-constructing code.
55218
55219 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55220 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55221 by a BLKGETSIZE ioctl first, because block devices don't fill
55222 the member st_mode of the structure stat on Linux.
55223 [__linux__] (linux_find_partition): Use a temporary buffer
55224 REAL_DEV for the working space. Copy it to DEV before returning.
55225 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55226 buffer cache consistent.
55227 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55228 strncmp. The previous value was merely wrong.
55229 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55230
55231 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55232 FAT size is 12. The previous value was merely wrong.
55233
55234 * kern/main.c (pupa_main): Don't split the starting message from
55235 newlines.
55236
55237 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55238 LF, because BIOS goes crazy about character attributes in this
55239 case.
55240
55241 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55242
55243 * include/i386/pc/util/biosdisk.h: New file.
55244 * util/i386/pc/biosdisk.c: Likewise.
55245 * util/i386/pc/pupa-setup.c: Likewise.
55246
55247 * Makefile.in (INCLUDE_DISTFILES): Added
55248 include/pupa/i386/pc/util/biosdisk.h.
55249 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55250 directory util/i386/pc.
55251 (install-local): Added a rule for sbin_UTILITIES.
55252 (uninstall): Likewise.
55253
55254 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55255
55256 * util/misc.c (xrealloc): New function.
55257 (pupa_malloc): Likewise.
55258 (pupa_free): Likewise.
55259 (pupa_realloc): Likewise.
55260 (pupa_stop): Likewise.
55261 (pupa_putchar): Likewise.
55262
55263 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55264
55265 * include/pupa/util/misc.h (xrealloc): Declared.
55266
55267 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55268 macro.
55269 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55270 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55271
55272 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55273 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55274
55275 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55276 way should be implemented.
55277 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55278
55279 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55280 the size of NAME for safety.
55281 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55282 0x88.
55283
55284 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55285 (pupa_setup_SOURCES): Likewise.
55286
55287 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55288
55289 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55290
55291 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55292 bunch of pushl's from pusha, because this destroys the return
55293 value.
55294
55295 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55296
55297 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55298 This means that any missing prototypes could be fatal. Also, you
55299 must take care when writing assembly code. See the comments at
55300 the beginning of startup.S, for more details.
55301
55302 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55303 compilation mechanism.
55304 (pupa_chainloader_real_boot): Likewise.
55305 (pupa_biosdisk_rw_int13_extensions): Likewise.
55306 (pupa_biosdisk_rw_standard): Likewise.
55307 (pupa_biosdisk_check_int13_extensions): Likewise.
55308 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55309 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55310 (pupa_get_memsize): Likewise.
55311 (pupa_get_mmap_entry): Likewise.
55312 (pupa_console_putchar): Likewise.
55313 (pupa_console_setcursor): Likewise.
55314 (pupa_getrtsecs): Use pushl instead of push.
55315
55316 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55317 memory instead of the stack for a mmap entry, because some
55318 BIOSes may ignore the maximum size and overflow.
55319
55320 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55321
55322 * genmk.rb (PModule#rule): Compile automatically generated
55323 sources with module-specific CFLAGS as well as other sources.
55324
55325 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55326
55327 * configure.ac: Check ld.
55328 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55329 respectively, before checking endianness and sizes.
55330
55331 * Makefile.in (LD): New variable.
55332
55333 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55334
55335 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55336
55337 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55338
55339 * Changelog: New file.
55340